@gouvfr-lasuite/ui-kit 0.9.0 → 0.10.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/index.cjs +25 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +3127 -3055
- 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 u=require("react"),le=require("@openfun/cunningham-react"),Lt=require("react-dom");function zc(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 D=zc(u),K2=zc(Lt);function j2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rr={exports:{}},$n={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -14,18 +14,18 @@
|
|
|
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 sa;function z2(){return sa||(sa=1,process.env.NODE_ENV!=="production"&&function(){function t(T){if(T==null)return null;if(typeof T=="function")return T.$$typeof===j?null:T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case p:return"Fragment";case m:return"Profiler";case
|
|
17
|
+
*/var sa;function z2(){return sa||(sa=1,process.env.NODE_ENV!=="production"&&function(){function t(T){if(T==null)return null;if(typeof T=="function")return T.$$typeof===j?null:T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case p:return"Fragment";case m:return"Profiler";case g:return"StrictMode";case $:return"Suspense";case x:return"SuspenseList";case H:return"Activity"}if(typeof T=="object")switch(typeof T.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case b:return"Portal";case S:return(T.displayName||"Context")+".Provider";case C:return(T._context.displayName||"Context")+".Consumer";case P:var F=T.render;return T=T.displayName,T||(T=F.displayName||F.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case E:return F=T.displayName||null,F!==null?F:t(T.type)||"Memo";case N:F=T._payload,T=T._init;try{return t(T(F))}catch{}}return null}function e(T){return""+T}function n(T){try{e(T);var F=!1}catch{F=!0}if(F){F=console;var _=F.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return _.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),e(T)}}function r(T){if(T===p)return"<>";if(typeof T=="object"&&T!==null&&T.$$typeof===N)return"<...>";try{var F=t(T);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function i(){var T=w.A;return T===null?null:T.getOwner()}function o(){return Error("react-stack-top-frame")}function l(T){if(A.call(T,"key")){var F=Object.getOwnPropertyDescriptor(T,"key").get;if(F&&F.isReactWarning)return!1}return T.key!==void 0}function a(T,F){function _(){U||(U=!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)",F))}_.isReactWarning=!0,Object.defineProperty(T,"key",{get:_,configurable:!0})}function s(){var T=t(this.type);return I[T]||(I[T]=!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.")),T=this.props.ref,T!==void 0?T:null}function c(T,F,_,O,K,M,z,V){return _=M.ref,T={$$typeof:v,type:T,key:F,props:M,_owner:K},(_!==void 0?_:null)!==null?Object.defineProperty(T,"ref",{enumerable:!1,get:s}):Object.defineProperty(T,"ref",{enumerable:!1,value:null}),T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(T,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(T,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.defineProperty(T,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T}function d(T,F,_,O,K,M,z,V){var W=F.children;if(W!==void 0)if(O)if(B(W)){for(O=0;O<W.length;O++)f(W[O]);Object.freeze&&Object.freeze(W)}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 f(W);if(A.call(F,"key")){W=t(T);var Y=Object.keys(F).filter(function(se){return se!=="key"});O=0<Y.length?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}",G[W+O]||(Y=0<Y.length?"{"+Y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,O,W,Y,W),G[W+O]=!0)}if(W=null,P!==void 0&&(n(P),W=""+P),l(L)&&(n(L.key),W=""+L.key),"key"in L){P={};for(var Q in L)Q!=="key"&&(P[Q]=L[Q])}else P=L;return W&&a(P,typeof T=="function"?T.displayName||T.name||"Unknown":T),c(T,W,K,F,i(),P,z,B)}function f(T){typeof T=="object"&&T!==null&&T.$$typeof===g&&T._store&&(T._store.validated=1)}var h=d,g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),w=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,V=Array.isArray,A=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(T){return T()}};var U,I={},N=h["react-stack-bottom-frame"].bind(h,o)(),k=A(r(o)),G={};Pn.Fragment=p,Pn.jsx=function(T,L,P,O,F){var K=1e4>w.recentlyCreatedOwnerStacks++;return u(T,L,P,!1,O,F,K?Error("react-stack-top-frame"):N,K?A(r(T)):k)},Pn.jsxs=function(T,L,P,O,F){var K=1e4>w.recentlyCreatedOwnerStacks++;return u(T,L,P,!0,O,F,K?Error("react-stack-top-frame"):N,K?A(r(T)):k)}}()),Pn}var ca;function V2(){return ca||(ca=1,process.env.NODE_ENV==="production"?rr.exports=H2():rr.exports=z2()),rr.exports}var y=V2();const B2={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"}}}},U2={components:B2},W2={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"}}},G2={components:W2},q2={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 "},item:{add:"Add"},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},linkSettings:{title:"Link settings",reach:{choices:{public:{title:"Public",description:"Anyone with the link can access the document"},restricted:{title:"Private",description:"Only users of the space can access the document"}}}}},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"}},Y2={components:q2},Z2={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"},linkSettings:{title:"Paramètres du lien",reach:{choices:{public:{title:"Public",description:"N'importe qui avec le lien peut accéder au document"},restricted:{title:"Privé",description:"Seulement les utilisateur de l'espace peuvent y avoir accès"}}}}},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"}},X2={components:Z2};function Ni(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Lr(t,...e){if(!e.length)return t;const n=e.shift();if(Ni(t)&&Ni(n))for(const r in n)Ni(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Lr(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Lr(t,...e)}function Vc(){return{"en-US":Lr(U2,Y2),"fr-FR":Lr(G2,X2)}}const J2=t=>{const e=Vc();return y.jsx(ae.CunninghamProvider,{theme:"dsfr",customLocales:e,...t})},Bc=({disabled:t,onClick:e})=>y.jsx(ae.Button,{disabled:t,className:"pro-connect-button",onClick:e}),ne=typeof document<"u"?d.useLayoutEffect:()=>{};function fe(t){const e=d.useRef(null);return ne(()=>{e.current=t},[t]),d.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Q2(t){let[e,n]=d.useState(t),r=d.useRef(null),i=fe(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});ne(()=>{r.current&&i()});let o=fe(l=>{r.current=l(e),i()});return[e,o]}const Ar={prefix:String(Math.round(Math.random()*1e10)),current:0},Uc=d.createContext(Ar),eh=d.createContext(!1);let th=!!(typeof window<"u"&&window.document&&window.document.createElement),Ri=new WeakMap;function nh(t=!1){let e=d.useContext(Uc),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 l=Ri.get(o);l==null?Ri.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Ri.delete(o))}n.current=++e.current}return n.current}function rh(t){let e=d.useContext(Uc);e===Ar&&!th&&process.env.NODE_ENV!=="production"&&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=nh(!!t),r=e===Ar&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function ih(t){let e=d.useId(),[n]=d.useState(Qn()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ar.prefix}`;return t||`${r}-${e}`}const oh=typeof d.useId=="function"?ih:rh;function lh(){return!1}function ah(){return!0}function sh(t){return()=>{}}function Qn(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(sh,lh,ah):d.useContext(eh)}let ch=!!(typeof window<"u"&&window.document&&window.document.createElement),ln=new Map,Rn;typeof FinalizationRegistry<"u"&&(Rn=new FinalizationRegistry(t=>{ln.delete(t)}));function Se(t){let[e,n]=d.useState(t),r=d.useRef(null),i=oh(e),o=d.useRef(null);if(Rn&&Rn.register(o,i),ch){const l=ln.get(i);l&&!l.includes(r)?l.push(r):ln.set(i,[r])}return ne(()=>{let l=i;return()=>{Rn&&Rn.unregister(o),ln.delete(l)}},[i]),d.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function uh(t,e){if(t===e)return t;let n=ln.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=ln.get(e);return r?(r.forEach(i=>i.current=t),t):e}function wt(t=[]){let e=Se(),[n,r]=Q2(e),i=d.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return ne(i,[e,i,...t]),n}function Pt(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const oe=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Me=t=>t&&"window"in t&&t.window===t?t:oe(t).defaultView||window;function dh(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function fh(t){return dh(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let hh=!1;function ti(){return hh}function se(t,e){if(!ti())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:fh(n)?n=n.host:n=n.parentNode}return!1}const Ce=(t=document)=>{var e;if(!ti())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function ie(t){return ti()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class ph{get currentNode(){return this._currentNode}set currentNode(e){if(!se(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return se(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const s=l.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(l);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function vh(t,e,n,r){return ti()?new ph(t,e,n,r):t.createTreeWalker(e,n,r)}function Wc(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=Wc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Wc(t))&&(r&&(r+=" "),r+=e);return r}function re(...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]=Pt(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Pe(o,l):i==="id"&&o&&l?e.id=uh(o,l):e[i]=l!==void 0?l:o}}return e}function ul(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=ua(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():ua(t[o],null)})}}}function ua(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const gh=new Set(["id"]),mh=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),bh=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),yh=/^(data-.*)$/;function he(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(gh.has(l)||n&&mh.has(l)||r&&bh.has(l)||i!=null&&i.has(l)||yh.test(l))&&(o[l]=t[l]);return o}function ze(t){if(Ch())t.focus({preventScroll:!0});else{let e=Sh(t);t.focus(),wh(e)}}let ir=null;function Ch(){if(ir==null){ir=!1;try{document.createElement("div").focus({get preventScroll(){return ir=!0,!0}})}catch{}}return ir}function Sh(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 wh(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function ni(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 dl(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 et(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const ft=et(function(){return dl(/^Mac/i)}),Eh=et(function(){return dl(/^iPhone/i)}),Gc=et(function(){return dl(/^iPad/i)||ft()&&navigator.maxTouchPoints>1}),ri=et(function(){return Eh()||Gc()}),xh=et(function(){return ft()||ri()}),fl=et(function(){return ni(/AppleWebKit/i)&&!qc()}),qc=et(function(){return ni(/Chrome/i)}),hl=et(function(){return ni(/Android/i)}),$h=et(function(){return ni(/Firefox/i)}),Ph=d.createContext({isNative:!0,open:_h,useHref:t=>t});function ii(){return d.useContext(Ph)}function Dt(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;$h()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(ft()?o=!0:l=!0);let c=fl()&&ft()&&!Gc()&&process.env.NODE_ENV!=="test"?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});Dt.isOpening=n,ze(t),t.dispatchEvent(c),Dt.isOpening=!1}Dt.isOpening=!1;function Dh(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 _h(t,e){Dh(t,n=>Dt(n,e))}function pl(t){let e=ii();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 st=new Map,xo=new Set;function da(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=st.get(r.target);i||(i=new Set,st.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=st.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),st.delete(r.target)),st.size===0)){for(let o of xo)o();xo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?da():document.addEventListener("DOMContentLoaded",da));function Th(){for(const[t]of st)"isConnected"in t&&!t.isConnected&&st.delete(t)}function Yc(t){requestAnimationFrame(()=>{Th(),st.size===0?t():xo.add(t)})}function oi(){let t=d.useRef(new Map),e=d.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=d.useCallback((i,o,l,a)=>{var s;let c=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,c,a),t.current.delete(l)},[]),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 li(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Se(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 tt(t){const e=d.useRef(null),n=d.useRef(void 0),r=d.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return d.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}function fa(t,e){const n=d.useRef(!0),r=d.useRef(null);ne(()=>(n.current=!0,()=>{n.current=!1}),[]),ne(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Ih(){return typeof window.ResizeObserver<"u"}function $o(t){const{ref:e,box:n,onResize:r}=t;d.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(Ih()){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 Zc(t,e){ne(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Bn(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 Xc(t,e){let n=t;for(Bn(n,e)&&(n=n.parentElement);n&&!Bn(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Oh(t,e){const n=[];for(;t&&t!==document.documentElement;)Bn(t,e)&&n.push(t),t=t.parentElement;return n}let kh=0;const Mi=new Map;function Nh(t){let[e,n]=d.useState();return ne(()=>{if(!t)return;let r=Mi.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${kh++}`;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},Mi.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Mi.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function or(t,e,n,r){let i=fe(n),o=n==null;d.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 Jc(t,e){let n=ha(t,e,"left"),r=ha(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:u,scrollPaddingRight:f,scrollPaddingBottom:h,scrollPaddingLeft:g}=getComputedStyle(t),b=l+parseInt(c,10),p=a+parseInt(s,10),v=b+t.clientWidth,m=p+t.clientHeight,C=parseInt(u,10)||0,S=parseInt(h,10)||0,D=parseInt(f,10)||0,$=parseInt(g,10)||0;n<=l+$?l=n-parseInt(c,10)-$:n+i>v-D&&(l+=n+i-v+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 ha(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 pa(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=Oh(t);for(let c of s)Jc(c,t)}else{var n;let{left:s,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:u,top:f}=t.getBoundingClientRect();if(Math.abs(s-u)>1||Math.abs(c-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 Po(t){return t.mozInputSource===0&&t.isTrusted?!0:hl()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Rh(t){return!hl()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Mh(t,e,n){let r=d.useRef(e),i=fe(()=>{n&&n(r.current)});d.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])}function Lh(t){const e=d.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const Ah="react-aria-clear-focus",Fh="react-aria-focus";function Qt(t){return ft()?t.metaKey:t.ctrlKey}function Kh(t,e=!0){let[n,r]=d.useState(!0),i=n&&e;return ne(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Qc(t,i,d.useCallback(()=>r(!1),[])),i}function jh(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 Qc(t,i,d.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Qc(t,e,n){ne(()=>{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||Mt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const vl=["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"])'],Hh=vl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";vl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const zh=vl.join(':not([hidden]):not([tabindex="-1"]),');function eu(t){return t.matches(Hh)}function Vh(t){return t.matches(zh)}function ai(t,e,n){let[r,i]=d.useState(t||e),o=d.useRef(t!==void 0),l=t!==void 0;d.useEffect(()=>{let c=o.current;c!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=d.useCallback((c,...u)=>{let f=(h,...g)=>{n&&(Object.is(a,h)||n(h,...g)),l||(a=h)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...b)=>{let p=c(l?a:g,...b);return f(p,...u),l?g:p})):(l||i(c),f(c,...u))},[l,a,n]);return[a,s]}function Do(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const gl=Symbol("default");function ht({values:t,children:e}){for(let[n,r]of t)e=d.createElement(n.Provider,{value:r},e);return e}function De(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a}=t;return d.useMemo(()=>{let s,c,u;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?c=n({...a,defaultStyle:l||{}}):c=n,typeof r=="function"?u=r({...a,defaultChildren:o}):r==null?u=o:u=r,{className:s??i,style:c||l?{...l,...c}:void 0,children:u??o,"data-rac":""}},[e,n,r,i,o,l,a])}function si(t,e){let n=d.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||gl;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function nt(t,e,n){let r=si(n,t.slot)||{},{ref:i,...o}=r,l=tt(d.useMemo(()=>ul(e,i),[e,i])),a=re(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 c=typeof o.style=="function"?o.style(s):o.style,u={...s.defaultStyle,...c},f=typeof t.style=="function"?t.style({...s,defaultStyle:u}):t.style;return{...u,...f}}:a.style={...o.style,...t.style}),[a,l]}function ml(t=!0){let[e,n]=d.useState(t),r=d.useRef(!1),i=d.useCallback(o=>{r.current=!0,n(!!o)},[]);return ne(()=>{r.current||n(!1)},[]),[i,e]}function Bh(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class bl{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new bl(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.colSpan=this.colSpan,e.colIndex=this.colIndex,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.colSpan=null,this.colIndex=null,this.type=e,this.key=n}}class yl{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}UNSTABLE_filter(e){let n=new yl,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(va(a,e,this,n)){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{let o=i.clone();va(o,e,this,n)&&(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}}function va(t,e,n,r){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...n.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class tu{*[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}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){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),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);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,this.invalidateChildIndices(n),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(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.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class an extends tu{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof an?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,n,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof an?this.parentNode.node.key:null;var l;o.prevKey=(l=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var a;o.nextKey=(a=i==null?void 0:i.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(n=this.firstVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&c!==void 0?c:null,(o.colSpan!=null||o.colIndex!=null)&&i){var u,f;let h=((u=o.colIndex)!==null&&u!==void 0?u:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(h!==i.node.colIndex){let g=i.getMutableNode();g.colIndex=h}}}setProps(e,n,r,i){let o=this.getMutableNode(),{value:l,textValue:a,id:s,...c}=e;if(c.ref=n,o.props=c,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(typeof c.children=="string"?c.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}c.colSpan!=null&&(o.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,a=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),a&&e.ownerDocument.markDirty(a),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new bl(e,`react-aria-${++n.nodeId}`)}}class Uh extends tu{get isConnected(){return this.isMounted}createElement(e){return new an(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof an&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof an&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,n,r,i;this.nextCollection.commit((r=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}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.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function nu(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=d.useMemo(()=>new WeakMap,o);return d.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let u of n){let f=l.get(u);if(!f){f=e(u);var a,s;let h=(s=(a=f.props.id)!==null&&a!==void 0?a:u.key)!==null&&s!==void 0?s:u.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),f=d.cloneElement(f,i?{key:h,id:h,value:u}:{key:h}),l.set(u,f)}c.push(f)}return c}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 Fr=d.createContext(!1);function Wh(t){if(d.useContext(Fr))return d.createElement(d.Fragment,null,t.children);let n=d.createElement(Fr.Provider,{value:!0},t.children);return d.createElement("template",{"data-react-aria-hidden":!0},n)}function Cl(t){let e=(n,r)=>d.useContext(Fr)?null:t(n,r);return e.displayName=t.displayName||t.name,d.forwardRef(e)}function Gh(){return d.useContext(Fr)}function Sl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function ru(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function iu(t){let e=d.useRef({isFocused:!1,observer:null});ne(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=fe(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=l=>{if(e.current.isFocused=!1,i.disabled){let a=Sl(l);n(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 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 Kr=!1;function ga(t){for(;t&&!eu(t);)t=t.parentElement;let e=Me(t),n=e.document.activeElement;if(!n||n===t)return;Kr=!0;let r=!1,i=u=>{(u.target===n||r)&&u.stopImmediatePropagation()},o=u=>{(u.target===n||r)&&(u.stopImmediatePropagation(),!t&&!r&&(r=!0,ze(n),s()))},l=u=>{(u.target===t||r)&&u.stopImmediatePropagation()},a=u=>{(u.target===t||r)&&(u.stopImmediatePropagation(),r||(r=!0,ze(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),Kr=!1,r=!1},c=requestAnimationFrame(s);return s}let nn="default",_o="",Er=new WeakMap;function ma(t){if(ri()){if(nn==="default"){const e=oe(t);_o=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}nn="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Er.set(t,t.style[e]),t.style[e]="none"}}function Li(t){if(ri()){if(nn!=="disabled")return;nn="restoring",setTimeout(()=>{Yc(()=>{if(nn==="restoring"){const e=oe(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=_o||""),_o="",nn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Er.has(t)){let e=Er.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Er.delete(t)}}const wl=d.createContext({register:()=>{}});wl.displayName="PressResponderContext";function qh(t,e){return e.get?e.get.call(t):e.value}function ou(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Yh(t,e){var n=ou(t,e,"get");return qh(t,n)}function Zh(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xh(t,e,n){Zh(t,e),e.set(t,n)}function Jh(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 ba(t,e,n){var r=ou(t,e,"set");return Jh(t,r,n),n}function Qh(t){let e=d.useContext(wl);if(e){let{register:n,...r}=e;t=re(r,t),n()}return Zc(e,t.ref),t}var lr=new WeakMap;class ar{continuePropagation(){ba(this,lr,!1)}get shouldStopPropagation(){return Yh(this,lr)}constructor(e,n,r,i){Xh(this,lr,{writable:!0,value:void 0}),ba(this,lr,!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,c=0,u,f=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,f=r.clientY),a&&(u!=null&&f!=null?(s=u-a.left,c=f-a.top):(s=a.width/2,c=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=c}}const ya=Symbol("linkClicked"),Ca="react-aria-pressable-style",Sa="data-react-aria-pressable";function ci(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:f,ref:h,...g}=Qh(t),[b,p]=d.useState(!1),v=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:C}=oi(),S=fe((w,M)=>{let V=v.current;if(a||V.didFirePressStart)return!1;let A=!0;if(V.isTriggeringEvent=!0,r){let U=new ar("pressstart",M,w);r(U),A=U.shouldStopPropagation}return n&&n(!0),V.isTriggeringEvent=!1,V.didFirePressStart=!0,p(!0),A}),D=fe((w,M,V=!0)=>{let A=v.current;if(!A.didFirePressStart)return!1;A.didFirePressStart=!1,A.isTriggeringEvent=!0;let U=!0;if(i){let I=new ar("pressend",M,w);i(I),U=I.shouldStopPropagation}if(n&&n(!1),p(!1),e&&V&&!a){let I=new ar("press",M,w);e(I),U&&(U=I.shouldStopPropagation)}return A.isTriggeringEvent=!1,U}),$=fe((w,M)=>{let V=v.current;if(a)return!1;if(o){V.isTriggeringEvent=!0;let A=new ar("pressup",M,w);return o(A),V.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),E=fe(w=>{let M=v.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&D(pt(M.target,w),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,C(),f||Li(M.target);for(let V of M.disposables)V();M.disposables=[]}}),x=fe(w=>{u&&E(w)}),R=fe(w=>{l==null||l(w)}),H=fe((w,M)=>{if(l){let V=new MouseEvent("click",w);ru(V,M),l(Sl(V))}}),j=d.useMemo(()=>{let w=v.current,M={onKeyDown(A){if(Ai(A.nativeEvent,A.currentTarget)&&se(A.currentTarget,ie(A.nativeEvent))){var U;xa(ie(A.nativeEvent),A.key)&&A.preventDefault();let I=!0;if(!w.isPressed&&!A.repeat){w.target=A.currentTarget,w.isPressed=!0,w.pointerType="keyboard",I=S(A,"keyboard");let N=A.currentTarget,k=G=>{Ai(G,N)&&!G.repeat&&se(N,ie(G))&&w.target&&$(pt(w.target,G),"keyboard")};m(oe(A.currentTarget),"keyup",Pt(k,V),!0)}I&&A.stopPropagation(),A.metaKey&&ft()&&((U=w.metaKeyEvents)===null||U===void 0||U.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(A){if(!(A&&!se(A.currentTarget,ie(A.nativeEvent)))&&A&&A.button===0&&!w.isTriggeringEvent&&!Dt.isOpening){let U=!0;if(a&&A.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||Po(A.nativeEvent))){let I=S(A,"virtual"),N=$(A,"virtual"),k=D(A,"virtual");R(A),U=I&&N&&k}else if(w.isPressed&&w.pointerType!=="keyboard"){let I=w.pointerType||A.nativeEvent.pointerType||"virtual",N=$(pt(A.currentTarget,A),I),k=D(pt(A.currentTarget,A),I,!0);U=N&&k,w.isOverTarget=!1,R(A),E(A)}w.ignoreEmulatedMouseEvents=!1,U&&A.stopPropagation()}}},V=A=>{var U;if(w.isPressed&&w.target&&Ai(A,w.target)){var I;xa(ie(A),A.key)&&A.preventDefault();let k=ie(A),G=se(w.target,ie(A));D(pt(w.target,A),"keyboard",G),G&&H(A,w.target),C(),A.key!=="Enter"&&El(w.target)&&se(w.target,k)&&!A[ya]&&(A[ya]=!0,Dt(w.target,A,!1)),w.isPressed=!1,(I=w.metaKeyEvents)===null||I===void 0||I.delete(A.key)}else if(A.key==="Meta"&&(!((U=w.metaKeyEvents)===null||U===void 0)&&U.size)){var N;let k=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let G of k.values())(N=w.target)===null||N===void 0||N.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){M.onPointerDown=I=>{if(I.button!==0||!se(I.currentTarget,ie(I.nativeEvent)))return;if(Rh(I.nativeEvent)){w.pointerType="virtual";return}w.pointerType=I.pointerType;let N=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=I.pointerId,w.target=I.currentTarget,f||ma(w.target),N=S(I,w.pointerType);let k=ie(I.nativeEvent);"releasePointerCapture"in k&&k.releasePointerCapture(I.pointerId),m(oe(I.currentTarget),"pointerup",A,!1),m(oe(I.currentTarget),"pointercancel",U,!1)}N&&I.stopPropagation()},M.onMouseDown=I=>{if(se(I.currentTarget,ie(I.nativeEvent))&&I.button===0){if(c){let N=ga(I.target);N&&w.disposables.push(N)}I.stopPropagation()}},M.onPointerUp=I=>{!se(I.currentTarget,ie(I.nativeEvent))||w.pointerType==="virtual"||I.button===0&&!w.isPressed&&$(I,w.pointerType||I.pointerType)},M.onPointerEnter=I=>{I.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,S(pt(w.target,I),w.pointerType))},M.onPointerLeave=I=>{I.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,D(pt(w.target,I),w.pointerType,!1),x(I))};let A=I=>{if(I.pointerId===w.activePointerId&&w.isPressed&&I.button===0&&w.target){if(se(w.target,ie(I))&&w.pointerType!=null){let N=!1,k=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(N?E(I):(ze(w.target),w.target.click()))},80);m(I.currentTarget,"click",()=>N=!0,!0),w.disposables.push(()=>clearTimeout(k))}else E(I);w.isOverTarget=!1}},U=I=>{E(I)};M.onDragStart=I=>{se(I.currentTarget,ie(I.nativeEvent))&&E(I)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=I=>{if(I.button!==0||!se(I.currentTarget,ie(I.nativeEvent)))return;if(w.ignoreEmulatedMouseEvents){I.stopPropagation();return}if(w.isPressed=!0,w.isOverTarget=!0,w.target=I.currentTarget,w.pointerType=Po(I.nativeEvent)?"virtual":"mouse",Mt.flushSync(()=>S(I,w.pointerType))&&I.stopPropagation(),c){let k=ga(I.target);k&&w.disposables.push(k)}m(oe(I.currentTarget),"mouseup",A,!1)},M.onMouseEnter=I=>{if(!se(I.currentTarget,ie(I.nativeEvent)))return;let N=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!0,N=S(I,w.pointerType)),N&&I.stopPropagation()},M.onMouseLeave=I=>{if(!se(I.currentTarget,ie(I.nativeEvent)))return;let N=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!1,N=D(I,w.pointerType,!1),x(I)),N&&I.stopPropagation()},M.onMouseUp=I=>{se(I.currentTarget,ie(I.nativeEvent))&&!w.ignoreEmulatedMouseEvents&&I.button===0&&!w.isPressed&&$(I,w.pointerType||"mouse")};let A=I=>{if(I.button===0){if(w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}w.target&&w.target.contains(I.target)&&w.pointerType!=null||E(I),w.isOverTarget=!1}};M.onTouchStart=I=>{if(!se(I.currentTarget,ie(I.nativeEvent)))return;let N=ep(I.nativeEvent);if(!N)return;w.activePointerId=N.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=I.currentTarget,w.pointerType="touch",f||ma(w.target),S(it(w.target,I),w.pointerType)&&I.stopPropagation(),m(Me(I.currentTarget),"scroll",U,!0)},M.onTouchMove=I=>{if(!se(I.currentTarget,ie(I.nativeEvent)))return;if(!w.isPressed){I.stopPropagation();return}let N=wa(I.nativeEvent,w.activePointerId),k=!0;N&&Ea(N,I.currentTarget)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,k=S(it(w.target,I),w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,k=D(it(w.target,I),w.pointerType,!1),x(it(w.target,I))),k&&I.stopPropagation()},M.onTouchEnd=I=>{if(!se(I.currentTarget,ie(I.nativeEvent)))return;if(!w.isPressed){I.stopPropagation();return}let N=wa(I.nativeEvent,w.activePointerId),k=!0;N&&Ea(N,I.currentTarget)&&w.pointerType!=null?($(it(w.target,I),w.pointerType),k=D(it(w.target,I),w.pointerType),H(I.nativeEvent,w.target)):w.isOverTarget&&w.pointerType!=null&&(k=D(it(w.target,I),w.pointerType,!1)),k&&I.stopPropagation(),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,w.target&&!f&&Li(w.target),C()},M.onTouchCancel=I=>{se(I.currentTarget,ie(I.nativeEvent))&&(I.stopPropagation(),w.isPressed&&E(it(w.target,I)))};let U=I=>{w.isPressed&&se(ie(I),w.target)&&E({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=I=>{se(I.currentTarget,ie(I.nativeEvent))&&E(I)}}return M},[m,a,c,C,f,E,x,D,S,$,R,H]);return d.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const w=oe(h.current);if(!w||!w.head||w.getElementById(Ca))return;const M=w.createElement("style");M.id=Ca,M.textContent=`
|
|
22
|
+
<%s key={someKey} {...props} />`,O,W,Y,W),G[W+O]=!0)}if(W=null,_!==void 0&&(n(_),W=""+_),l(F)&&(n(F.key),W=""+F.key),"key"in F){_={};for(var J in F)J!=="key"&&(_[J]=F[J])}else _=F;return W&&a(_,typeof T=="function"?T.displayName||T.name||"Unknown":T),c(T,W,M,K,i(),_,z,V)}function f(T){typeof T=="object"&&T!==null&&T.$$typeof===v&&T._store&&(T._store.validated=1)}var h=u,v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),w=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,B=Array.isArray,L=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(T){return T()}};var U,I={},R=h["react-stack-bottom-frame"].bind(h,o)(),k=L(r(o)),G={};Pn.Fragment=p,Pn.jsx=function(T,F,_,O,K){var M=1e4>w.recentlyCreatedOwnerStacks++;return d(T,F,_,!1,O,K,M?Error("react-stack-top-frame"):R,M?L(r(T)):k)},Pn.jsxs=function(T,F,_,O,K){var M=1e4>w.recentlyCreatedOwnerStacks++;return d(T,F,_,!0,O,K,M?Error("react-stack-top-frame"):R,M?L(r(T)):k)}}()),Pn}var ca;function V2(){return ca||(ca=1,process.env.NODE_ENV==="production"?rr.exports=H2():rr.exports=z2()),rr.exports}var y=V2();const B2={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"}}}},U2={components:B2},W2={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"}}},G2={components:W2},q2={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",access:{delete:"Remove access"},cannot_view:{message:"You can view this item but you need additional access to view its members or modify the settings."},invitations:{title:"Pending invitations"},members:{title:"Members",title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},item:{add:"Add"},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},linkSettings:{title:"Link settings",reach:{choices:{public:{title:"Public",description:"Anyone with the link can access the document"},restricted:{title:"Private",description:"Only users of the space can access the document"}}},role:{choices:{reader:{title:"Reader"},editor:{title:"Editor"}}}}},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"}},Y2={components:q2},Z2={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},cannot_view:{message:"Vous pouvez voir cet élément mais vous avez besoin d'un accès supplémentaire pour voir ses membres ou modifier les paramètres."},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"},linkSettings:{title:"Paramètres du lien",reach:{choices:{public:{title:"Public",description:"N'importe qui avec le lien peut accéder au document"},restricted:{title:"Privé",description:"Seulement les utilisateurs de l'espace peuvent y avoir accès"}}},role:{choices:{reader:{title:"Lecture seule"},editor:{title:"Édition"}}}}},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"}},X2={components:Z2};function Ri(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ar(t,...e){if(!e.length)return t;const n=e.shift();if(Ri(t)&&Ri(n))for(const r in n)Ri(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Ar(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Ar(t,...e)}function Vc(){return{"en-US":Ar(U2,Y2),"fr-FR":Ar(G2,X2)}}const J2=t=>{const e=Vc();return y.jsx(le.CunninghamProvider,{theme:"dsfr",customLocales:e,...t})},Bc=({disabled:t,onClick:e})=>y.jsx(le.Button,{disabled:t,className:"pro-connect-button",onClick:e}),ne=typeof document<"u"?u.useLayoutEffect:()=>{};function he(t){const e=u.useRef(null);return ne(()=>{e.current=t},[t]),u.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Q2(t){let[e,n]=u.useState(t),r=u.useRef(null),i=he(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});ne(()=>{r.current&&i()});let o=he(l=>{r.current=l(e),i()});return[e,o]}const Fr={prefix:String(Math.round(Math.random()*1e10)),current:0},Uc=u.createContext(Fr),eh=u.createContext(!1);let th=!!(typeof window<"u"&&window.document&&window.document.createElement),Mi=new WeakMap;function nh(t=!1){let e=u.useContext(Uc),n=u.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=u.__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=Mi.get(o);l==null?Mi.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Mi.delete(o))}n.current=++e.current}return n.current}function rh(t){let e=u.useContext(Uc);e===Fr&&!th&&process.env.NODE_ENV!=="production"&&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=nh(!!t),r=e===Fr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function ih(t){let e=u.useId(),[n]=u.useState(Qn()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Fr.prefix}`;return t||`${r}-${e}`}const oh=typeof u.useId=="function"?ih:rh;function lh(){return!1}function ah(){return!0}function sh(t){return()=>{}}function Qn(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(sh,lh,ah):u.useContext(eh)}let ch=!!(typeof window<"u"&&window.document&&window.document.createElement),an=new Map,Rn;typeof FinalizationRegistry<"u"&&(Rn=new FinalizationRegistry(t=>{an.delete(t)}));function Se(t){let[e,n]=u.useState(t),r=u.useRef(null),i=oh(e),o=u.useRef(null);if(Rn&&Rn.register(o,i),ch){const l=an.get(i);l&&!l.includes(r)?l.push(r):an.set(i,[r])}return ne(()=>{let l=i;return()=>{Rn&&Rn.unregister(o),an.delete(l)}},[i]),u.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function uh(t,e){if(t===e)return t;let n=an.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=an.get(e);return r?(r.forEach(i=>i.current=t),t):e}function xt(t=[]){let e=Se(),[n,r]=Q2(e),i=u.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return ne(i,[e,i,...t]),n}function Dt(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const oe=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Me=t=>t&&"window"in t&&t.window===t?t:oe(t).defaultView||window;function dh(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function fh(t){return dh(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let hh=!1;function ni(){return hh}function ce(t,e){if(!ni())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:fh(n)?n=n.host:n=n.parentNode}return!1}const Ce=(t=document)=>{var e;if(!ni())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function ie(t){return ni()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class ph{get currentNode(){return this._currentNode}set currentNode(e){if(!ce(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return ce(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const s=l.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(l);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function vh(t,e,n,r){return ni()?new ph(t,e,n,r):t.createTreeWalker(e,n,r)}function Wc(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=Wc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Wc(t))&&(r&&(r+=" "),r+=e);return r}function re(...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]=Dt(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Pe(o,l):i==="id"&&o&&l?e.id=uh(o,l):e[i]=l!==void 0?l:o}}return e}function ul(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=ua(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():ua(t[o],null)})}}}function ua(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const gh=new Set(["id"]),mh=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),bh=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),yh=/^(data-.*)$/;function pe(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(gh.has(l)||n&&mh.has(l)||r&&bh.has(l)||i!=null&&i.has(l)||yh.test(l))&&(o[l]=t[l]);return o}function ze(t){if(Ch())t.focus({preventScroll:!0});else{let e=Sh(t);t.focus(),wh(e)}}let ir=null;function Ch(){if(ir==null){ir=!1;try{document.createElement("div").focus({get preventScroll(){return ir=!0,!0}})}catch{}}return ir}function Sh(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 wh(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function ri(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 dl(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 et(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const ft=et(function(){return dl(/^Mac/i)}),xh=et(function(){return dl(/^iPhone/i)}),Gc=et(function(){return dl(/^iPad/i)||ft()&&navigator.maxTouchPoints>1}),ii=et(function(){return xh()||Gc()}),Eh=et(function(){return ft()||ii()}),fl=et(function(){return ri(/AppleWebKit/i)&&!qc()}),qc=et(function(){return ri(/Chrome/i)}),hl=et(function(){return ri(/Android/i)}),$h=et(function(){return ri(/Firefox/i)}),Ph=u.createContext({isNative:!0,open:_h,useHref:t=>t});function oi(){return u.useContext(Ph)}function _t(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;$h()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(ft()?o=!0:l=!0);let c=fl()&&ft()&&!Gc()&&process.env.NODE_ENV!=="test"?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});_t.isOpening=n,ze(t),t.dispatchEvent(c),_t.isOpening=!1}_t.isOpening=!1;function Dh(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 _h(t,e){Dh(t,n=>_t(n,e))}function pl(t){let e=oi();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 st=new Map,Eo=new Set;function da(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=st.get(r.target);i||(i=new Set,st.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=st.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),st.delete(r.target)),st.size===0)){for(let o of Eo)o();Eo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?da():document.addEventListener("DOMContentLoaded",da));function Th(){for(const[t]of st)"isConnected"in t&&!t.isConnected&&st.delete(t)}function Yc(t){requestAnimationFrame(()=>{Th(),st.size===0?t():Eo.add(t)})}function li(){let t=u.useRef(new Map),e=u.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=u.useCallback((i,o,l,a)=>{var s;let c=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,c,a),t.current.delete(l)},[]),r=u.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function ai(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Se(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 tt(t){const e=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return u.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}function fa(t,e){const n=u.useRef(!0),r=u.useRef(null);ne(()=>(n.current=!0,()=>{n.current=!1}),[]),ne(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Ih(){return typeof window.ResizeObserver<"u"}function $o(t){const{ref:e,box:n,onResize:r}=t;u.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(Ih()){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 Zc(t,e){ne(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Bn(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 Xc(t,e){let n=t;for(Bn(n,e)&&(n=n.parentElement);n&&!Bn(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Oh(t,e){const n=[];for(;t&&t!==document.documentElement;)Bn(t,e)&&n.push(t),t=t.parentElement;return n}let kh=0;const Li=new Map;function Nh(t){let[e,n]=u.useState();return ne(()=>{if(!t)return;let r=Li.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${kh++}`;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},Li.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Li.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function or(t,e,n,r){let i=he(n),o=n==null;u.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 Jc(t,e){let n=ha(t,e,"left"),r=ha(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:h,scrollPaddingLeft:v}=getComputedStyle(t),b=l+parseInt(c,10),p=a+parseInt(s,10),g=b+t.clientWidth,m=p+t.clientHeight,C=parseInt(d,10)||0,S=parseInt(h,10)||0,P=parseInt(f,10)||0,$=parseInt(v,10)||0;n<=l+$?l=n-parseInt(c,10)-$:n+i>g-P&&(l+=n+i-g+P),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 ha(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 pa(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=Oh(t);for(let c of s)Jc(c,t)}else{var n;let{left:s,top:c}=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(c-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 Po(t){return t.mozInputSource===0&&t.isTrusted?!0:hl()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Rh(t){return!hl()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Mh(t,e,n){let r=u.useRef(e),i=he(()=>{n&&n(r.current)});u.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])}function Lh(t){const e=u.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const Ah="react-aria-clear-focus",Fh="react-aria-focus";function en(t){return ft()?t.metaKey:t.ctrlKey}function Kh(t,e=!0){let[n,r]=u.useState(!0),i=n&&e;return ne(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Qc(t,i,u.useCallback(()=>r(!1),[])),i}function jh(t,e){let[n,r]=u.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 Qc(t,i,u.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Qc(t,e,n){ne(()=>{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||Lt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const vl=["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"])'],Hh=vl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";vl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const zh=vl.join(':not([hidden]):not([tabindex="-1"]),');function eu(t){return t.matches(Hh)}function Vh(t){return t.matches(zh)}function si(t,e,n){let[r,i]=u.useState(t||e),o=u.useRef(t!==void 0),l=t!==void 0;u.useEffect(()=>{let c=o.current;c!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=u.useCallback((c,...d)=>{let f=(h,...v)=>{n&&(Object.is(a,h)||n(h,...v)),l||(a=h)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((v,...b)=>{let p=c(l?a:v,...b);return f(p,...d),l?v:p})):(l||i(c),f(c,...d))},[l,a,n]);return[a,s]}function Do(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const gl=Symbol("default");function pt({values:t,children:e}){for(let[n,r]of t)e=u.createElement(n.Provider,{value:r},e);return e}function De(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a}=t;return u.useMemo(()=>{let s,c,d;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?c=n({...a,defaultStyle:l||{}}):c=n,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:s??i,style:c||l?{...l,...c}:void 0,children:d??o,"data-rac":""}},[e,n,r,i,o,l,a])}function ci(t,e){let n=u.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||gl;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function nt(t,e,n){let r=ci(n,t.slot)||{},{ref:i,...o}=r,l=tt(u.useMemo(()=>ul(e,i),[e,i])),a=re(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 c=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...c},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:a.style={...o.style,...t.style}),[a,l]}function ml(t=!0){let[e,n]=u.useState(t),r=u.useRef(!1),i=u.useCallback(o=>{r.current=!0,n(!!o)},[]);return ne(()=>{r.current||n(!1)},[]),[i,e]}function Bh(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class bl{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new bl(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.colSpan=this.colSpan,e.colIndex=this.colIndex,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.colSpan=null,this.colIndex=null,this.type=e,this.key=n}}class yl{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}UNSTABLE_filter(e){let n=new yl,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(va(a,e,this,n)){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{let o=i.clone();va(o,e,this,n)&&(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}}function va(t,e,n,r){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...n.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class tu{*[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}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){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),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);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,this.invalidateChildIndices(n),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(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.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class sn extends tu{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof sn?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,n,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof sn?this.parentNode.node.key:null;var l;o.prevKey=(l=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var a;o.nextKey=(a=i==null?void 0:i.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(n=this.firstVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&c!==void 0?c:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let h=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(h!==i.node.colIndex){let v=i.getMutableNode();v.colIndex=h}}}setProps(e,n,r,i){let o=this.getMutableNode(),{value:l,textValue:a,id:s,...c}=e;if(c.ref=n,o.props=c,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(typeof c.children=="string"?c.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}c.colSpan!=null&&(o.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,a=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),a&&e.ownerDocument.markDirty(a),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new bl(e,`react-aria-${++n.nodeId}`)}}class Uh extends tu{get isConnected(){return this.isMounted}createElement(e){return new sn(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof sn&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof sn&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,n,r,i;this.nextCollection.commit((r=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}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.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function nu(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=u.useMemo(()=>new WeakMap,o);return u.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let d of n){let f=l.get(d);if(!f){f=e(d);var a,s;let h=(s=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&s!==void 0?s:d.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),f=u.cloneElement(f,i?{key:h,id:h,value:d}:{key:h}),l.set(d,f)}c.push(f)}return c}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 Kr=u.createContext(!1);function Wh(t){if(u.useContext(Kr))return u.createElement(u.Fragment,null,t.children);let n=u.createElement(Kr.Provider,{value:!0},t.children);return u.createElement("template",{"data-react-aria-hidden":!0},n)}function Cl(t){let e=(n,r)=>u.useContext(Kr)?null:t(n,r);return e.displayName=t.displayName||t.name,u.forwardRef(e)}function Gh(){return u.useContext(Kr)}function Sl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function ru(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function iu(t){let e=u.useRef({isFocused:!1,observer:null});ne(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=he(r=>{t==null||t(r)});return u.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=>{if(e.current.isFocused=!1,i.disabled){let a=Sl(l);n(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 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 jr=!1;function ga(t){for(;t&&!eu(t);)t=t.parentElement;let e=Me(t),n=e.document.activeElement;if(!n||n===t)return;jr=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,ze(n),s()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,ze(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),jr=!1,r=!1},c=requestAnimationFrame(s);return s}let rn="default",_o="",Er=new WeakMap;function ma(t){if(ii()){if(rn==="default"){const e=oe(t);_o=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}rn="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Er.set(t,t.style[e]),t.style[e]="none"}}function Ai(t){if(ii()){if(rn!=="disabled")return;rn="restoring",setTimeout(()=>{Yc(()=>{if(rn==="restoring"){const e=oe(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=_o||""),_o="",rn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Er.has(t)){let e=Er.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Er.delete(t)}}const wl=u.createContext({register:()=>{}});wl.displayName="PressResponderContext";function qh(t,e){return e.get?e.get.call(t):e.value}function ou(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Yh(t,e){var n=ou(t,e,"get");return qh(t,n)}function Zh(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xh(t,e,n){Zh(t,e),e.set(t,n)}function Jh(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 ba(t,e,n){var r=ou(t,e,"set");return Jh(t,r,n),n}function Qh(t){let e=u.useContext(wl);if(e){let{register:n,...r}=e;t=re(r,t),n()}return Zc(e,t.ref),t}var lr=new WeakMap;class ar{continuePropagation(){ba(this,lr,!1)}get shouldStopPropagation(){return Yh(this,lr)}constructor(e,n,r,i){Xh(this,lr,{writable:!0,value:void 0}),ba(this,lr,!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,c=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,c=f-a.top):(s=a.width/2,c=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=c}}const ya=Symbol("linkClicked"),Ca="react-aria-pressable-style",Sa="data-react-aria-pressable";function ui(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...v}=Qh(t),[b,p]=u.useState(!1),g=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:C}=li(),S=he((w,A)=>{let B=g.current;if(a||B.didFirePressStart)return!1;let L=!0;if(B.isTriggeringEvent=!0,r){let U=new ar("pressstart",A,w);r(U),L=U.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,p(!0),L}),P=he((w,A,B=!0)=>{let L=g.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let U=!0;if(i){let I=new ar("pressend",A,w);i(I),U=I.shouldStopPropagation}if(n&&n(!1),p(!1),e&&B&&!a){let I=new ar("press",A,w);e(I),U&&(U=I.shouldStopPropagation)}return L.isTriggeringEvent=!1,U}),$=he((w,A)=>{let B=g.current;if(a)return!1;if(o){B.isTriggeringEvent=!0;let L=new ar("pressup",A,w);return o(L),B.isTriggeringEvent=!1,L.shouldStopPropagation}return!0}),x=he(w=>{let A=g.current;if(A.isPressed&&A.target){A.didFirePressStart&&A.pointerType!=null&&P(vt(A.target,w),A.pointerType,!1),A.isPressed=!1,A.isOverTarget=!1,A.activePointerId=null,A.pointerType=null,C(),f||Ai(A.target);for(let B of A.disposables)B();A.disposables=[]}}),E=he(w=>{d&&x(w)}),N=he(w=>{l==null||l(w)}),H=he((w,A)=>{if(l){let B=new MouseEvent("click",w);ru(B,A),l(Sl(B))}}),j=u.useMemo(()=>{let w=g.current,A={onKeyDown(L){if(Fi(L.nativeEvent,L.currentTarget)&&ce(L.currentTarget,ie(L.nativeEvent))){var U;Ea(ie(L.nativeEvent),L.key)&&L.preventDefault();let I=!0;if(!w.isPressed&&!L.repeat){w.target=L.currentTarget,w.isPressed=!0,w.pointerType="keyboard",I=S(L,"keyboard");let R=L.currentTarget,k=G=>{Fi(G,R)&&!G.repeat&&ce(R,ie(G))&&w.target&&$(vt(w.target,G),"keyboard")};m(oe(L.currentTarget),"keyup",Dt(k,B),!0)}I&&L.stopPropagation(),L.metaKey&&ft()&&((U=w.metaKeyEvents)===null||U===void 0||U.set(L.key,L.nativeEvent))}else L.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(L){if(!(L&&!ce(L.currentTarget,ie(L.nativeEvent)))&&L&&L.button===0&&!w.isTriggeringEvent&&!_t.isOpening){let U=!0;if(a&&L.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||Po(L.nativeEvent))){let I=S(L,"virtual"),R=$(L,"virtual"),k=P(L,"virtual");N(L),U=I&&R&&k}else if(w.isPressed&&w.pointerType!=="keyboard"){let I=w.pointerType||L.nativeEvent.pointerType||"virtual",R=$(vt(L.currentTarget,L),I),k=P(vt(L.currentTarget,L),I,!0);U=R&&k,w.isOverTarget=!1,N(L),x(L)}w.ignoreEmulatedMouseEvents=!1,U&&L.stopPropagation()}}},B=L=>{var U;if(w.isPressed&&w.target&&Fi(L,w.target)){var I;Ea(ie(L),L.key)&&L.preventDefault();let k=ie(L),G=ce(w.target,ie(L));P(vt(w.target,L),"keyboard",G),G&&H(L,w.target),C(),L.key!=="Enter"&&xl(w.target)&&ce(w.target,k)&&!L[ya]&&(L[ya]=!0,_t(w.target,L,!1)),w.isPressed=!1,(I=w.metaKeyEvents)===null||I===void 0||I.delete(L.key)}else if(L.key==="Meta"&&(!((U=w.metaKeyEvents)===null||U===void 0)&&U.size)){var R;let k=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let G of k.values())(R=w.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){A.onPointerDown=I=>{if(I.button!==0||!ce(I.currentTarget,ie(I.nativeEvent)))return;if(Rh(I.nativeEvent)){w.pointerType="virtual";return}w.pointerType=I.pointerType;let R=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=I.pointerId,w.target=I.currentTarget,f||ma(w.target),R=S(I,w.pointerType);let k=ie(I.nativeEvent);"releasePointerCapture"in k&&k.releasePointerCapture(I.pointerId),m(oe(I.currentTarget),"pointerup",L,!1),m(oe(I.currentTarget),"pointercancel",U,!1)}R&&I.stopPropagation()},A.onMouseDown=I=>{if(ce(I.currentTarget,ie(I.nativeEvent))&&I.button===0){if(c){let R=ga(I.target);R&&w.disposables.push(R)}I.stopPropagation()}},A.onPointerUp=I=>{!ce(I.currentTarget,ie(I.nativeEvent))||w.pointerType==="virtual"||I.button===0&&!w.isPressed&&$(I,w.pointerType||I.pointerType)},A.onPointerEnter=I=>{I.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,S(vt(w.target,I),w.pointerType))},A.onPointerLeave=I=>{I.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,P(vt(w.target,I),w.pointerType,!1),E(I))};let L=I=>{if(I.pointerId===w.activePointerId&&w.isPressed&&I.button===0&&w.target){if(ce(w.target,ie(I))&&w.pointerType!=null){let R=!1,k=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(R?x(I):(ze(w.target),w.target.click()))},80);m(I.currentTarget,"click",()=>R=!0,!0),w.disposables.push(()=>clearTimeout(k))}else x(I);w.isOverTarget=!1}},U=I=>{x(I)};A.onDragStart=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&x(I)}}else if(process.env.NODE_ENV==="test"){A.onMouseDown=I=>{if(I.button!==0||!ce(I.currentTarget,ie(I.nativeEvent)))return;if(w.ignoreEmulatedMouseEvents){I.stopPropagation();return}if(w.isPressed=!0,w.isOverTarget=!0,w.target=I.currentTarget,w.pointerType=Po(I.nativeEvent)?"virtual":"mouse",Lt.flushSync(()=>S(I,w.pointerType))&&I.stopPropagation(),c){let k=ga(I.target);k&&w.disposables.push(k)}m(oe(I.currentTarget),"mouseup",L,!1)},A.onMouseEnter=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;let R=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!0,R=S(I,w.pointerType)),R&&I.stopPropagation()},A.onMouseLeave=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;let R=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!1,R=P(I,w.pointerType,!1),E(I)),R&&I.stopPropagation()},A.onMouseUp=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&!w.ignoreEmulatedMouseEvents&&I.button===0&&!w.isPressed&&$(I,w.pointerType||"mouse")};let L=I=>{if(I.button===0){if(w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}w.target&&w.target.contains(I.target)&&w.pointerType!=null||x(I),w.isOverTarget=!1}};A.onTouchStart=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;let R=ep(I.nativeEvent);if(!R)return;w.activePointerId=R.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=I.currentTarget,w.pointerType="touch",f||ma(w.target),S(it(w.target,I),w.pointerType)&&I.stopPropagation(),m(Me(I.currentTarget),"scroll",U,!0)},A.onTouchMove=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;if(!w.isPressed){I.stopPropagation();return}let R=wa(I.nativeEvent,w.activePointerId),k=!0;R&&xa(R,I.currentTarget)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,k=S(it(w.target,I),w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,k=P(it(w.target,I),w.pointerType,!1),E(it(w.target,I))),k&&I.stopPropagation()},A.onTouchEnd=I=>{if(!ce(I.currentTarget,ie(I.nativeEvent)))return;if(!w.isPressed){I.stopPropagation();return}let R=wa(I.nativeEvent,w.activePointerId),k=!0;R&&xa(R,I.currentTarget)&&w.pointerType!=null?($(it(w.target,I),w.pointerType),k=P(it(w.target,I),w.pointerType),H(I.nativeEvent,w.target)):w.isOverTarget&&w.pointerType!=null&&(k=P(it(w.target,I),w.pointerType,!1)),k&&I.stopPropagation(),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,w.target&&!f&&Ai(w.target),C()},A.onTouchCancel=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&(I.stopPropagation(),w.isPressed&&x(it(w.target,I)))};let U=I=>{w.isPressed&&ce(ie(I),w.target)&&x({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};A.onDragStart=I=>{ce(I.currentTarget,ie(I.nativeEvent))&&x(I)}}return A},[m,a,c,C,f,x,E,P,S,$,N,H]);return u.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const w=oe(h.current);if(!w||!w.head||w.getElementById(Ca))return;const A=w.createElement("style");A.id=Ca,A.textContent=`
|
|
23
23
|
@layer {
|
|
24
24
|
[${Sa}] {
|
|
25
25
|
touch-action: pan-x pan-y pinch-zoom;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
`.trim(),w.head.prepend(M)},[h]),d.useEffect(()=>{let w=v.current;return()=>{var M;f||Li((M=w.target)!==null&&M!==void 0?M:void 0);for(let V of w.disposables)V();w.disposables=[]}},[f]),{isPressed:s||b,pressProps:re(g,j,{[Sa]:!0})}}function El(t){return t.tagName==="A"&&t.hasAttribute("href")}function Ai(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Me(i).HTMLInputElement&&!lu(i,n)||i instanceof Me(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&El(i))&&n!=="Enter")}function ep(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function wa(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 it(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 pt(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 tp(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 np(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ea(t,e){let n=e.getBoundingClientRect(),r=tp(t);return np(n,r)}function rp(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!El(t)}function xa(t,e){return t instanceof HTMLInputElement?!lu(t,e):rp(t)}const ip=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function lu(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":ip.has(t.type)}let Lt=null,To=new Set,Hn=new Map,_t=!1,Io=!1;const op={Tab:!0,Escape:!0};function ui(t,e){for(let n of To)n(t,e)}function lp(t){return!(t.metaKey||!ft()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function jr(t){_t=!0,lp(t)&&(Lt="keyboard",ui("keyboard",t))}function ke(t){Lt="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(_t=!0,ui("pointer",t))}function au(t){Po(t)&&(_t=!0,Lt="virtual")}function su(t){t.target===window||t.target===document||Kr||!t.isTrusted||(!_t&&!Io&&(Lt="virtual",ui("virtual",t)),_t=!1,Io=!1)}function cu(){Kr||(_t=!1,Io=!0)}function Oo(t){if(typeof window>"u"||typeof document>"u"||Hn.get(Me(t)))return;const e=Me(t),n=oe(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){_t=!0,r.apply(this,arguments)},n.addEventListener("keydown",jr,!0),n.addEventListener("keyup",jr,!0),n.addEventListener("click",au,!0),e.addEventListener("focus",su,!0),e.addEventListener("blur",cu,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ke,!0),n.addEventListener("pointermove",ke,!0),n.addEventListener("pointerup",ke,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ke,!0),n.addEventListener("mousemove",ke,!0),n.addEventListener("mouseup",ke,!0)),e.addEventListener("beforeunload",()=>{uu(t)},{once:!0}),Hn.set(e,{focus:r})}const uu=(t,e)=>{const n=Me(t),r=oe(t);e&&r.removeEventListener("DOMContentLoaded",e),Hn.has(n)&&(n.HTMLElement.prototype.focus=Hn.get(n).focus,r.removeEventListener("keydown",jr,!0),r.removeEventListener("keyup",jr,!0),r.removeEventListener("click",au,!0),n.removeEventListener("focus",su,!0),n.removeEventListener("blur",cu,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ke,!0),r.removeEventListener("pointermove",ke,!0),r.removeEventListener("pointerup",ke,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ke,!0),r.removeEventListener("mousemove",ke,!0),r.removeEventListener("mouseup",ke,!0)),Hn.delete(n))};function ap(t){const e=oe(t);let n;return e.readyState!=="loading"?Oo(t):(n=()=>{Oo(t)},e.addEventListener("DOMContentLoaded",n)),()=>uu(t,n)}typeof document<"u"&&ap();function hn(){return Lt!=="pointer"}function Hr(){return Lt}function du(t){Lt=t,ui(t,null)}const sp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function cp(t,e,n){let r=oe(n==null?void 0:n.target);const i=typeof window<"u"?Me(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Me(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Me(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Me(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof i&&!sp.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!op[n.key])}function up(t,e,n){Oo(),d.useEffect(()=>{let r=(i,o)=>{cp(!!(n!=null&&n.isTextInput),i,o)&&t(hn())};return To.add(r),()=>{To.delete(r)}},e)}function pn(t){const e=oe(t),n=Ce(e);if(Hr()==="virtual"){let r=n;Yc(()=>{Ce(e)===r&&t.isConnected&&ze(t)})}else ze(t)}function xl(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]),l=iu(o),a=d.useCallback(s=>{const c=oe(s.target),u=c?Ce(c):Ce();s.target===s.currentTarget&&u===ie(s.nativeEvent)&&(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}}}function $a(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?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 fu(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:$a(t.onKeyDown),onKeyUp:$a(t.onKeyUp)}}}let ko=d.createContext(null);function dp(t){let e=d.useContext(ko)||{};Zc(e,t);let{ref:n,...r}=e;return r}function hu(t,e){let{focusProps:n}=xl(t),{keyboardProps:r}=fu(t),i=re(n,r),o=dp(e),l=t.isDisabled?{}:o,a=d.useRef(t.autoFocus);d.useEffect(()=>{a.current&&e.current&&pn(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:re({...i,tabIndex:s},l)}}function fp({children:t}){let e=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(wl.Provider,{value:e},t)}function di(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=d.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=oi(),s=d.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,o,a]),c=iu(s),u=d.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const h=oe(f.target),g=Ce(h);if(!o.current.isFocusWithin&&g===ie(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let b=f.currentTarget;l(h,"focus",p=>{if(o.current.isFocusWithin&&!se(b,p.target)){let v=new h.defaultView.FocusEvent("blur",{relatedTarget:p.target});ru(v,b);let m=Sl(v);s(m)}},{capture:!0})}},[r,i,c,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:s}}}let zr=!1,Fi=0;function No(){zr=!0,setTimeout(()=>{zr=!1},50)}function Pa(t){t.pointerType==="touch"&&No()}function hp(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Pa):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",No),Fi++,()=>{Fi--,!(Fi>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Pa):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",No))}}function yn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=d.useState(!1),a=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(hp,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=oi(),{hoverProps:u,triggerHoverEnd:f}=d.useMemo(()=>{let h=(p,v)=>{if(a.pointerType=v,i||v==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let m=p.currentTarget;a.target=m,s(oe(p.target),"pointerover",C=>{a.isHovered&&a.target&&!se(a.target,C.target)&&g(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:v}),n&&n(!0),l(!0)},g=(p,v)=>{let m=a.target;a.pointerType="",a.target=null,!(v==="touch"||!a.isHovered||!m)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:m,pointerType:v}),n&&n(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=p=>{zr&&p.pointerType==="mouse"||h(p,p.pointerType)},b.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&g(p,p.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!zr&&h(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=p=>{!i&&p.currentTarget.contains(p.target)&&g(p,"mouse")}),{hoverProps:b,triggerHoverEnd:g}},[e,n,r,i,a,s,c]);return d.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:u,isHovered:o}}function pp(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=fe(s=>{n&&sr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=fe(s=>{n&&n(s)});d.useEffect(()=>{let s=o.current;if(r)return;const c=e.current,u=oe(c);if(typeof PointerEvent<"u"){let f=h=>{s.isPointerDown&&sr(h,e)&&a(h),s.isPointerDown=!1};return u.addEventListener("pointerdown",l,!0),u.addEventListener("click",f,!0),()=>{u.removeEventListener("pointerdown",l,!0),u.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&sr(g,e)&&a(g),s.isPointerDown=!1},h=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&sr(g,e)&&a(g),s.isPointerDown=!1};return u.addEventListener("mousedown",l,!0),u.addEventListener("mouseup",f,!0),u.addEventListener("touchstart",l,!0),u.addEventListener("touchend",h,!0),()=>{u.removeEventListener("mousedown",l,!0),u.removeEventListener("mouseup",f,!0),u.removeEventListener("touchstart",l,!0),u.removeEventListener("touchend",h,!0)}}},[e,r,l,a])}function sr(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?!t.composedPath().includes(e.current):!1}const vp=500;function pu(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=vp,accessibilityDescription:l}=t;const a=d.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:c}=oi(),{pressProps:u}=ci({isDisabled:e,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(n&&n({...h,type:"longpressstart"}),a.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),oe(h.target).activeElement!==h.target&&ze(h.target),i&&i({...h,type:"longpress"}),a.current=void 0},o),h.pointerType==="touch")){let g=b=>{b.preventDefault()};s(h.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(h.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(h){a.current&&clearTimeout(a.current),r&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r({...h,type:"longpressend"})}}),f=Nh(i&&!e?l:void 0);return{longPressProps:re(u,f)}}var cr={exports:{}},Ki={};/**
|
|
28
|
+
`.trim(),w.head.prepend(A)},[h]),u.useEffect(()=>{let w=g.current;return()=>{var A;f||Ai((A=w.target)!==null&&A!==void 0?A:void 0);for(let B of w.disposables)B();w.disposables=[]}},[f]),{isPressed:s||b,pressProps:re(v,j,{[Sa]:!0})}}function xl(t){return t.tagName==="A"&&t.hasAttribute("href")}function Fi(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Me(i).HTMLInputElement&&!lu(i,n)||i instanceof Me(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&xl(i))&&n!=="Enter")}function ep(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function wa(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 it(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 vt(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 tp(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 np(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function xa(t,e){let n=e.getBoundingClientRect(),r=tp(t);return np(n,r)}function rp(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!xl(t)}function Ea(t,e){return t instanceof HTMLInputElement?!lu(t,e):rp(t)}const ip=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function lu(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":ip.has(t.type)}let At=null,To=new Set,Hn=new Map,Tt=!1,Io=!1;const op={Tab:!0,Escape:!0};function di(t,e){for(let n of To)n(t,e)}function lp(t){return!(t.metaKey||!ft()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Hr(t){Tt=!0,lp(t)&&(At="keyboard",di("keyboard",t))}function ke(t){At="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Tt=!0,di("pointer",t))}function au(t){Po(t)&&(Tt=!0,At="virtual")}function su(t){t.target===window||t.target===document||jr||!t.isTrusted||(!Tt&&!Io&&(At="virtual",di("virtual",t)),Tt=!1,Io=!1)}function cu(){jr||(Tt=!1,Io=!0)}function Oo(t){if(typeof window>"u"||typeof document>"u"||Hn.get(Me(t)))return;const e=Me(t),n=oe(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Tt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Hr,!0),n.addEventListener("keyup",Hr,!0),n.addEventListener("click",au,!0),e.addEventListener("focus",su,!0),e.addEventListener("blur",cu,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ke,!0),n.addEventListener("pointermove",ke,!0),n.addEventListener("pointerup",ke,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ke,!0),n.addEventListener("mousemove",ke,!0),n.addEventListener("mouseup",ke,!0)),e.addEventListener("beforeunload",()=>{uu(t)},{once:!0}),Hn.set(e,{focus:r})}const uu=(t,e)=>{const n=Me(t),r=oe(t);e&&r.removeEventListener("DOMContentLoaded",e),Hn.has(n)&&(n.HTMLElement.prototype.focus=Hn.get(n).focus,r.removeEventListener("keydown",Hr,!0),r.removeEventListener("keyup",Hr,!0),r.removeEventListener("click",au,!0),n.removeEventListener("focus",su,!0),n.removeEventListener("blur",cu,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ke,!0),r.removeEventListener("pointermove",ke,!0),r.removeEventListener("pointerup",ke,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ke,!0),r.removeEventListener("mousemove",ke,!0),r.removeEventListener("mouseup",ke,!0)),Hn.delete(n))};function ap(t){const e=oe(t);let n;return e.readyState!=="loading"?Oo(t):(n=()=>{Oo(t)},e.addEventListener("DOMContentLoaded",n)),()=>uu(t,n)}typeof document<"u"&&ap();function pn(){return At!=="pointer"}function zr(){return At}function du(t){At=t,di(t,null)}const sp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function cp(t,e,n){let r=oe(n==null?void 0:n.target);const i=typeof window<"u"?Me(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Me(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Me(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Me(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof i&&!sp.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!op[n.key])}function up(t,e,n){Oo(),u.useEffect(()=>{let r=(i,o)=>{cp(!!(n!=null&&n.isTextInput),i,o)&&t(pn())};return To.add(r),()=>{To.delete(r)}},e)}function vn(t){const e=oe(t),n=Ce(e);if(zr()==="virtual"){let r=n;Yc(()=>{Ce(e)===r&&t.isConnected&&ze(t)})}else ze(t)}function El(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=u.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=iu(o),a=u.useCallback(s=>{const c=oe(s.target),d=c?Ce(c):Ce();s.target===s.currentTarget&&d===ie(s.nativeEvent)&&(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}}}function $a(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?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 fu(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:$a(t.onKeyDown),onKeyUp:$a(t.onKeyUp)}}}let ko=u.createContext(null);function dp(t){let e=u.useContext(ko)||{};Zc(e,t);let{ref:n,...r}=e;return r}function hu(t,e){let{focusProps:n}=El(t),{keyboardProps:r}=fu(t),i=re(n,r),o=dp(e),l=t.isDisabled?{}:o,a=u.useRef(t.autoFocus);u.useEffect(()=>{a.current&&e.current&&vn(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:re({...i,tabIndex:s},l)}}function fp({children:t}){let e=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(wl.Provider,{value:e},t)}function fi(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=li(),s=u.useCallback(f=>{f.currentTarget.contains(f.target)&&o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(f),i&&i(!1))},[n,i,o,a]),c=iu(s),d=u.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const h=oe(f.target),v=Ce(h);if(!o.current.isFocusWithin&&v===ie(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let b=f.currentTarget;l(h,"focus",p=>{if(o.current.isFocusWithin&&!ce(b,p.target)){let g=new h.defaultView.FocusEvent("blur",{relatedTarget:p.target});ru(g,b);let m=Sl(g);s(m)}},{capture:!0})}},[r,i,c,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let Vr=!1,Ki=0;function No(){Vr=!0,setTimeout(()=>{Vr=!1},50)}function Pa(t){t.pointerType==="touch"&&No()}function hp(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Pa):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",No),Ki++,()=>{Ki--,!(Ki>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Pa):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",No))}}function Cn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=u.useState(!1),a=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(hp,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=li(),{hoverProps:d,triggerHoverEnd:f}=u.useMemo(()=>{let h=(p,g)=>{if(a.pointerType=g,i||g==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let m=p.currentTarget;a.target=m,s(oe(p.target),"pointerover",C=>{a.isHovered&&a.target&&!ce(a.target,C.target)&&v(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:g}),n&&n(!0),l(!0)},v=(p,g)=>{let m=a.target;a.pointerType="",a.target=null,!(g==="touch"||!a.isHovered||!m)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:m,pointerType:g}),n&&n(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=p=>{Vr&&p.pointerType==="mouse"||h(p,p.pointerType)},b.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&v(p,p.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!Vr&&h(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=p=>{!i&&p.currentTarget.contains(p.target)&&v(p,"mouse")}),{hoverProps:b,triggerHoverEnd:v}},[e,n,r,i,a,s,c]);return u.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function pp(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=he(s=>{n&&sr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=he(s=>{n&&n(s)});u.useEffect(()=>{let s=o.current;if(r)return;const c=e.current,d=oe(c);if(typeof PointerEvent<"u"){let f=h=>{s.isPointerDown&&sr(h,e)&&a(h),s.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("click",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=v=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&sr(v,e)&&a(v),s.isPointerDown=!1},h=v=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&sr(v,e)&&a(v),s.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",h,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",h,!0)}}},[e,r,l,a])}function sr(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?!t.composedPath().includes(e.current):!1}const vp=500;function pu(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=vp,accessibilityDescription:l}=t;const a=u.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:c}=li(),{pressProps:d}=ui({isDisabled:e,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(n&&n({...h,type:"longpressstart"}),a.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),oe(h.target).activeElement!==h.target&&ze(h.target),i&&i({...h,type:"longpress"}),a.current=void 0},o),h.pointerType==="touch")){let v=b=>{b.preventDefault()};s(h.target,"contextmenu",v,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(h.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(h){a.current&&clearTimeout(a.current),r&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r({...h,type:"longpressend"})}}),f=Nh(i&&!e?l:void 0);return{longPressProps:re(d,f)}}var cr={exports:{}},ji={};/**
|
|
29
29
|
* @license React
|
|
30
30
|
* use-sync-external-store-shim.production.js
|
|
31
31
|
*
|
|
@@ -33,7 +33,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var Da;function gp(){if(Da)return
|
|
36
|
+
*/var Da;function gp(){if(Da)return ji;Da=1;var t=u;function e(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function a(f,h){var v=h(),b=r({inst:{value:v,getSnapshot:h}}),p=b[0].inst,g=b[1];return o(function(){p.value=v,p.getSnapshot=h,s(p)&&g({inst:p})},[f,v,h]),i(function(){return s(p)&&g({inst:p}),f(function(){s(p)&&g({inst:p})})},[f]),l(v),v}function s(f){var h=f.getSnapshot;f=f.value;try{var v=h();return!n(f,v)}catch{return!0}}function c(f,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return ji.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,ji}var Hi={};/**
|
|
37
37
|
* @license React
|
|
38
38
|
* use-sync-external-store-shim.development.js
|
|
39
39
|
*
|
|
@@ -41,12 +41,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var _a;function mp(){return _a||(_a=1,process.env.NODE_ENV!=="production"&&function(){function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function e(g,b){u||i.startTransition===void 0||(u=!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=b();if(!f){var v=b();o(p,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=l({inst:{value:p,getSnapshot:b}});var m=v[0].inst,C=v[1];return s(function(){m.value=p,m.getSnapshot=b,n(m)&&C({inst:m})},[g,p,b]),a(function(){return n(m)&&C({inst:m}),g(function(){n(m)&&C({inst:m})})},[g]),c(p),p}function n(g){var b=g.getSnapshot;g=g.value;try{var p=b();return!o(g,p)}catch{return!0}}function r(g,b){return b()}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,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue,u=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;ji.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ji}var Ta;function bp(){return Ta||(Ta=1,process.env.NODE_ENV==="production"?cr.exports=gp():cr.exports=mp()),cr.exports}var $l=bp();const vu=d.createContext(!1),Un=d.createContext(null);function fi(t){if(d.useContext(Un))return t.content;let{collection:n,document:r}=wp(t.createCollection);return d.createElement(d.Fragment,null,d.createElement(Wh,null,d.createElement(Un.Provider,{value:r},t.content)),d.createElement(yp,{render:t.children,collection:n}))}function yp({collection:t,render:e}){return e(t)}function Cp(t,e,n){let r=Qn(),i=d.useRef(r);i.current=r;let o=d.useCallback(()=>i.current?n():e(),[e,n]);return $l.useSyncExternalStore(t,o)}const Sp=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:Cp;function wp(t){let[e]=d.useState(()=>new Uh((t==null?void 0:t())||new yl)),n=d.useCallback(l=>e.subscribe(l),[e]),r=d.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=d.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Sp(n,r,i);return ne(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Ro=d.createContext(null);function Ep(t,e,n,r,i,o){let l=d.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=d.useContext(Ro);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?d.createElement(Ro.Provider,{value:s},i):null}return d.createElement(t,{ref:l},i)}function hi(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=d.forwardRef((i,o)=>{let l=d.useContext(ko);if(!d.useContext(vu)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return Ep(t,i,o,"children"in i?i.children:null,null,s=>d.createElement(ko.Provider,{value:l},d.createElement(n,{node:s})))});return r.displayName=e.name,r}function xp(t){return nu({...t,addIdAndValue:!0})}const Ia=d.createContext(null);function Pl(t){let e=d.useContext(Ia),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=xp({...t,idScope:r,dependencies:n});return d.useContext(Un)&&(i=d.createElement($p,null,i)),e=d.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),d.createElement(Ia.Provider,{value:e},i)}function $p({children:t}){let e=d.useContext(Un),n=d.useMemo(()=>d.createElement(Un.Provider,{value:null},d.createElement(vu.Provider,{value:!0},t)),[t]);return Qn()?d.createElement(Ro.Provider,{value:e},n):Mt.createPortal(n,e)}const Pp=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Dp=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function _p(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 Pp.has(n.script)}let e=t.split("-")[0];return Dp.has(e)}const Tp=Symbol.for("react-aria.i18n.locale");function gu(){let t=typeof window<"u"&&window[Tp]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:_p(t)?"rtl":"ltr"}}let Mo=gu(),Mn=new Set;function Oa(){Mo=gu();for(let t of Mn)t(Mo)}function Ip(){let t=Qn(),[e,n]=d.useState(Mo);return d.useEffect(()=>(Mn.size===0&&window.addEventListener("languagechange",Oa),Mn.add(n),()=>{Mn.delete(n),Mn.size===0&&window.removeEventListener("languagechange",Oa)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Op=d.createContext(null);function At(){let t=Ip();return d.useContext(Op)||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 mu(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 kp(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 Np=Symbol.for("react-aria.i18n.locale"),Rp=Symbol.for("react-aria.i18n.strings");let Ht;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=Mp(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Np];if(Ht===void 0){let i=window[Rp];if(!i)return null;Ht={};for(let o in i)Ht[o]=new pi({[n]:i[o]},n)}let r=Ht==null?void 0:Ht[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 Mp(t,e,n="en-US"){if(e[t])return e[t];let r=Lp(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function Lp(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ka=new Map,Na=new Map;class Ap{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=ka.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),ka.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Na.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Na.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 Ra=new WeakMap;function Fp(t){let e=Ra.get(t);return e||(e=new pi(t),Ra.set(t,e)),e}function Kp(t,e){return e&&pi.getGlobalDictionaryForPackage(e)||Fp(t)}function bu(t,e){let{locale:n}=At(),r=Kp(t,e);return d.useMemo(()=>new Ap(n,r),[n,r])}let Hi=new Map;function Dl(t){let{locale:e}=At(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Hi.has(n))return Hi.get(n);let r=new Intl.Collator(e,t);return Hi.set(n,r),r}function jp(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:f,href:h,target:g,rel:b,type:p="button"}=t,v;n==="button"?v={type:p,disabled:r}:v={role:"button",href:n==="a"&&!r?h: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"?b:void 0};let{pressProps:m,isPressed:C}=ci({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:S}=hu(t,e);u&&(S.tabIndex=r?-1:S.tabIndex);let D=re(S,m,he(t,{labelable:!0}));return{isPressed:C,buttonProps:re(v,D,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"]})}}function Hp(t){const e=Me(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 zp(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 yu(t,e){return t.nodeName!=="#comment"&&Hp(t)&&zp(t,e)&&(!t.parentElement||yu(t.parentElement,t))}const Ma=d.createContext(null),Lo="react-aria-focus-scope-restore";let le=null;function _l(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=d.useRef(null),l=d.useRef(null),a=d.useRef([]),{parentNode:s}=d.useContext(Ma)||{},c=d.useMemo(()=>new Fo({scopeRef:a}),[a]);ne(()=>{let h=s||de.root;if(de.getTreeNode(h.scopeRef)&&le&&!Vr(le,h.scopeRef)){let g=de.getTreeNode(le);g&&(h=g)}h.addChild(c),de.addNode(c)},[c,s]),ne(()=>{let h=de.getTreeNode(a);h&&(h.contain=!!n)},[n]),ne(()=>{var h;let g=(h=o.current)===null||h===void 0?void 0:h.nextSibling,b=[],p=v=>v.stopPropagation();for(;g&&g!==l.current;)b.push(g),g.addEventListener(Lo,p),g=g.nextSibling;return a.current=b,()=>{for(let v of b)v.removeEventListener(Lo,p)}},[e]),Gp(a,r,n),Bp(a,n),qp(a,r,n),Wp(a,i),d.useEffect(()=>{const h=Ce(oe(a.current?a.current[0]:void 0));let g=null;if(Ae(h,a.current)){for(let b of de.traverse())b.scopeRef&&Ae(h,b.scopeRef.current)&&(g=b);g===de.getTreeNode(a)&&(le=g.scopeRef)}},[a]),ne(()=>()=>{var h,g,b;let p=(b=(g=de.getTreeNode(a))===null||g===void 0||(h=g.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&b!==void 0?b:null;(a===le||Vr(a,le))&&(!p||de.getTreeNode(p))&&(le=p),de.removeTreeNode(a)},[a]);let u=d.useMemo(()=>Vp(a),[]),f=d.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return d.createElement(Ma.Provider,{value:f},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Vp(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Ce(oe((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[0].previousElementSibling,u=yt(n),f=qe(u,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&Je(h,!0),h},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Ce(oe((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[n.length-1].nextElementSibling,u=yt(n),f=qe(u,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&Je(h,!0),h},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=yt(n),l=qe(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&Je(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=yt(n),l=qe(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&Je(a,!0),a}}}function yt(t){return t[0].parentElement}function Ln(t){let e=de.getTreeNode(le);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Bp(t,e){let n=d.useRef(void 0),r=d.useRef(void 0);ne(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=oe(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Ln(t)||c.isComposing)return;let u=Ce(o),f=t.current;if(!f||!Ae(u,f))return;let h=yt(f),g=qe(h,{tabbable:!0},f);if(!u)return;g.currentNode=u;let b=c.shiftKey?g.previousNode():g.nextNode();b||(g.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=c.shiftKey?g.previousNode():g.nextNode()),c.preventDefault(),b&&Je(b,!0)},a=c=>{(!le||Vr(le,t))&&Ae(ie(c),t.current)?(le=t,n.current=ie(c)):Ln(t)&&!ut(ie(c),t)?n.current?n.current.focus():le&&le.current&&Ao(le.current):Ln(t)&&(n.current=ie(c))},s=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let u=Hr(),f=(u==="virtual"||u===null)&&hl()&&qc(),h=Ce(o);if(!f&&h&&Ln(t)&&!ut(h,t)){le=t;let b=ie(c);if(b&&b.isConnected){var g;n.current=b,(g=n.current)===null||g===void 0||g.focus()}else le.current&&Ao(le.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(c=>c.addEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",s,!1))}},[t,e]),ne(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Cu(t){return ut(t)}function Ae(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function ut(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of de.traverse(de.getTreeNode(e)))if(n&&Ae(t,n.current))return!0;return!1}function Up(t){return ut(t,le)}function Vr(t,e){var n;let r=(n=de.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Je(t,e=!1){if(t!=null&&!e)try{pn(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Su(t,e=!0){let n=t[0].previousElementSibling,r=yt(t),i=qe(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=yt(t),i=qe(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Ao(t,e=!0){Je(Su(t,e))}function Wp(t,e){const n=d.useRef(e);d.useEffect(()=>{if(n.current){le=t;const r=oe(t.current?t.current[0]:void 0);!Ae(Ce(r),le.current)&&t.current&&Ao(t.current)}n.current=!1},[t])}function Gp(t,e,n){ne(()=>{if(e||n)return;let r=t.current;const i=oe(r?r[0]:void 0);let o=l=>{let a=ie(l);Ae(a,t.current)?le=t:Cu(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 La(t){let e=de.getTreeNode(le);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function qp(t,e,n){const r=d.useRef(typeof document<"u"?Ce(oe(t.current?t.current[0]:void 0)):null);ne(()=>{let i=t.current;const o=oe(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!le||Vr(le,t))&&Ae(Ce(o),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]),ne(()=>{const i=oe(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Ln(t)||l.isComposing)return;let a=i.activeElement;if(!ut(a,t)||!La(t))return;let s=de.getTreeNode(t);if(!s)return;let c=s.nodeToRestore,u=qe(i.body,{tabbable:!0});u.currentNode=a;let f=l.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,s.nodeToRestore=void 0),(!f||!ut(f,t))&&c){u.currentNode=c;do f=l.shiftKey?u.previousNode():u.nextNode();while(ut(f,t));l.preventDefault(),l.stopPropagation(),f?Je(f,!0):Cu(c)?Je(c,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),ne(()=>{const i=oe(t.current?t.current[0]:void 0);if(!e)return;let o=de.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=de.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,c=Ce(i);if(e&&s&&(c&&ut(c,t)||c===i.body&&La(t))){let u=de.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=u.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Aa(f.nodeToRestore);return}f=f.parent}for(f=u.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&de.getTreeNode(f.scopeRef)){let h=Su(f.scopeRef.current,!0);Aa(h);return}f=f.parent}}})}}}},[t,e])}function Aa(t){t.dispatchEvent(new CustomEvent(Lo,{bubbles:!0,cancelable:!0}))&&Je(t)}function qe(t,e,n){let r=e!=null&&e.tabbable?Vh:eu,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=oe(i),l=vh(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&yu(a)&&(!n||Ae(a,n))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Tl{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 Fo({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&&Ae(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 Tl;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 Fo({scopeRef:null}),this.fastMap.set(null,this.root)}}class Fo{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 de=new Tl;function Cn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=d.useRef({isFocused:!1,isFocusVisible:e||hn()}),[o,l]=d.useState(!1),[a,s]=d.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=d.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),u=d.useCallback(g=>{i.current.isFocused=g,l(g),c()},[c]);up(g=>{i.current.isFocusVisible=g,c()},[],{isTextInput:n});let{focusProps:f}=xl({isDisabled:r,onFocusChange:u}),{focusWithinProps:h}=di({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:a,focusProps:r?h:f}}function Yp(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=d.useState(!1);return ne(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=qe(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}function wu(t){let e=Jp(oe(t));e!==t&&(e&&Zp(e,t),t&&Xp(t,e))}function Zp(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Xp(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Jp(t){let e=Ce(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Eu=7e3;let Be=null;function Fa(t,e="assertive",n=Eu){Be?Be.announce(t,e,n):(Be=new Qp,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Be.announce(t,e,n):setTimeout(()=>{Be!=null&&Be.isAttached()&&(Be==null||Be.announce(t,e,n))},100))}class Qp{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=Eu){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))}}const xu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$u={...xu,customError:!0,valid:!1},Dn={isInvalid:!1,validationDetails:xu,validationErrors:[]},ev=d.createContext({}),Ka="__formValidationState"+Date.now();function tv(t){if(t[Ka]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Ka];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return nv(t)}function nv(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:$u}:null,c=d.useMemo(()=>{if(!l||i==null)return null;let j=rv(l,i);return ja(j)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let u=d.useContext(ev),f=d.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>Ko(u[j])):Ko(u[r]):[],[u,r]),[h,g]=d.useState(u),[b,p]=d.useState(!1);u!==h&&(g(u),p(!1));let v=d.useMemo(()=>ja(b?[]:f),[b,f]),m=d.useRef(Dn),[C,S]=d.useState(Dn),D=d.useRef(Dn),$=()=>{if(!E)return;x(!1);let j=c||o||m.current;zi(j,D.current)||(D.current=j,S(j))},[E,x]=d.useState(!1);return d.useEffect($),{realtimeValidation:s||v||c||o||Dn,displayValidation:a==="native"?s||v||C:s||v||c||o||C,updateValidation(j){a==="aria"&&!zi(C,j)?S(j):m.current=j},resetValidation(){let j=Dn;zi(j,D.current)||(D.current=j,S(j)),a==="native"&&x(!1),p(!0)},commitValidation(){a==="native"&&x(!0),p(!0)}}}function Ko(t){return t?Array.isArray(t)?t:[t]:[]}function rv(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Ko(n)}return[]}function ja(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:$u}:null}function zi(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 iv(t,e,n){let{validationBehavior:r,focus:i}=t;ne(()=>{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(lv(n.current))}});let o=fe(()=>{e.resetValidation()}),l=fe(s=>{var c;e.displayValidation.isInvalid||e.commitValidation();let u=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!s.defaultPrevented&&n&&u&&av(u)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),du("keyboard")}s.preventDefault()}),a=fe(()=>{e.commitValidation()});d.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let c=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),c==null||c.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),c==null||c.removeEventListener("reset",o)}},[n,l,a,o,r])}function ov(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 lv(t){return{isInvalid:!t.validity.valid,validationDetails:ov(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function av(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function Pu(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Se(e);let l=Se(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=li({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function sv(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=Pu(t),a=wt([!!e,!!n,r,i]),s=wt([!!e,!!n,r,i]);return l=re(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Ha={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 Du(t={}){let{style:e,isFocusable:n}=t,[r,i]=d.useState(!1),{focusWithinProps:o}=di({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=d.useMemo(()=>r?e:e?{...Ha,...e}:Ha,[r]);return{visuallyHiddenProps:{...o,style:l}}}function cv(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=Du(t);return d.createElement(n,re(o,l),e)}const Ye={top:"top",bottom:"top",left:"left",right:"left"},Br={top:"bottom",bottom:"top",left:"right",right:"left"},uv={top:"left",left:"top"},jo={top:"height",left:"width"},_u={width:"totalWidth",height:"totalHeight"},ur={};let ve=typeof document<"u"?window.visualViewport:null;function za(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let c=((s=ve==null?void 0:ve.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let b=document.documentElement;r=b.clientWidth,i=b.clientHeight;var u;e=(u=ve==null?void 0:ve.width)!==null&&u!==void 0?u:r;var f;n=(f=ve==null?void 0:ve.height)!==null&&f!==void 0?f:i,a.top=b.scrollTop||t.scrollTop,a.left=b.scrollLeft||t.scrollLeft,ve&&(o=ve.offsetTop,l=ve.offsetLeft)}else({width:e,height:n,top:o,left:l}=sn(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(fl()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){a.top=0,a.left=0;var h;o=(h=ve==null?void 0:ve.pageTop)!==null&&h!==void 0?h:0;var g;l=(g=ve==null?void 0:ve.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function dv(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Va(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,c=r[jo[t]],u=r.scroll[Ye[t]]+o,f=c+r.scroll[Ye[t]]-o,h=e-s+l[t]-r[Ye[t]],g=e-s+n+l[t]-r[Ye[t]];return h<u?u-h:g>f?Math.max(f-g,u-h):0}function fv(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 Ba(t){if(ur[t])return ur[t];let[e,n]=t.split(" "),r=Ye[e]||"right",i=uv[r];Ye[n]||(n="center");let o=jo[r],l=jo[i];return ur[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},ur[t]}function Vi(t,e,n,r,i,o,l,a,s,c){let{placement:u,crossPlacement:f,axis:h,crossAxis:g,size:b,crossSize:p}=r,v={};var m;v[g]=(m=t[g])!==null&&m!==void 0?m:0;var C,S,D,$;f==="center"?v[g]+=(((C=t[p])!==null&&C!==void 0?C:0)-((S=n[p])!==null&&S!==void 0?S:0))/2:f!==g&&(v[g]+=((D=t[p])!==null&&D!==void 0?D:0)-(($=n[p])!==null&&$!==void 0?$:0)),v[g]+=o;const E=t[g]-n[p]+s+c,x=t[g]+t[p]-s-c;if(v[g]=Do(v[g],E,x),u===h){const R=a?l[b]:e[_u[b]];v[Br[h]]=Math.floor(R-t[h]+i)}else v[h]=Math.floor(t[h]+t[b]+i);return v}function hv(t,e,n,r,i,o,l,a){const s=r?n.height:e[_u.height];var c;let u=t.top!=null?n.top+t.top:n.top+(s-((c=t.bottom)!==null&&c!==void 0?c:0)-l);var f,h,g,b,p,v;let m=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-u-(((h=i.top)!==null&&h!==void 0?h:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,u+l-(e.top+((b=e.scroll.top)!==null&&b!==void 0?b:0))-(((p=i.top)!==null&&p!==void 0?p:0)+((v=i.bottom)!==null&&v!==void 0?v:0)+o));return Math.min(e.height-o*2,m)}function Ua(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var c,u;if(l===a)return Math.max(0,n[a]-t[a]-((c=t.scroll[a])!==null&&c!==void 0?c:0)+e[a]-((u=r[a])!==null&&u!==void 0?u:0)-r[Br[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[Br[a]]-i)}function pv(t,e,n,r,i,o,l,a,s,c,u,f,h,g,b,p){let v=Ba(t),{size:m,crossAxis:C,crossSize:S,placement:D,crossPlacement:$}=v,E=Vi(e,a,n,v,u,f,c,h,b,p),x=u,R=Ua(a,c,e,i,o+u,v);if(l&&r[m]>R){let F=Ba(`${Br[D]} ${$}`),K=Vi(e,a,n,F,u,f,c,h,b,p);Ua(a,c,e,i,o+u,F)>R&&(v=F,E=K,x=u)}let H="bottom";v.axis==="top"?v.placement==="top"?H="top":v.placement==="bottom"&&(H="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?H="bottom":v.crossPlacement==="bottom"&&(H="top"));let j=Va(C,E[C],n[S],a,s,o,c);E[C]+=j;let w=hv(E,a,c,h,i,o,n.height,H);g&&g<w&&(w=g),n.height=Math.min(n.height,w),E=Vi(e,a,n,v,x,f,c,h,b,p),j=Va(C,E[C],n[S],a,s,o,c),E[C]+=j;let M={},V=e[C]+.5*e[S]-E[C]-i[Ye[C]];const A=b/2+p;var U,I,N,k;const G=Ye[C]==="left"?((U=i.left)!==null&&U!==void 0?U:0)+((I=i.right)!==null&&I!==void 0?I:0):((N=i.top)!==null&&N!==void 0?N:0)+((k=i.bottom)!==null&&k!==void 0?k:0),T=n[S]-G-b/2-p,L=e[C]+b/2-(E[C]+i[Ye[C]]),P=e[C]+e[S]-b/2-(E[C]+i[Ye[C]]),O=Do(V,L,P);return M[C]=Do(O,A,T),{position:E,maxHeight:w,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:v.placement}}function vv(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:c,maxHeight:u,arrowSize:f=0,arrowBoundaryOffset:h=0}=t,g=r instanceof HTMLElement?gv(r):document.documentElement,b=g===document.documentElement;const p=window.getComputedStyle(g).position;let v=!!p&&p!=="static",m=b?sn(n):Wa(n,g);if(!b){let{marginTop:M,marginLeft:V}=window.getComputedStyle(n);m.top+=parseInt(M,10)||0,m.left+=parseInt(V,10)||0}let C=sn(r),S=fv(r);var D,$;C.width+=((D=S.left)!==null&&D!==void 0?D:0)+(($=S.right)!==null&&$!==void 0?$:0);var E,x;C.height+=((E=S.top)!==null&&E!==void 0?E:0)+((x=S.bottom)!==null&&x!==void 0?x:0);let R=dv(i),H=za(a),j=za(g),w=a.tagName==="BODY"?sn(g):Wa(g,a);return g.tagName==="HTML"&&a.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),pv(e,m,C,R,S,o,l,H,j,w,s,c,v,u,f,h)}function sn(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 Wa(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=sn(t);let i=sn(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 gv(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Ga(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Ga(e);)e=e.parentElement;return e||document.documentElement}function Ga(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 Tu=new WeakMap;function mv(t){let{triggerRef:e,isOpen:n,onClose:r}=t;d.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||Tu.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let ue=typeof document<"u"?window.visualViewport:null;function bv(t){let{direction:e}=At(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:u=0,crossOffset:f=0,shouldUpdatePosition:h=!0,isOpen:g=!0,onClose:b,maxHeight:p,arrowBoundaryOffset:v=0}=t,[m,C]=d.useState(null),S=[h,l,i.current,r.current,o.current,a,s,c,u,f,g,e,p,v,n],D=d.useRef(ue==null?void 0:ue.scale);d.useEffect(()=>{g&&(D.current=ue==null?void 0:ue.scale)},[g]);let $=d.useCallback(()=>{if(h===!1||!g||!i.current||!r.current||!c||(ue==null?void 0:ue.scale)!==D.current)return;let j=null;if(o.current&&o.current.contains(document.activeElement)){var w;let k=(w=document.activeElement)===null||w===void 0?void 0:w.getBoundingClientRect(),G=o.current.getBoundingClientRect();var M;if(j={type:"top",offset:((M=k==null?void 0:k.top)!==null&&M!==void 0?M:0)-G.top},j.offset>G.height/2){j.type="bottom";var V;j.offset=((V=k==null?void 0:k.bottom)!==null&&V!==void 0?V:0)-G.bottom}}let A=i.current;if(!p&&i.current){var U;A.style.top="0px",A.style.bottom="";var I;A.style.maxHeight=((I=(U=window.visualViewport)===null||U===void 0?void 0:U.height)!==null&&I!==void 0?I:window.innerHeight)+"px"}let N=vv({placement:Cv(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:c,offset:u,crossOffset:f,maxHeight:p,arrowSize:n,arrowBoundaryOffset:v});if(N.position){if(A.style.top="",A.style.bottom="",A.style.left="",A.style.right="",Object.keys(N.position).forEach(k=>A.style[k]=N.position[k]+"px"),A.style.maxHeight=N.maxHeight!=null?N.maxHeight+"px":"",j&&document.activeElement&&o.current){let k=document.activeElement.getBoundingClientRect(),G=o.current.getBoundingClientRect(),T=k[j.type]-G[j.type];o.current.scrollTop+=T-j.offset}C(N)}},S);ne($,S),yv($),$o({ref:i,onResize:$}),$o({ref:r,onResize:$});let E=d.useRef(!1);ne(()=>{let j,w=()=>{E.current=!0,clearTimeout(j),j=setTimeout(()=>{E.current=!1},500),$()},M=()=>{E.current&&w()};return ue==null||ue.addEventListener("resize",w),ue==null||ue.addEventListener("scroll",M),()=>{ue==null||ue.removeEventListener("resize",w),ue==null||ue.removeEventListener("scroll",M)}},[$]);let x=d.useCallback(()=>{E.current||b==null||b()},[b,E]);mv({triggerRef:r,isOpen:g,onClose:b&&x});var R,H;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(R=m==null?void 0:m.maxHeight)!==null&&R!==void 0?R:"100vh"}},placement:(H=m==null?void 0:m.placement)!==null&&H!==void 0?H:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:$}}function yv(t){ne(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Cv(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Ue=[];function Sv(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;d.useEffect(()=>{if(i&&!Ue.includes(e))return Ue.push(e),()=>{let b=Ue.indexOf(e);b>=0&&Ue.splice(b,1)}},[i,e]);let s=()=>{Ue[Ue.length-1]===e&&n&&n()},c=b=>{(!a||a(b.target))&&Ue[Ue.length-1]===e&&(b.stopPropagation(),b.preventDefault())},u=b=>{(!a||a(b.target))&&(Ue[Ue.length-1]===e&&(b.stopPropagation(),b.preventDefault()),s())},f=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),s())};pp({ref:e,onInteractOutside:o&&i?u:void 0,onInteractOutsideStart:c});let{focusWithinProps:h}=di({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||Up(b.relatedTarget)||(!a||a(b.relatedTarget))&&(n==null||n())}}),g=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...h},underlayProps:{onPointerDown:g}}}function wv(t,e,n){let{type:r}=t,{isOpen:i}=e;d.useEffect(()=>{n&&n.current&&Tu.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=Se();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Bi=typeof document<"u"&&window.visualViewport,Ev=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let dr=0,Ui;function xv(t={}){let{isDisabled:e}=t;ne(()=>{if(!e)return dr++,dr===1&&(ri()?Ui=Pv():Ui=$v()),()=>{dr--,dr===0&&Ui()}},[e])}function $v(){let t=window.innerWidth-document.documentElement.clientWidth;return Pt(t>0&&("scrollbarGutter"in document.documentElement.style?Ct(document.documentElement,"scrollbarGutter","stable"):Ct(document.documentElement,"paddingRight",`${t}px`)),Ct(document.documentElement,"overflow","hidden"))}function Pv(){let t,e,n=c=>{t=Xc(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=Ct(t,"overscrollBehavior","contain"))},r=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},i=()=>{e&&e()},o=c=>{let u=c.target;Dv(u)&&(a(),u.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{u.style.transform="",Bi&&(Bi.height<window.innerHeight?requestAnimationFrame(()=>{qa(u)}):Bi.addEventListener("resize",()=>qa(u),{once:!0}))}))},l=null,a=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},u=window.pageXOffset,f=window.pageYOffset;l=Pt(_n(window,"scroll",c),Ct(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ct(document.documentElement,"overflow","hidden"),Ct(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(u,f)}),window.scrollTo(0,0)},s=Pt(_n(document,"touchstart",n,{passive:!1,capture:!0}),_n(document,"touchmove",r,{passive:!1,capture:!0}),_n(document,"touchend",i,{passive:!1,capture:!0}),_n(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function Ct(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function _n(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function qa(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Xc(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 Dv(t){return t instanceof HTMLInputElement&&!Ev.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const _v=d.createContext({});function Tv(){var t;return(t=d.useContext(_v))!==null&&t!==void 0?t:{}}var Iu={};Iu={dismiss:"تجاهل"};var Ou={};Ou={dismiss:"Отхвърляне"};var ku={};ku={dismiss:"Odstranit"};var Nu={};Nu={dismiss:"Luk"};var Ru={};Ru={dismiss:"Schließen"};var Mu={};Mu={dismiss:"Απόρριψη"};var Lu={};Lu={dismiss:"Dismiss"};var Au={};Au={dismiss:"Descartar"};var Fu={};Fu={dismiss:"Lõpeta"};var Ku={};Ku={dismiss:"Hylkää"};var ju={};ju={dismiss:"Rejeter"};var Hu={};Hu={dismiss:"התעלם"};var zu={};zu={dismiss:"Odbaci"};var Vu={};Vu={dismiss:"Elutasítás"};var Bu={};Bu={dismiss:"Ignora"};var Uu={};Uu={dismiss:"閉じる"};var Wu={};Wu={dismiss:"무시"};var Gu={};Gu={dismiss:"Atmesti"};var qu={};qu={dismiss:"Nerādīt"};var Yu={};Yu={dismiss:"Lukk"};var Zu={};Zu={dismiss:"Negeren"};var Xu={};Xu={dismiss:"Zignoruj"};var Ju={};Ju={dismiss:"Descartar"};var Qu={};Qu={dismiss:"Dispensar"};var ed={};ed={dismiss:"Revocare"};var td={};td={dismiss:"Пропустить"};var nd={};nd={dismiss:"Zrušiť"};var rd={};rd={dismiss:"Opusti"};var id={};id={dismiss:"Odbaci"};var od={};od={dismiss:"Avvisa"};var ld={};ld={dismiss:"Kapat"};var ad={};ad={dismiss:"Скасувати"};var sd={};sd={dismiss:"取消"};var cd={};cd={dismiss:"關閉"};var ud={};ud={"ar-AE":Iu,"bg-BG":Ou,"cs-CZ":ku,"da-DK":Nu,"de-DE":Ru,"el-GR":Mu,"en-US":Lu,"es-ES":Au,"et-EE":Fu,"fi-FI":Ku,"fr-FR":ju,"he-IL":Hu,"hr-HR":zu,"hu-HU":Vu,"it-IT":Bu,"ja-JP":Uu,"ko-KR":Wu,"lt-LT":Gu,"lv-LV":qu,"nb-NO":Yu,"nl-NL":Zu,"pl-PL":Xu,"pt-BR":Ju,"pt-PT":Qu,"ro-RO":ed,"ru-RU":td,"sk-SK":nd,"sl-SI":rd,"sr-SP":id,"sv-SE":od,"tr-TR":ld,"uk-UA":ad,"zh-CN":sd,"zh-TW":cd};function Iv(t){return t&&t.__esModule?t.default:t}function Ya(t){let{onDismiss:e,...n}=t,r=bu(Iv(ud),"@react-aria/overlays"),i=li(n,r.format("dismiss")),o=()=>{e&&e()};return d.createElement(cv,null,d.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let Tn=new WeakMap,xe=[];function Ov(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let h of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(h);let c=h=>{if(n.has(h)||h.parentElement&&r.has(h.parentElement)&&h.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(h.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(s);if(f===NodeFilter.FILTER_ACCEPT&&o(s),f!==NodeFilter.FILTER_REJECT){let h=u.nextNode();for(;h!=null;)o(h),h=u.nextNode()}},o=s=>{var c;let u=(c=Tn.get(s))!==null&&c!==void 0?c:0;s.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&s.setAttribute("aria-hidden","true"),r.add(s),Tn.set(s,u+1))};xe.length&&xe[xe.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let c of s)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(u=>u.contains(c.target))){for(let u of c.removedNodes)u instanceof Element&&(n.delete(u),r.delete(u));for(let u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?n.add(u):u instanceof Element&&i(u)}});l.observe(e,{childList:!0,subtree:!0});let a={visibleNodes:n,hiddenNodes:r,observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return xe.push(a),()=>{l.disconnect();for(let s of r){let c=Tn.get(s);c!=null&&(c===1?(s.removeAttribute("aria-hidden"),Tn.delete(s)):Tn.set(s,c-1))}a===xe[xe.length-1]?(xe.pop(),xe.length&&xe[xe.length-1].observe()):xe.splice(xe.indexOf(a),1)}}function kv(t){let e=xe[xe.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function Nv(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,c=s.trigger==="SubmenuTrigger",{overlayProps:u,underlayProps:f}=Sv({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:h,arrowProps:g,placement:b}=bv({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!c?e.close:null});return xv({isDisabled:o||!e.isOpen}),ne(()=>{if(e.isOpen&&r.current){var p,v;return o?kv((p=i==null?void 0:i.current)!==null&&p!==void 0?p:r.current):Ov([(v=i==null?void 0:i.current)!==null&&v!==void 0?v:r.current])}},[o,e.isOpen,r,i]),{popoverProps:re(u,h),arrowProps:g,underlayProps:f,placement:b}}const Rv=d.createContext(null);function Za(t){let e=Qn(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=d.useState(!1),l=d.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=Tv();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=d.createElement(_l,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=d.createElement(Rv.Provider,{value:l},d.createElement(fp,null,s)),Mt.createPortal(s,n)}const Il=new WeakMap;function Mv(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Lv(t,e){let n=Il.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Mv(e)}`}function Ho(t){return xh()?t.altKey:t.ctrlKey}function xr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const dd=new WeakMap;function Av(t){let e=Se();return dd.set(t,e),e}function Fv(t){return dd.get(t)}const Kv=1e3;function fd(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=d.useRef({search:"",timeout:void 0}).current,o=l=>{let a=jv(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=""},Kv)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function jv(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function hd(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:g,scrollRef:b=r,linkBehavior:p="action"}=t,{direction:v}=At(),m=ii(),C=N=>{var k;if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!(!((k=r.current)===null||k===void 0)&&k.contains(N.target)))return;const G=(q,te)=>{if(q!=null){if(e.isLink(q)&&p==="selection"&&c&&!Ho(N)){Mt.flushSync(()=>{e.setFocusedKey(q,te)});let ce=xr(r,q),ee=e.getItemProps(q);ce&&m.open(ce,N,ee.href,ee.routerOptions);return}if(e.setFocusedKey(q,te),e.isLink(q)&&p==="override")return;N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):c&&!Ho(N)&&e.replaceSelection(q)}};switch(N.key){case"ArrowDown":if(n.getKeyBelow){var T,L,P;let q=e.focusedKey!=null?(T=n.getKeyBelow)===null||T===void 0?void 0:T.call(n,e.focusedKey):(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n);q==null&&o&&(q=(P=n.getFirstKey)===null||P===void 0?void 0:P.call(n,e.focusedKey)),q!=null&&(N.preventDefault(),G(q))}break;case"ArrowUp":if(n.getKeyAbove){var O,F,K;let q=e.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,e.focusedKey):(F=n.getLastKey)===null||F===void 0?void 0:F.call(n);q==null&&o&&(q=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,e.focusedKey)),q!=null&&(N.preventDefault(),G(q))}break;case"ArrowLeft":if(n.getKeyLeftOf){var z,B,W;let q=e.focusedKey!=null?(z=n.getKeyLeftOf)===null||z===void 0?void 0:z.call(n,e.focusedKey):null;q==null&&o&&(q=v==="rtl"?(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,e.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey)),q!=null&&(N.preventDefault(),G(q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Y,Q,pe;let q=e.focusedKey!=null?(Y=n.getKeyRightOf)===null||Y===void 0?void 0:Y.call(n,e.focusedKey):null;q==null&&o&&(q=v==="rtl"?(Q=n.getLastKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey):(pe=n.getFirstKey)===null||pe===void 0?void 0:pe.call(n,e.focusedKey)),q!=null&&(N.preventDefault(),G(q,v==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&N.shiftKey)return;N.preventDefault();let q=n.getFirstKey(e.focusedKey,Qt(N));e.setFocusedKey(q),q!=null&&(Qt(N)&&N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):c&&e.replaceSelection(q))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&N.shiftKey)return;N.preventDefault();let q=n.getLastKey(e.focusedKey,Qt(N));e.setFocusedKey(q),q!=null&&(Qt(N)&&N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):c&&e.replaceSelection(q))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let q=n.getKeyPageBelow(e.focusedKey);q!=null&&(N.preventDefault(),G(q))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let q=n.getKeyPageAbove(e.focusedKey);q!=null&&(N.preventDefault(),G(q))}break;case"a":Qt(N)&&e.selectionMode==="multiple"&&a!==!0&&(N.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(N.stopPropagation(),N.preventDefault(),e.clearSelection());break;case"Tab":if(!h){if(N.shiftKey)r.current.focus();else{let q=qe(r.current,{tabbable:!0}),te,ce;do ce=q.lastChild(),ce&&(te=ce);while(ce);te&&!te.contains(document.activeElement)&&ze(te)}break}}},S=d.useRef({top:0,left:0});or(b,"scroll",g?void 0:()=>{var N,k,G,T;S.current={top:(G=(N=b.current)===null||N===void 0?void 0:N.scrollTop)!==null&&G!==void 0?G:0,left:(T=(k=b.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&T!==void 0?T:0}});let D=N=>{if(e.isFocused){N.currentTarget.contains(N.target)||e.setFocused(!1);return}if(N.currentTarget.contains(N.target)){if(e.setFocused(!0),e.focusedKey==null){var k,G;let P=F=>{F!=null&&(e.setFocusedKey(F),c&&!e.isSelected(F)&&e.replaceSelection(F))},O=N.relatedTarget;var T,L;O&&N.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?P((T=e.lastSelectedKey)!==null&&T!==void 0?T:(k=n.getLastKey)===null||k===void 0?void 0:k.call(n)):P((L=e.firstSelectedKey)!==null&&L!==void 0?L:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!g&&b.current&&(b.current.scrollTop=S.current.top,b.current.scrollLeft=S.current.left);if(e.focusedKey!=null&&b.current){let P=xr(r,e.focusedKey);P instanceof HTMLElement&&(!P.contains(document.activeElement)&&!f&&ze(P),Hr()==="keyboard"&&pa(P,{containingElement:r.current}))}}},$=N=>{N.currentTarget.contains(N.relatedTarget)||e.setFocused(!1)},E=d.useRef(!1);or(r,Fh,f?N=>{let{detail:k}=N;N.stopPropagation(),e.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(E.current=!0)}:void 0);let x=fe(()=>{var N,k;let G=(k=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&k!==void 0?k:null;G==null?(wu(r.current),e.collection.size>0&&(E.current=!1)):(e.setFocusedKey(G),E.current=!1)});fa(()=>{E.current&&x()},[e.collection,x]);let R=fe(()=>{e.collection.size>0&&(E.current=!1)});fa(()=>{R()},[e.focusedKey,R]),or(r,Ah,f?N=>{var k;N.stopPropagation(),e.setFocused(!1),!((k=N.detail)===null||k===void 0)&&k.clearFocusKey&&e.setFocusedKey(null)}:void 0);const H=d.useRef(i),j=d.useRef(!1);d.useEffect(()=>{if(H.current){var N,k;let L=null;var G;i==="first"&&(L=(G=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n))!==null&&G!==void 0?G:null);var T;i==="last"&&(L=(T=(k=n.getLastKey)===null||k===void 0?void 0:k.call(n))!==null&&T!==void 0?T:null);let P=e.selectedKeys;if(P.size){for(let O of P)if(e.canSelectItem(O)){L=O;break}}e.setFocused(!0),e.setFocusedKey(L),L==null&&!f&&r.current&&pn(r.current),e.collection.size>0&&(H.current=!1,j.current=!0)}});let w=d.useRef(e.focusedKey),M=d.useRef(null);d.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==w.current||j.current)&&b.current&&r.current){let N=Hr(),k=xr(r,e.focusedKey);if(!(k instanceof HTMLElement))return;(N==="keyboard"||j.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{b.current&&(Jc(b.current,k),N!=="virtual"&&pa(k,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&w.current!=null&&r.current&&pn(r.current),w.current=e.focusedKey,j.current=!1}),d.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),or(r,"react-aria-focus-scope-restore",N=>{N.preventDefault(),e.setFocused(!0)});let V={onKeyDown:C,onFocus:D,onBlur:$,onMouseDown(N){b.current===N.target&&N.preventDefault()}},{typeSelectProps:A}=fd({keyboardDelegate:n,selectionManager:e});u||(V=re(A,V));let U;f||(U=e.focusedKey==null?0:-1);let I=Av(e.collection);return{collectionProps:re(V,{tabIndex:U,"data-collection":I})}}function Ol(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:f="action"}=t,h=ii();e=Se(e);let g=k=>{if(k.pointerType==="keyboard"&&Ho(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let G=n.getItemProps(r);h.open(i.current,k,G.href,G.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):k&&k.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||k&&(Qt(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};d.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?wu(i.current):a?a():document.activeElement!==i.current&&i.current&&pn(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let b={};!l&&!s?b={tabIndex:r===n.focusedKey?0:-1,onFocus(k){k.target===i.current&&n.setFocusedKey(r)}}:s&&(b.onMouseDown=k=>{k.preventDefault()});let p=n.isLink(r)&&f==="override",v=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!p,C=(c||v)&&!s,S=C&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),D=C&&m&&n.selectionBehavior==="replace",$=S||D,E=d.useRef(null),x=$&&m,R=d.useRef(!1),H=d.useRef(!1),j=k=>{if(c&&c(),v&&i.current){let G=n.getItemProps(r);h.open(i.current,k,G.href,G.routerOptions)}},w={ref:i};o?(w.onPressStart=k=>{E.current=k.pointerType,R.current=x,k.pointerType==="keyboard"&&(!$||Ja())&&g(k)},u?(w.onPressUp=S?void 0:k=>{k.pointerType==="mouse"&&m&&g(k)},w.onPress=S?j:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&m&&g(k)}):w.onPress=k=>{if(S||D&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!Xa())return;j(k)}else k.pointerType!=="keyboard"&&m&&g(k)}):(w.onPressStart=k=>{E.current=k.pointerType,R.current=x,H.current=S,m&&(k.pointerType==="mouse"&&!S||k.pointerType==="keyboard"&&(!C||Ja()))&&g(k)},w.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&$&&Xa()||k.pointerType==="mouse"&&H.current)&&($?j(k):m&&g(k))}),b["data-collection"]=Fv(n.collection),b["data-key"]=r,w.preventFocusOnPress=l,l&&(w=re(w,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:M,isPressed:V}=ci(w),A=D?k=>{E.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),j(k))}:void 0,{longPressProps:U}=pu({isDisabled:!x,onLongPress(k){k.pointerType==="touch"&&(g(k),n.setSelectionBehavior("toggle"))}}),I=k=>{E.current==="touch"&&R.current&&k.preventDefault()},N=n.isLink(r)?k=>{Dt.isOpening||k.preventDefault()}:void 0;return{itemProps:re(b,m||S||l&&!s?M:{},x?U:{},{onDoubleClick:A,onDragStartCapture:I,onClick:N,id:e},l?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:V,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:$}}function Xa(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Ja(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Qa{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?xr(this.ref,e):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 kl{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&&!Bn(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&&!Bn(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 Qa(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 Qa(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function pd(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=Dl({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,c=d.useMemo(()=>o||new kl({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:u}=hd({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:u}}function Hv(t,e,n){let r=he(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=pd({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=di({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Se(t.id);Il.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:c,fieldProps:u}=Pu({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:re(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...re(u,l)})}}class zv{build(e,n){return this.context=n,es(()=>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,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(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 m=(o=e.index)!==null&&o!==void 0?o:0;for(const C of v)yield*this.getFullNode({element:C,index:m++},n,r,i);return}let l=e.element;if(!l&&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}l=n.renderer(e.value)}if(d.isValidElement(l)){let v=l.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let D=l.type;throw new Error(`Unknown element <${D}> in collection.`)}let m=v.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 $=(s=D.key)!==null&&s!==void 0?s:null;$==null&&($=D.element?null:this.getKey(l,e,n,r));let x=[...this.getFullNode({...D,key:$,index:C,wrapper:Vv(e.wrapper,D.wrapper)},this.getChildState(n,D),r?`${r}${l.key}`:l.key,i)];for(let R of x){var c,u;R.value=(u=(c=D.value)!==null&&c!==void 0?c:e.value)!==null&&u!==void 0?u:null,R.value&&this.cache.set(R.value,R);var f;if(e.type&&R.type!==e.type)throw new Error(`Unsupported type <${Wi(R.type)}> in <${Wi((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Wi(e.type)}> is supported.`);C++,yield R}S=m.next(x)}return}if(e.key==null||e.type==null)return;let h=this;var g,b;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:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:es(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${p.key}${m.key}`);let C=h.getFullNode({...m,index:v},h.getChildState(n,m),p.key,p);for(let S of C)v++,yield S}})};yield p}constructor(){this.cache=new WeakMap}}function es(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 Vv(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Wi(t){return t[0].toUpperCase()+t.slice(1)}function vd(t,e,n){let r=d.useMemo(()=>new zv,[]),{children:i,items:o,collection:l}=t;return d.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function gd(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Bv(t){return Uv(t)}function Uv(t,e){for(let n of t)return n}function Gi(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...ts(t,e),e],i=[...ts(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 ts(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 ns=new WeakMap;function md(t){let e=ns.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(gd(o,t)):o.type==="item"&&n++};return r(t),ns.set(t,n),n}function Wv(t,e,n){var r,i;let{key:o}=t,l=Il.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var c;let u=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(o);var f;let h=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var g;let b=(g=t.shouldFocusOnHover)!==null&&g!==void 0?g:l==null?void 0:l.shouldFocusOnHover;var p;let v=(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=wt(),D=wt(),$={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?u:void 0};ft()&&fl()||($["aria-label"]=t["aria-label"],$["aria-labelledby"]=S,$["aria-describedby"]=D);let E=e.collection.getItem(o);if(C){let N=Number(E==null?void 0:E.index);$["aria-posinset"]=Number.isNaN(N)?void 0:N+1,$["aria-setsize"]=md(e.collection)}let x=l!=null&&l.onAction?()=>{var N;return l==null||(N=l.onAction)===null||N===void 0?void 0:N.call(l,o)}:void 0,R=Lv(e,o),{itemProps:H,isPressed:j,isFocused:w,hasAction:M,allowsSelection:V}=Ol({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:h,allowsDifferentPressOrigin:h&&b,isVirtualized:C,shouldUseVirtualFocus:v,isDisabled:s,onAction:x||!(E==null||(r=E.props)===null||r===void 0)&&r.onAction?Pt(E==null||(i=E.props)===null||i===void 0?void 0:i.onAction,x):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:R}),{hoverProps:A}=yn({isDisabled:s||!b,onHoverStart(){hn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),U=he(E==null?void 0:E.props);delete U.id;let I=pl(E==null?void 0:E.props);return{optionProps:{...$,...re(U,H,A,I),id:R},labelProps:{id:S},descriptionProps:{id:D},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&hn(),isSelected:u,isDisabled:s,isPressed:j,allowsSelection:V,hasAction:M}}function Gv(t){let{heading:e,"aria-label":n}=t,r=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var bd={};bd={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var yd={};yd={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Cd={};Cd={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Sd={};Sd={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var wd={};wd={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Ed={};Ed={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var xd={};xd={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var $d={};$d={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Pd={};Pd={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Dd={};Dd={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var _d={};_d={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Td={};Td={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Id={};Id={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Od={};Od={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var kd={};kd={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Nd={};Nd={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Rd={};Rd={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Md={};Md={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Ld={};Ld={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Ad={};Ad={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Fd={};Fd={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Kd={};Kd={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var jd={};jd={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Hd={};Hd={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var zd={};zd={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Vd={};Vd={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Bd={};Bd={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Ud={};Ud={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Wd={};Wd={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Gd={};Gd={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var qd={};qd={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Yd={};Yd={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Zd={};Zd={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Xd={};Xd={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Jd={};Jd={"ar-AE":bd,"bg-BG":yd,"cs-CZ":Cd,"da-DK":Sd,"de-DE":wd,"el-GR":Ed,"en-US":xd,"es-ES":$d,"et-EE":Pd,"fi-FI":Dd,"fr-FR":_d,"he-IL":Td,"hr-HR":Id,"hu-HU":Od,"it-IT":kd,"ja-JP":Nd,"ko-KR":Rd,"lt-LT":Md,"lv-LV":Ld,"nb-NO":Ad,"nl-NL":Fd,"pl-PL":Kd,"pt-BR":jd,"pt-PT":Hd,"ro-RO":zd,"ru-RU":Vd,"sk-SK":Bd,"sl-SI":Ud,"sr-SP":Wd,"sv-SE":Gd,"tr-TR":qd,"uk-UA":Yd,"zh-CN":Zd,"zh-TW":Xd};function qv(t){return t&&t.__esModule?t.default:t}function Yv(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=Se(),{triggerProps:a,overlayProps:s}=wv({type:r},e,n),c=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()}},u=bu(qv(Jd),"@react-aria/menu"),{longPressProps:f}=pu({isDisabled:i||o!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),h={preventFocusOnPress:!0,onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&(ze(g.target),e.open(g.pointerType==="virtual"?"first":null))},onPress(g){g.pointerType==="touch"&&!i&&(ze(g.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?h:f,id:l,onKeyDown:c},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const Qd=new WeakMap;function Zv(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=he(t,{labelable:!0}),{listProps:s}=pd({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Qd.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:re(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:c=>{var u;(c.key!=="Escape"||t.shouldUseVirtualFocus)&&((u=s.onKeyDown)===null||u===void 0||u.call(s,c))}})}}function Xv(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:c,onPress:u,onPressChange:f,onPressEnd:h,onHoverStart:g,onHoverChange:b,onHoverEnd:p,onKeyDown:v,onKeyUp:m,onFocus:C,onFocusChange:S,onBlur:D,selectionManager:$=e.selectionManager}=t,E=!!a,x=E&&t["aria-expanded"]==="true";var R;let H=(R=t.isDisabled)!==null&&R!==void 0?R:$.isDisabled(i);var j;let w=(j=t.isSelected)!==null&&j!==void 0?j:$.isSelected(i),M=Qd.get(e),V=e.collection.getItem(i),A=t.onClose||M.onClose,U=ii(),I=ee=>{var rt;if(!E){if(!(V==null||(rt=V.props)===null||rt===void 0)&&rt.onAction?V.props.onAction():t.onAction&&t.onAction(i),M.onAction){let En=M.onAction;En(i)}ee.target instanceof HTMLAnchorElement&&V&&U.open(ee.target,ee,V.props.href,V.props.routerOptions)}},N="menuitem";E||($.selectionMode==="single"?N="menuitemradio":$.selectionMode==="multiple"&&(N="menuitemcheckbox"));let k=wt(),G=wt(),T=wt(),L={id:r,"aria-disabled":H||void 0,role:N,"aria-label":t["aria-label"],"aria-labelledby":k,"aria-describedby":[G,T].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};$.selectionMode!=="none"&&!E&&(L["aria-checked"]=w),l&&(L["aria-posinset"]=V==null?void 0:V.index,L["aria-setsize"]=md(e.collection));let P=ee=>{ee.pointerType==="keyboard"&&I(ee),s==null||s(ee)},O=()=>{!E&&A&&(o??($.selectionMode!=="multiple"||$.isLink(i)))&&A()},F=ee=>{ee.pointerType==="mouse"&&(I(ee),O()),c==null||c(ee)},K=ee=>{ee.pointerType!=="keyboard"&&ee.pointerType!=="mouse"&&(I(ee),O()),u==null||u(ee)},{itemProps:z,isFocused:B}=Ol({id:r,selectionManager:$,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:M.shouldUseVirtualFocus}),{pressProps:W,isPressed:Y}=ci({onPressStart:P,onPress:K,onPressUp:F,onPressChange:f,onPressEnd:h,isDisabled:H}),{hoverProps:Q}=yn({isDisabled:H,onHoverStart(ee){!hn()&&!(x&&a)&&($.setFocused(!0),$.setFocusedKey(i)),g==null||g(ee)},onHoverChange:b,onHoverEnd:p}),{keyboardProps:pe}=fu({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":!H&&$.selectionMode==="none"&&!E&&o!==!1&&A&&A();break;case"Enter":!H&&o!==!1&&!E&&A&&A();break;default:E||ee.continuePropagation(),v==null||v(ee);break}},onKeyUp:m}),{focusProps:q}=xl({onBlur:D,onFocus:C,onFocusChange:S}),te=he(V==null?void 0:V.props);delete te.id;let ce=pl(V==null?void 0:V.props);return{menuItemProps:{...L,...re(te,ce,E?{onFocus:z.onFocus,"data-collection":z["data-collection"],"data-key":z["data-key"]}:z,W,Q,pe,q,M.shouldUseVirtualFocus||E?{onMouseDown:ee=>ee.preventDefault()}:void 0),tabIndex:z.tabIndex!=null&&x&&!M.shouldUseVirtualFocus?-1:z.tabIndex},labelProps:{id:k},descriptionProps:{id:G},keyboardShortcutProps:{id:T},isFocused:B,isFocusVisible:B&&$.isFocused&&hn()&&!x,isSelected:w,isPressed:Y,isDisabled:H}}function Jv(t){let{heading:e,"aria-label":n}=t,r=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const ef=new WeakMap;function Qv(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=Dl({usage:"search",sensitivity:"base"}),c=d.useMemo(()=>r||new kl(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:u,menuProps:f}=Yv({isDisabled:i,type:"listbox"},e,n),h=R=>{switch(R.key){case"ArrowLeft":{var H,j;R.preventDefault();let V=e.selectedKey!=null?(H=c.getKeyAbove)===null||H===void 0?void 0:H.call(c,e.selectedKey):(j=c.getFirstKey)===null||j===void 0?void 0:j.call(c);V&&e.setSelectedKey(V);break}case"ArrowRight":{var w,M;R.preventDefault();let V=e.selectedKey!=null?(w=c.getKeyBelow)===null||w===void 0?void 0:w.call(c,e.selectedKey):(M=c.getFirstKey)===null||M===void 0?void 0:M.call(c);V&&e.setSelectedKey(V);break}}},{typeSelectProps:g}=fd({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(R){e.setSelectedKey(R)}}),{isInvalid:b,validationErrors:p,validationDetails:v}=e.displayValidation,{labelProps:m,fieldProps:C,descriptionProps:S,errorMessageProps:D}=sv({...t,labelElementType:"span",isInvalid:b,errorMessage:t.errorMessage||p});g.onKeyDown=g.onKeyDownCapture,delete g.onKeyDownCapture;let $=he(t,{labelable:!0}),E=re(g,u,C),x=Se();return ef.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...m,onClick:()=>{if(!t.isDisabled){var R;(R=n.current)===null||R===void 0||R.focus(),du("keyboard")}}},triggerProps:re($,{...E,isDisabled:i,onKeyDown:Pt(E.onKeyDown,h,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[x,E["aria-labelledby"],E["aria-label"]&&!E["aria-labelledby"]?E.id:null].filter(Boolean).join(" "),onFocus(R){e.isFocused||(t.onFocus&&t.onFocus(R),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(R){e.isOpen||(t.onBlur&&t.onBlur(R),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:x},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:R=>{R.currentTarget.contains(R.relatedTarget)||(t.onBlur&&t.onBlur(R),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],E["aria-label"]&&!C["aria-labelledby"]?E.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:D,isInvalid:b,validationErrors:p,validationDetails:v}}function eg(t,e,n){let r=ef.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:c}=Du();Mh(t.selectRef,e.selectedKey,e.setSelectedKey),iv({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var u;return{containerProps:{...c,"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:(u=e.selectedKey)!==null&&u!==void 0?u:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function tg(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=d.useRef(null),{containerProps:a,selectProps:s}=eg({...t,selectRef:l},e,n);var c;return e.collection.size<=300?d.createElement("div",{...a,"data-testid":"hidden-select-container"},d.createElement("label",null,r,d.createElement("select",{...s,ref:l},d.createElement("option",null),[...e.collection.getKeys()].map(u=>{let f=e.collection.getItem(u);if(f&&f.type==="item")return d.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?d.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}function ng(t){let e=he(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const tf=new WeakMap;function Ur(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${tf.get(t)}-${n}-${e}`):""}function rg(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,c=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:u,isPressed:f}=Ol({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),h=Ur(e,r,"tab"),g=Ur(e,r,"tabpanel"),{tabIndex:b}=u,p=e.collection.getItem(r),v=he(p==null?void 0:p.props,{labelable:!0});delete v.id;let m=pl(p==null?void 0:p.props),{focusableProps:C}=hu({isDisabled:c},n);return{tabProps:re(v,C,m,u,{id:h,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?g:void 0,tabIndex:c?void 0:b,role:"tab"}),isSelected:s,isDisabled:c,isPressed:f}}function ig(t,e,n){let r=Yp(n)?void 0:0;var i;const o=Ur(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=li({...t,id:o,"aria-labelledby":Ur(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:re(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class og{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){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function lg(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=At(),c=d.useMemo(()=>new og(o,s,r,a),[o,a,r,s]),{collectionProps:u}=hd({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Se();tf.set(e,f);let h=li({...t,id:f});return{tabListProps:{...re(u,h),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const nf=d.createContext({}),ag=Cl(function(e,n){[e,n]=nt(e,n,nf);let{elementType:r="label",...i}=e;return d.createElement(r,{className:"react-aria-Label",...i,ref:n})}),sg=d.createContext(null),cg=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),rf=d.createContext({}),ug=Cl(function(e,n){[e,n]=nt(e,n,rf),e=dg(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=jp(e,n),{focusProps:a,isFocused:s,isFocusVisible:c}=Cn(e),{hoverProps:u,isHovered:f}=yn({...e,isDisabled:e.isDisabled||i}),h={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},g=De({...e,values:h,defaultClassName:"react-aria-Button"}),b=Se(o.id),p=Se(),v=o["aria-labelledby"];i&&(v?v=`${v} ${p}`:o["aria-label"]&&(v=`${b} ${p}`));let m=d.useRef(i);return d.useEffect(()=>{let C={"aria-labelledby":v||b};(!m.current&&s&&i||m.current&&s&&!i)&&Fa(C,"assertive"),m.current=i},[i,s,v,b]),d.createElement("button",{...he(e,{propNames:cg}),...re(o,a,u),...g,type:o.type==="submit"&&i?"button":o.type,id:b,ref:n,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":c||void 0},d.createElement(sg.Provider,{value:{id:p}},g.children))});function dg(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 Nl=d.createContext({}),fg=d.createContext(null);class rs{*[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}}class je extends Set{constructor(e,n,r){super(e),e instanceof je?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function hg(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Rl(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=d.useRef(!1),[,a]=d.useState(!1),s=d.useRef(null),c=d.useRef(null),[,u]=d.useState(null),f=d.useMemo(()=>is(t.selectedKeys),[t.selectedKeys]),h=d.useMemo(()=>is(t.defaultSelectedKeys,new je),[t.defaultSelectedKeys]),[g,b]=ai(f,h,t.onSelectionChange),p=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,m]=d.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let C=d.useRef(i);return d.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(S,D="first"){s.current=S,c.current=D,u(S)},selectedKeys:g,setSelectedKeys(S){(r||!hg(S,g))&&b(S)},disabledKeys:p,disabledBehavior:o}}function is(t,e){return t?t==="all"?"all":new je(t):e}class er{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&&Gi(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&&Gi(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 je([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new je(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?Gi(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 je(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 je([n],n,n):new je;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new je;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=Bv(gd(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 je)}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}withCollection(e){return new er(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}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 of(t){let{filter:e,layoutDelegate:n}=t,r=Rl(t),i=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=d.useCallback(c=>e?new rs(e(c)):new rs(c),[e]),l=d.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=vd(t,o,l),s=d.useMemo(()=>new er(a,r,{layoutDelegate:n}),[a,r,n]);return lf(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function pg(t,e){let n=d.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return lf(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function lf(t,e){const n=d.useRef(null);d.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const u=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(m=>{const C=n.current.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null),h=[...t.getKeys()].map(m=>{const C=t.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null);var r,i;const g=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=h==null?void 0:h.length)!==null&&i!==void 0?i:0);var o,l,a;let b=Math.min(g>1?Math.max(((o=u==null?void 0:u.index)!==null&&o!==void 0?o:0)-g+1,0):(l=u==null?void 0:u.index)!==null&&l!==void 0?l:0,((a=h==null?void 0:h.length)!==null&&a!==void 0?a:0)-1),p=null,v=!1;for(;b>=0;){if(!e.isDisabled(h[b].key)){p=h[b];break}if(b<h.length-1&&!v)b++;else{v=!0;var s,c;b>((s=u==null?void 0:u.index)!==null&&s!==void 0?s:0)&&(b=(c=u==null?void 0:u.index)!==null&&c!==void 0?c:0),b--}}e.setFocusedKey(p?p.key:null)}n.current=t},[t,e])}function af(t){var e;let[n,r]=ai(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=d.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=of({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{if(c==="all")return;var u;let f=(u=c.values().next().value)!==null&&u!==void 0?u: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 Ml(t){let[e,n]=ai(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}}function vg(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=p=>{var v;return(v=p.id)!==null&&v!==void 0?v:p.key},getChildren:i=p=>p.children}=t,[o,l]=d.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[c,u]=d.useState(new Set(n||[]));function f(p=[],v,m){return p==null&&(p=[]),{items:p.map(C=>{let S={key:r(C),parentKey:m??null,value:C,children:null};return S.children=f(i(C),v,S.key).items,v.set(S.key,S),S}),nodeMap:v}}function h(p,v,m,C){let S=v==null?null:C.get(v);if(S==null)return{items:p,nodeMap:C};let D=new Map(C),$=m(S);for($==null?b(S,D):g($,D);S&&S.parentKey;){let x=D.get(S.parentKey),R={key:x.key,parentKey:x.parentKey,value:x.value,children:null},H=x.children;$==null&&H&&(H=H.filter(j=>j!==S));var E;R.children=(E=H==null?void 0:H.map(j=>j===S?$:j))!==null&&E!==void 0?E:null,D.set(R.key,R),$=R,S=x}return $==null&&(p=p.filter(x=>x!==S)),{items:p.map(x=>x===S?$:x),nodeMap:D}}function g(p,v){if(v.set(p.key,p),p.children)for(let m of p.children)g(m,v)}function b(p,v){if(v.delete(p.key),p.children)for(let m of p.children)b(m,v)}return{items:a,selectedKeys:c,setSelectedKeys:u,getItem(p){return s.get(p)},insert(p,v,...m){l(({items:C,nodeMap:S})=>{let{items:D,nodeMap:$}=f(m,S,p);return p==null?{items:[...C.slice(0,v),...D,...C.slice(v)],nodeMap:$}:h(C,p,E=>({key:E.key,parentKey:E.parentKey,value:E.value,children:[...E.children.slice(0,v),...D,...E.children.slice(v)]}),$)})},insertBefore(p,...v){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),D=(C?C.children:a).indexOf(m);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,D,...v)},insertAfter(p,...v){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),D=(C?C.children:a).indexOf(m);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,D+1,...v)},prepend(p,...v){this.insert(p,0,...v)},append(p,...v){if(p==null)this.insert(null,a.length,...v);else{let m=s.get(p);if(!m)return;this.insert(p,m.children.length,...v)}},remove(...p){if(p.length===0)return;let v=a,m=s,C;for(let D of p)C=h(v,D,()=>null,m),m=C.nodeMap,v=C.items;l(C);let S=new Set(c);for(let D of c)C.nodeMap.has(D)||S.delete(D);u(S)},removeSelectedItems(){this.remove(...c)},move(p,v,m){l(({items:C,nodeMap:S})=>{let D=S.get(p);if(!D)return{items:C,nodeMap:S};let{items:$,nodeMap:E}=h(C,p,()=>null,S);const x={...D,parentKey:v};return v==null?(g(x,E),{items:[...$.slice(0,m),x,...$.slice(m)],nodeMap:E}):h($,v,R=>({key:R.key,parentKey:R.parentKey,value:R.value,children:[...R.children.slice(0,m),x,...R.children.slice(m)]}),E)})},moveBefore(p,v){l(m=>{let{items:C,nodeMap:S}=m,D=S.get(p);if(!D)return m;var $;let E=($=D.parentKey)!==null&&$!==void 0?$:null,x=null;var R;E!=null&&(x=(R=S.get(E))!==null&&R!==void 0?R:null);let H=x!=null&&x.children?x.children.indexOf(D):C.indexOf(D);return os(m,v,x,H,h,g)})},moveAfter(p,v){l(m=>{let{items:C,nodeMap:S}=m,D=S.get(p);if(!D)return m;var $;let E=($=D.parentKey)!==null&&$!==void 0?$:null,x=null;var R;E!=null&&(x=(R=S.get(E))!==null&&R!==void 0?R:null);let H=x!=null&&x.children?x.children.indexOf(D):C.indexOf(D);return H++,os(m,v,x,H,h,g)})},update(p,v){l(({items:m,nodeMap:C})=>h(m,p,S=>{let D={key:S.key,parentKey:S.parentKey,value:v,children:null},$=f(i(v),C,D.key);return D.children=$.items,D},C))}}}function os(t,e,n,r,i,o){let{items:l,nodeMap:a}=t,s=n,c=new Set(e);for(;(s==null?void 0:s.parentKey)!=null;){if(c.has(s.key))throw new Error("Cannot move an item to be a child of itself.");var u;s=(u=a.get(s.parentKey))!==null&&u!==void 0?u:null}let f=r,h=Array.isArray(e)?e:[...e],g=new Map,b=[],p=l,v=a,m=0;function C(E,{inorder:x,postorder:R}){x==null||x(E);var H;if(E!=null)for(let j of(H=E.children)!==null&&H!==void 0?H:[])C(j,{inorder:x,postorder:R}),R==null||R(j)}function S(E){h.includes(E.key)&&g.set(E.key,m++)}function D(E){if(h.includes(E.key)){var x;b.push({...v.get(E.key),parentKey:(x=n==null?void 0:n.key)!==null&&x!==void 0?x:null});let{items:R,nodeMap:H}=i(p,E.key,()=>null,v);p=R,v=H}E.parentKey===(n==null?void 0:n.key)&&h.includes(E.key)&&(n!=null&&n.children?n.children.indexOf(E):l.indexOf(E))<f&&r--}C({children:l},{inorder:S,postorder:D});let $=b.sort((E,x)=>g.get(E.key)>g.get(x.key)?1:-1);return!n||n.key==null?($.forEach(E=>{o(E,v)}),{items:[...p.slice(0,r),...$,...p.slice(r)],nodeMap:v}):i(p,n.key,E=>({key:E.key,parentKey:E.parentKey,value:E.value,children:[...E.children.slice(0,r),...$,...E.children.slice(r)]}),v)}function gg(t){let e=Ml(t),[n,r]=d.useState(null),[i,o]=d.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(c=null){r(c),e.open()},toggle(c=null){r(c),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(c,u)=>{o(f=>u>f.length?f:[...f.slice(0,u),c])},closeSubmenu:(c,u)=>{o(f=>f[u]===c?f.slice(0,u):f)}}}function mg(t){let e=Ml(t),[n,r]=d.useState(null),i=af({...t,onSelectionChange:c=>{t.onSelectionChange!=null&&t.onSelectionChange(c),e.close(),o.commitValidation()}}),o=tv({...t,value:i.selectedKey}),[l,a]=d.useState(!1),s=d.useMemo(()=>{var c;return i.collection.size===0||i.collection.size===1&&((c=i.collection.getItem(i.collection.getFirstKey()))===null||c===void 0?void 0:c.type)==="loader"},[i.collection]);return{...o,...i,...e,focusStrategy:n,open(c=null){s||(r(c),e.open())},toggle(c=null){s||(r(c),e.toggle())},isFocused:l,setFocused:a}}function bg(t){var e,n;let r=af({...t,onSelectionChange:t.onSelectionChange?s=>{var c;s!=null&&((c=t.onSelectionChange)===null||c===void 0||c.call(t,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:ls(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=d.useRef(l);return d.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=ls(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 ls(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 yg{*[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 Cg(t){let{onExpandedChange:e}=t,[n,r]=ai(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Rl(t),o=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=vd(t,d.useCallback(s=>new yg(s,{expandedKeys:n}),[n]),null);return d.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(Sg(n,s))},setExpandedKeys:r,selectionManager:new er(l,i)}}function Sg(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const wg=d.createContext(null),zo=d.createContext(null),sf=d.createContext(null),cf={CollectionRoot({collection:t,renderDropIndicator:e}){return as(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return as(t,e,n)}};function as(t,e,n){return nu({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 d.createElement(d.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 Ft=d.createContext(cf);function uf(t){return d.useMemo(()=>t!=null?new Set([t]):null,[t])}const vi=d.createContext({}),df=d.createContext(null),Eg=d.forwardRef(function(e,n){let{render:r}=d.useContext(df);return d.createElement(d.Fragment,null,r(e,n))});function ff(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=d.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):d.createElement(Eg,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function xg(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 d.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const hf=d.createContext({}),Ll=d.createContext({}),pf=hi("separator",function(e,n){[e,n]=nt(e,n,Ll);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,c=r||"hr";c==="hr"&&i==="vertical"&&(c="div");let{separatorProps:u}=ng({...s,elementType:r,orientation:i});return d.createElement(c,{...he(e),...u,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),Al=d.createContext(null),tr=d.createContext(null),$g=d.forwardRef(function(e,n){[e,n]=nt(e,n,Al);let r=d.useContext(tr);return r?d.createElement(vf,{state:r,props:e,listBoxRef:n}):d.createElement(fi,{content:d.createElement(Pl,e)},i=>d.createElement(Pg,{props:e,listBoxRef:n,collection:i}))});function Pg({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=d.useContext(Ft),i=of({...t,layoutDelegate:r});return d.createElement(vf,{state:i,props:t,listBoxRef:e})}function vf({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=d.useContext(zo)||{};e=d.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=tt(d.useMemo(()=>ul(n,o!==void 0?o:null),[o,n]));let c=pg(t,r),{collection:u,selectionManager:f}=c,h=!!(l!=null&&l.useDraggableCollectionState),g=!!(l!=null&&l.useDroppableCollectionState),{direction:b}=At(),{disabledBehavior:p,disabledKeys:v}=f,m=Dl({usage:"search",sensitivity:"base"}),{isVirtualized:C,layoutDelegate:S,dropTargetDelegate:D,CollectionRoot:$}=d.useContext(Ft),E=d.useMemo(()=>e.keyboardDelegate||new kl({collection:u,collator:m,ref:n,disabledKeys:v,disabledBehavior:p,layout:a,orientation:s,direction:b,layoutDelegate:S}),[u,m,n,p,v,s,b,e.keyboardDelegate,a,S]),{listBoxProps:x}=Hv({...e,shouldSelectOnPressUp:h||e.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:C},c,n),R=d.useRef(h),H=d.useRef(g);d.useEffect(()=>{process.env.NODE_ENV!=="production"&&(R.current!==h&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),H.current!==g&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[h,g]);let j,w,M,V=!1,A=null,U=d.useRef(null);if(h&&l){j=l.useDraggableCollectionState({collection:u,selectionManager:f,preview:l.renderDragPreview?U:void 0}),l.useDraggableCollection({},j,n);let P=l.DragPreview;A=l.renderDragPreview?d.createElement(P,{ref:U},l.renderDragPreview):null}if(g&&l){w=l.useDroppableCollectionState({collection:u,selectionManager:f});let P=l.dropTargetDelegate||D||new l.ListDropTargetDelegate(u,n,{orientation:s,layout:a,direction:b});M=l.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:P},w,n),V=w.isDropTarget({type:"root"})}let{focusProps:I,isFocused:N,isFocusVisible:k}=Cn(),G={isDropTarget:V,isEmpty:c.collection.size===0,isFocused:N,isFocusVisible:k,layout:e.layout||"stack",state:c},T=De({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:G}),L=null;return c.collection.size===0&&e.renderEmptyState&&(L=d.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(G))),d.createElement(_l,null,d.createElement("div",{...he(e),...re(x,I,M==null?void 0:M.collectionProps),...T,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":V||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":N||void 0,"data-focus-visible":k||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},d.createElement(ht,{values:[[Al,e],[tr,c],[vi,{dragAndDropHooks:l,dragState:j,dropState:w}],[Ll,{elementType:"div"}],[df,{render:Tg}],[sf,{name:"ListBoxSection",render:Dg}]]},d.createElement($,{collection:u,scrollRef:n,persistedKeys:xg(f,l,w),renderDropIndicator:ff(l,w)})),L,A))}function Dg(t,e,n,r="react-aria-ListBoxSection"){let i=d.useContext(tr),{dragAndDropHooks:o,dropState:l}=d.useContext(vi),{CollectionBranch:a}=d.useContext(Ft),[s,c]=ml();var u;let{headingProps:f,groupProps:h}=Gv({heading:c,"aria-label":(u=t["aria-label"])!==null&&u!==void 0?u:void 0}),g=De({defaultClassName:r,className:t.className,style:t.style,values:{}});return d.createElement("section",{...he(t),...h,...g,ref:e},d.createElement(hf.Provider,{value:{...f,ref:s}},d.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:ff(o,l)})))}const _g=hi("item",function(e,n,r){let i=tt(n),o=d.useContext(tr),{dragAndDropHooks:l,dragState:a,dropState:s}=d.useContext(vi),{optionProps:c,labelProps:u,descriptionProps:f,...h}=Wv({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:g,isHovered:b}=yn({isDisabled:!h.allowsSelection&&!h.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 v=null;s&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(r.key),C=De({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...h,isHovered:b,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:v==null?void 0:v.isDropTarget}});d.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&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 d.createElement(S,{...re(c,g,p==null?void 0:p.dragProps,v==null?void 0:v.dropProps),...C,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(v==null?void 0:v.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},d.createElement(ht,{values:[[Nl,{slots:{[gl]:u,label:u,description:f}}]]},C.children))});function Tg(t,e){e=tt(e);let{dragAndDropHooks:n,dropState:r}=d.useContext(vi),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:d.createElement(Og,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function Ig(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=De({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return d.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const Og=d.forwardRef(Ig),kg=d.createContext({placement:"bottom"}),gf=d.createContext(null),ss=d.createContext(null),mf=d.forwardRef(function(e,n){[e,n]=nt(e,n,gf);let r=d.useContext(bf),i=Ml(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=jh(n,o.isOpen)||e.isExiting||!1,a=Gh(),{direction:s}=At();if(a){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),d.createElement(d.Fragment,null,c)}return o&&!o.isOpen&&!l?null:d.createElement(Ng,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function Ng({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=d.useRef(null),[o,l]=d.useState(0),a=d.useRef(null),s=d.useContext(ss),c=s&&r.trigger==="SubmenuTrigger";ne(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var u;let{popoverProps:f,underlayProps:h,arrowProps:g,placement:b}=Nv({...r,offset:(u=r.offset)!==null&&u!==void 0?u:8,arrowSize:o,groupRef:c?s:a},t),p=r.popoverRef,v=Kh(p,!!b)||r.isEntering||!1,m=De({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:b,isEntering:v,isExiting:e}}),C=!r.isNonModal||r.trigger==="SubmenuTrigger",[S,D]=d.useState(!1);ne(()=>{p.current&&D(C&&!p.current.querySelector("[role=dialog]"))},[p,C]),d.useEffect(()=>{S&&p.current&&!p.current.contains(document.activeElement)&&pn(p.current)},[S,p]);let $={...f.style,...m.style},E=d.createElement("div",{...re(he(r),f),...m,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:p,slot:r.slot||void 0,style:$,dir:r.dir,"data-trigger":r.trigger,"data-placement":b,"data-entering":v||void 0,"data-exiting":e||void 0},!r.isNonModal&&d.createElement(Ya,{onDismiss:t.close}),d.createElement(kg.Provider,{value:{...g,placement:b,ref:i}},m.children),d.createElement(Ya,{onDismiss:t.close}));if(!c)return d.createElement(Za,{...r,shouldContainFocus:S,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&d.createElement("div",{"data-testid":"underlay",...h,style:{position:"fixed",inset:0}}),d.createElement("div",{ref:a,style:{display:"contents"}},d.createElement(ss.Provider,{value:a},E)));var x;return d.createElement(Za,{...r,shouldContainFocus:S,isExiting:e,portalContainer:(x=n??(s==null?void 0:s.current))!==null&&x!==void 0?x:void 0},E)}const Rg=d.createContext({}),Mg=d.createContext(null),Fl=d.createContext(null),cs=d.createContext(null),Wr=d.createContext(null),Lg=d.createContext(null),Ag=d.forwardRef(function(e,n){return[e,n]=nt(e,n,Mg),d.createElement(fi,{content:d.createElement(Pl,e)},r=>d.createElement(Fg,{props:e,collection:r,menuRef:n}))});function Fg({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=d.useContext(zo)||{};n=tt(d.useMemo(()=>ul(n,o!==void 0?o:null),[o,n]));let l=d.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=Cg({...t,collection:l,children:void 0}),s=d.useContext(cs),{isVirtualized:c,CollectionRoot:u}=d.useContext(Ft),{menuProps:f}=Zv({...t,...i,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},a,n),h=De({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),g=null;return a.collection.size===0&&t.renderEmptyState&&(g=d.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),d.createElement(_l,null,d.createElement("div",{...he(t),...f,...h,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},d.createElement(ht,{values:[[Fl,a],[Ll,{elementType:"div"}],[sf,{name:"MenuSection",render:jg}],[Lg,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[Vo,null],[zo,null],[Wr,a.selectionManager],[cs,s??gg({})]]},d.createElement(u,{collection:a.collection,persistedKeys:uf(a.selectionManager.focusedKey),scrollRef:n})),g))}class Kg extends er{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 jg(t,e,n,r="react-aria-MenuSection"){var i,o;let l=d.useContext(Fl),{CollectionBranch:a}=d.useContext(Ft),[s,c]=ml();var u;let{headingProps:f,groupProps:h}=Jv({heading:c,"aria-label":(u=n.props["aria-label"])!==null&&u!==void 0?u:void 0}),g=De({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:{}}),b=d.useContext(Wr),p=Rl(t),v=t.selectionMode!=null?new Kg(b,p):b;return d.createElement("section",{...he(t),...h,...g,ref:e},d.createElement(ht,{values:[[hf,{...f,ref:s}],[Wr,v]]},d.createElement(a,{collection:l.collection,parent:n})))}const Vo=d.createContext(null),us=hi("item",function(e,n,r){var i;[e,n]=nt(e,n,Vo);let o=(i=si(Vo))===null||i===void 0?void 0:i.id,l=d.useContext(Fl),a=tt(n),s=d.useContext(Wr),{menuItemProps:c,labelProps:u,descriptionProps:f,keyboardShortcutProps:h,...g}=Xv({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:b,isHovered:p}=yn({isDisabled:g.isDisabled}),v=De({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:p,isFocusVisible:g.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),m=e.href?"a":"div";return d.createElement(m,{...re(c,b),...v,ref:a,"data-disabled":g.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":g.isFocusVisible||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(ht,{values:[[Nl,{slots:{[gl]:u,label:u,description:f}}],[Rg,h]]},v.children))}),bf=d.createContext(null),yf=d.createContext(null),Cf=d.createContext(null),Hg=d.forwardRef(function(e,n){[e,n]=nt(e,n,yf);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=d.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 d.createElement(fi,{content:a},s=>d.createElement(zg,{props:e,collection:s,selectRef:n}))});function zg({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=si(wg)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=mg({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:c}=Cn({within:!0}),u=d.useRef(null),[f,h]=ml(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:g,triggerProps:b,valueProps:p,menuProps:v,descriptionProps:m,errorMessageProps:C,...S}=Qv({...Bh(t),label:h,validationBehavior:l},a,u),[D,$]=d.useState(null),E=d.useCallback(()=>{u.current&&$(u.current.offsetWidth+"px")},[u]);$o({ref:u,onResize:E});let x=d.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]),R=De({...t,values:x,defaultClassName:"react-aria-Select"}),H=he(t);delete H.id;let j=d.useRef(null);return d.createElement(ht,{values:[[yf,t],[Cf,a],[Vg,p],[nf,{...g,ref:f,elementType:"span"}],[rf,{...b,ref:u,isPressed:a.isOpen}],[bf,a],[gf,{trigger:"Select",triggerRef:u,scrollRef:j,placement:"bottom start",style:{"--trigger-width":D},"aria-labelledby":v["aria-labelledby"]}],[Al,{...v,ref:j}],[tr,a],[Nl,{slots:{description:m,errorMessage:C}}],[fg,S]]},d.createElement("div",{...H,...R,...c,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}),d.createElement(tg,{autoComplete:t.autoComplete,state:a,triggerRef:u,label:h,name:t.name,isDisabled:t.isDisabled}))}const Vg=d.createContext(null),gi=d.createContext(null),vn=d.createContext(null),Bg=d.forwardRef(function(e,n){[e,n]=nt(e,n,gi);let{children:r,orientation:i="horizontal"}=e;return r=d.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),d.createElement(fi,{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=bg({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Cn({within:!0}),s=d.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),c=De({...t,defaultClassName:"react-aria-Tabs",values:s});return d.createElement("div",{...he(t),...o,...c,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},d.createElement(ht,{values:[[gi,t],[vn,i]]},c.children))}const Wg=d.forwardRef(function(e,n){return d.useContext(vn)?d.createElement(Gg,{props:e,forwardedRef:n}):d.createElement(Pl,e)});function Gg({props:t,forwardedRef:e}){let n=d.useContext(vn),{CollectionRoot:r}=d.useContext(Ft),{orientation:i="horizontal",keyboardActivation:o="automatic"}=si(gi),l=tt(e),{tabListProps:a}=lg({...t,orientation:i,keyboardActivation:o},n,l),s=De({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),c=he(t);return delete c.id,d.createElement("div",{...c,...a,ref:l,...s,"data-orientation":i||void 0},d.createElement(r,{collection:n.collection,persistedKeys:uf(n.selectionManager.focusedKey)}))}const qg=hi("item",(t,e,n)=>{let r=d.useContext(vn),i=tt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=rg({key:n.key,...t},r,i),{focusProps:c,isFocused:u,isFocusVisible:f}=Cn(),{hoverProps:h,isHovered:g}=yn({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),b=De({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:u,isFocusVisible:f,isPressed:s,isHovered:g}}),p=n.props.href?"a":"div";return d.createElement(p,{...re(o,c,h,b),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":u||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0},b.children)}),Yg=Cl(function(e,n){const r=d.useContext(vn);let i=tt(n),{tabPanelProps:o}=ig(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=Cn(),c=r.selectedKey===e.id,u=De({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!c,state:r}});if(!c&&!e.shouldForceMount)return null;let f=he(e);delete f.id;let h=c?re(f,o,l,u):u;return d.createElement("div",{...h,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:Lh(!c),"data-inert":c?void 0:"true"},d.createElement(ht,{values:[[gi,null],[vn,null]]},d.createElement(Ft.Provider,{value:cf},u.children)))}),Sn=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=d.useId(),c=f=>{n==null||n(f)},u=d.useRef(null);return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"c__dropdown-menu-trigger",ref:u,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),y.jsx(mf,{triggerRef:u,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:c,children:y.jsxs(Ag,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&y.jsx(us,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:y.jsxs(d.Fragment,{children:[y.jsxs(us,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var h;f.value&&(o==null||o(f.value)),(h=f.callback)==null||h.call(f),c(!1)},isDisabled:f.isDisabled,children:[f.icon,y.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&y.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&y.jsx(pf,{})]},f.label))]})})]})},Tt=()=>{const[t,e]=d.useState(!1);return{isOpen:t,setIsOpen:e}},ds="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",Zg="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",Xg=()=>{const{t}=ae.useCunningham();return y.jsxs("footer",{className:"c__footer",children:[y.jsx("div",{className:"c__footer__stripe"}),y.jsxs("div",{className:"c__footer__content",children:[y.jsxs("div",{className:"c__footer__content__top",children:[y.jsx("div",{children:y.jsx("div",{className:"c__footer__content__top__logo",children:y.jsx("img",{className:"c__footer__logo",alt:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:Zg})})}),y.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})=>y.jsxs("a",{href:n,target:"_blank",children:[y.jsx("span",{children:e}),y.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:ds})]},e))})]}),y.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})=>y.jsx("a",{href:n,children:y.jsx("span",{children:e})},e))}),y.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",y.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[y.jsx("span",{children:t("components.footer.license")}),y.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:ds})]})]})]})]})},Jg=t=>y.jsx(Hg,{...t,className:"c__filter",children:y.jsx(Qg,{...t})}),Qg=t=>{const e=d.useContext(Cf),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return y.jsxs(y.Fragment,{children:[y.jsxs(ug,{className:Pe("c__filter__button",{"c__filter__button--active":!!n}),children:[y.jsx(ag,{className:"c__filter__label",children:n?y.jsxs(y.Fragment,{children:[t.label," : ",n.label]}):y.jsx(y.Fragment,{children:t.label})}),y.jsx("span",{"aria-hidden":"true",className:Pe("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),y.jsx(mf,{className:"c__dropdown-menu",children:y.jsx($g,{children:t.options.map(r=>y.jsxs(d.Fragment,{children:[y.jsx(_g,{id:r.value,className:"c__dropdown-menu-item",children:y.jsxs("div",{className:"c__filter__item",children:[r.render?r.render():r.label,(t.selectedKey===r.value||r.isChecked)&&y.jsx("span",{className:"material-icons checked",children:"check"})]})},r.value),r.showSeparator&&y.jsx(pf,{})]},r.value))})})]})},e5=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>y.jsx("div",{className:"c__hero",children:y.jsxs("div",{className:"c__hero__display",children:[y.jsxs("div",{className:"c__hero__display__captions",children:[t,y.jsx("h2",{children:r}),y.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||y.jsx(Bc,{})]}),y.jsx("img",{src:n,alt:""})]})}),t5=({children:t})=>y.jsx("div",{className:"c__home-gutter",children:t}),Sf=(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:Sf(t[i],r.slice(1),n)},n5={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},r5={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"}},i5={label:"Les services de La Suite numérique"},o5={homepageLinkTitle:"Accueil - {serviceName}"},l5={newWindow:"{title} - nouvelle fenêtre"},a5={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},wf={email:n5,footer:r5,gaufre:i5,header:o5,links:l5,proconnect:a5},s5=d.createContext(wf);function c5(){const t=d.useContext(s5)||wf;return{t:function(e,n={}){const r=Sf(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 y.jsx(y.Fragment,{children:o.map((l,a)=>l in n?y.jsx(d.Fragment,{children:n[l]},a):l)})}return r}}}const u5={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},d5=({variant:t})=>{const{t:e}=c5(),n=t?u5[t]:"";return y.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")})},f5=()=>y.jsxs(y.Fragment,{children:[y.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),y.jsx(d5,{variant:"small"})]}),Ef=({languages:t})=>{const{isOpen:e,setIsOpen:n}=Tt();return y.jsx(Sn,{options:t,isOpen:e,onOpenChange:n,children:y.jsxs(ae.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[y.jsx("span",{className:"material-icons",children:"translate"}),y.jsx("span",{className:"c__language-picker__label",children:"Français"}),y.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},xf=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=ae.useCunningham();return y.jsxs("div",{className:"c__header",children:[y.jsx("div",{className:"c__header__toggle-menu",children:y.jsx(ae.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:y.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),y.jsx("div",{className:"c__header__left",children:t}),y.jsxs("div",{className:"c__header__right",children:[n&&y.jsx("div",{className:"c__header__right__language-picker",children:y.jsx(Ef,{languages:n})}),e]})]})},Bo={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":"ref(theme.colors.greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"ref(theme.colors.greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"ref(theme.colors.greyscale-500)"},"primary-text":{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"ref(theme.colors.greyscale-100)","background--color-active":"ref(theme.colors.primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","color-hover":"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"ref(theme.colors.greyscale-000)","background--disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","border--color":"ref(theme.colors.greyscale-300)","border--color-hover":"ref(theme.colors.greyscale-300)","border--color-disabled":"ref(theme.colors.greyscale-300)",disabled:"ref(theme.colors.greyscale-400)"},tertiary:{"background--color":"ref(theme.colors.primary-100)","background--color-focus-visible":"ref(theme.colors.primary-100)","background--color-hover":"ref(theme.colors.primary-300)","background--color-active":"ref(theme.colors.primary-300)","background--disabled":"ref(theme.colors.primary-050)",color:"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.primary-300)"},"tertiary-text":{"background--color-hover":"ref(theme.colors.greyscale-100)","color-hover":"ref(theme.colors.primary-text)",color:"ref(theme.colors.primary-600)"},danger:{"color-hover":"white","background--color":"ref(theme.colors.danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"ref(theme.colors.danger-600)","background--color-disabled":"ref(theme.colors.greyscale-100)","color-disabled":"ref(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":"ref(theme.colors.primary-800)","background-color--hover":"ref(theme.colors.greyscale-100)","border--color-disabled":"ref(theme.colors.greyscale-200)","border--color":"ref(theme.colors.primary-800)","background--disabled":"ref(theme.colors.greyscale-200)","background--enable":"ref(theme.colors.primary-800)","check--disabled":"ref(theme.colors.greyscale-300)","check--enable":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-text)","label--color":"ref(theme.colors.greyscale-1000)","label--size":"ref(theme.font.sizes.sm)","label--weight":"500","text--color":"ref(theme.colors.greyscale-600)","text--size":"ref(theme.font.sizes.s)","text--weight":"400","text--color-disabled":"ref(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":"ref(theme.colors.primary-800)","background-color":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)","accent-color-disabled":"ref(theme.colors.greyscale-300)"},"forms-switch":{"border--color-disabled":"ref(theme.colors.greyscale-300)","border--color":"ref(theme.colors.primary-800)","handle-background-color":"white","handle-background-color--disabled":"ref(theme.colors.greyscale-000)","rail-background-color--disabled":"ref(theme.colors.greyscale-000)","accent-color":"ref(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"},badge:{"font-size":"ref(theme.font.sizes.xs)","border-radius":"4px","padding-inline":"ref(theme.spacings.xs)","padding-block":"ref(theme.spacings.2xs)",accent:{"background-color":"ref(theme.colors.primary-100)",color:"ref(theme.colors.primary-600)"},neutral:{"background-color":"ref(theme.colors.greyscale-100)",color:"ref(theme.colors.greyscale-600)"},danger:{"background-color":"ref(theme.colors.danger-100)",color:"ref(theme.colors.danger-600)"},success:{"background-color":"ref(theme.colors.success-100)",color:"ref(theme.colors.success-600)"},warning:{"background-color":"ref(theme.colors.warning-100)",color:"ref(theme.colors.warning-600)"},info:{"background-color":"ref(theme.colors.info-100)",color:"ref(theme.colors.info-600)"}}}}}},wn=()=>{const[t,e]=d.useState(window.innerWidth),n=parseInt(Bo.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(Bo.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,l=t<=r,a=t>r;return{isMobile:o,isTablet:l,isDesktop:a}},$f=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=wn();return n?y.jsx("div",{className:"c__left-panel",children:t}):y.jsx("div",{className:Pe("c__left-panel__mobile",{open:e}),children:t})},{createElement:gn,createContext:h5,forwardRef:Pf,useCallback:Ee,useContext:Df,useEffect:Et,useImperativeHandle:_f,useLayoutEffect:p5,useMemo:v5,useRef:$e,useState:cn}=_,fs=_[`useId${Math.random()}`.slice(0,5)],g5=p5,mi=h5(null);mi.displayName="PanelGroupContext";const xt=g5,m5=typeof fs=="function"?fs:()=>null;let b5=0;function Kl(t=null){const e=m5(),n=$e(t||e||null);return n.current===null&&(n.current=""+b5++),t??n.current}function Tf({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:c,onExpand:u,onResize:f,order:h,style:g,tagName:b="div",...p}){const v=Df(mi);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:C,getPanelSize:S,getPanelStyle:D,groupId:$,isPanelCollapsed:E,reevaluatePanelConstraints:x,registerPanel:R,resizePanel:H,unregisterPanel:j}=v,w=Kl(l),M=$e({callbacks:{onCollapse:c,onExpand:u,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:w,idIsFromProps:l!==void 0,order:h});$e({didLogMissingDefaultSizeWarning:!1}),xt(()=>{const{callbacks:A,constraints:U}=M.current,I={...U};M.current.id=w,M.current.idIsFromProps=l!==void 0,M.current.order=h,A.onCollapse=c,A.onExpand=u,A.onResize=f,U.collapsedSize=n,U.collapsible=r,U.defaultSize=i,U.maxSize=a,U.minSize=s,(I.collapsedSize!==U.collapsedSize||I.collapsible!==U.collapsible||I.maxSize!==U.maxSize||I.minSize!==U.minSize)&&x(M.current,I)}),xt(()=>{const A=M.current;return R(A),()=>{j(A)}},[h,w,R,j]),_f(o,()=>({collapse:()=>{m(M.current)},expand:A=>{C(M.current,A)},getId(){return w},getSize(){return S(M.current)},isCollapsed(){return E(M.current)},isExpanded(){return!E(M.current)},resize:A=>{H(M.current,A)}}),[m,C,S,E,w,H]);const V=D(M.current,i);return gn(b,{...p,children:t,className:e,id:l,style:{...V,...g},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":$,"data-panel-id":w,"data-panel-size":parseFloat(""+V.flexGrow).toFixed(1)})}const Uo=Pf((t,e)=>gn(Tf,{...t,forwardedRef:e}));Tf.displayName="Panel";Uo.displayName="forwardRef(Panel)";let Wo=null,St=null;function y5(t,e){if(e){const n=(e&Rf)!==0,r=(e&Mf)!==0,i=(e&Lf)!==0,o=(e&Af)!==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 C5(){St!==null&&(document.head.removeChild(St),Wo=null,St=null)}function qi(t,e){const n=y5(t,e);Wo!==n&&(Wo=n,St===null&&(St=document.createElement("style"),document.head.appendChild(St)),St.innerHTML=`*{cursor: ${n}!important;}`)}function If(t){return t.type==="keydown"}function Of(t){return t.type.startsWith("pointer")}function kf(t){return t.type.startsWith("mouse")}function bi(t){if(Of(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(kf(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function S5(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function w5(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 E5(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:vs(t),b:vs(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;X(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:ps(hs(n.a)),b:ps(hs(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 x5=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function $5(t){var e;const n=getComputedStyle((e=Nf(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function P5(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||$5(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"||x5.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function hs(t){let e=t.length;for(;e--;){const n=t[e];if(X(n,"Missing node"),P5(n))return n}return null}function ps(t){return t&&Number(getComputedStyle(t).zIndex)||0}function vs(t){const e=[];for(;t;)e.push(t),t=Nf(t);return e}function Nf(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Rf=1,Mf=2,Lf=4,Af=8,D5=S5()==="coarse";let He=[],un=!1,ct=new Map,yi=new Map;const Wn=new Set;function _5(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ct.get(l))!==null&&o!==void 0?o:0;return ct.set(l,s+1),Wn.add(a),Gr(),function(){var u;yi.delete(t),Wn.delete(a);const f=(u=ct.get(l))!==null&&u!==void 0?u:1;if(ct.set(l,f-1),Gr(),f===1&&ct.delete(l),He.includes(a)){const h=He.indexOf(a);h>=0&&He.splice(h,1),Hl(),i("up",!0,null)}}}function gs(t){const{target:e}=t,{x:n,y:r}=bi(t);un=!0,jl({target:e,x:n,y:r}),Gr(),He.length>0&&(qr("down",t),t.preventDefault(),t.stopPropagation())}function In(t){const{x:e,y:n}=bi(t);if(un&&t.buttons===0&&(un=!1,qr("up",t)),!un){const{target:r}=t;jl({target:r,x:e,y:n})}qr("move",t),Hl(),He.length>0&&t.preventDefault()}function zt(t){const{target:e}=t,{x:n,y:r}=bi(t);yi.clear(),un=!1,He.length>0&&t.preventDefault(),qr("up",t),jl({target:e,x:n,y:r}),Hl(),Gr()}function jl({target:t,x:e,y:n}){He.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Wn.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:c,right:u,top:f}=a,h=D5?l.coarse:l.fine;if(e>=c-h&&e<=u+h&&n>=f-h&&n<=s+h){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&E5(r,o)>0){let b=r,p=!1;for(;b&&!b.contains(o);){if(w5(b.getBoundingClientRect(),a)){p=!0;break}b=b.parentElement}if(p)return}He.push(i)}})}function Yi(t,e){yi.set(t,e)}function Hl(){let t=!1,e=!1;He.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;yi.forEach(r=>{n|=r}),t&&e?qi("intersection",n):t?qi("horizontal",n):e?qi("vertical",n):C5()}function Gr(){ct.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",zt),n.removeEventListener("pointerdown",gs),n.removeEventListener("pointerleave",In),n.removeEventListener("pointermove",In)}),window.removeEventListener("pointerup",zt),window.removeEventListener("pointercancel",zt),Wn.size>0&&(un?(He.length>0&&ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",zt),n.addEventListener("pointerleave",In),n.addEventListener("pointermove",In))}),window.addEventListener("pointerup",zt),window.addEventListener("pointercancel",zt)):ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",gs,{capture:!0}),n.addEventListener("pointermove",In))}))}function qr(t,e){Wn.forEach(n=>{const{setResizeHandlerState:r}=n,i=He.includes(n);r(t,i,e)})}function T5(){const[t,e]=cn(0);return Ee(()=>e(n=>n+1),[])}function X(t,e){if(!t)throw console.error(e),Error(e)}const zl=10;function It(t,e,n=zl){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function Xe(t,e,n=zl){return It(t,e,n)===0}function _e(t,e,n){return It(t,e,n)===0}function I5(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(!_e(i,o,n))return!1}return!0}function rn({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];X(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(It(n,a)<0)if(o){const s=(i+a)/2;It(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(zl)),n}function An({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(_e(t,0))return e;const l=[...e],[a,s]=r;X(a!=null,"Invalid first pivot index"),X(s!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?s:a,h=n[f];X(h,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:b,minSize:p=0}=h;if(b){const v=e[f];if(X(v!=null,`Previous layout not found for panel index ${f}`),_e(v,g)){const m=p-v;It(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,h=n[f];X(h,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:b,minSize:p=0}=h;if(b){const v=e[f];if(X(v!=null,`Previous layout not found for panel index ${f}`),_e(v,p)){const m=v-g;It(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let h=t<0?s:a,g=0;for(;;){const p=e[h];X(p!=null,`Previous layout not found for panel index ${h}`);const m=rn({panelConstraints:n,panelIndex:h,size:100})-p;if(g+=m,h+=f,h<0||h>=n.length)break}const b=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-b:b}{let h=t<0?a:s;for(;h>=0&&h<n.length;){const g=Math.abs(t)-Math.abs(c),b=e[h];X(b!=null,`Previous layout not found for panel index ${h}`);const p=b-g,v=rn({panelConstraints:n,panelIndex:h,size:p});if(!_e(b,v)&&(c+=b-v,l[h]=v,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?h--:h++}}if(I5(i,l))return i;{const f=t<0?s:a,h=e[f];X(h!=null,`Previous layout not found for panel index ${f}`);const g=h+c,b=rn({panelConstraints:n,panelIndex:f,size:g});if(l[f]=b,!_e(b,g)){let p=g-b,m=t<0?s:a;for(;m>=0&&m<n.length;){const C=l[m];X(C!=null,`Previous layout not found for panel index ${m}`);const S=C+p,D=rn({panelConstraints:n,panelIndex:m,size:S});if(_e(C,D)||(p-=D-C,l[m]=D),_e(p,0))break;t>0?m--:m++}}}const u=l.reduce((f,h)=>h+f,0);return _e(u,100)?l:i}function O5({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];X(a!=null,"No pivot index found"),e.forEach((f,h)=>{const{constraints:g}=f,{maxSize:b=100,minSize:p=0}=g;h===a?(r=p,i=b):(o+=p,l+=b)});const s=Math.min(i,100-o),c=Math.max(r,100-l),u=t[a];return{valueMax:s,valueMin:c,valueNow:u}}function Gn(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function Ff(t,e,n=document){const i=Gn(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function Kf(t,e,n){const r=Ff(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function jf(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 Ci(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function k5(t,e,n,r=document){var i,o,l,a;const s=Ci(e,r),c=Gn(t,r),u=s?c.indexOf(s):-1,f=(i=(o=n[u])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,h=(l=(a=n[u+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,h]}function N5({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){$e({didWarnAboutMissingResizeHandle:!1}),xt(()=>{if(!o)return;const a=Gn(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:c,valueMin:u,valueNow:f}=O5({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),h=a[s];if(h!=null){const g=i[s];X(g,`No panel data found for index "${s}"`),h.setAttribute("aria-controls",g.id),h.setAttribute("aria-valuemax",""+Math.round(c)),h.setAttribute("aria-valuemin",""+Math.round(u)),h.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,c)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Et(()=>{if(!o)return;const a=e.current;X(a,"Eager values not found");const{panelDataArray:s}=a,c=jf(n,o);X(c!=null,`No group found for id "${n}"`);const u=Gn(n,o);X(u,`No resize handles found for group id "${n}"`);const f=u.map(h=>{const g=h.getAttribute("data-panel-resize-handle-id");X(g,"Resize handle element has no handle id attribute");const[b,p]=k5(n,g,s,o);if(b==null||p==null)return()=>{};const v=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const C=s.findIndex(S=>S.id===b);if(C>=0){const S=s[C];X(S,`No panel data found for index ${C}`);const D=r[C],{collapsedSize:$=0,collapsible:E,minSize:x=0}=S.constraints;if(D!=null&&E){const R=An({delta:_e(D,$)?x-$:$-D,initialLayout:r,panelConstraints:s.map(H=>H.constraints),pivotIndices:Kf(n,g,o),prevLayout:r,trigger:"keyboard"});r!==R&&l(R)}}break}}};return h.addEventListener("keydown",v),()=>{h.removeEventListener("keydown",v)}});return()=>{f.forEach(h=>h())}},[o,t,e,n,r,i,l])}function ms(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 Hf(t,e){const n=t==="horizontal",{x:r,y:i}=bi(e);return n?r:i}function R5(t,e,n,r,i){const o=n==="horizontal",l=Ci(e,i);X(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");X(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const c=Hf(n,t),u=jf(a,i);X(u,`No group element found for id "${a}"`);const f=u.getBoundingClientRect(),h=o?f.width:f.height;return(c-s)/h*100}function M5(t,e,n,r,i,o){if(If(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:R5(t,e,n,r,o)}function L5({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];X(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];X(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,c=i/s;r++,e[o]=c,i-=c}return e}function Vt(t,e,n){e.forEach((r,i)=>{const o=t[i];X(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:c=0,collapsible:u}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:h,onExpand:g,onResize:b}=l;b&&b(r,f),u&&(h||g)&&(g&&(f==null||Xe(f,c))&&!Xe(r,c)&&g(),h&&(f==null||!Xe(f,c))&&Xe(r,c)&&h())}})}function fr(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 A5({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 F5(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function bs(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 zf(t){return`react-resizable-panels:${t}`}function Vf(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 Bf(t,e){try{const n=zf(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function K5(t,e,n){var r,i;const o=(r=Bf(t,n))!==null&&r!==void 0?r:{},l=Vf(e);return(i=o[l])!==null&&i!==void 0?i:null}function j5(t,e,n,r,i){var o;const l=zf(t),a=Vf(e),s=(o=Bf(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(c){console.error(c)}}function ys({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(!_e(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];X(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];X(l!=null,`No layout data found for index ${o}`);const a=rn({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!_e(i,0))for(let o=0;o<e.length;o++){const l=n[o];X(l!=null,`No layout data found for index ${o}`);const a=l+i,s=rn({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,_e(i,0)))break}return n}const H5=100,Fn={getItem:t=>(bs(Fn),Fn.getItem(t)),setItem:(t,e)=>{bs(Fn),Fn.setItem(t,e)}},Cs={};function Uf({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=Fn,style:c,tagName:u="div",...f}){const h=Kl(o),g=$e(null),[b,p]=cn(null),[v,m]=cn([]),C=T5(),S=$e({}),D=$e(new Map),$=$e(0),E=$e({autoSaveId:t,direction:r,dragState:b,id:h,keyboardResizeBy:a,onLayout:l,storage:s}),x=$e({layout:v,panelDataArray:[],panelDataArrayChanged:!1});$e({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_f(i,()=>({getId:()=>E.current.id,getLayout:()=>{const{layout:O}=x.current;return O},setLayout:O=>{const{onLayout:F}=E.current,{layout:K,panelDataArray:z}=x.current,B=ys({layout:O,panelConstraints:z.map(W=>W.constraints)});ms(K,B)||(m(B),x.current.layout=B,F&&F(B),Vt(z,B,S.current))}}),[]),xt(()=>{E.current.autoSaveId=t,E.current.direction=r,E.current.dragState=b,E.current.id=h,E.current.onLayout=l,E.current.storage=s}),N5({committedValuesRef:E,eagerValuesRef:x,groupId:h,layout:v,panelDataArray:x.current.panelDataArray,setLayout:m,panelGroupElement:g.current}),Et(()=>{const{panelDataArray:O}=x.current;if(t){if(v.length===0||v.length!==O.length)return;let F=Cs[t];F==null&&(F=F5(j5,H5),Cs[t]=F);const K=[...O],z=new Map(D.current);F(t,K,z,v,s)}},[t,v,s]),Et(()=>{});const R=Ee(O=>{const{onLayout:F}=E.current,{layout:K,panelDataArray:z}=x.current;if(O.constraints.collapsible){const B=z.map(pe=>pe.constraints),{collapsedSize:W=0,panelSize:Y,pivotIndices:Q}=vt(z,O,K);if(X(Y!=null,`Panel size not found for panel "${O.id}"`),!Xe(Y,W)){D.current.set(O.id,Y);const q=en(z,O)===z.length-1?Y-W:W-Y,te=An({delta:q,initialLayout:K,panelConstraints:B,pivotIndices:Q,prevLayout:K,trigger:"imperative-api"});fr(K,te)||(m(te),x.current.layout=te,F&&F(te),Vt(z,te,S.current))}}},[]),H=Ee((O,F)=>{const{onLayout:K}=E.current,{layout:z,panelDataArray:B}=x.current;if(O.constraints.collapsible){const W=B.map(ce=>ce.constraints),{collapsedSize:Y=0,panelSize:Q=0,minSize:pe=0,pivotIndices:q}=vt(B,O,z),te=F??pe;if(Xe(Q,Y)){const ce=D.current.get(O.id),ee=ce!=null&&ce>=te?ce:te,En=en(B,O)===B.length-1?Q-ee:ee-Q,we=An({delta:En,initialLayout:z,panelConstraints:W,pivotIndices:q,prevLayout:z,trigger:"imperative-api"});fr(z,we)||(m(we),x.current.layout=we,K&&K(we),Vt(B,we,S.current))}}},[]),j=Ee(O=>{const{layout:F,panelDataArray:K}=x.current,{panelSize:z}=vt(K,O,F);return X(z!=null,`Panel size not found for panel "${O.id}"`),z},[]),w=Ee((O,F)=>{const{panelDataArray:K}=x.current,z=en(K,O);return A5({defaultSize:F,dragState:b,layout:v,panelData:K,panelIndex:z})},[b,v]),M=Ee(O=>{const{layout:F,panelDataArray:K}=x.current,{collapsedSize:z=0,collapsible:B,panelSize:W}=vt(K,O,F);return X(W!=null,`Panel size not found for panel "${O.id}"`),B===!0&&Xe(W,z)},[]),V=Ee(O=>{const{layout:F,panelDataArray:K}=x.current,{collapsedSize:z=0,collapsible:B,panelSize:W}=vt(K,O,F);return X(W!=null,`Panel size not found for panel "${O.id}"`),!B||It(W,z)>0},[]),A=Ee(O=>{const{panelDataArray:F}=x.current;F.push(O),F.sort((K,z)=>{const B=K.order,W=z.order;return B==null&&W==null?0:B==null?-1:W==null?1:B-W}),x.current.panelDataArrayChanged=!0,C()},[C]);xt(()=>{if(x.current.panelDataArrayChanged){x.current.panelDataArrayChanged=!1;const{autoSaveId:O,onLayout:F,storage:K}=E.current,{layout:z,panelDataArray:B}=x.current;let W=null;if(O){const Q=K5(O,B,K);Q&&(D.current=new Map(Object.entries(Q.expandToSizes)),W=Q.layout)}W==null&&(W=L5({panelDataArray:B}));const Y=ys({layout:W,panelConstraints:B.map(Q=>Q.constraints)});ms(z,Y)||(m(Y),x.current.layout=Y,F&&F(Y),Vt(B,Y,S.current))}}),xt(()=>{const O=x.current;return()=>{O.layout=[]}},[]);const U=Ee(O=>{let F=!1;const K=g.current;return K&&window.getComputedStyle(K,null).getPropertyValue("direction")==="rtl"&&(F=!0),function(B){B.preventDefault();const W=g.current;if(!W)return()=>null;const{direction:Y,dragState:Q,id:pe,keyboardResizeBy:q,onLayout:te}=E.current,{layout:ce,panelDataArray:ee}=x.current,{initialLayout:rt}=Q??{},En=Kf(pe,O,W);let we=M5(B,O,Y,Q,q,W);const oa=Y==="horizontal";oa&&F&&(we=-we);const A2=ee.map(F2=>F2.constraints),xn=An({delta:we,initialLayout:rt??ce,panelConstraints:A2,pivotIndices:En,prevLayout:ce,trigger:If(B)?"keyboard":"mouse-or-touch"}),la=!fr(ce,xn);(Of(B)||kf(B))&&$.current!=we&&($.current=we,!la&&we!==0?oa?Yi(O,we<0?Rf:Mf):Yi(O,we<0?Lf:Af):Yi(O,0)),la&&(m(xn),x.current.layout=xn,te&&te(xn),Vt(ee,xn,S.current))}},[]),I=Ee((O,F)=>{const{onLayout:K}=E.current,{layout:z,panelDataArray:B}=x.current,W=B.map(ce=>ce.constraints),{panelSize:Y,pivotIndices:Q}=vt(B,O,z);X(Y!=null,`Panel size not found for panel "${O.id}"`);const q=en(B,O)===B.length-1?Y-F:F-Y,te=An({delta:q,initialLayout:z,panelConstraints:W,pivotIndices:Q,prevLayout:z,trigger:"imperative-api"});fr(z,te)||(m(te),x.current.layout=te,K&&K(te),Vt(B,te,S.current))},[]),N=Ee((O,F)=>{const{layout:K,panelDataArray:z}=x.current,{collapsedSize:B=0,collapsible:W}=F,{collapsedSize:Y=0,collapsible:Q,maxSize:pe=100,minSize:q=0}=O.constraints,{panelSize:te}=vt(z,O,K);te!=null&&(W&&Q&&Xe(te,B)?Xe(B,Y)||I(O,Y):te<q?I(O,q):te>pe&&I(O,pe))},[I]),k=Ee((O,F)=>{const{direction:K}=E.current,{layout:z}=x.current;if(!g.current)return;const B=Ci(O,g.current);X(B,`Drag handle element not found for id "${O}"`);const W=Hf(K,F);p({dragHandleId:O,dragHandleRect:B.getBoundingClientRect(),initialCursorPosition:W,initialLayout:z})},[]),G=Ee(()=>{p(null)},[]),T=Ee(O=>{const{panelDataArray:F}=x.current,K=en(F,O);K>=0&&(F.splice(K,1),delete S.current[O.id],x.current.panelDataArrayChanged=!0,C())},[C]),L=v5(()=>({collapsePanel:R,direction:r,dragState:b,expandPanel:H,getPanelSize:j,getPanelStyle:w,groupId:h,isPanelCollapsed:M,isPanelExpanded:V,reevaluatePanelConstraints:N,registerPanel:A,registerResizeHandle:U,resizePanel:I,startDragging:k,stopDragging:G,unregisterPanel:T,panelGroupElement:g.current}),[R,b,r,H,j,w,h,M,V,N,A,U,I,k,G,T]),P={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return gn(mi.Provider,{value:L},gn(u,{...f,children:e,className:n,id:o,ref:g,style:{...P,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":h}))}const Wf=Pf((t,e)=>gn(Uf,{...t,forwardedRef:e}));Uf.displayName="PanelGroup";Wf.displayName="forwardRef(PanelGroup)";function en(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function vt(t,e,n){const r=en(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function z5({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Et(()=>{if(t||n==null||r==null)return;const i=Ci(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");X(a,`No group element found for id "${a}"`);const s=Gn(a,r),c=Ff(a,e,r);X(c!==null,`No resize element found for id "${e}"`);const u=l.shiftKey?c>0?c-1:s.length-1:c+1<s.length?c+1:0;s[u].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function Gf({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:c=0,tagName:u="div",...f}){var h,g;const b=$e(null),p=$e({onDragging:l});Et(()=>{p.current.onDragging=l});const v=Df(mi);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:C,registerResizeHandle:S,startDragging:D,stopDragging:$,panelGroupElement:E}=v,x=Kl(i),[R,H]=cn("inactive"),[j,w]=cn(!1),[M,V]=cn(null),A=$e({state:R});xt(()=>{A.current.state=R}),Et(()=>{if(n)V(null);else{const k=S(x);V(()=>k)}},[n,x,S]);const U=(h=r==null?void 0:r.coarse)!==null&&h!==void 0?h:15,I=(g=r==null?void 0:r.fine)!==null&&g!==void 0?g:5;return Et(()=>{if(n||M==null)return;const k=b.current;return X(k,"Element ref not attached"),_5(x,k,m,{coarse:U,fine:I},(T,L,P)=>{if(L)switch(T){case"down":{H("drag"),X(P,'Expected event to be defined for "down" action'),D(x,P);const{onDragging:O}=p.current;O&&O(!0);break}case"move":{const{state:O}=A.current;O!=="drag"&&H("hover"),X(P,'Expected event to be defined for "move" action'),M(P);break}case"up":{H("hover"),$();const{onDragging:O}=p.current;O&&O(!1);break}}else H("inactive")})},[U,m,n,I,S,x,M,D,$]),z5({disabled:n,handleId:x,resizeHandler:M,panelGroupElement:E}),gn(u,{...f,children:t,className:e,id:i,onBlur:()=>{w(!1),o==null||o()},onFocus:()=>{w(!0),a==null||a()},ref:b,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:c,"data-panel-group-direction":m,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":R==="drag"?"pointer":j?"keyboard":void 0,"data-resize-handle-state":R,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":x})}Gf.displayName="PanelResizeHandle";const V5=({children:t,isOpen:e})=>{const{isDesktop:n}=wn();return n?y.jsx("div",{className:Pe("c__right-panel",{open:e}),children:t}):y.jsx("div",{className:Pe("c__right-panel__mobile",{open:e}),children:t})},B5=(t,e,n)=>{const[r,i]=d.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return d.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},U5=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...c})=>{const[u,f]=B5(!1,c.isLeftPanelOpen,c.setIsLeftPanelOpen),{isDesktop:h}=wn(),g=d.useRef(null),[b,p]=d.useState(hr(300,h)),[v,m]=d.useState(hr(450,h)),C=()=>{f(!u)};d.useEffect(()=>{const $=()=>{const E=Math.round(hr(300,h)),x=Math.round(Math.min(hr(450,h),40));p(h?E:0),m(a?x:E)};return $(),window.addEventListener("resize",()=>{$()}),()=>{window.removeEventListener("resize",$)}},[h,a]);const S=h?!n:!0,D=h?!n:u;return y.jsxs("div",{className:"c__main-layout",children:[y.jsx("div",{className:"c__main-layout__header",children:y.jsx(xf,{onTogglePanel:C,isPanelOpen:u,rightIcon:o,leftIcon:t,languages:l})}),y.jsx("div",{className:"c__main-layout__content",children:y.jsxs(Wf,{autoSaveId:"persistance",direction:"horizontal",children:[S&&y.jsxs(y.Fragment,{children:[y.jsx(Uo,{ref:g,order:0,defaultSize:b,minSize:b,maxSize:v,children:y.jsx($f,{isOpen:D,children:r})}),h&&y.jsx(Gf,{className:"bg-greyscale-200",style:{width:"1px"}})]}),y.jsx(Uo,{order:1,children:y.jsxs("div",{className:"c__main-layout__content__center",children:[y.jsx("div",{className:"c__main-layout__content__center__children",children:e}),y.jsx(V5,{isOpen:s,children:i})]})})]})})]})},hr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},W5=52,Vl=({size:t="sm"})=>y.jsx("div",{className:["c__spinner",t].join(" ")}),qf=({children:t,text:e,...n})=>y.jsxs("div",{className:"suite__label__container",children:[y.jsx("label",{...n,children:t}),e&&y.jsx("span",{className:"suite__label__container__description",children:e})]}),G5=({label:t,text:e,labelSide:n="right",children:r})=>y.jsxs("div",{className:Pe("c__with-label",{[n]:!0}),children:[y.jsx(qf,{children:t,text:e}),r]});var Ss=1,q5=.9,Y5=.8,Z5=.17,Zi=.1,Xi=.999,X5=.9999,J5=.99,Q5=/[\\\/_+.#"@\[\(\{&]/,e1=/[\\\/_+.#"@\[\(\{&]/g,t1=/[\s-]/,Yf=/[\s-]/g;function Go(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Ss:J5;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),c=n.indexOf(s,i),u=0,f,h,g,b;c>=0;)f=Go(t,e,n,r,c+1,o+1,l),f>u&&(c===i?f*=Ss:Q5.test(t.charAt(c-1))?(f*=Y5,g=t.slice(i,c-1).match(e1),g&&i>0&&(f*=Math.pow(Xi,g.length))):t1.test(t.charAt(c-1))?(f*=q5,b=t.slice(i,c-1).match(Yf),b&&i>0&&(f*=Math.pow(Xi,b.length))):(f*=Z5,i>0&&(f*=Math.pow(Xi,c-i))),t.charAt(c)!==e.charAt(o)&&(f*=X5)),(f<Zi&&n.charAt(c-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(c-1)!==r.charAt(o))&&(h=Go(t,e,n,r,c+1,o+2,l),h*Zi>f&&(f=h*Zi)),f>u&&(u=f),c=n.indexOf(s,c+1);return l[a]=u,u}function ws(t){return t.toLowerCase().replace(Yf," ")}function n1(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Go(t,e,ws(t),ws(e),0,0,{})}function dt(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 Es(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Zf(...t){return e=>{let n=!1;const r=t.map(i=>{const o=Es(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():Es(t[i],null)}}}}function Kt(...t){return _.useCallback(Zf(...t),t)}function r1(t,e){const n=_.createContext(e),r=o=>{const{children:l,...a}=o,s=_.useMemo(()=>a,Object.values(a));return y.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=_.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 i1(t,e=[]){let n=[];function r(o,l){const a=_.createContext(l),s=n.length;n=[...n,l];const c=f=>{var m;const{scope:h,children:g,...b}=f,p=((m=h==null?void 0:h[t])==null?void 0:m[s])||a,v=_.useMemo(()=>b,Object.values(b));return y.jsx(p.Provider,{value:v,children:g})};c.displayName=o+"Provider";function u(f,h){var p;const g=((p=h==null?void 0:h[t])==null?void 0:p[s])||a,b=_.useContext(g);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,u]}const i=()=>{const o=n.map(l=>_.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return _.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,o1(i,...e)]}function o1(...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:c})=>{const f=s(o)[`__scope${c}`];return{...a,...f}},{});return _.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var qn=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},l1=_[" useId ".trim().toString()]||(()=>{}),a1=0;function Qe(t){const[e,n]=_.useState(l1());return qn(()=>{n(r=>r??String(a1++))},[t]),e?`radix-${e}`:""}var s1=_[" useInsertionEffect ".trim().toString()]||qn;function c1({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,o,l]=u1({defaultProp:e,onChange:n}),a=t!==void 0,s=a?t:i;{const u=_.useRef(t!==void 0);_.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=_.useCallback(u=>{var f;if(a){const h=d1(u)?u(t):u;h!==t&&((f=l.current)==null||f.call(l,h))}else o(u)},[a,t,o,l]);return[s,c]}function u1({defaultProp:t,onChange:e}){const[n,r]=_.useState(t),i=_.useRef(n),o=_.useRef(e);return s1(()=>{o.current=e},[e]),_.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function d1(t){return typeof t=="function"}function Xf(t){const e=f1(t),n=_.forwardRef((r,i)=>{const{children:o,...l}=r,a=_.Children.toArray(o),s=a.find(p1);if(s){const c=s.props.children,u=a.map(f=>f===s?_.Children.count(c)>1?_.Children.only(null):_.isValidElement(c)?c.props.children:null:f);return y.jsx(e,{...l,ref:i,children:_.isValidElement(c)?_.cloneElement(c,void 0,u):null})}return y.jsx(e,{...l,ref:i,children:o})});return n.displayName=`${t}.Slot`,n}function f1(t){const e=_.forwardRef((n,r)=>{const{children:i,...o}=n;if(_.isValidElement(i)){const l=g1(i),a=v1(o,i.props);return i.type!==_.Fragment&&(a.ref=r?Zf(r,l):l),_.cloneElement(i,a)}return _.Children.count(i)>1?_.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var h1=Symbol("radix.slottable");function p1(t){return _.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===h1}function v1(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)=>{const s=o(...a);return i(...a),s}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function g1(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 m1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=m1.reduce((t,e)=>{const n=Xf(`Primitive.${e}`),r=_.forwardRef((i,o)=>{const{asChild:l,...a}=i,s=l?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(s,{...a,ref:o})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function b1(t,e){t&&K2.flushSync(()=>t.dispatchEvent(e))}function Yn(t){const e=_.useRef(t);return _.useEffect(()=>{e.current=t}),_.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function y1(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(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 C1="DismissableLayer",qo="dismissableLayer.update",S1="dismissableLayer.pointerDownOutside",w1="dismissableLayer.focusOutside",xs,Jf=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qf=_.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,c=_.useContext(Jf),[u,f]=_.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=_.useState({}),b=Kt(e,x=>f(x)),p=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(v),C=u?p.indexOf(u):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,D=C>=m,$=$1(x=>{const R=x.target,H=[...c.branches].some(j=>j.contains(R));!D||H||(i==null||i(x),l==null||l(x),x.defaultPrevented||a==null||a())},h),E=P1(x=>{const R=x.target;[...c.branches].some(j=>j.contains(R))||(o==null||o(x),l==null||l(x),x.defaultPrevented||a==null||a())},h);return y1(x=>{C===c.layers.size-1&&(r==null||r(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},h),_.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(xs=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),$s(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=xs)}},[u,h,n,c]),_.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),$s())},[u,c]),_.useEffect(()=>{const x=()=>g({});return document.addEventListener(qo,x),()=>document.removeEventListener(qo,x)},[]),y.jsx(me.div,{...s,ref:b,style:{pointerEvents:S?D?"auto":"none":void 0,...t.style},onFocusCapture:dt(t.onFocusCapture,E.onFocusCapture),onBlurCapture:dt(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:dt(t.onPointerDownCapture,$.onPointerDownCapture)})});Qf.displayName=C1;var E1="DismissableLayerBranch",x1=_.forwardRef((t,e)=>{const n=_.useContext(Jf),r=_.useRef(null),i=Kt(e,r);return _.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y.jsx(me.div,{...t,ref:i})});x1.displayName=E1;function $1(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){e0(S1,n,c,{discrete:!0})};const c={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 P1(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t),r=_.useRef(!1);return _.useEffect(()=>{const i=o=>{o.target&&!r.current&&e0(w1,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 $s(){const t=new CustomEvent(qo);document.dispatchEvent(t)}function e0(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?b1(i,o):i.dispatchEvent(o)}var Ji="focusScope.autoFocusOnMount",Qi="focusScope.autoFocusOnUnmount",Ps={bubbles:!1,cancelable:!0},D1="FocusScope",t0=_.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=_.useState(null),c=Yn(i),u=Yn(o),f=_.useRef(null),h=Kt(e,p=>s(p)),g=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let p=function(S){if(g.paused||!a)return;const D=S.target;a.contains(D)?f.current=D:ot(f.current,{select:!0})},v=function(S){if(g.paused||!a)return;const D=S.relatedTarget;D!==null&&(a.contains(D)||ot(f.current,{select:!0}))},m=function(S){if(document.activeElement===document.body)for(const $ of S)$.removedNodes.length>0&&ot(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const C=new MutationObserver(m);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),C.disconnect()}}},[r,a,g.paused]),_.useEffect(()=>{if(a){_s.add(g);const p=document.activeElement;if(!a.contains(p)){const m=new CustomEvent(Ji,Ps);a.addEventListener(Ji,c),a.dispatchEvent(m),m.defaultPrevented||(_1(N1(n0(a)),{select:!0}),document.activeElement===p&&ot(a))}return()=>{a.removeEventListener(Ji,c),setTimeout(()=>{const m=new CustomEvent(Qi,Ps);a.addEventListener(Qi,u),a.dispatchEvent(m),m.defaultPrevented||ot(p??document.body,{select:!0}),a.removeEventListener(Qi,u),_s.remove(g)},0)}}},[a,c,u,g]);const b=_.useCallback(p=>{if(!n&&!r||g.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,m=document.activeElement;if(v&&m){const C=p.currentTarget,[S,D]=T1(C);S&&D?!p.shiftKey&&m===D?(p.preventDefault(),n&&ot(S,{select:!0})):p.shiftKey&&m===S&&(p.preventDefault(),n&&ot(D,{select:!0})):m===C&&p.preventDefault()}},[n,r,g.paused]);return y.jsx(me.div,{tabIndex:-1,...l,ref:h,onKeyDown:b})});t0.displayName=D1;function _1(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(ot(r,{select:e}),document.activeElement!==n)return}function T1(t){const e=n0(t),n=Ds(e,t),r=Ds(e.reverse(),t);return[n,r]}function n0(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 Ds(t,e){for(const n of t)if(!I1(n,{upTo:e}))return n}function I1(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 O1(t){return t instanceof HTMLInputElement&&"select"in t}function ot(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&O1(t)&&e&&t.select()}}var _s=k1();function k1(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Ts(t,e),t.unshift(e)},remove(e){var n;t=Ts(t,e),(n=t[0])==null||n.resume()}}}function Ts(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function N1(t){return t.filter(e=>e.tagName!=="A")}var R1="Portal",r0=_.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=_.useState(!1);qn(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Mt.createPortal(y.jsx(me.div,{...r,ref:e}),l):null});r0.displayName=R1;function M1(t,e){return _.useReducer((n,r)=>e[n][r]??n,t)}var Si=t=>{const{present:e,children:n}=t,r=L1(e),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),o=Kt(r.ref,A1(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:o}):null};Si.displayName="Presence";function L1(t){const[e,n]=_.useState(),r=_.useRef(null),i=_.useRef(t),o=_.useRef("none"),l=t?"mounted":"unmounted",[a,s]=M1(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const c=pr(r.current);o.current=a==="mounted"?c:"none"},[a]),qn(()=>{const c=r.current,u=i.current;if(u!==t){const h=o.current,g=pr(c);t?s("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(u&&h!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),qn(()=>{if(e){let c;const u=e.ownerDocument.defaultView??window,f=g=>{const p=pr(r.current).includes(g.animationName);if(g.target===e&&p&&(s("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",c=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},h=g=>{g.target===e&&(o.current=pr(r.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{u.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:_.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function pr(t){return(t==null?void 0:t.animationName)||"none"}function A1(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 eo=0;function F1(){_.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Is()),document.body.insertAdjacentElement("beforeend",t[1]??Is()),eo++,()=>{eo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),eo--}},[])}function Is(){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 $r="right-scroll-bar-position",Pr="width-before-scroll-bar",K1="with-scroll-bars-hidden",j1="--removed-body-scroll-bar-size";function to(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function H1(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 z1=typeof window<"u"?_.useLayoutEffect:_.useEffect,Os=new WeakMap;function V1(t,e){var n=H1(null,function(r){return t.forEach(function(i){return to(i,r)})});return z1(function(){var r=Os.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||to(a,null)}),o.forEach(function(a){i.has(a)||to(a,l)})}Os.set(n,t)},[t]),n}function B1(t){return t}function U1(t,e){e===void 0&&(e=B1);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 u=l;l=[],u.forEach(o)},c=function(){return Promise.resolve().then(s)};c(),n={push:function(u){l.push(u),c()},filter:function(u){return l=l.filter(u),n}}}};return i}function W1(t){t===void 0&&(t={});var e=U1(null);return e.options=Ge({async:!0,ssr:!1},t),e}var i0=function(t){var e=t.sideCar,n=mu(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 _.createElement(r,Ge({},n))};i0.isSideCarExport=!0;function G1(t,e){return t.useMedium(e),i0}var o0=W1(),no=function(){},wi=_.forwardRef(function(t,e){var n=_.useRef(null),r=_.useState({onScrollCapture:no,onWheelCapture:no,onTouchMoveCapture:no}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,c=t.removeScrollBar,u=t.enabled,f=t.shards,h=t.sideCar,g=t.noRelative,b=t.noIsolation,p=t.inert,v=t.allowPinchZoom,m=t.as,C=m===void 0?"div":m,S=t.gapMode,D=mu(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=h,E=V1([n,e]),x=Ge(Ge({},D),i);return _.createElement(_.Fragment,null,u&&_.createElement($,{sideCar:o0,removeScrollBar:c,shards:f,noRelative:g,noIsolation:b,inert:p,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:S}),l?_.cloneElement(_.Children.only(a),Ge(Ge({},x),{ref:E})):_.createElement(C,Ge({},x,{className:s,ref:E}),a))});wi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wi.classNames={fullWidth:Pr,zeroRight:$r};var q1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Y1(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=q1();return e&&t.setAttribute("nonce",e),t}function Z1(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function X1(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var J1=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Y1())&&(Z1(e,n),X1(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Q1=function(){var t=J1();return function(e,n){_.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},l0=function(){var t=Q1(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},em={left:0,top:0,right:0,gap:0},ro=function(t){return parseInt(t||"",10)||0},tm=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[ro(n),ro(r),ro(i)]},nm=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return em;var e=tm(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])}},rm=l0(),dn="data-scroll-locked",im=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
|
|
44
|
+
*/var _a;function mp(){return _a||(_a=1,process.env.NODE_ENV!=="production"&&function(){function t(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}function e(v,b){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=b();if(!f){var g=b();o(p,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}g=l({inst:{value:p,getSnapshot:b}});var m=g[0].inst,C=g[1];return s(function(){m.value=p,m.getSnapshot=b,n(m)&&C({inst:m})},[v,p,b]),a(function(){return n(m)&&C({inst:m}),v(function(){n(m)&&C({inst:m})})},[v]),c(p),p}function n(v){var b=v.getSnapshot;v=v.value;try{var p=b();return!o(v,p)}catch{return!0}}function r(v,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue,d=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Hi.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Hi}var Ta;function bp(){return Ta||(Ta=1,process.env.NODE_ENV==="production"?cr.exports=gp():cr.exports=mp()),cr.exports}var $l=bp();const vu=u.createContext(!1),Un=u.createContext(null);function hi(t){if(u.useContext(Un))return t.content;let{collection:n,document:r}=wp(t.createCollection);return u.createElement(u.Fragment,null,u.createElement(Wh,null,u.createElement(Un.Provider,{value:r},t.content)),u.createElement(yp,{render:t.children,collection:n}))}function yp({collection:t,render:e}){return e(t)}function Cp(t,e,n){let r=Qn(),i=u.useRef(r);i.current=r;let o=u.useCallback(()=>i.current?n():e(),[e,n]);return $l.useSyncExternalStore(t,o)}const Sp=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:Cp;function wp(t){let[e]=u.useState(()=>new Uh((t==null?void 0:t())||new yl)),n=u.useCallback(l=>e.subscribe(l),[e]),r=u.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=u.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Sp(n,r,i);return ne(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Ro=u.createContext(null);function xp(t,e,n,r,i,o){let l=u.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=u.useContext(Ro);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?u.createElement(Ro.Provider,{value:s},i):null}return u.createElement(t,{ref:l},i)}function pi(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=u.forwardRef((i,o)=>{let l=u.useContext(ko);if(!u.useContext(vu)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return xp(t,i,o,"children"in i?i.children:null,null,s=>u.createElement(ko.Provider,{value:l},u.createElement(n,{node:s})))});return r.displayName=e.name,r}function Ep(t){return nu({...t,addIdAndValue:!0})}const Ia=u.createContext(null);function Pl(t){let e=u.useContext(Ia),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=Ep({...t,idScope:r,dependencies:n});return u.useContext(Un)&&(i=u.createElement($p,null,i)),e=u.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),u.createElement(Ia.Provider,{value:e},i)}function $p({children:t}){let e=u.useContext(Un),n=u.useMemo(()=>u.createElement(Un.Provider,{value:null},u.createElement(vu.Provider,{value:!0},t)),[t]);return Qn()?u.createElement(Ro.Provider,{value:e},n):Lt.createPortal(n,e)}const Pp=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Dp=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function _p(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 Pp.has(n.script)}let e=t.split("-")[0];return Dp.has(e)}const Tp=Symbol.for("react-aria.i18n.locale");function gu(){let t=typeof window<"u"&&window[Tp]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:_p(t)?"rtl":"ltr"}}let Mo=gu(),Mn=new Set;function Oa(){Mo=gu();for(let t of Mn)t(Mo)}function Ip(){let t=Qn(),[e,n]=u.useState(Mo);return u.useEffect(()=>(Mn.size===0&&window.addEventListener("languagechange",Oa),Mn.add(n),()=>{Mn.delete(n),Mn.size===0&&window.removeEventListener("languagechange",Oa)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Op=u.createContext(null);function Ft(){let t=Ip();return u.useContext(Op)||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 mu(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 kp(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 Np=Symbol.for("react-aria.i18n.locale"),Rp=Symbol.for("react-aria.i18n.strings");let zt;class vi{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=Mp(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Np];if(zt===void 0){let i=window[Rp];if(!i)return null;zt={};for(let o in i)zt[o]=new vi({[n]:i[o]},n)}let r=zt==null?void 0:zt[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 Mp(t,e,n="en-US"){if(e[t])return e[t];let r=Lp(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function Lp(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ka=new Map,Na=new Map;class Ap{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=ka.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),ka.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Na.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Na.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 Ra=new WeakMap;function Fp(t){let e=Ra.get(t);return e||(e=new vi(t),Ra.set(t,e)),e}function Kp(t,e){return e&&vi.getGlobalDictionaryForPackage(e)||Fp(t)}function bu(t,e){let{locale:n}=Ft(),r=Kp(t,e);return u.useMemo(()=>new Ap(n,r),[n,r])}let zi=new Map;function Dl(t){let{locale:e}=Ft(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(zi.has(n))return zi.get(n);let r=new Intl.Collator(e,t);return zi.set(n,r),r}function jp(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:h,target:v,rel:b,type:p="button"}=t,g;n==="button"?g={type:p,disabled:r}:g={role:"button",href:n==="a"&&!r?h:void 0,target:n==="a"?v: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"?b:void 0};let{pressProps:m,isPressed:C}=ui({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:S}=hu(t,e);d&&(S.tabIndex=r?-1:S.tabIndex);let P=re(S,m,pe(t,{labelable:!0}));return{isPressed:C,buttonProps:re(g,P,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"]})}}function Hp(t){const e=Me(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 zp(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 yu(t,e){return t.nodeName!=="#comment"&&Hp(t)&&zp(t,e)&&(!t.parentElement||yu(t.parentElement,t))}const Ma=u.createContext(null),Lo="react-aria-focus-scope-restore";let ae=null;function _l(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=u.useRef(null),l=u.useRef(null),a=u.useRef([]),{parentNode:s}=u.useContext(Ma)||{},c=u.useMemo(()=>new Fo({scopeRef:a}),[a]);ne(()=>{let h=s||fe.root;if(fe.getTreeNode(h.scopeRef)&&ae&&!Br(ae,h.scopeRef)){let v=fe.getTreeNode(ae);v&&(h=v)}h.addChild(c),fe.addNode(c)},[c,s]),ne(()=>{let h=fe.getTreeNode(a);h&&(h.contain=!!n)},[n]),ne(()=>{var h;let v=(h=o.current)===null||h===void 0?void 0:h.nextSibling,b=[],p=g=>g.stopPropagation();for(;v&&v!==l.current;)b.push(v),v.addEventListener(Lo,p),v=v.nextSibling;return a.current=b,()=>{for(let g of b)g.removeEventListener(Lo,p)}},[e]),Gp(a,r,n),Bp(a,n),qp(a,r,n),Wp(a,i),u.useEffect(()=>{const h=Ce(oe(a.current?a.current[0]:void 0));let v=null;if(Ae(h,a.current)){for(let b of fe.traverse())b.scopeRef&&Ae(h,b.scopeRef.current)&&(v=b);v===fe.getTreeNode(a)&&(ae=v.scopeRef)}},[a]),ne(()=>()=>{var h,v,b;let p=(b=(v=fe.getTreeNode(a))===null||v===void 0||(h=v.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&b!==void 0?b:null;(a===ae||Br(a,ae))&&(!p||fe.getTreeNode(p))&&(ae=p),fe.removeTreeNode(a)},[a]);let d=u.useMemo(()=>Vp(a),[]),f=u.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return u.createElement(Ma.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Vp(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Ce(oe((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[0].previousElementSibling,d=Ct(n),f=qe(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&Je(h,!0),h},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Ce(oe((a=n[0])!==null&&a!==void 0?a:void 0)),c=n[n.length-1].nextElementSibling,d=Ct(n),f=qe(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&Je(h,!0),h},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ct(n),l=qe(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&Je(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ct(n),l=qe(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&Je(a,!0),a}}}function Ct(t){return t[0].parentElement}function Ln(t){let e=fe.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Bp(t,e){let n=u.useRef(void 0),r=u.useRef(void 0);ne(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=oe(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Ln(t)||c.isComposing)return;let d=Ce(o),f=t.current;if(!f||!Ae(d,f))return;let h=Ct(f),v=qe(h,{tabbable:!0},f);if(!d)return;v.currentNode=d;let b=c.shiftKey?v.previousNode():v.nextNode();b||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),b&&Je(b,!0)},a=c=>{(!ae||Br(ae,t))&&Ae(ie(c),t.current)?(ae=t,n.current=ie(c)):Ln(t)&&!ut(ie(c),t)?n.current?n.current.focus():ae&&ae.current&&Ao(ae.current):Ln(t)&&(n.current=ie(c))},s=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=zr(),f=(d==="virtual"||d===null)&&hl()&&qc(),h=Ce(o);if(!f&&h&&Ln(t)&&!ut(h,t)){ae=t;let b=ie(c);if(b&&b.isConnected){var v;n.current=b,(v=n.current)===null||v===void 0||v.focus()}else ae.current&&Ao(ae.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(c=>c.addEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",a,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",s,!1))}},[t,e]),ne(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Cu(t){return ut(t)}function Ae(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function ut(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of fe.traverse(fe.getTreeNode(e)))if(n&&Ae(t,n.current))return!0;return!1}function Up(t){return ut(t,ae)}function Br(t,e){var n;let r=(n=fe.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Je(t,e=!1){if(t!=null&&!e)try{vn(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Su(t,e=!0){let n=t[0].previousElementSibling,r=Ct(t),i=qe(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ct(t),i=qe(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Ao(t,e=!0){Je(Su(t,e))}function Wp(t,e){const n=u.useRef(e);u.useEffect(()=>{if(n.current){ae=t;const r=oe(t.current?t.current[0]:void 0);!Ae(Ce(r),ae.current)&&t.current&&Ao(t.current)}n.current=!1},[t])}function Gp(t,e,n){ne(()=>{if(e||n)return;let r=t.current;const i=oe(r?r[0]:void 0);let o=l=>{let a=ie(l);Ae(a,t.current)?ae=t:Cu(a)||(ae=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 La(t){let e=fe.getTreeNode(ae);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function qp(t,e,n){const r=u.useRef(typeof document<"u"?Ce(oe(t.current?t.current[0]:void 0)):null);ne(()=>{let i=t.current;const o=oe(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!ae||Br(ae,t))&&Ae(Ce(o),t.current)&&(ae=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]),ne(()=>{const i=oe(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Ln(t)||l.isComposing)return;let a=i.activeElement;if(!ut(a,t)||!La(t))return;let s=fe.getTreeNode(t);if(!s)return;let c=s.nodeToRestore,d=qe(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,s.nodeToRestore=void 0),(!f||!ut(f,t))&&c){d.currentNode=c;do f=l.shiftKey?d.previousNode():d.nextNode();while(ut(f,t));l.preventDefault(),l.stopPropagation(),f?Je(f,!0):Cu(c)?Je(c,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),ne(()=>{const i=oe(t.current?t.current[0]:void 0);if(!e)return;let o=fe.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=fe.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,c=Ce(i);if(e&&s&&(c&&ut(c,t)||c===i.body&&La(t))){let d=fe.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Aa(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&fe.getTreeNode(f.scopeRef)){let h=Su(f.scopeRef.current,!0);Aa(h);return}f=f.parent}}})}}}},[t,e])}function Aa(t){t.dispatchEvent(new CustomEvent(Lo,{bubbles:!0,cancelable:!0}))&&Je(t)}function qe(t,e,n){let r=e!=null&&e.tabbable?Vh:eu,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=oe(i),l=vh(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&yu(a)&&(!n||Ae(a,n))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Tl{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 Fo({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&&Ae(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 Tl;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 Fo({scopeRef:null}),this.fastMap.set(null,this.root)}}class Fo{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 fe=new Tl;function Sn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=u.useRef({isFocused:!1,isFocusVisible:e||pn()}),[o,l]=u.useState(!1),[a,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=u.useCallback(v=>{i.current.isFocused=v,l(v),c()},[c]);up(v=>{i.current.isFocusVisible=v,c()},[],{isTextInput:n});let{focusProps:f}=El({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=fi({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?h:f}}function Yp(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=u.useState(!1);return ne(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=qe(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}function wu(t){let e=Jp(oe(t));e!==t&&(e&&Zp(e,t),t&&Xp(t,e))}function Zp(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Xp(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Jp(t){let e=Ce(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const xu=7e3;let Be=null;function Fa(t,e="assertive",n=xu){Be?Be.announce(t,e,n):(Be=new Qp,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Be.announce(t,e,n):setTimeout(()=>{Be!=null&&Be.isAttached()&&(Be==null||Be.announce(t,e,n))},100))}class Qp{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=xu){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))}}const Eu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$u={...Eu,customError:!0,valid:!1},Dn={isInvalid:!1,validationDetails:Eu,validationErrors:[]},ev=u.createContext({}),Ka="__formValidationState"+Date.now();function tv(t){if(t[Ka]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Ka];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return nv(t)}function nv(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:$u}:null,c=u.useMemo(()=>{if(!l||i==null)return null;let j=rv(l,i);return ja(j)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=u.useContext(ev),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>Ko(d[j])):Ko(d[r]):[],[d,r]),[h,v]=u.useState(d),[b,p]=u.useState(!1);d!==h&&(v(d),p(!1));let g=u.useMemo(()=>ja(b?[]:f),[b,f]),m=u.useRef(Dn),[C,S]=u.useState(Dn),P=u.useRef(Dn),$=()=>{if(!x)return;E(!1);let j=c||o||m.current;Vi(j,P.current)||(P.current=j,S(j))},[x,E]=u.useState(!1);return u.useEffect($),{realtimeValidation:s||g||c||o||Dn,displayValidation:a==="native"?s||g||C:s||g||c||o||C,updateValidation(j){a==="aria"&&!Vi(C,j)?S(j):m.current=j},resetValidation(){let j=Dn;Vi(j,P.current)||(P.current=j,S(j)),a==="native"&&E(!1),p(!0)},commitValidation(){a==="native"&&E(!0),p(!0)}}}function Ko(t){return t?Array.isArray(t)?t:[t]:[]}function rv(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Ko(n)}return[]}function ja(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:$u}:null}function Vi(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 iv(t,e,n){let{validationBehavior:r,focus:i}=t;ne(()=>{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(lv(n.current))}});let o=he(()=>{e.resetValidation()}),l=he(s=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!s.defaultPrevented&&n&&d&&av(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),du("keyboard")}s.preventDefault()}),a=he(()=>{e.commitValidation()});u.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let c=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),c==null||c.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),c==null||c.removeEventListener("reset",o)}},[n,l,a,o,r])}function ov(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 lv(t){return{isInvalid:!t.validity.valid,validationDetails:ov(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function av(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function Pu(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Se(e);let l=Se(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=ai({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function sv(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=Pu(t),a=xt([!!e,!!n,r,i]),s=xt([!!e,!!n,r,i]);return l=re(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Ha={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 Du(t={}){let{style:e,isFocusable:n}=t,[r,i]=u.useState(!1),{focusWithinProps:o}=fi({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=u.useMemo(()=>r?e:e?{...Ha,...e}:Ha,[r]);return{visuallyHiddenProps:{...o,style:l}}}function cv(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=Du(t);return u.createElement(n,re(o,l),e)}const Ye={top:"top",bottom:"top",left:"left",right:"left"},Ur={top:"bottom",bottom:"top",left:"right",right:"left"},uv={top:"left",left:"top"},jo={top:"height",left:"width"},_u={width:"totalWidth",height:"totalHeight"},ur={};let ve=typeof document<"u"?window.visualViewport:null;function za(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let c=((s=ve==null?void 0:ve.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let b=document.documentElement;r=b.clientWidth,i=b.clientHeight;var d;e=(d=ve==null?void 0:ve.width)!==null&&d!==void 0?d:r;var f;n=(f=ve==null?void 0:ve.height)!==null&&f!==void 0?f:i,a.top=b.scrollTop||t.scrollTop,a.left=b.scrollLeft||t.scrollLeft,ve&&(o=ve.offsetTop,l=ve.offsetLeft)}else({width:e,height:n,top:o,left:l}=cn(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(fl()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){a.top=0,a.left=0;var h;o=(h=ve==null?void 0:ve.pageTop)!==null&&h!==void 0?h:0;var v;l=(v=ve==null?void 0:ve.pageLeft)!==null&&v!==void 0?v:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function dv(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Va(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,c=r[jo[t]],d=r.scroll[Ye[t]]+o,f=c+r.scroll[Ye[t]]-o,h=e-s+l[t]-r[Ye[t]],v=e-s+n+l[t]-r[Ye[t]];return h<d?d-h:v>f?Math.max(f-v,d-h):0}function fv(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 Ba(t){if(ur[t])return ur[t];let[e,n]=t.split(" "),r=Ye[e]||"right",i=uv[r];Ye[n]||(n="center");let o=jo[r],l=jo[i];return ur[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},ur[t]}function Bi(t,e,n,r,i,o,l,a,s,c){let{placement:d,crossPlacement:f,axis:h,crossAxis:v,size:b,crossSize:p}=r,g={};var m;g[v]=(m=t[v])!==null&&m!==void 0?m:0;var C,S,P,$;f==="center"?g[v]+=(((C=t[p])!==null&&C!==void 0?C:0)-((S=n[p])!==null&&S!==void 0?S:0))/2:f!==v&&(g[v]+=((P=t[p])!==null&&P!==void 0?P:0)-(($=n[p])!==null&&$!==void 0?$:0)),g[v]+=o;const x=t[v]-n[p]+s+c,E=t[v]+t[p]-s-c;if(g[v]=Do(g[v],x,E),d===h){const N=a?l[b]:e[_u[b]];g[Ur[h]]=Math.floor(N-t[h]+i)}else g[h]=Math.floor(t[h]+t[b]+i);return g}function hv(t,e,n,r,i,o,l,a){const s=r?n.height:e[_u.height];var c;let d=t.top!=null?n.top+t.top:n.top+(s-((c=t.bottom)!==null&&c!==void 0?c:0)-l);var f,h,v,b,p,g;let m=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((h=i.top)!==null&&h!==void 0?h:0)+((v=i.bottom)!==null&&v!==void 0?v:0)+o)):Math.max(0,d+l-(e.top+((b=e.scroll.top)!==null&&b!==void 0?b:0))-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o));return Math.min(e.height-o*2,m)}function Ua(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var c,d;if(l===a)return Math.max(0,n[a]-t[a]-((c=t.scroll[a])!==null&&c!==void 0?c:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[Ur[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[Ur[a]]-i)}function pv(t,e,n,r,i,o,l,a,s,c,d,f,h,v,b,p){let g=Ba(t),{size:m,crossAxis:C,crossSize:S,placement:P,crossPlacement:$}=g,x=Bi(e,a,n,g,d,f,c,h,b,p),E=d,N=Ua(a,c,e,i,o+d,g);if(l&&r[m]>N){let K=Ba(`${Ur[P]} ${$}`),M=Bi(e,a,n,K,d,f,c,h,b,p);Ua(a,c,e,i,o+d,K)>N&&(g=K,x=M,E=d)}let H="bottom";g.axis==="top"?g.placement==="top"?H="top":g.placement==="bottom"&&(H="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?H="bottom":g.crossPlacement==="bottom"&&(H="top"));let j=Va(C,x[C],n[S],a,s,o,c);x[C]+=j;let w=hv(x,a,c,h,i,o,n.height,H);v&&v<w&&(w=v),n.height=Math.min(n.height,w),x=Bi(e,a,n,g,E,f,c,h,b,p),j=Va(C,x[C],n[S],a,s,o,c),x[C]+=j;let A={},B=e[C]+.5*e[S]-x[C]-i[Ye[C]];const L=b/2+p;var U,I,R,k;const G=Ye[C]==="left"?((U=i.left)!==null&&U!==void 0?U:0)+((I=i.right)!==null&&I!==void 0?I:0):((R=i.top)!==null&&R!==void 0?R:0)+((k=i.bottom)!==null&&k!==void 0?k:0),T=n[S]-G-b/2-p,F=e[C]+b/2-(x[C]+i[Ye[C]]),_=e[C]+e[S]-b/2-(x[C]+i[Ye[C]]),O=Do(B,F,_);return A[C]=Do(O,L,T),{position:x,maxHeight:w,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:g.placement}}function vv(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:h=0}=t,v=r instanceof HTMLElement?gv(r):document.documentElement,b=v===document.documentElement;const p=window.getComputedStyle(v).position;let g=!!p&&p!=="static",m=b?cn(n):Wa(n,v);if(!b){let{marginTop:A,marginLeft:B}=window.getComputedStyle(n);m.top+=parseInt(A,10)||0,m.left+=parseInt(B,10)||0}let C=cn(r),S=fv(r);var P,$;C.width+=((P=S.left)!==null&&P!==void 0?P:0)+(($=S.right)!==null&&$!==void 0?$:0);var x,E;C.height+=((x=S.top)!==null&&x!==void 0?x:0)+((E=S.bottom)!==null&&E!==void 0?E:0);let N=dv(i),H=za(a),j=za(v),w=a.tagName==="BODY"?cn(v):Wa(v,a);return v.tagName==="HTML"&&a.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),pv(e,m,C,N,S,o,l,H,j,w,s,c,g,d,f,h)}function cn(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 Wa(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=cn(t);let i=cn(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 gv(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Ga(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Ga(e);)e=e.parentElement;return e||document.documentElement}function Ga(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 Tu=new WeakMap;function mv(t){let{triggerRef:e,isOpen:n,onClose:r}=t;u.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||Tu.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let de=typeof document<"u"?window.visualViewport:null;function bv(t){let{direction:e}=Ft(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:h=!0,isOpen:v=!0,onClose:b,maxHeight:p,arrowBoundaryOffset:g=0}=t,[m,C]=u.useState(null),S=[h,l,i.current,r.current,o.current,a,s,c,d,f,v,e,p,g,n],P=u.useRef(de==null?void 0:de.scale);u.useEffect(()=>{v&&(P.current=de==null?void 0:de.scale)},[v]);let $=u.useCallback(()=>{if(h===!1||!v||!i.current||!r.current||!c||(de==null?void 0:de.scale)!==P.current)return;let j=null;if(o.current&&o.current.contains(document.activeElement)){var w;let k=(w=document.activeElement)===null||w===void 0?void 0:w.getBoundingClientRect(),G=o.current.getBoundingClientRect();var A;if(j={type:"top",offset:((A=k==null?void 0:k.top)!==null&&A!==void 0?A:0)-G.top},j.offset>G.height/2){j.type="bottom";var B;j.offset=((B=k==null?void 0:k.bottom)!==null&&B!==void 0?B:0)-G.bottom}}let L=i.current;if(!p&&i.current){var U;L.style.top="0px",L.style.bottom="";var I;L.style.maxHeight=((I=(U=window.visualViewport)===null||U===void 0?void 0:U.height)!==null&&I!==void 0?I:window.innerHeight)+"px"}let R=vv({placement:Cv(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:c,offset:d,crossOffset:f,maxHeight:p,arrowSize:n,arrowBoundaryOffset:g});if(R.position){if(L.style.top="",L.style.bottom="",L.style.left="",L.style.right="",Object.keys(R.position).forEach(k=>L.style[k]=R.position[k]+"px"),L.style.maxHeight=R.maxHeight!=null?R.maxHeight+"px":"",j&&document.activeElement&&o.current){let k=document.activeElement.getBoundingClientRect(),G=o.current.getBoundingClientRect(),T=k[j.type]-G[j.type];o.current.scrollTop+=T-j.offset}C(R)}},S);ne($,S),yv($),$o({ref:i,onResize:$}),$o({ref:r,onResize:$});let x=u.useRef(!1);ne(()=>{let j,w=()=>{x.current=!0,clearTimeout(j),j=setTimeout(()=>{x.current=!1},500),$()},A=()=>{x.current&&w()};return de==null||de.addEventListener("resize",w),de==null||de.addEventListener("scroll",A),()=>{de==null||de.removeEventListener("resize",w),de==null||de.removeEventListener("scroll",A)}},[$]);let E=u.useCallback(()=>{x.current||b==null||b()},[b,x]);mv({triggerRef:r,isOpen:v,onClose:b&&E});var N,H;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(N=m==null?void 0:m.maxHeight)!==null&&N!==void 0?N:"100vh"}},placement:(H=m==null?void 0:m.placement)!==null&&H!==void 0?H:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:$}}function yv(t){ne(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Cv(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Ue=[];function Sv(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;u.useEffect(()=>{if(i&&!Ue.includes(e))return Ue.push(e),()=>{let b=Ue.indexOf(e);b>=0&&Ue.splice(b,1)}},[i,e]);let s=()=>{Ue[Ue.length-1]===e&&n&&n()},c=b=>{(!a||a(b.target))&&Ue[Ue.length-1]===e&&(b.stopPropagation(),b.preventDefault())},d=b=>{(!a||a(b.target))&&(Ue[Ue.length-1]===e&&(b.stopPropagation(),b.preventDefault()),s())},f=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),s())};pp({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:h}=fi({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||Up(b.relatedTarget)||(!a||a(b.relatedTarget))&&(n==null||n())}}),v=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...h},underlayProps:{onPointerDown:v}}}function wv(t,e,n){let{type:r}=t,{isOpen:i}=e;u.useEffect(()=>{n&&n.current&&Tu.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=Se();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Ui=typeof document<"u"&&window.visualViewport,xv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let dr=0,Wi;function Ev(t={}){let{isDisabled:e}=t;ne(()=>{if(!e)return dr++,dr===1&&(ii()?Wi=Pv():Wi=$v()),()=>{dr--,dr===0&&Wi()}},[e])}function $v(){let t=window.innerWidth-document.documentElement.clientWidth;return Dt(t>0&&("scrollbarGutter"in document.documentElement.style?St(document.documentElement,"scrollbarGutter","stable"):St(document.documentElement,"paddingRight",`${t}px`)),St(document.documentElement,"overflow","hidden"))}function Pv(){let t,e,n=c=>{t=Xc(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=St(t,"overscrollBehavior","contain"))},r=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},i=()=>{e&&e()},o=c=>{let d=c.target;Dv(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Ui&&(Ui.height<window.innerHeight?requestAnimationFrame(()=>{qa(d)}):Ui.addEventListener("resize",()=>qa(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=Dt(_n(window,"scroll",c),St(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),St(document.documentElement,"overflow","hidden"),St(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Dt(_n(document,"touchstart",n,{passive:!1,capture:!0}),_n(document,"touchmove",r,{passive:!1,capture:!0}),_n(document,"touchend",i,{passive:!1,capture:!0}),_n(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function St(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function _n(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function qa(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Xc(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 Dv(t){return t instanceof HTMLInputElement&&!xv.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const _v=u.createContext({});function Tv(){var t;return(t=u.useContext(_v))!==null&&t!==void 0?t:{}}var Iu={};Iu={dismiss:"تجاهل"};var Ou={};Ou={dismiss:"Отхвърляне"};var ku={};ku={dismiss:"Odstranit"};var Nu={};Nu={dismiss:"Luk"};var Ru={};Ru={dismiss:"Schließen"};var Mu={};Mu={dismiss:"Απόρριψη"};var Lu={};Lu={dismiss:"Dismiss"};var Au={};Au={dismiss:"Descartar"};var Fu={};Fu={dismiss:"Lõpeta"};var Ku={};Ku={dismiss:"Hylkää"};var ju={};ju={dismiss:"Rejeter"};var Hu={};Hu={dismiss:"התעלם"};var zu={};zu={dismiss:"Odbaci"};var Vu={};Vu={dismiss:"Elutasítás"};var Bu={};Bu={dismiss:"Ignora"};var Uu={};Uu={dismiss:"閉じる"};var Wu={};Wu={dismiss:"무시"};var Gu={};Gu={dismiss:"Atmesti"};var qu={};qu={dismiss:"Nerādīt"};var Yu={};Yu={dismiss:"Lukk"};var Zu={};Zu={dismiss:"Negeren"};var Xu={};Xu={dismiss:"Zignoruj"};var Ju={};Ju={dismiss:"Descartar"};var Qu={};Qu={dismiss:"Dispensar"};var ed={};ed={dismiss:"Revocare"};var td={};td={dismiss:"Пропустить"};var nd={};nd={dismiss:"Zrušiť"};var rd={};rd={dismiss:"Opusti"};var id={};id={dismiss:"Odbaci"};var od={};od={dismiss:"Avvisa"};var ld={};ld={dismiss:"Kapat"};var ad={};ad={dismiss:"Скасувати"};var sd={};sd={dismiss:"取消"};var cd={};cd={dismiss:"關閉"};var ud={};ud={"ar-AE":Iu,"bg-BG":Ou,"cs-CZ":ku,"da-DK":Nu,"de-DE":Ru,"el-GR":Mu,"en-US":Lu,"es-ES":Au,"et-EE":Fu,"fi-FI":Ku,"fr-FR":ju,"he-IL":Hu,"hr-HR":zu,"hu-HU":Vu,"it-IT":Bu,"ja-JP":Uu,"ko-KR":Wu,"lt-LT":Gu,"lv-LV":qu,"nb-NO":Yu,"nl-NL":Zu,"pl-PL":Xu,"pt-BR":Ju,"pt-PT":Qu,"ro-RO":ed,"ru-RU":td,"sk-SK":nd,"sl-SI":rd,"sr-SP":id,"sv-SE":od,"tr-TR":ld,"uk-UA":ad,"zh-CN":sd,"zh-TW":cd};function Iv(t){return t&&t.__esModule?t.default:t}function Ya(t){let{onDismiss:e,...n}=t,r=bu(Iv(ud),"@react-aria/overlays"),i=ai(n,r.format("dismiss")),o=()=>{e&&e()};return u.createElement(cv,null,u.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let Tn=new WeakMap,Ee=[];function Ov(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let h of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(h);let c=h=>{if(n.has(h)||h.parentElement&&r.has(h.parentElement)&&h.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let v of n)if(h.contains(v))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(s);if(f===NodeFilter.FILTER_ACCEPT&&o(s),f!==NodeFilter.FILTER_REJECT){let h=d.nextNode();for(;h!=null;)o(h),h=d.nextNode()}},o=s=>{var c;let d=(c=Tn.get(s))!==null&&c!==void 0?c:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),Tn.set(s,d+1))};Ee.length&&Ee[Ee.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let c of s)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.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={visibleNodes:n,hiddenNodes:r,observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return Ee.push(a),()=>{l.disconnect();for(let s of r){let c=Tn.get(s);c!=null&&(c===1?(s.removeAttribute("aria-hidden"),Tn.delete(s)):Tn.set(s,c-1))}a===Ee[Ee.length-1]?(Ee.pop(),Ee.length&&Ee[Ee.length-1].observe()):Ee.splice(Ee.indexOf(a),1)}}function kv(t){let e=Ee[Ee.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function Nv(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,c=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=Sv({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:h,arrowProps:v,placement:b}=bv({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!c?e.close:null});return Ev({isDisabled:o||!e.isOpen}),ne(()=>{if(e.isOpen&&r.current){var p,g;return o?kv((p=i==null?void 0:i.current)!==null&&p!==void 0?p:r.current):Ov([(g=i==null?void 0:i.current)!==null&&g!==void 0?g:r.current])}},[o,e.isOpen,r,i]),{popoverProps:re(d,h),arrowProps:v,underlayProps:f,placement:b}}const Rv=u.createContext(null);function Za(t){let e=Qn(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=u.useState(!1),l=u.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=Tv();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=u.createElement(_l,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=u.createElement(Rv.Provider,{value:l},u.createElement(fp,null,s)),Lt.createPortal(s,n)}const Il=new WeakMap;function Mv(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Lv(t,e){let n=Il.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Mv(e)}`}function Ho(t){return Eh()?t.altKey:t.ctrlKey}function $r(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const dd=new WeakMap;function Av(t){let e=Se();return dd.set(t,e),e}function Fv(t){return dd.get(t)}const Kv=1e3;function fd(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=u.useRef({search:"",timeout:void 0}).current,o=l=>{let a=jv(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=""},Kv)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function jv(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function hd(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:v,scrollRef:b=r,linkBehavior:p="action"}=t,{direction:g}=Ft(),m=oi(),C=R=>{var k;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((k=r.current)===null||k===void 0)&&k.contains(R.target)))return;const G=(q,te)=>{if(q!=null){if(e.isLink(q)&&p==="selection"&&c&&!Ho(R)){Lt.flushSync(()=>{e.setFocusedKey(q,te)});let ue=$r(r,q),ee=e.getItemProps(q);ue&&m.open(ue,R,ee.href,ee.routerOptions);return}if(e.setFocusedKey(q,te),e.isLink(q)&&p==="override")return;R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):c&&!Ho(R)&&e.replaceSelection(q)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var T,F,_;let q=e.focusedKey!=null?(T=n.getKeyBelow)===null||T===void 0?void 0:T.call(n,e.focusedKey):(F=n.getFirstKey)===null||F===void 0?void 0:F.call(n);q==null&&o&&(q=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,e.focusedKey)),q!=null&&(R.preventDefault(),G(q))}break;case"ArrowUp":if(n.getKeyAbove){var O,K,M;let q=e.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,e.focusedKey):(K=n.getLastKey)===null||K===void 0?void 0:K.call(n);q==null&&o&&(q=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,e.focusedKey)),q!=null&&(R.preventDefault(),G(q))}break;case"ArrowLeft":if(n.getKeyLeftOf){var z,V,W;let q=e.focusedKey!=null?(z=n.getKeyLeftOf)===null||z===void 0?void 0:z.call(n,e.focusedKey):null;q==null&&o&&(q=g==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,e.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey)),q!=null&&(R.preventDefault(),G(q,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Y,J,se;let q=e.focusedKey!=null?(Y=n.getKeyRightOf)===null||Y===void 0?void 0:Y.call(n,e.focusedKey):null;q==null&&o&&(q=g==="rtl"?(J=n.getLastKey)===null||J===void 0?void 0:J.call(n,e.focusedKey):(se=n.getFirstKey)===null||se===void 0?void 0:se.call(n,e.focusedKey)),q!=null&&(R.preventDefault(),G(q,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&R.shiftKey)return;R.preventDefault();let q=n.getFirstKey(e.focusedKey,en(R));e.setFocusedKey(q),q!=null&&(en(R)&&R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):c&&e.replaceSelection(q))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&R.shiftKey)return;R.preventDefault();let q=n.getLastKey(e.focusedKey,en(R));e.setFocusedKey(q),q!=null&&(en(R)&&R.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):c&&e.replaceSelection(q))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let q=n.getKeyPageBelow(e.focusedKey);q!=null&&(R.preventDefault(),G(q))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let q=n.getKeyPageAbove(e.focusedKey);q!=null&&(R.preventDefault(),G(q))}break;case"a":en(R)&&e.selectionMode==="multiple"&&a!==!0&&(R.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),e.clearSelection());break;case"Tab":if(!h){if(R.shiftKey)r.current.focus();else{let q=qe(r.current,{tabbable:!0}),te,ue;do ue=q.lastChild(),ue&&(te=ue);while(ue);te&&!te.contains(document.activeElement)&&ze(te)}break}}},S=u.useRef({top:0,left:0});or(b,"scroll",v?void 0:()=>{var R,k,G,T;S.current={top:(G=(R=b.current)===null||R===void 0?void 0:R.scrollTop)!==null&&G!==void 0?G:0,left:(T=(k=b.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&T!==void 0?T:0}});let P=R=>{if(e.isFocused){R.currentTarget.contains(R.target)||e.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(e.setFocused(!0),e.focusedKey==null){var k,G;let _=K=>{K!=null&&(e.setFocusedKey(K),c&&!e.isSelected(K)&&e.replaceSelection(K))},O=R.relatedTarget;var T,F;O&&R.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?_((T=e.lastSelectedKey)!==null&&T!==void 0?T:(k=n.getLastKey)===null||k===void 0?void 0:k.call(n)):_((F=e.firstSelectedKey)!==null&&F!==void 0?F:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!v&&b.current&&(b.current.scrollTop=S.current.top,b.current.scrollLeft=S.current.left);if(e.focusedKey!=null&&b.current){let _=$r(r,e.focusedKey);_ instanceof HTMLElement&&(!_.contains(document.activeElement)&&!f&&ze(_),zr()==="keyboard"&&pa(_,{containingElement:r.current}))}}},$=R=>{R.currentTarget.contains(R.relatedTarget)||e.setFocused(!1)},x=u.useRef(!1);or(r,Fh,f?R=>{let{detail:k}=R;R.stopPropagation(),e.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(x.current=!0)}:void 0);let E=he(()=>{var R,k;let G=(k=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&k!==void 0?k:null;G==null?(wu(r.current),e.collection.size>0&&(x.current=!1)):(e.setFocusedKey(G),x.current=!1)});fa(()=>{x.current&&E()},[e.collection,E]);let N=he(()=>{e.collection.size>0&&(x.current=!1)});fa(()=>{N()},[e.focusedKey,N]),or(r,Ah,f?R=>{var k;R.stopPropagation(),e.setFocused(!1),!((k=R.detail)===null||k===void 0)&&k.clearFocusKey&&e.setFocusedKey(null)}:void 0);const H=u.useRef(i),j=u.useRef(!1);u.useEffect(()=>{if(H.current){var R,k;let F=null;var G;i==="first"&&(F=(G=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&G!==void 0?G:null);var T;i==="last"&&(F=(T=(k=n.getLastKey)===null||k===void 0?void 0:k.call(n))!==null&&T!==void 0?T:null);let _=e.selectedKeys;if(_.size){for(let O of _)if(e.canSelectItem(O)){F=O;break}}e.setFocused(!0),e.setFocusedKey(F),F==null&&!f&&r.current&&vn(r.current),e.collection.size>0&&(H.current=!1,j.current=!0)}});let w=u.useRef(e.focusedKey),A=u.useRef(null);u.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==w.current||j.current)&&b.current&&r.current){let R=zr(),k=$r(r,e.focusedKey);if(!(k instanceof HTMLElement))return;(R==="keyboard"||j.current)&&(A.current&&cancelAnimationFrame(A.current),A.current=requestAnimationFrame(()=>{b.current&&(Jc(b.current,k),R!=="virtual"&&pa(k,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&w.current!=null&&r.current&&vn(r.current),w.current=e.focusedKey,j.current=!1}),u.useEffect(()=>()=>{A.current&&cancelAnimationFrame(A.current)},[]),or(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),e.setFocused(!0)});let B={onKeyDown:C,onFocus:P,onBlur:$,onMouseDown(R){b.current===R.target&&R.preventDefault()}},{typeSelectProps:L}=fd({keyboardDelegate:n,selectionManager:e});d||(B=re(L,B));let U;f||(U=e.focusedKey==null?0:-1);let I=Av(e.collection);return{collectionProps:re(B,{tabIndex:U,"data-collection":I})}}function Ol(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,h=oi();e=Se(e);let v=k=>{if(k.pointerType==="keyboard"&&Ho(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let G=n.getItemProps(r);h.open(i.current,k,G.href,G.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):k&&k.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||k&&(en(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};u.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?wu(i.current):a?a():document.activeElement!==i.current&&i.current&&vn(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let b={};!l&&!s?b={tabIndex:r===n.focusedKey?0:-1,onFocus(k){k.target===i.current&&n.setFocusedKey(r)}}:s&&(b.onMouseDown=k=>{k.preventDefault()});let p=n.isLink(r)&&f==="override",g=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!p,C=(c||g)&&!s,S=C&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),P=C&&m&&n.selectionBehavior==="replace",$=S||P,x=u.useRef(null),E=$&&m,N=u.useRef(!1),H=u.useRef(!1),j=k=>{if(c&&c(),g&&i.current){let G=n.getItemProps(r);h.open(i.current,k,G.href,G.routerOptions)}},w={ref:i};o?(w.onPressStart=k=>{x.current=k.pointerType,N.current=E,k.pointerType==="keyboard"&&(!$||Ja())&&v(k)},d?(w.onPressUp=S?void 0:k=>{k.pointerType==="mouse"&&m&&v(k)},w.onPress=S?j:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&m&&v(k)}):w.onPress=k=>{if(S||P&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!Xa())return;j(k)}else k.pointerType!=="keyboard"&&m&&v(k)}):(w.onPressStart=k=>{x.current=k.pointerType,N.current=E,H.current=S,m&&(k.pointerType==="mouse"&&!S||k.pointerType==="keyboard"&&(!C||Ja()))&&v(k)},w.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&$&&Xa()||k.pointerType==="mouse"&&H.current)&&($?j(k):m&&v(k))}),b["data-collection"]=Fv(n.collection),b["data-key"]=r,w.preventFocusOnPress=l,l&&(w=re(w,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:A,isPressed:B}=ui(w),L=P?k=>{x.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),j(k))}:void 0,{longPressProps:U}=pu({isDisabled:!E,onLongPress(k){k.pointerType==="touch"&&(v(k),n.setSelectionBehavior("toggle"))}}),I=k=>{x.current==="touch"&&N.current&&k.preventDefault()},R=n.isLink(r)?k=>{_t.isOpening||k.preventDefault()}:void 0;return{itemProps:re(b,m||S||l&&!s?A:{},E?U:{},{onDoubleClick:L,onDragStartCapture:I,onClick:R,id:e},l?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:B,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:$}}function Xa(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Ja(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Qa{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?$r(this.ref,e):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 kl{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&&!Bn(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&&!Bn(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 Qa(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 Qa(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function pd(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=Dl({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,c=u.useMemo(()=>o||new kl({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=hd({...t,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function Hv(t,e,n){let r=pe(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=pd({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=fi({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Se(t.id);Il.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:c,fieldProps:d}=Pu({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:re(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...re(d,l)})}}class zv{build(e,n){return this.context=n,es(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(u.isValidElement(n)&&n.type===u.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=[];u.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(u.isValidElement(e.element)&&e.element.type===u.Fragment){let g=[];u.Children.forEach(e.element.props.children,C=>{g.push(C)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const C of g)yield*this.getFullNode({element:C,index:m++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let g=this.cache.get(e.value);if(g&&(!g.shouldInvalidate||!g.shouldInvalidate(this.context))){g.index=e.index,g.parentKey=i?i.key:null,yield g;return}l=n.renderer(e.value)}if(u.isValidElement(l)){let g=l.type;if(typeof g!="function"&&typeof g.getCollectionNode!="function"){let P=l.type;throw new Error(`Unknown element <${P}> in collection.`)}let m=g.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 P=S.value;e.index=C;var s;let $=(s=P.key)!==null&&s!==void 0?s:null;$==null&&($=P.element?null:this.getKey(l,e,n,r));let E=[...this.getFullNode({...P,key:$,index:C,wrapper:Vv(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${l.key}`:l.key,i)];for(let N of E){var c,d;N.value=(d=(c=P.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,N.value&&this.cache.set(N.value,N);var f;if(e.type&&N.type!==e.type)throw new Error(`Unsupported type <${Gi(N.type)}> in <${Gi((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Gi(e.type)}> is supported.`);C++,yield N}S=m.next(E)}return}if(e.key==null||e.type==null)return;let h=this;var v,b;let p={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(v=e.value)!==null&&v!==void 0?v:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:es(function*(){if(!e.hasChildNodes||!e.childNodes)return;let g=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${p.key}${m.key}`);let C=h.getFullNode({...m,index:g},h.getChildState(n,m),p.key,p);for(let S of C)g++,yield S}})};yield p}constructor(){this.cache=new WeakMap}}function es(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 Vv(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Gi(t){return t[0].toUpperCase()+t.slice(1)}function vd(t,e,n){let r=u.useMemo(()=>new zv,[]),{children:i,items:o,collection:l}=t;return u.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function gd(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Bv(t){return Uv(t)}function Uv(t,e){for(let n of t)return n}function qi(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...ts(t,e),e],i=[...ts(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 ts(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 ns=new WeakMap;function md(t){let e=ns.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(gd(o,t)):o.type==="item"&&n++};return r(t),ns.set(t,n),n}function Wv(t,e,n){var r,i;let{key:o}=t,l=Il.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var c;let d=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(o);var f;let h=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var v;let b=(v=t.shouldFocusOnHover)!==null&&v!==void 0?v:l==null?void 0:l.shouldFocusOnHover;var p;let g=(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=xt(),P=xt(),$={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};ft()&&fl()||($["aria-label"]=t["aria-label"],$["aria-labelledby"]=S,$["aria-describedby"]=P);let x=e.collection.getItem(o);if(C){let R=Number(x==null?void 0:x.index);$["aria-posinset"]=Number.isNaN(R)?void 0:R+1,$["aria-setsize"]=md(e.collection)}let E=l!=null&&l.onAction?()=>{var R;return l==null||(R=l.onAction)===null||R===void 0?void 0:R.call(l,o)}:void 0,N=Lv(e,o),{itemProps:H,isPressed:j,isFocused:w,hasAction:A,allowsSelection:B}=Ol({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:h,allowsDifferentPressOrigin:h&&b,isVirtualized:C,shouldUseVirtualFocus:g,isDisabled:s,onAction:E||!(x==null||(r=x.props)===null||r===void 0)&&r.onAction?Dt(x==null||(i=x.props)===null||i===void 0?void 0:i.onAction,E):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:N}),{hoverProps:L}=Cn({isDisabled:s||!b,onHoverStart(){pn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),U=pe(x==null?void 0:x.props);delete U.id;let I=pl(x==null?void 0:x.props);return{optionProps:{...$,...re(U,H,L,I),id:N},labelProps:{id:S},descriptionProps:{id:P},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&pn(),isSelected:d,isDisabled:s,isPressed:j,allowsSelection:B,hasAction:A}}function Gv(t){let{heading:e,"aria-label":n}=t,r=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var bd={};bd={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var yd={};yd={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Cd={};Cd={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Sd={};Sd={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var wd={};wd={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var xd={};xd={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Ed={};Ed={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var $d={};$d={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Pd={};Pd={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Dd={};Dd={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var _d={};_d={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Td={};Td={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Id={};Id={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Od={};Od={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var kd={};kd={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Nd={};Nd={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Rd={};Rd={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Md={};Md={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Ld={};Ld={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Ad={};Ad={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Fd={};Fd={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Kd={};Kd={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var jd={};jd={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Hd={};Hd={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var zd={};zd={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Vd={};Vd={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Bd={};Bd={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Ud={};Ud={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Wd={};Wd={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Gd={};Gd={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var qd={};qd={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Yd={};Yd={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Zd={};Zd={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Xd={};Xd={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Jd={};Jd={"ar-AE":bd,"bg-BG":yd,"cs-CZ":Cd,"da-DK":Sd,"de-DE":wd,"el-GR":xd,"en-US":Ed,"es-ES":$d,"et-EE":Pd,"fi-FI":Dd,"fr-FR":_d,"he-IL":Td,"hr-HR":Id,"hu-HU":Od,"it-IT":kd,"ja-JP":Nd,"ko-KR":Rd,"lt-LT":Md,"lv-LV":Ld,"nb-NO":Ad,"nl-NL":Fd,"pl-PL":Kd,"pt-BR":jd,"pt-PT":Hd,"ro-RO":zd,"ru-RU":Vd,"sk-SK":Bd,"sl-SI":Ud,"sr-SP":Wd,"sv-SE":Gd,"tr-TR":qd,"uk-UA":Yd,"zh-CN":Zd,"zh-TW":Xd};function qv(t){return t&&t.__esModule?t.default:t}function Yv(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=Se(),{triggerProps:a,overlayProps:s}=wv({type:r},e,n),c=v=>{if(!i&&!(o==="longPress"&&!v.altKey)&&n&&n.current)switch(v.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),e.toggle("last");break;default:"continuePropagation"in v&&v.continuePropagation()}},d=bu(qv(Jd),"@react-aria/menu"),{longPressProps:f}=pu({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),h={preventFocusOnPress:!0,onPressStart(v){v.pointerType!=="touch"&&v.pointerType!=="keyboard"&&!i&&(ze(v.target),e.open(v.pointerType==="virtual"?"first":null))},onPress(v){v.pointerType==="touch"&&!i&&(ze(v.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?h:f,id:l,onKeyDown:c},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const Qd=new WeakMap;function Zv(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=pe(t,{labelable:!0}),{listProps:s}=pd({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Qd.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:re(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:c=>{var d;(c.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,c))}})}}function Xv(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:h,onHoverStart:v,onHoverChange:b,onHoverEnd:p,onKeyDown:g,onKeyUp:m,onFocus:C,onFocusChange:S,onBlur:P,selectionManager:$=e.selectionManager}=t,x=!!a,E=x&&t["aria-expanded"]==="true";var N;let H=(N=t.isDisabled)!==null&&N!==void 0?N:$.isDisabled(i);var j;let w=(j=t.isSelected)!==null&&j!==void 0?j:$.isSelected(i),A=Qd.get(e),B=e.collection.getItem(i),L=t.onClose||A.onClose,U=oi(),I=ee=>{var rt;if(!x){if(!(B==null||(rt=B.props)===null||rt===void 0)&&rt.onAction?B.props.onAction():t.onAction&&t.onAction(i),A.onAction){let xn=A.onAction;xn(i)}ee.target instanceof HTMLAnchorElement&&B&&U.open(ee.target,ee,B.props.href,B.props.routerOptions)}},R="menuitem";x||($.selectionMode==="single"?R="menuitemradio":$.selectionMode==="multiple"&&(R="menuitemcheckbox"));let k=xt(),G=xt(),T=xt(),F={id:r,"aria-disabled":H||void 0,role:R,"aria-label":t["aria-label"],"aria-labelledby":k,"aria-describedby":[G,T].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};$.selectionMode!=="none"&&!x&&(F["aria-checked"]=w),l&&(F["aria-posinset"]=B==null?void 0:B.index,F["aria-setsize"]=md(e.collection));let _=ee=>{ee.pointerType==="keyboard"&&I(ee),s==null||s(ee)},O=()=>{!x&&L&&(o??($.selectionMode!=="multiple"||$.isLink(i)))&&L()},K=ee=>{ee.pointerType==="mouse"&&(I(ee),O()),c==null||c(ee)},M=ee=>{ee.pointerType!=="keyboard"&&ee.pointerType!=="mouse"&&(I(ee),O()),d==null||d(ee)},{itemProps:z,isFocused:V}=Ol({id:r,selectionManager:$,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:A.shouldUseVirtualFocus}),{pressProps:W,isPressed:Y}=ui({onPressStart:_,onPress:M,onPressUp:K,onPressChange:f,onPressEnd:h,isDisabled:H}),{hoverProps:J}=Cn({isDisabled:H,onHoverStart(ee){!pn()&&!(E&&a)&&($.setFocused(!0),$.setFocusedKey(i)),v==null||v(ee)},onHoverChange:b,onHoverEnd:p}),{keyboardProps:se}=fu({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":!H&&$.selectionMode==="none"&&!x&&o!==!1&&L&&L();break;case"Enter":!H&&o!==!1&&!x&&L&&L();break;default:x||ee.continuePropagation(),g==null||g(ee);break}},onKeyUp:m}),{focusProps:q}=El({onBlur:P,onFocus:C,onFocusChange:S}),te=pe(B==null?void 0:B.props);delete te.id;let ue=pl(B==null?void 0:B.props);return{menuItemProps:{...F,...re(te,ue,x?{onFocus:z.onFocus,"data-collection":z["data-collection"],"data-key":z["data-key"]}:z,W,J,se,q,A.shouldUseVirtualFocus||x?{onMouseDown:ee=>ee.preventDefault()}:void 0),tabIndex:z.tabIndex!=null&&E&&!A.shouldUseVirtualFocus?-1:z.tabIndex},labelProps:{id:k},descriptionProps:{id:G},keyboardShortcutProps:{id:T},isFocused:V,isFocusVisible:V&&$.isFocused&&pn()&&!E,isSelected:w,isPressed:Y,isDisabled:H}}function Jv(t){let{heading:e,"aria-label":n}=t,r=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const ef=new WeakMap;function Qv(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=Dl({usage:"search",sensitivity:"base"}),c=u.useMemo(()=>r||new kl(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:d,menuProps:f}=Yv({isDisabled:i,type:"listbox"},e,n),h=N=>{switch(N.key){case"ArrowLeft":{var H,j;N.preventDefault();let B=e.selectedKey!=null?(H=c.getKeyAbove)===null||H===void 0?void 0:H.call(c,e.selectedKey):(j=c.getFirstKey)===null||j===void 0?void 0:j.call(c);B&&e.setSelectedKey(B);break}case"ArrowRight":{var w,A;N.preventDefault();let B=e.selectedKey!=null?(w=c.getKeyBelow)===null||w===void 0?void 0:w.call(c,e.selectedKey):(A=c.getFirstKey)===null||A===void 0?void 0:A.call(c);B&&e.setSelectedKey(B);break}}},{typeSelectProps:v}=fd({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(N){e.setSelectedKey(N)}}),{isInvalid:b,validationErrors:p,validationDetails:g}=e.displayValidation,{labelProps:m,fieldProps:C,descriptionProps:S,errorMessageProps:P}=sv({...t,labelElementType:"span",isInvalid:b,errorMessage:t.errorMessage||p});v.onKeyDown=v.onKeyDownCapture,delete v.onKeyDownCapture;let $=pe(t,{labelable:!0}),x=re(v,d,C),E=Se();return ef.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...m,onClick:()=>{if(!t.isDisabled){var N;(N=n.current)===null||N===void 0||N.focus(),du("keyboard")}}},triggerProps:re($,{...x,isDisabled:i,onKeyDown:Dt(x.onKeyDown,h,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[E,x["aria-labelledby"],x["aria-label"]&&!x["aria-labelledby"]?x.id:null].filter(Boolean).join(" "),onFocus(N){e.isFocused||(t.onFocus&&t.onFocus(N),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(N){e.isOpen||(t.onBlur&&t.onBlur(N),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:E},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:N=>{N.currentTarget.contains(N.relatedTarget)||(t.onBlur&&t.onBlur(N),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],x["aria-label"]&&!C["aria-labelledby"]?x.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:P,isInvalid:b,validationErrors:p,validationDetails:g}}function eg(t,e,n){let r=ef.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:c}=Du();Mh(t.selectRef,e.selectedKey,e.setSelectedKey),iv({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...c,"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:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function tg(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=u.useRef(null),{containerProps:a,selectProps:s}=eg({...t,selectRef:l},e,n);var c;return e.collection.size<=300?u.createElement("div",{...a,"data-testid":"hidden-select-container"},u.createElement("label",null,r,u.createElement("select",{...s,ref:l},u.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return u.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?u.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}function ng(t){let e=pe(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const tf=new WeakMap;function Wr(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${tf.get(t)}-${n}-${e}`):""}function rg(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,c=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=Ol({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),h=Wr(e,r,"tab"),v=Wr(e,r,"tabpanel"),{tabIndex:b}=d,p=e.collection.getItem(r),g=pe(p==null?void 0:p.props,{labelable:!0});delete g.id;let m=pl(p==null?void 0:p.props),{focusableProps:C}=hu({isDisabled:c},n);return{tabProps:re(g,C,m,d,{id:h,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?v:void 0,tabIndex:c?void 0:b,role:"tab"}),isSelected:s,isDisabled:c,isPressed:f}}function ig(t,e,n){let r=Yp(n)?void 0:0;var i;const o=Wr(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=ai({...t,id:o,"aria-labelledby":Wr(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:re(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class og{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){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function lg(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=Ft(),c=u.useMemo(()=>new og(o,s,r,a),[o,a,r,s]),{collectionProps:d}=hd({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Se();tf.set(e,f);let h=ai({...t,id:f});return{tabListProps:{...re(d,h),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const nf=u.createContext({}),ag=Cl(function(e,n){[e,n]=nt(e,n,nf);let{elementType:r="label",...i}=e;return u.createElement(r,{className:"react-aria-Label",...i,ref:n})}),sg=u.createContext(null),cg=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),rf=u.createContext({}),ug=Cl(function(e,n){[e,n]=nt(e,n,rf),e=dg(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=jp(e,n),{focusProps:a,isFocused:s,isFocusVisible:c}=Sn(e),{hoverProps:d,isHovered:f}=Cn({...e,isDisabled:e.isDisabled||i}),h={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},v=De({...e,values:h,defaultClassName:"react-aria-Button"}),b=Se(o.id),p=Se(),g=o["aria-labelledby"];i&&(g?g=`${g} ${p}`:o["aria-label"]&&(g=`${b} ${p}`));let m=u.useRef(i);return u.useEffect(()=>{let C={"aria-labelledby":g||b};(!m.current&&s&&i||m.current&&s&&!i)&&Fa(C,"assertive"),m.current=i},[i,s,g,b]),u.createElement("button",{...pe(e,{propNames:cg}),...re(o,a,d),...v,type:o.type==="submit"&&i?"button":o.type,id:b,ref:n,"aria-labelledby":g,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":c||void 0},u.createElement(sg.Provider,{value:{id:p}},v.children))});function dg(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 Nl=u.createContext({}),fg=u.createContext(null);class rs{*[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}}class je extends Set{constructor(e,n,r){super(e),e instanceof je?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function hg(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Rl(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=u.useRef(!1),[,a]=u.useState(!1),s=u.useRef(null),c=u.useRef(null),[,d]=u.useState(null),f=u.useMemo(()=>is(t.selectedKeys),[t.selectedKeys]),h=u.useMemo(()=>is(t.defaultSelectedKeys,new je),[t.defaultSelectedKeys]),[v,b]=si(f,h,t.onSelectionChange),p=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[g,m]=u.useState(i);i==="replace"&&g==="toggle"&&typeof v=="object"&&v.size===0&&m("replace");let C=u.useRef(i);return u.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:g,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(S,P="first"){s.current=S,c.current=P,d(S)},selectedKeys:v,setSelectedKeys(S){(r||!hg(S,v))&&b(S)},disabledKeys:p,disabledBehavior:o}}function is(t,e){return t?t==="all"?"all":new je(t):e}class er{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&&qi(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&&qi(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 je([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new je(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?qi(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 je(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 je([n],n,n):new je;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new je;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=Bv(gd(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 je)}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}withCollection(e){return new er(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}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 of(t){let{filter:e,layoutDelegate:n}=t,r=Rl(t),i=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=u.useCallback(c=>e?new rs(e(c)):new rs(c),[e]),l=u.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=vd(t,o,l),s=u.useMemo(()=>new er(a,r,{layoutDelegate:n}),[a,r,n]);return lf(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function pg(t,e){let n=u.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return lf(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function lf(t,e){const n=u.useRef(null);u.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(m=>{const C=n.current.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null),h=[...t.getKeys()].map(m=>{const C=t.getItem(m);return(C==null?void 0:C.type)==="item"?C:null}).filter(m=>m!==null);var r,i;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=h==null?void 0:h.length)!==null&&i!==void 0?i:0);var o,l,a;let b=Math.min(v>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-v+1,0):(l=d==null?void 0:d.index)!==null&&l!==void 0?l:0,((a=h==null?void 0:h.length)!==null&&a!==void 0?a:0)-1),p=null,g=!1;for(;b>=0;){if(!e.isDisabled(h[b].key)){p=h[b];break}if(b<h.length-1&&!g)b++;else{g=!0;var s,c;b>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(b=(c=d==null?void 0:d.index)!==null&&c!==void 0?c:0),b--}}e.setFocusedKey(p?p.key:null)}n.current=t},[t,e])}function af(t){var e;let[n,r]=si(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=of({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{if(c==="all")return;var d;let f=(d=c.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 Ml(t){let[e,n]=si(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),i=u.useCallback(()=>{n(!1)},[n]),o=u.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function vg(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=p=>{var g;return(g=p.id)!==null&&g!==void 0?g:p.key},getChildren:i=p=>p.children}=t,[o,l]=u.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[c,d]=u.useState(new Set(n||[]));function f(p=[],g,m){return p==null&&(p=[]),{items:p.map(C=>{let S={key:r(C),parentKey:m??null,value:C,children:null};return S.children=f(i(C),g,S.key).items,g.set(S.key,S),S}),nodeMap:g}}function h(p,g,m,C){let S=g==null?null:C.get(g);if(S==null)return{items:p,nodeMap:C};let P=new Map(C),$=m(S);for($==null?b(S,P):v($,P);S&&S.parentKey;){let E=P.get(S.parentKey),N={key:E.key,parentKey:E.parentKey,value:E.value,children:null},H=E.children;$==null&&H&&(H=H.filter(j=>j!==S));var x;N.children=(x=H==null?void 0:H.map(j=>j===S?$:j))!==null&&x!==void 0?x:null,P.set(N.key,N),$=N,S=E}return $==null&&(p=p.filter(E=>E!==S)),{items:p.map(E=>E===S?$:E),nodeMap:P}}function v(p,g){if(g.set(p.key,p),p.children)for(let m of p.children)v(m,g)}function b(p,g){if(g.delete(p.key),p.children)for(let m of p.children)b(m,g)}return{items:a,selectedKeys:c,setSelectedKeys:d,getItem(p){return s.get(p)},insert(p,g,...m){l(({items:C,nodeMap:S})=>{let{items:P,nodeMap:$}=f(m,S,p);return p==null?{items:[...C.slice(0,g),...P,...C.slice(g)],nodeMap:$}:h(C,p,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,g),...P,...x.children.slice(g)]}),$)})},insertBefore(p,...g){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),P=(C?C.children:a).indexOf(m);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,P,...g)},insertAfter(p,...g){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),P=(C?C.children:a).indexOf(m);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,P+1,...g)},prepend(p,...g){this.insert(p,0,...g)},append(p,...g){if(p==null)this.insert(null,a.length,...g);else{let m=s.get(p);if(!m)return;this.insert(p,m.children.length,...g)}},remove(...p){if(p.length===0)return;let g=a,m=s,C;for(let P of p)C=h(g,P,()=>null,m),m=C.nodeMap,g=C.items;l(C);let S=new Set(c);for(let P of c)C.nodeMap.has(P)||S.delete(P);d(S)},removeSelectedItems(){this.remove(...c)},move(p,g,m){l(({items:C,nodeMap:S})=>{let P=S.get(p);if(!P)return{items:C,nodeMap:S};let{items:$,nodeMap:x}=h(C,p,()=>null,S);const E={...P,parentKey:g};return g==null?(v(E,x),{items:[...$.slice(0,m),E,...$.slice(m)],nodeMap:x}):h($,g,N=>({key:N.key,parentKey:N.parentKey,value:N.value,children:[...N.children.slice(0,m),E,...N.children.slice(m)]}),x)})},moveBefore(p,g){l(m=>{let{items:C,nodeMap:S}=m,P=S.get(p);if(!P)return m;var $;let x=($=P.parentKey)!==null&&$!==void 0?$:null,E=null;var N;x!=null&&(E=(N=S.get(x))!==null&&N!==void 0?N:null);let H=E!=null&&E.children?E.children.indexOf(P):C.indexOf(P);return os(m,g,E,H,h,v)})},moveAfter(p,g){l(m=>{let{items:C,nodeMap:S}=m,P=S.get(p);if(!P)return m;var $;let x=($=P.parentKey)!==null&&$!==void 0?$:null,E=null;var N;x!=null&&(E=(N=S.get(x))!==null&&N!==void 0?N:null);let H=E!=null&&E.children?E.children.indexOf(P):C.indexOf(P);return H++,os(m,g,E,H,h,v)})},update(p,g){l(({items:m,nodeMap:C})=>h(m,p,S=>{let P={key:S.key,parentKey:S.parentKey,value:g,children:null},$=f(i(g),C,P.key);return P.children=$.items,P},C))}}}function os(t,e,n,r,i,o){let{items:l,nodeMap:a}=t,s=n,c=new Set(e);for(;(s==null?void 0:s.parentKey)!=null;){if(c.has(s.key))throw new Error("Cannot move an item to be a child of itself.");var d;s=(d=a.get(s.parentKey))!==null&&d!==void 0?d:null}let f=r,h=Array.isArray(e)?e:[...e],v=new Map,b=[],p=l,g=a,m=0;function C(x,{inorder:E,postorder:N}){E==null||E(x);var H;if(x!=null)for(let j of(H=x.children)!==null&&H!==void 0?H:[])C(j,{inorder:E,postorder:N}),N==null||N(j)}function S(x){h.includes(x.key)&&v.set(x.key,m++)}function P(x){if(h.includes(x.key)){var E;b.push({...g.get(x.key),parentKey:(E=n==null?void 0:n.key)!==null&&E!==void 0?E:null});let{items:N,nodeMap:H}=i(p,x.key,()=>null,g);p=N,g=H}x.parentKey===(n==null?void 0:n.key)&&h.includes(x.key)&&(n!=null&&n.children?n.children.indexOf(x):l.indexOf(x))<f&&r--}C({children:l},{inorder:S,postorder:P});let $=b.sort((x,E)=>v.get(x.key)>v.get(E.key)?1:-1);return!n||n.key==null?($.forEach(x=>{o(x,g)}),{items:[...p.slice(0,r),...$,...p.slice(r)],nodeMap:g}):i(p,n.key,x=>({key:x.key,parentKey:x.parentKey,value:x.value,children:[...x.children.slice(0,r),...$,...x.children.slice(r)]}),g)}function gg(t){let e=Ml(t),[n,r]=u.useState(null),[i,o]=u.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(c=null){r(c),e.open()},toggle(c=null){r(c),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(c,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),c])},closeSubmenu:(c,d)=>{o(f=>f[d]===c?f.slice(0,d):f)}}}function mg(t){let e=Ml(t),[n,r]=u.useState(null),i=af({...t,onSelectionChange:c=>{t.onSelectionChange!=null&&t.onSelectionChange(c),e.close(),o.commitValidation()}}),o=tv({...t,value:i.selectedKey}),[l,a]=u.useState(!1),s=u.useMemo(()=>{var c;return i.collection.size===0||i.collection.size===1&&((c=i.collection.getItem(i.collection.getFirstKey()))===null||c===void 0?void 0:c.type)==="loader"},[i.collection]);return{...o,...i,...e,focusStrategy:n,open(c=null){s||(r(c),e.open())},toggle(c=null){s||(r(c),e.toggle())},isFocused:l,setFocused:a}}function bg(t){var e,n;let r=af({...t,onSelectionChange:t.onSelectionChange?s=>{var c;s!=null&&((c=t.onSelectionChange)===null||c===void 0||c.call(t,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:ls(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=u.useRef(l);return u.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=ls(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 ls(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 yg{*[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 Cg(t){let{onExpandedChange:e}=t,[n,r]=si(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Rl(t),o=u.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=vd(t,u.useCallback(s=>new yg(s,{expandedKeys:n}),[n]),null);return u.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(Sg(n,s))},setExpandedKeys:r,selectionManager:new er(l,i)}}function Sg(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const wg=u.createContext(null),zo=u.createContext(null),sf=u.createContext(null),cf={CollectionRoot({collection:t,renderDropIndicator:e}){return as(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return as(t,e,n)}};function as(t,e,n){return nu({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 u.createElement(u.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 Kt=u.createContext(cf);function uf(t){return u.useMemo(()=>t!=null?new Set([t]):null,[t])}const gi=u.createContext({}),df=u.createContext(null),xg=u.forwardRef(function(e,n){let{render:r}=u.useContext(df);return u.createElement(u.Fragment,null,r(e,n))});function ff(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=u.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):u.createElement(xg,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function Eg(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 u.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const hf=u.createContext({}),Ll=u.createContext({}),pf=pi("separator",function(e,n){[e,n]=nt(e,n,Ll);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,c=r||"hr";c==="hr"&&i==="vertical"&&(c="div");let{separatorProps:d}=ng({...s,elementType:r,orientation:i});return u.createElement(c,{...pe(e),...d,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),Al=u.createContext(null),tr=u.createContext(null),$g=u.forwardRef(function(e,n){[e,n]=nt(e,n,Al);let r=u.useContext(tr);return r?u.createElement(vf,{state:r,props:e,listBoxRef:n}):u.createElement(hi,{content:u.createElement(Pl,e)},i=>u.createElement(Pg,{props:e,listBoxRef:n,collection:i}))});function Pg({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=u.useContext(Kt),i=of({...t,layoutDelegate:r});return u.createElement(vf,{state:i,props:t,listBoxRef:e})}function vf({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=u.useContext(zo)||{};e=u.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=tt(u.useMemo(()=>ul(n,o!==void 0?o:null),[o,n]));let c=pg(t,r),{collection:d,selectionManager:f}=c,h=!!(l!=null&&l.useDraggableCollectionState),v=!!(l!=null&&l.useDroppableCollectionState),{direction:b}=Ft(),{disabledBehavior:p,disabledKeys:g}=f,m=Dl({usage:"search",sensitivity:"base"}),{isVirtualized:C,layoutDelegate:S,dropTargetDelegate:P,CollectionRoot:$}=u.useContext(Kt),x=u.useMemo(()=>e.keyboardDelegate||new kl({collection:d,collator:m,ref:n,disabledKeys:g,disabledBehavior:p,layout:a,orientation:s,direction:b,layoutDelegate:S}),[d,m,n,p,g,s,b,e.keyboardDelegate,a,S]),{listBoxProps:E}=Hv({...e,shouldSelectOnPressUp:h||e.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:C},c,n),N=u.useRef(h),H=u.useRef(v);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(N.current!==h&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),H.current!==v&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[h,v]);let j,w,A,B=!1,L=null,U=u.useRef(null);if(h&&l){j=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?U:void 0}),l.useDraggableCollection({},j,n);let _=l.DragPreview;L=l.renderDragPreview?u.createElement(_,{ref:U},l.renderDragPreview):null}if(v&&l){w=l.useDroppableCollectionState({collection:d,selectionManager:f});let _=l.dropTargetDelegate||P||new l.ListDropTargetDelegate(d,n,{orientation:s,layout:a,direction:b});A=l.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:_},w,n),B=w.isDropTarget({type:"root"})}let{focusProps:I,isFocused:R,isFocusVisible:k}=Sn(),G={isDropTarget:B,isEmpty:c.collection.size===0,isFocused:R,isFocusVisible:k,layout:e.layout||"stack",state:c},T=De({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:G}),F=null;return c.collection.size===0&&e.renderEmptyState&&(F=u.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(G))),u.createElement(_l,null,u.createElement("div",{...pe(e),...re(E,I,A==null?void 0:A.collectionProps),...T,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":B||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":R||void 0,"data-focus-visible":k||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},u.createElement(pt,{values:[[Al,e],[tr,c],[gi,{dragAndDropHooks:l,dragState:j,dropState:w}],[Ll,{elementType:"div"}],[df,{render:Tg}],[sf,{name:"ListBoxSection",render:Dg}]]},u.createElement($,{collection:d,scrollRef:n,persistedKeys:Eg(f,l,w),renderDropIndicator:ff(l,w)})),F,L))}function Dg(t,e,n,r="react-aria-ListBoxSection"){let i=u.useContext(tr),{dragAndDropHooks:o,dropState:l}=u.useContext(gi),{CollectionBranch:a}=u.useContext(Kt),[s,c]=ml();var d;let{headingProps:f,groupProps:h}=Gv({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),v=De({defaultClassName:r,className:t.className,style:t.style,values:{}});return u.createElement("section",{...pe(t),...h,...v,ref:e},u.createElement(hf.Provider,{value:{...f,ref:s}},u.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:ff(o,l)})))}const _g=pi("item",function(e,n,r){let i=tt(n),o=u.useContext(tr),{dragAndDropHooks:l,dragState:a,dropState:s}=u.useContext(gi),{optionProps:c,labelProps:d,descriptionProps:f,...h}=Wv({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:v,isHovered:b}=Cn({isDisabled:!h.allowsSelection&&!h.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 g=null;s&&l&&(g=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(r.key),C=De({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...h,isHovered:b,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:g==null?void 0:g.isDropTarget}});u.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&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 u.createElement(S,{...re(c,v,p==null?void 0:p.dragProps,g==null?void 0:g.dropProps),...C,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(g==null?void 0:g.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},u.createElement(pt,{values:[[Nl,{slots:{[gl]:d,label:d,description:f}}]]},C.children))});function Tg(t,e){e=tt(e);let{dragAndDropHooks:n,dropState:r}=u.useContext(gi),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:u.createElement(Og,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function Ig(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=De({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const Og=u.forwardRef(Ig),kg=u.createContext({placement:"bottom"}),gf=u.createContext(null),ss=u.createContext(null),mf=u.forwardRef(function(e,n){[e,n]=nt(e,n,gf);let r=u.useContext(bf),i=Ml(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=jh(n,o.isOpen)||e.isExiting||!1,a=Gh(),{direction:s}=Ft();if(a){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,c)}return o&&!o.isOpen&&!l?null:u.createElement(Ng,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function Ng({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=u.useRef(null),[o,l]=u.useState(0),a=u.useRef(null),s=u.useContext(ss),c=s&&r.trigger==="SubmenuTrigger";ne(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:h,arrowProps:v,placement:b}=Nv({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:c?s:a},t),p=r.popoverRef,g=Kh(p,!!b)||r.isEntering||!1,m=De({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:b,isEntering:g,isExiting:e}}),C=!r.isNonModal||r.trigger==="SubmenuTrigger",[S,P]=u.useState(!1);ne(()=>{p.current&&P(C&&!p.current.querySelector("[role=dialog]"))},[p,C]),u.useEffect(()=>{S&&p.current&&!p.current.contains(document.activeElement)&&vn(p.current)},[S,p]);let $={...f.style,...m.style},x=u.createElement("div",{...re(pe(r),f),...m,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:p,slot:r.slot||void 0,style:$,dir:r.dir,"data-trigger":r.trigger,"data-placement":b,"data-entering":g||void 0,"data-exiting":e||void 0},!r.isNonModal&&u.createElement(Ya,{onDismiss:t.close}),u.createElement(kg.Provider,{value:{...v,placement:b,ref:i}},m.children),u.createElement(Ya,{onDismiss:t.close}));if(!c)return u.createElement(Za,{...r,shouldContainFocus:S,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&u.createElement("div",{"data-testid":"underlay",...h,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:a,style:{display:"contents"}},u.createElement(ss.Provider,{value:a},x)));var E;return u.createElement(Za,{...r,shouldContainFocus:S,isExiting:e,portalContainer:(E=n??(s==null?void 0:s.current))!==null&&E!==void 0?E:void 0},x)}const Rg=u.createContext({}),Mg=u.createContext(null),Fl=u.createContext(null),cs=u.createContext(null),Gr=u.createContext(null),Lg=u.createContext(null),Ag=u.forwardRef(function(e,n){return[e,n]=nt(e,n,Mg),u.createElement(hi,{content:u.createElement(Pl,e)},r=>u.createElement(Fg,{props:e,collection:r,menuRef:n}))});function Fg({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=u.useContext(zo)||{};n=tt(u.useMemo(()=>ul(n,o!==void 0?o:null),[o,n]));let l=u.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=Cg({...t,collection:l,children:void 0}),s=u.useContext(cs),{isVirtualized:c,CollectionRoot:d}=u.useContext(Kt),{menuProps:f}=Zv({...t,...i,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},a,n),h=De({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),v=null;return a.collection.size===0&&t.renderEmptyState&&(v=u.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),u.createElement(_l,null,u.createElement("div",{...pe(t),...f,...h,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},u.createElement(pt,{values:[[Fl,a],[Ll,{elementType:"div"}],[sf,{name:"MenuSection",render:jg}],[Lg,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[Vo,null],[zo,null],[Gr,a.selectionManager],[cs,s??gg({})]]},u.createElement(d,{collection:a.collection,persistedKeys:uf(a.selectionManager.focusedKey),scrollRef:n})),v))}class Kg extends er{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 jg(t,e,n,r="react-aria-MenuSection"){var i,o;let l=u.useContext(Fl),{CollectionBranch:a}=u.useContext(Kt),[s,c]=ml();var d;let{headingProps:f,groupProps:h}=Jv({heading:c,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),v=De({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:{}}),b=u.useContext(Gr),p=Rl(t),g=t.selectionMode!=null?new Kg(b,p):b;return u.createElement("section",{...pe(t),...h,...v,ref:e},u.createElement(pt,{values:[[hf,{...f,ref:s}],[Gr,g]]},u.createElement(a,{collection:l.collection,parent:n})))}const Vo=u.createContext(null),us=pi("item",function(e,n,r){var i;[e,n]=nt(e,n,Vo);let o=(i=ci(Vo))===null||i===void 0?void 0:i.id,l=u.useContext(Fl),a=tt(n),s=u.useContext(Gr),{menuItemProps:c,labelProps:d,descriptionProps:f,keyboardShortcutProps:h,...v}=Xv({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:b,isHovered:p}=Cn({isDisabled:v.isDisabled}),g=De({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...v,isHovered:p,isFocusVisible:v.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),m=e.href?"a":"div";return u.createElement(m,{...re(c,b),...g,ref:a,"data-disabled":v.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-selected":v.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},u.createElement(pt,{values:[[Nl,{slots:{[gl]:d,label:d,description:f}}],[Rg,h]]},g.children))}),bf=u.createContext(null),yf=u.createContext(null),Cf=u.createContext(null),Hg=u.forwardRef(function(e,n){[e,n]=nt(e,n,yf);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=u.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 u.createElement(hi,{content:a},s=>u.createElement(zg,{props:e,collection:s,selectRef:n}))});function zg({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=ci(wg)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=mg({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:c}=Sn({within:!0}),d=u.useRef(null),[f,h]=ml(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:v,triggerProps:b,valueProps:p,menuProps:g,descriptionProps:m,errorMessageProps:C,...S}=Qv({...Bh(t),label:h,validationBehavior:l},a,d),[P,$]=u.useState(null),x=u.useCallback(()=>{d.current&&$(d.current.offsetWidth+"px")},[d]);$o({ref:d,onResize:x});let E=u.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]),N=De({...t,values:E,defaultClassName:"react-aria-Select"}),H=pe(t);delete H.id;let j=u.useRef(null);return u.createElement(pt,{values:[[yf,t],[Cf,a],[Vg,p],[nf,{...v,ref:f,elementType:"span"}],[rf,{...b,ref:d,isPressed:a.isOpen}],[bf,a],[gf,{trigger:"Select",triggerRef:d,scrollRef:j,placement:"bottom start",style:{"--trigger-width":P},"aria-labelledby":g["aria-labelledby"]}],[Al,{...g,ref:j}],[tr,a],[Nl,{slots:{description:m,errorMessage:C}}],[fg,S]]},u.createElement("div",{...H,...N,...c,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}),u.createElement(tg,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:h,name:t.name,isDisabled:t.isDisabled}))}const Vg=u.createContext(null),mi=u.createContext(null),gn=u.createContext(null),Bg=u.forwardRef(function(e,n){[e,n]=nt(e,n,mi);let{children:r,orientation:i="horizontal"}=e;return r=u.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),u.createElement(hi,{content:r},o=>u.createElement(Ug,{props:e,collection:o,tabsRef:n}))});function Ug({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=bg({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Sn({within:!0}),s=u.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),c=De({...t,defaultClassName:"react-aria-Tabs",values:s});return u.createElement("div",{...pe(t),...o,...c,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},u.createElement(pt,{values:[[mi,t],[gn,i]]},c.children))}const Wg=u.forwardRef(function(e,n){return u.useContext(gn)?u.createElement(Gg,{props:e,forwardedRef:n}):u.createElement(Pl,e)});function Gg({props:t,forwardedRef:e}){let n=u.useContext(gn),{CollectionRoot:r}=u.useContext(Kt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=ci(mi),l=tt(e),{tabListProps:a}=lg({...t,orientation:i,keyboardActivation:o},n,l),s=De({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),c=pe(t);return delete c.id,u.createElement("div",{...c,...a,ref:l,...s,"data-orientation":i||void 0},u.createElement(r,{collection:n.collection,persistedKeys:uf(n.selectionManager.focusedKey)}))}const qg=pi("item",(t,e,n)=>{let r=u.useContext(gn),i=tt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=rg({key:n.key,...t},r,i),{focusProps:c,isFocused:d,isFocusVisible:f}=Sn(),{hoverProps:h,isHovered:v}=Cn({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),b=De({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:v}}),p=n.props.href?"a":"div";return u.createElement(p,{...re(o,c,h,b),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":v||void 0},b.children)}),Yg=Cl(function(e,n){const r=u.useContext(gn);let i=tt(n),{tabPanelProps:o}=ig(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=Sn(),c=r.selectedKey===e.id,d=De({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!c,state:r}});if(!c&&!e.shouldForceMount)return null;let f=pe(e);delete f.id;let h=c?re(f,o,l,d):d;return u.createElement("div",{...h,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:Lh(!c),"data-inert":c?void 0:"true"},u.createElement(pt,{values:[[mi,null],[gn,null]]},u.createElement(Kt.Provider,{value:cf},d.children)))}),It=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=u.useId(),c=f=>{n==null||n(f)},d=u.useRef(null);return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),y.jsx(mf,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:c,children:y.jsxs(Ag,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&y.jsx(us,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:y.jsxs(u.Fragment,{children:[y.jsxs(us,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var h;f.value&&(o==null||o(f.value)),(h=f.callback)==null||h.call(f),c(!1)},isDisabled:f.isDisabled,children:[f.icon,y.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&y.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&y.jsx(pf,{})]},f.label))]})})]})},ht=()=>{const[t,e]=u.useState(!1);return{isOpen:t,setIsOpen:e}},ds="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",Zg="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",Xg=()=>{const{t}=le.useCunningham();return y.jsxs("footer",{className:"c__footer",children:[y.jsx("div",{className:"c__footer__stripe"}),y.jsxs("div",{className:"c__footer__content",children:[y.jsxs("div",{className:"c__footer__content__top",children:[y.jsx("div",{children:y.jsx("div",{className:"c__footer__content__top__logo",children:y.jsx("img",{className:"c__footer__logo",alt:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:Zg})})}),y.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})=>y.jsxs("a",{href:n,target:"_blank",children:[y.jsx("span",{children:e}),y.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:ds})]},e))})]}),y.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})=>y.jsx("a",{href:n,children:y.jsx("span",{children:e})},e))}),y.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",y.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[y.jsx("span",{children:t("components.footer.license")}),y.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:ds})]})]})]})]})},Jg=t=>y.jsx(Hg,{...t,className:"c__filter",children:y.jsx(Qg,{...t})}),Qg=t=>{const e=u.useContext(Cf),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return y.jsxs(y.Fragment,{children:[y.jsxs(ug,{className:Pe("c__filter__button",{"c__filter__button--active":!!n}),children:[y.jsx(ag,{className:"c__filter__label",children:n?y.jsxs(y.Fragment,{children:[t.label," : ",n.label]}):y.jsx(y.Fragment,{children:t.label})}),y.jsx("span",{"aria-hidden":"true",className:Pe("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),y.jsx(mf,{className:"c__dropdown-menu",children:y.jsx($g,{children:t.options.map(r=>y.jsxs(u.Fragment,{children:[y.jsx(_g,{id:r.value,className:"c__dropdown-menu-item",children:y.jsxs("div",{className:"c__filter__item",children:[r.render?r.render():r.label,(t.selectedKey===r.value||r.isChecked)&&y.jsx("span",{className:"material-icons checked",children:"check"})]})},r.value),r.showSeparator&&y.jsx(pf,{})]},r.value))})})]})},e5=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>y.jsx("div",{className:"c__hero",children:y.jsxs("div",{className:"c__hero__display",children:[y.jsxs("div",{className:"c__hero__display__captions",children:[t,y.jsx("h2",{children:r}),y.jsx("span",{className:"c__hero__display__captions__subtitle",children:i}),e||y.jsx(Bc,{})]}),y.jsx("img",{src:n,alt:""})]})}),t5=({children:t})=>y.jsx("div",{className:"c__home-gutter",children:t}),Sf=(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:Sf(t[i],r.slice(1),n)},n5={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},r5={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"}},i5={label:"Les services de La Suite numérique"},o5={homepageLinkTitle:"Accueil - {serviceName}"},l5={newWindow:"{title} - nouvelle fenêtre"},a5={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},wf={email:n5,footer:r5,gaufre:i5,header:o5,links:l5,proconnect:a5},s5=u.createContext(wf);function c5(){const t=u.useContext(s5)||wf;return{t:function(e,n={}){const r=Sf(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 y.jsx(y.Fragment,{children:o.map((l,a)=>l in n?y.jsx(u.Fragment,{children:n[l]},a):l)})}return r}}}const u5={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},d5=({variant:t})=>{const{t:e}=c5(),n=t?u5[t]:"";return y.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")})},f5=()=>y.jsxs(y.Fragment,{children:[y.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),y.jsx(d5,{variant:"small"})]}),xf=({languages:t})=>{const{isOpen:e,setIsOpen:n}=ht();return y.jsx(It,{options:t,isOpen:e,onOpenChange:n,children:y.jsxs(le.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[y.jsx("span",{className:"material-icons",children:"translate"}),y.jsx("span",{className:"c__language-picker__label",children:"Français"}),y.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},Ef=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=le.useCunningham();return y.jsxs("div",{className:"c__header",children:[y.jsx("div",{className:"c__header__toggle-menu",children:y.jsx(le.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:y.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),y.jsx("div",{className:"c__header__left",children:t}),y.jsxs("div",{className:"c__header__right",children:[n&&y.jsx("div",{className:"c__header__right__language-picker",children:y.jsx(xf,{languages:n})}),e]})]})},Bo={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":"ref(theme.colors.greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"ref(theme.colors.greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"ref(theme.colors.greyscale-500)"},"primary-text":{"background--color":"ref(theme.colors.primary-text)","background--color-hover":"ref(theme.colors.greyscale-100)","background--color-active":"ref(theme.colors.primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","color-hover":"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"ref(theme.colors.greyscale-000)","background--disabled":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-800)","border--color":"ref(theme.colors.greyscale-300)","border--color-hover":"ref(theme.colors.greyscale-300)","border--color-disabled":"ref(theme.colors.greyscale-300)",disabled:"ref(theme.colors.greyscale-400)"},tertiary:{"background--color":"ref(theme.colors.primary-100)","background--color-focus-visible":"ref(theme.colors.primary-100)","background--color-hover":"ref(theme.colors.primary-300)","background--color-active":"ref(theme.colors.primary-300)","background--disabled":"ref(theme.colors.primary-050)",color:"ref(theme.colors.primary-800)",disabled:"ref(theme.colors.primary-300)"},"tertiary-text":{"background--color-hover":"ref(theme.colors.greyscale-100)","color-hover":"ref(theme.colors.primary-text)",color:"ref(theme.colors.primary-600)"},danger:{"color-hover":"white","background--color":"ref(theme.colors.danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"ref(theme.colors.danger-600)","background--color-disabled":"ref(theme.colors.greyscale-100)","color-disabled":"ref(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":"ref(theme.colors.primary-800)","background-color--hover":"ref(theme.colors.greyscale-100)","border--color-disabled":"ref(theme.colors.greyscale-200)","border--color":"ref(theme.colors.primary-800)","background--disabled":"ref(theme.colors.greyscale-200)","background--enable":"ref(theme.colors.primary-800)","check--disabled":"ref(theme.colors.greyscale-300)","check--enable":"ref(theme.colors.greyscale-000)",color:"ref(theme.colors.primary-text)","label--color":"ref(theme.colors.greyscale-1000)","label--size":"ref(theme.font.sizes.sm)","label--weight":"500","text--color":"ref(theme.colors.greyscale-600)","text--size":"ref(theme.font.sizes.s)","text--weight":"400","text--color-disabled":"ref(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":"ref(theme.colors.primary-800)","background-color":"ref(theme.colors.greyscale-000)","accent-color":"ref(theme.colors.primary-800)","accent-color-disabled":"ref(theme.colors.greyscale-300)"},"forms-switch":{"border--color-disabled":"ref(theme.colors.greyscale-300)","border--color":"ref(theme.colors.primary-800)","handle-background-color":"white","handle-background-color--disabled":"ref(theme.colors.greyscale-000)","rail-background-color--disabled":"ref(theme.colors.greyscale-000)","accent-color":"ref(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"},badge:{"font-size":"ref(theme.font.sizes.xs)","border-radius":"4px","padding-inline":"ref(theme.spacings.xs)","padding-block":"ref(theme.spacings.2xs)",accent:{"background-color":"ref(theme.colors.primary-100)",color:"ref(theme.colors.primary-600)"},neutral:{"background-color":"ref(theme.colors.greyscale-100)",color:"ref(theme.colors.greyscale-600)"},danger:{"background-color":"ref(theme.colors.danger-100)",color:"ref(theme.colors.danger-600)"},success:{"background-color":"ref(theme.colors.success-100)",color:"ref(theme.colors.success-600)"},warning:{"background-color":"ref(theme.colors.warning-100)",color:"ref(theme.colors.warning-600)"},info:{"background-color":"ref(theme.colors.info-100)",color:"ref(theme.colors.info-600)"}}}}}},wn=()=>{const[t,e]=u.useState(window.innerWidth),n=parseInt(Bo.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(Bo.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};u.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}},$f=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=wn();return n?y.jsx("div",{className:"c__left-panel",children:t}):y.jsx("div",{className:Pe("c__left-panel__mobile",{open:e}),children:t})},{createElement:mn,createContext:h5,forwardRef:Pf,useCallback:xe,useContext:Df,useEffect:Et,useImperativeHandle:_f,useLayoutEffect:p5,useMemo:v5,useRef:$e,useState:un}=D,fs=D[`useId${Math.random()}`.slice(0,5)],g5=p5,bi=h5(null);bi.displayName="PanelGroupContext";const $t=g5,m5=typeof fs=="function"?fs:()=>null;let b5=0;function Kl(t=null){const e=m5(),n=$e(t||e||null);return n.current===null&&(n.current=""+b5++),t??n.current}function Tf({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:c,onExpand:d,onResize:f,order:h,style:v,tagName:b="div",...p}){const g=Df(bi);if(g===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:C,getPanelSize:S,getPanelStyle:P,groupId:$,isPanelCollapsed:x,reevaluatePanelConstraints:E,registerPanel:N,resizePanel:H,unregisterPanel:j}=g,w=Kl(l),A=$e({callbacks:{onCollapse:c,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:w,idIsFromProps:l!==void 0,order:h});$e({didLogMissingDefaultSizeWarning:!1}),$t(()=>{const{callbacks:L,constraints:U}=A.current,I={...U};A.current.id=w,A.current.idIsFromProps=l!==void 0,A.current.order=h,L.onCollapse=c,L.onExpand=d,L.onResize=f,U.collapsedSize=n,U.collapsible=r,U.defaultSize=i,U.maxSize=a,U.minSize=s,(I.collapsedSize!==U.collapsedSize||I.collapsible!==U.collapsible||I.maxSize!==U.maxSize||I.minSize!==U.minSize)&&E(A.current,I)}),$t(()=>{const L=A.current;return N(L),()=>{j(L)}},[h,w,N,j]),_f(o,()=>({collapse:()=>{m(A.current)},expand:L=>{C(A.current,L)},getId(){return w},getSize(){return S(A.current)},isCollapsed(){return x(A.current)},isExpanded(){return!x(A.current)},resize:L=>{H(A.current,L)}}),[m,C,S,x,w,H]);const B=P(A.current,i);return mn(b,{...p,children:t,className:e,id:l,style:{...B,...v},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":$,"data-panel-id":w,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1)})}const Uo=Pf((t,e)=>mn(Tf,{...t,forwardedRef:e}));Tf.displayName="Panel";Uo.displayName="forwardRef(Panel)";let Wo=null,wt=null;function y5(t,e){if(e){const n=(e&Rf)!==0,r=(e&Mf)!==0,i=(e&Lf)!==0,o=(e&Af)!==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 C5(){wt!==null&&(document.head.removeChild(wt),Wo=null,wt=null)}function Yi(t,e){const n=y5(t,e);Wo!==n&&(Wo=n,wt===null&&(wt=document.createElement("style"),document.head.appendChild(wt)),wt.innerHTML=`*{cursor: ${n}!important;}`)}function If(t){return t.type==="keydown"}function Of(t){return t.type.startsWith("pointer")}function kf(t){return t.type.startsWith("mouse")}function yi(t){if(Of(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(kf(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function S5(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function w5(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 x5(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:vs(t),b:vs(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;X(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:ps(hs(n.a)),b:ps(hs(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 E5=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function $5(t){var e;const n=getComputedStyle((e=Nf(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function P5(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||$5(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"||E5.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function hs(t){let e=t.length;for(;e--;){const n=t[e];if(X(n,"Missing node"),P5(n))return n}return null}function ps(t){return t&&Number(getComputedStyle(t).zIndex)||0}function vs(t){const e=[];for(;t;)e.push(t),t=Nf(t);return e}function Nf(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Rf=1,Mf=2,Lf=4,Af=8,D5=S5()==="coarse";let He=[],dn=!1,ct=new Map,Ci=new Map;const Wn=new Set;function _5(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ct.get(l))!==null&&o!==void 0?o:0;return ct.set(l,s+1),Wn.add(a),qr(),function(){var d;Ci.delete(t),Wn.delete(a);const f=(d=ct.get(l))!==null&&d!==void 0?d:1;if(ct.set(l,f-1),qr(),f===1&&ct.delete(l),He.includes(a)){const h=He.indexOf(a);h>=0&&He.splice(h,1),Hl(),i("up",!0,null)}}}function gs(t){const{target:e}=t,{x:n,y:r}=yi(t);dn=!0,jl({target:e,x:n,y:r}),qr(),He.length>0&&(Yr("down",t),t.preventDefault(),t.stopPropagation())}function In(t){const{x:e,y:n}=yi(t);if(dn&&t.buttons===0&&(dn=!1,Yr("up",t)),!dn){const{target:r}=t;jl({target:r,x:e,y:n})}Yr("move",t),Hl(),He.length>0&&t.preventDefault()}function Vt(t){const{target:e}=t,{x:n,y:r}=yi(t);Ci.clear(),dn=!1,He.length>0&&t.preventDefault(),Yr("up",t),jl({target:e,x:n,y:r}),Hl(),qr()}function jl({target:t,x:e,y:n}){He.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Wn.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:c,right:d,top:f}=a,h=D5?l.coarse:l.fine;if(e>=c-h&&e<=d+h&&n>=f-h&&n<=s+h){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&x5(r,o)>0){let b=r,p=!1;for(;b&&!b.contains(o);){if(w5(b.getBoundingClientRect(),a)){p=!0;break}b=b.parentElement}if(p)return}He.push(i)}})}function Zi(t,e){Ci.set(t,e)}function Hl(){let t=!1,e=!1;He.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;Ci.forEach(r=>{n|=r}),t&&e?Yi("intersection",n):t?Yi("horizontal",n):e?Yi("vertical",n):C5()}function qr(){ct.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",Vt),n.removeEventListener("pointerdown",gs),n.removeEventListener("pointerleave",In),n.removeEventListener("pointermove",In)}),window.removeEventListener("pointerup",Vt),window.removeEventListener("pointercancel",Vt),Wn.size>0&&(dn?(He.length>0&&ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",Vt),n.addEventListener("pointerleave",In),n.addEventListener("pointermove",In))}),window.addEventListener("pointerup",Vt),window.addEventListener("pointercancel",Vt)):ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",gs,{capture:!0}),n.addEventListener("pointermove",In))}))}function Yr(t,e){Wn.forEach(n=>{const{setResizeHandlerState:r}=n,i=He.includes(n);r(t,i,e)})}function T5(){const[t,e]=un(0);return xe(()=>e(n=>n+1),[])}function X(t,e){if(!t)throw console.error(e),Error(e)}const zl=10;function Ot(t,e,n=zl){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function Xe(t,e,n=zl){return Ot(t,e,n)===0}function _e(t,e,n){return Ot(t,e,n)===0}function I5(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(!_e(i,o,n))return!1}return!0}function on({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];X(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(Ot(n,a)<0)if(o){const s=(i+a)/2;Ot(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(zl)),n}function An({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(_e(t,0))return e;const l=[...e],[a,s]=r;X(a!=null,"Invalid first pivot index"),X(s!=null,"Invalid second pivot index");let c=0;if(o==="keyboard"){{const f=t<0?s:a,h=n[f];X(h,`Panel constraints not found for index ${f}`);const{collapsedSize:v=0,collapsible:b,minSize:p=0}=h;if(b){const g=e[f];if(X(g!=null,`Previous layout not found for panel index ${f}`),_e(g,v)){const m=p-g;Ot(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,h=n[f];X(h,`No panel constraints found for index ${f}`);const{collapsedSize:v=0,collapsible:b,minSize:p=0}=h;if(b){const g=e[f];if(X(g!=null,`Previous layout not found for panel index ${f}`),_e(g,p)){const m=g-v;Ot(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let h=t<0?s:a,v=0;for(;;){const p=e[h];X(p!=null,`Previous layout not found for panel index ${h}`);const m=on({panelConstraints:n,panelIndex:h,size:100})-p;if(v+=m,h+=f,h<0||h>=n.length)break}const b=Math.min(Math.abs(t),Math.abs(v));t=t<0?0-b:b}{let h=t<0?a:s;for(;h>=0&&h<n.length;){const v=Math.abs(t)-Math.abs(c),b=e[h];X(b!=null,`Previous layout not found for panel index ${h}`);const p=b-v,g=on({panelConstraints:n,panelIndex:h,size:p});if(!_e(b,g)&&(c+=b-g,l[h]=g,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?h--:h++}}if(I5(i,l))return i;{const f=t<0?s:a,h=e[f];X(h!=null,`Previous layout not found for panel index ${f}`);const v=h+c,b=on({panelConstraints:n,panelIndex:f,size:v});if(l[f]=b,!_e(b,v)){let p=v-b,m=t<0?s:a;for(;m>=0&&m<n.length;){const C=l[m];X(C!=null,`Previous layout not found for panel index ${m}`);const S=C+p,P=on({panelConstraints:n,panelIndex:m,size:S});if(_e(C,P)||(p-=P-C,l[m]=P),_e(p,0))break;t>0?m--:m++}}}const d=l.reduce((f,h)=>h+f,0);return _e(d,100)?l:i}function O5({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];X(a!=null,"No pivot index found"),e.forEach((f,h)=>{const{constraints:v}=f,{maxSize:b=100,minSize:p=0}=v;h===a?(r=p,i=b):(o+=p,l+=b)});const s=Math.min(i,100-o),c=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:c,valueNow:d}}function Gn(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function Ff(t,e,n=document){const i=Gn(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function Kf(t,e,n){const r=Ff(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function jf(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 k5(t,e,n,r=document){var i,o,l,a;const s=Si(e,r),c=Gn(t,r),d=s?c.indexOf(s):-1,f=(i=(o=n[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,h=(l=(a=n[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,h]}function N5({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){$e({didWarnAboutMissingResizeHandle:!1}),$t(()=>{if(!o)return;const a=Gn(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:c,valueMin:d,valueNow:f}=O5({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),h=a[s];if(h!=null){const v=i[s];X(v,`No panel data found for index "${s}"`),h.setAttribute("aria-controls",v.id),h.setAttribute("aria-valuemax",""+Math.round(c)),h.setAttribute("aria-valuemin",""+Math.round(d)),h.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,c)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Et(()=>{if(!o)return;const a=e.current;X(a,"Eager values not found");const{panelDataArray:s}=a,c=jf(n,o);X(c!=null,`No group found for id "${n}"`);const d=Gn(n,o);X(d,`No resize handles found for group id "${n}"`);const f=d.map(h=>{const v=h.getAttribute("data-panel-resize-handle-id");X(v,"Resize handle element has no handle id attribute");const[b,p]=k5(n,v,s,o);if(b==null||p==null)return()=>{};const g=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const C=s.findIndex(S=>S.id===b);if(C>=0){const S=s[C];X(S,`No panel data found for index ${C}`);const P=r[C],{collapsedSize:$=0,collapsible:x,minSize:E=0}=S.constraints;if(P!=null&&x){const N=An({delta:_e(P,$)?E-$:$-P,initialLayout:r,panelConstraints:s.map(H=>H.constraints),pivotIndices:Kf(n,v,o),prevLayout:r,trigger:"keyboard"});r!==N&&l(N)}}break}}};return h.addEventListener("keydown",g),()=>{h.removeEventListener("keydown",g)}});return()=>{f.forEach(h=>h())}},[o,t,e,n,r,i,l])}function ms(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 Hf(t,e){const n=t==="horizontal",{x:r,y:i}=yi(e);return n?r:i}function R5(t,e,n,r,i){const o=n==="horizontal",l=Si(e,i);X(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");X(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const c=Hf(n,t),d=jf(a,i);X(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),h=o?f.width:f.height;return(c-s)/h*100}function M5(t,e,n,r,i,o){if(If(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:R5(t,e,n,r,o)}function L5({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];X(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];X(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,c=i/s;r++,e[o]=c,i-=c}return e}function Bt(t,e,n){e.forEach((r,i)=>{const o=t[i];X(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:c=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:h,onExpand:v,onResize:b}=l;b&&b(r,f),d&&(h||v)&&(v&&(f==null||Xe(f,c))&&!Xe(r,c)&&v(),h&&(f==null||!Xe(f,c))&&Xe(r,c)&&h())}})}function fr(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 A5({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 F5(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function bs(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 zf(t){return`react-resizable-panels:${t}`}function Vf(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 Bf(t,e){try{const n=zf(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function K5(t,e,n){var r,i;const o=(r=Bf(t,n))!==null&&r!==void 0?r:{},l=Vf(e);return(i=o[l])!==null&&i!==void 0?i:null}function j5(t,e,n,r,i){var o;const l=zf(t),a=Vf(e),s=(o=Bf(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(c){console.error(c)}}function ys({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(!_e(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];X(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];X(l!=null,`No layout data found for index ${o}`);const a=on({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!_e(i,0))for(let o=0;o<e.length;o++){const l=n[o];X(l!=null,`No layout data found for index ${o}`);const a=l+i,s=on({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,_e(i,0)))break}return n}const H5=100,Fn={getItem:t=>(bs(Fn),Fn.getItem(t)),setItem:(t,e)=>{bs(Fn),Fn.setItem(t,e)}},Cs={};function Uf({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=Fn,style:c,tagName:d="div",...f}){const h=Kl(o),v=$e(null),[b,p]=un(null),[g,m]=un([]),C=T5(),S=$e({}),P=$e(new Map),$=$e(0),x=$e({autoSaveId:t,direction:r,dragState:b,id:h,keyboardResizeBy:a,onLayout:l,storage:s}),E=$e({layout:g,panelDataArray:[],panelDataArrayChanged:!1});$e({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_f(i,()=>({getId:()=>x.current.id,getLayout:()=>{const{layout:O}=E.current;return O},setLayout:O=>{const{onLayout:K}=x.current,{layout:M,panelDataArray:z}=E.current,V=ys({layout:O,panelConstraints:z.map(W=>W.constraints)});ms(M,V)||(m(V),E.current.layout=V,K&&K(V),Bt(z,V,S.current))}}),[]),$t(()=>{x.current.autoSaveId=t,x.current.direction=r,x.current.dragState=b,x.current.id=h,x.current.onLayout=l,x.current.storage=s}),N5({committedValuesRef:x,eagerValuesRef:E,groupId:h,layout:g,panelDataArray:E.current.panelDataArray,setLayout:m,panelGroupElement:v.current}),Et(()=>{const{panelDataArray:O}=E.current;if(t){if(g.length===0||g.length!==O.length)return;let K=Cs[t];K==null&&(K=F5(j5,H5),Cs[t]=K);const M=[...O],z=new Map(P.current);K(t,M,z,g,s)}},[t,g,s]),Et(()=>{});const N=xe(O=>{const{onLayout:K}=x.current,{layout:M,panelDataArray:z}=E.current;if(O.constraints.collapsible){const V=z.map(se=>se.constraints),{collapsedSize:W=0,panelSize:Y,pivotIndices:J}=gt(z,O,M);if(X(Y!=null,`Panel size not found for panel "${O.id}"`),!Xe(Y,W)){P.current.set(O.id,Y);const q=tn(z,O)===z.length-1?Y-W:W-Y,te=An({delta:q,initialLayout:M,panelConstraints:V,pivotIndices:J,prevLayout:M,trigger:"imperative-api"});fr(M,te)||(m(te),E.current.layout=te,K&&K(te),Bt(z,te,S.current))}}},[]),H=xe((O,K)=>{const{onLayout:M}=x.current,{layout:z,panelDataArray:V}=E.current;if(O.constraints.collapsible){const W=V.map(ue=>ue.constraints),{collapsedSize:Y=0,panelSize:J=0,minSize:se=0,pivotIndices:q}=gt(V,O,z),te=K??se;if(Xe(J,Y)){const ue=P.current.get(O.id),ee=ue!=null&&ue>=te?ue:te,xn=tn(V,O)===V.length-1?J-ee:ee-J,we=An({delta:xn,initialLayout:z,panelConstraints:W,pivotIndices:q,prevLayout:z,trigger:"imperative-api"});fr(z,we)||(m(we),E.current.layout=we,M&&M(we),Bt(V,we,S.current))}}},[]),j=xe(O=>{const{layout:K,panelDataArray:M}=E.current,{panelSize:z}=gt(M,O,K);return X(z!=null,`Panel size not found for panel "${O.id}"`),z},[]),w=xe((O,K)=>{const{panelDataArray:M}=E.current,z=tn(M,O);return A5({defaultSize:K,dragState:b,layout:g,panelData:M,panelIndex:z})},[b,g]),A=xe(O=>{const{layout:K,panelDataArray:M}=E.current,{collapsedSize:z=0,collapsible:V,panelSize:W}=gt(M,O,K);return X(W!=null,`Panel size not found for panel "${O.id}"`),V===!0&&Xe(W,z)},[]),B=xe(O=>{const{layout:K,panelDataArray:M}=E.current,{collapsedSize:z=0,collapsible:V,panelSize:W}=gt(M,O,K);return X(W!=null,`Panel size not found for panel "${O.id}"`),!V||Ot(W,z)>0},[]),L=xe(O=>{const{panelDataArray:K}=E.current;K.push(O),K.sort((M,z)=>{const V=M.order,W=z.order;return V==null&&W==null?0:V==null?-1:W==null?1:V-W}),E.current.panelDataArrayChanged=!0,C()},[C]);$t(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:O,onLayout:K,storage:M}=x.current,{layout:z,panelDataArray:V}=E.current;let W=null;if(O){const J=K5(O,V,M);J&&(P.current=new Map(Object.entries(J.expandToSizes)),W=J.layout)}W==null&&(W=L5({panelDataArray:V}));const Y=ys({layout:W,panelConstraints:V.map(J=>J.constraints)});ms(z,Y)||(m(Y),E.current.layout=Y,K&&K(Y),Bt(V,Y,S.current))}}),$t(()=>{const O=E.current;return()=>{O.layout=[]}},[]);const U=xe(O=>{let K=!1;const M=v.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(K=!0),function(V){V.preventDefault();const W=v.current;if(!W)return()=>null;const{direction:Y,dragState:J,id:se,keyboardResizeBy:q,onLayout:te}=x.current,{layout:ue,panelDataArray:ee}=E.current,{initialLayout:rt}=J??{},xn=Kf(se,O,W);let we=M5(V,O,Y,J,q,W);const oa=Y==="horizontal";oa&&K&&(we=-we);const A2=ee.map(F2=>F2.constraints),En=An({delta:we,initialLayout:rt??ue,panelConstraints:A2,pivotIndices:xn,prevLayout:ue,trigger:If(V)?"keyboard":"mouse-or-touch"}),la=!fr(ue,En);(Of(V)||kf(V))&&$.current!=we&&($.current=we,!la&&we!==0?oa?Zi(O,we<0?Rf:Mf):Zi(O,we<0?Lf:Af):Zi(O,0)),la&&(m(En),E.current.layout=En,te&&te(En),Bt(ee,En,S.current))}},[]),I=xe((O,K)=>{const{onLayout:M}=x.current,{layout:z,panelDataArray:V}=E.current,W=V.map(ue=>ue.constraints),{panelSize:Y,pivotIndices:J}=gt(V,O,z);X(Y!=null,`Panel size not found for panel "${O.id}"`);const q=tn(V,O)===V.length-1?Y-K:K-Y,te=An({delta:q,initialLayout:z,panelConstraints:W,pivotIndices:J,prevLayout:z,trigger:"imperative-api"});fr(z,te)||(m(te),E.current.layout=te,M&&M(te),Bt(V,te,S.current))},[]),R=xe((O,K)=>{const{layout:M,panelDataArray:z}=E.current,{collapsedSize:V=0,collapsible:W}=K,{collapsedSize:Y=0,collapsible:J,maxSize:se=100,minSize:q=0}=O.constraints,{panelSize:te}=gt(z,O,M);te!=null&&(W&&J&&Xe(te,V)?Xe(V,Y)||I(O,Y):te<q?I(O,q):te>se&&I(O,se))},[I]),k=xe((O,K)=>{const{direction:M}=x.current,{layout:z}=E.current;if(!v.current)return;const V=Si(O,v.current);X(V,`Drag handle element not found for id "${O}"`);const W=Hf(M,K);p({dragHandleId:O,dragHandleRect:V.getBoundingClientRect(),initialCursorPosition:W,initialLayout:z})},[]),G=xe(()=>{p(null)},[]),T=xe(O=>{const{panelDataArray:K}=E.current,M=tn(K,O);M>=0&&(K.splice(M,1),delete S.current[O.id],E.current.panelDataArrayChanged=!0,C())},[C]),F=v5(()=>({collapsePanel:N,direction:r,dragState:b,expandPanel:H,getPanelSize:j,getPanelStyle:w,groupId:h,isPanelCollapsed:A,isPanelExpanded:B,reevaluatePanelConstraints:R,registerPanel:L,registerResizeHandle:U,resizePanel:I,startDragging:k,stopDragging:G,unregisterPanel:T,panelGroupElement:v.current}),[N,b,r,H,j,w,h,A,B,R,L,U,I,k,G,T]),_={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return mn(bi.Provider,{value:F},mn(d,{...f,children:e,className:n,id:o,ref:v,style:{..._,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":h}))}const Wf=Pf((t,e)=>mn(Uf,{...t,forwardedRef:e}));Uf.displayName="PanelGroup";Wf.displayName="forwardRef(PanelGroup)";function tn(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function gt(t,e,n){const r=tn(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function z5({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Et(()=>{if(t||n==null||r==null)return;const i=Si(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");X(a,`No group element found for id "${a}"`);const s=Gn(a,r),c=Ff(a,e,r);X(c!==null,`No resize element found for id "${e}"`);const d=l.shiftKey?c>0?c-1:s.length-1:c+1<s.length?c+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function Gf({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:c=0,tagName:d="div",...f}){var h,v;const b=$e(null),p=$e({onDragging:l});Et(()=>{p.current.onDragging=l});const g=Df(bi);if(g===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:C,registerResizeHandle:S,startDragging:P,stopDragging:$,panelGroupElement:x}=g,E=Kl(i),[N,H]=un("inactive"),[j,w]=un(!1),[A,B]=un(null),L=$e({state:N});$t(()=>{L.current.state=N}),Et(()=>{if(n)B(null);else{const k=S(E);B(()=>k)}},[n,E,S]);const U=(h=r==null?void 0:r.coarse)!==null&&h!==void 0?h:15,I=(v=r==null?void 0:r.fine)!==null&&v!==void 0?v:5;return Et(()=>{if(n||A==null)return;const k=b.current;return X(k,"Element ref not attached"),_5(E,k,m,{coarse:U,fine:I},(T,F,_)=>{if(F)switch(T){case"down":{H("drag"),X(_,'Expected event to be defined for "down" action'),P(E,_);const{onDragging:O}=p.current;O&&O(!0);break}case"move":{const{state:O}=L.current;O!=="drag"&&H("hover"),X(_,'Expected event to be defined for "move" action'),A(_);break}case"up":{H("hover"),$();const{onDragging:O}=p.current;O&&O(!1);break}}else H("inactive")})},[U,m,n,I,S,E,A,P,$]),z5({disabled:n,handleId:E,resizeHandler:A,panelGroupElement:x}),mn(d,{...f,children:t,className:e,id:i,onBlur:()=>{w(!1),o==null||o()},onFocus:()=>{w(!0),a==null||a()},ref:b,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:c,"data-panel-group-direction":m,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":N==="drag"?"pointer":j?"keyboard":void 0,"data-resize-handle-state":N,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":E})}Gf.displayName="PanelResizeHandle";const V5=({children:t,isOpen:e})=>{const{isDesktop:n}=wn();return n?y.jsx("div",{className:Pe("c__right-panel",{open:e}),children:t}):y.jsx("div",{className:Pe("c__right-panel__mobile",{open:e}),children:t})},B5=(t,e,n)=>{const[r,i]=u.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return u.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},U5=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...c})=>{const[d,f]=B5(!1,c.isLeftPanelOpen,c.setIsLeftPanelOpen),{isDesktop:h}=wn(),v=u.useRef(null),[b,p]=u.useState(hr(300,h)),[g,m]=u.useState(hr(450,h)),C=()=>{f(!d)};u.useEffect(()=>{const $=()=>{const x=Math.round(hr(300,h)),E=Math.round(Math.min(hr(450,h),40));p(h?x:0),m(a?E:x)};return $(),window.addEventListener("resize",()=>{$()}),()=>{window.removeEventListener("resize",$)}},[h,a]);const S=h?!n:!0,P=h?!n:d;return y.jsxs("div",{className:"c__main-layout",children:[y.jsx("div",{className:"c__main-layout__header",children:y.jsx(Ef,{onTogglePanel:C,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),y.jsx("div",{className:"c__main-layout__content",children:y.jsxs(Wf,{autoSaveId:"persistance",direction:"horizontal",children:[S&&y.jsxs(y.Fragment,{children:[y.jsx(Uo,{ref:v,order:0,defaultSize:b,minSize:b,maxSize:g,children:y.jsx($f,{isOpen:P,children:r})}),h&&y.jsx(Gf,{className:"bg-greyscale-200",style:{width:"1px"}})]}),y.jsx(Uo,{order:1,children:y.jsxs("div",{className:"c__main-layout__content__center",children:[y.jsx("div",{className:"c__main-layout__content__center__children",children:e}),y.jsx(V5,{isOpen:s,children:i})]})})]})})]})},hr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},W5=52,Vl=({size:t="sm"})=>y.jsx("div",{className:["c__spinner",t].join(" ")}),qf=({children:t,text:e,...n})=>y.jsxs("div",{className:"suite__label__container",children:[y.jsx("label",{...n,children:t}),e&&y.jsx("span",{className:"suite__label__container__description",children:e})]}),G5=({label:t,text:e,labelSide:n="right",children:r})=>y.jsxs("div",{className:Pe("c__with-label",{[n]:!0}),children:[y.jsx(qf,{children:t,text:e}),r]});var Ss=1,q5=.9,Y5=.8,Z5=.17,Xi=.1,Ji=.999,X5=.9999,J5=.99,Q5=/[\\\/_+.#"@\[\(\{&]/,e1=/[\\\/_+.#"@\[\(\{&]/g,t1=/[\s-]/,Yf=/[\s-]/g;function Go(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Ss:J5;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),c=n.indexOf(s,i),d=0,f,h,v,b;c>=0;)f=Go(t,e,n,r,c+1,o+1,l),f>d&&(c===i?f*=Ss:Q5.test(t.charAt(c-1))?(f*=Y5,v=t.slice(i,c-1).match(e1),v&&i>0&&(f*=Math.pow(Ji,v.length))):t1.test(t.charAt(c-1))?(f*=q5,b=t.slice(i,c-1).match(Yf),b&&i>0&&(f*=Math.pow(Ji,b.length))):(f*=Z5,i>0&&(f*=Math.pow(Ji,c-i))),t.charAt(c)!==e.charAt(o)&&(f*=X5)),(f<Xi&&n.charAt(c-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(c-1)!==r.charAt(o))&&(h=Go(t,e,n,r,c+1,o+2,l),h*Xi>f&&(f=h*Xi)),f>d&&(d=f),c=n.indexOf(s,c+1);return l[a]=d,d}function ws(t){return t.toLowerCase().replace(Yf," ")}function n1(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Go(t,e,ws(t),ws(e),0,0,{})}function dt(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 xs(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Zf(...t){return e=>{let n=!1;const r=t.map(i=>{const o=xs(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():xs(t[i],null)}}}}function jt(...t){return D.useCallback(Zf(...t),t)}function r1(t,e){const n=D.createContext(e),r=o=>{const{children:l,...a}=o,s=D.useMemo(()=>a,Object.values(a));return y.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=D.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 i1(t,e=[]){let n=[];function r(o,l){const a=D.createContext(l),s=n.length;n=[...n,l];const c=f=>{var m;const{scope:h,children:v,...b}=f,p=((m=h==null?void 0:h[t])==null?void 0:m[s])||a,g=D.useMemo(()=>b,Object.values(b));return y.jsx(p.Provider,{value:g,children:v})};c.displayName=o+"Provider";function d(f,h){var p;const v=((p=h==null?void 0:h[t])==null?void 0:p[s])||a,b=D.useContext(v);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const i=()=>{const o=n.map(l=>D.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return D.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,o1(i,...e)]}function o1(...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:c})=>{const f=s(o)[`__scope${c}`];return{...a,...f}},{});return D.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var qn=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},l1=D[" useId ".trim().toString()]||(()=>{}),a1=0;function Qe(t){const[e,n]=D.useState(l1());return qn(()=>{n(r=>r??String(a1++))},[t]),e?`radix-${e}`:""}var s1=D[" useInsertionEffect ".trim().toString()]||qn;function c1({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,o,l]=u1({defaultProp:e,onChange:n}),a=t!==void 0,s=a?t:i;{const d=D.useRef(t!==void 0);D.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=D.useCallback(d=>{var f;if(a){const h=d1(d)?d(t):d;h!==t&&((f=l.current)==null||f.call(l,h))}else o(d)},[a,t,o,l]);return[s,c]}function u1({defaultProp:t,onChange:e}){const[n,r]=D.useState(t),i=D.useRef(n),o=D.useRef(e);return s1(()=>{o.current=e},[e]),D.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function d1(t){return typeof t=="function"}function Xf(t){const e=f1(t),n=D.forwardRef((r,i)=>{const{children:o,...l}=r,a=D.Children.toArray(o),s=a.find(p1);if(s){const c=s.props.children,d=a.map(f=>f===s?D.Children.count(c)>1?D.Children.only(null):D.isValidElement(c)?c.props.children:null:f);return y.jsx(e,{...l,ref:i,children:D.isValidElement(c)?D.cloneElement(c,void 0,d):null})}return y.jsx(e,{...l,ref:i,children:o})});return n.displayName=`${t}.Slot`,n}function f1(t){const e=D.forwardRef((n,r)=>{const{children:i,...o}=n;if(D.isValidElement(i)){const l=g1(i),a=v1(o,i.props);return i.type!==D.Fragment&&(a.ref=r?Zf(r,l):l),D.cloneElement(i,a)}return D.Children.count(i)>1?D.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var h1=Symbol("radix.slottable");function p1(t){return D.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===h1}function v1(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)=>{const s=o(...a);return i(...a),s}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function g1(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 m1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=m1.reduce((t,e)=>{const n=Xf(`Primitive.${e}`),r=D.forwardRef((i,o)=>{const{asChild:l,...a}=i,s=l?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(s,{...a,ref:o})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function b1(t,e){t&&K2.flushSync(()=>t.dispatchEvent(e))}function Yn(t){const e=D.useRef(t);return D.useEffect(()=>{e.current=t}),D.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function y1(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t);D.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 C1="DismissableLayer",qo="dismissableLayer.update",S1="dismissableLayer.pointerDownOutside",w1="dismissableLayer.focusOutside",Es,Jf=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qf=D.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,c=D.useContext(Jf),[d,f]=D.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=D.useState({}),b=jt(e,E=>f(E)),p=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(g),C=d?p.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,P=C>=m,$=$1(E=>{const N=E.target,H=[...c.branches].some(j=>j.contains(N));!P||H||(i==null||i(E),l==null||l(E),E.defaultPrevented||a==null||a())},h),x=P1(E=>{const N=E.target;[...c.branches].some(j=>j.contains(N))||(o==null||o(E),l==null||l(E),E.defaultPrevented||a==null||a())},h);return y1(E=>{C===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),D.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Es=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),$s(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Es)}},[d,h,n,c]),D.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),$s())},[d,c]),D.useEffect(()=>{const E=()=>v({});return document.addEventListener(qo,E),()=>document.removeEventListener(qo,E)},[]),y.jsx(me.div,{...s,ref:b,style:{pointerEvents:S?P?"auto":"none":void 0,...t.style},onFocusCapture:dt(t.onFocusCapture,x.onFocusCapture),onBlurCapture:dt(t.onBlurCapture,x.onBlurCapture),onPointerDownCapture:dt(t.onPointerDownCapture,$.onPointerDownCapture)})});Qf.displayName=C1;var x1="DismissableLayerBranch",E1=D.forwardRef((t,e)=>{const n=D.useContext(Jf),r=D.useRef(null),i=jt(e,r);return D.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y.jsx(me.div,{...t,ref:i})});E1.displayName=x1;function $1(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t),r=D.useRef(!1),i=D.useRef(()=>{});return D.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){e0(S1,n,c,{discrete:!0})};const c={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 P1(t,e=globalThis==null?void 0:globalThis.document){const n=Yn(t),r=D.useRef(!1);return D.useEffect(()=>{const i=o=>{o.target&&!r.current&&e0(w1,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 $s(){const t=new CustomEvent(qo);document.dispatchEvent(t)}function e0(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?b1(i,o):i.dispatchEvent(o)}var Qi="focusScope.autoFocusOnMount",eo="focusScope.autoFocusOnUnmount",Ps={bubbles:!1,cancelable:!0},D1="FocusScope",t0=D.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=D.useState(null),c=Yn(i),d=Yn(o),f=D.useRef(null),h=jt(e,p=>s(p)),v=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let p=function(S){if(v.paused||!a)return;const P=S.target;a.contains(P)?f.current=P:ot(f.current,{select:!0})},g=function(S){if(v.paused||!a)return;const P=S.relatedTarget;P!==null&&(a.contains(P)||ot(f.current,{select:!0}))},m=function(S){if(document.activeElement===document.body)for(const $ of S)$.removedNodes.length>0&&ot(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const C=new MutationObserver(m);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),C.disconnect()}}},[r,a,v.paused]),D.useEffect(()=>{if(a){_s.add(v);const p=document.activeElement;if(!a.contains(p)){const m=new CustomEvent(Qi,Ps);a.addEventListener(Qi,c),a.dispatchEvent(m),m.defaultPrevented||(_1(N1(n0(a)),{select:!0}),document.activeElement===p&&ot(a))}return()=>{a.removeEventListener(Qi,c),setTimeout(()=>{const m=new CustomEvent(eo,Ps);a.addEventListener(eo,d),a.dispatchEvent(m),m.defaultPrevented||ot(p??document.body,{select:!0}),a.removeEventListener(eo,d),_s.remove(v)},0)}}},[a,c,d,v]);const b=D.useCallback(p=>{if(!n&&!r||v.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,m=document.activeElement;if(g&&m){const C=p.currentTarget,[S,P]=T1(C);S&&P?!p.shiftKey&&m===P?(p.preventDefault(),n&&ot(S,{select:!0})):p.shiftKey&&m===S&&(p.preventDefault(),n&&ot(P,{select:!0})):m===C&&p.preventDefault()}},[n,r,v.paused]);return y.jsx(me.div,{tabIndex:-1,...l,ref:h,onKeyDown:b})});t0.displayName=D1;function _1(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(ot(r,{select:e}),document.activeElement!==n)return}function T1(t){const e=n0(t),n=Ds(e,t),r=Ds(e.reverse(),t);return[n,r]}function n0(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 Ds(t,e){for(const n of t)if(!I1(n,{upTo:e}))return n}function I1(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 O1(t){return t instanceof HTMLInputElement&&"select"in t}function ot(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&O1(t)&&e&&t.select()}}var _s=k1();function k1(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Ts(t,e),t.unshift(e)},remove(e){var n;t=Ts(t,e),(n=t[0])==null||n.resume()}}}function Ts(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function N1(t){return t.filter(e=>e.tagName!=="A")}var R1="Portal",r0=D.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=D.useState(!1);qn(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Lt.createPortal(y.jsx(me.div,{...r,ref:e}),l):null});r0.displayName=R1;function M1(t,e){return D.useReducer((n,r)=>e[n][r]??n,t)}var wi=t=>{const{present:e,children:n}=t,r=L1(e),i=typeof n=="function"?n({present:r.isPresent}):D.Children.only(n),o=jt(r.ref,A1(i));return typeof n=="function"||r.isPresent?D.cloneElement(i,{ref:o}):null};wi.displayName="Presence";function L1(t){const[e,n]=D.useState(),r=D.useRef(null),i=D.useRef(t),o=D.useRef("none"),l=t?"mounted":"unmounted",[a,s]=M1(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const c=pr(r.current);o.current=a==="mounted"?c:"none"},[a]),qn(()=>{const c=r.current,d=i.current;if(d!==t){const h=o.current,v=pr(c);t?s("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&h!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),qn(()=>{if(e){let c;const d=e.ownerDocument.defaultView??window,f=v=>{const p=pr(r.current).includes(v.animationName);if(v.target===e&&p&&(s("ANIMATION_END"),!i.current)){const g=e.style.animationFillMode;e.style.animationFillMode="forwards",c=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},h=v=>{v.target===e&&(o.current=pr(r.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:D.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function pr(t){return(t==null?void 0:t.animationName)||"none"}function A1(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 to=0;function F1(){D.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Is()),document.body.insertAdjacentElement("beforeend",t[1]??Is()),to++,()=>{to===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),to--}},[])}function Is(){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 Pr="right-scroll-bar-position",Dr="width-before-scroll-bar",K1="with-scroll-bars-hidden",j1="--removed-body-scroll-bar-size";function no(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function H1(t,e){var n=u.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 z1=typeof window<"u"?D.useLayoutEffect:D.useEffect,Os=new WeakMap;function V1(t,e){var n=H1(null,function(r){return t.forEach(function(i){return no(i,r)})});return z1(function(){var r=Os.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||no(a,null)}),o.forEach(function(a){i.has(a)||no(a,l)})}Os.set(n,t)},[t]),n}function B1(t){return t}function U1(t,e){e===void 0&&(e=B1);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)},c=function(){return Promise.resolve().then(s)};c(),n={push:function(d){l.push(d),c()},filter:function(d){return l=l.filter(d),n}}}};return i}function W1(t){t===void 0&&(t={});var e=U1(null);return e.options=Ge({async:!0,ssr:!1},t),e}var i0=function(t){var e=t.sideCar,n=mu(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 D.createElement(r,Ge({},n))};i0.isSideCarExport=!0;function G1(t,e){return t.useMedium(e),i0}var o0=W1(),ro=function(){},xi=D.forwardRef(function(t,e){var n=D.useRef(null),r=D.useState({onScrollCapture:ro,onWheelCapture:ro,onTouchMoveCapture:ro}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,h=t.sideCar,v=t.noRelative,b=t.noIsolation,p=t.inert,g=t.allowPinchZoom,m=t.as,C=m===void 0?"div":m,S=t.gapMode,P=mu(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=h,x=V1([n,e]),E=Ge(Ge({},P),i);return D.createElement(D.Fragment,null,d&&D.createElement($,{sideCar:o0,removeScrollBar:c,shards:f,noRelative:v,noIsolation:b,inert:p,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:S}),l?D.cloneElement(D.Children.only(a),Ge(Ge({},E),{ref:x})):D.createElement(C,Ge({},E,{className:s,ref:x}),a))});xi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xi.classNames={fullWidth:Dr,zeroRight:Pr};var q1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Y1(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=q1();return e&&t.setAttribute("nonce",e),t}function Z1(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function X1(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var J1=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Y1())&&(Z1(e,n),X1(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Q1=function(){var t=J1();return function(e,n){D.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},l0=function(){var t=Q1(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},em={left:0,top:0,right:0,gap:0},io=function(t){return parseInt(t||"",10)||0},tm=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[io(n),io(r),io(i)]},nm=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return em;var e=tm(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])}},rm=l0(),fn="data-scroll-locked",im=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
|
|
45
45
|
.`.concat(K1,` {
|
|
46
46
|
overflow: hidden `).concat(r,`;
|
|
47
47
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
48
48
|
}
|
|
49
|
-
body[`).concat(
|
|
49
|
+
body[`).concat(fn,`] {
|
|
50
50
|
overflow: hidden `).concat(r,`;
|
|
51
51
|
overscroll-behavior: contain;
|
|
52
52
|
`).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
@@ -59,41 +59,41 @@ React keys must be passed directly to JSX without using spread:
|
|
|
59
59
|
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.`).concat(
|
|
62
|
+
.`).concat(Pr,` {
|
|
63
63
|
right: `).concat(a,"px ").concat(r,`;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.`).concat(
|
|
66
|
+
.`).concat(Dr,` {
|
|
67
67
|
margin-right: `).concat(a,"px ").concat(r,`;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.`).concat(
|
|
70
|
+
.`).concat(Pr," .").concat(Pr,` {
|
|
71
71
|
right: 0 `).concat(r,`;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.`).concat(
|
|
74
|
+
.`).concat(Dr," .").concat(Dr,` {
|
|
75
75
|
margin-right: 0 `).concat(r,`;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
body[`).concat(
|
|
78
|
+
body[`).concat(fn,`] {
|
|
79
79
|
`).concat(j1,": ").concat(a,`px;
|
|
80
80
|
}
|
|
81
|
-
`)},ks=function(){var t=parseInt(document.body.getAttribute(
|
|
81
|
+
`)},ks=function(){var t=parseInt(document.body.getAttribute(fn)||"0",10);return isFinite(t)?t:0},om=function(){D.useEffect(function(){return document.body.setAttribute(fn,(ks()+1).toString()),function(){var t=ks()-1;t<=0?document.body.removeAttribute(fn):document.body.setAttribute(fn,t.toString())}},[])},lm=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;om();var o=D.useMemo(function(){return nm(i)},[i]);return D.createElement(rm,{styles:im(o,!e,i,n?"":"!important")})},Yo=!1;if(typeof window<"u")try{var vr=Object.defineProperty({},"passive",{get:function(){return Yo=!0,!0}});window.addEventListener("test",vr,vr),window.removeEventListener("test",vr,vr)}catch{Yo=!1}var Ut=Yo?{passive:!1}:!1,am=function(t){return t.tagName==="TEXTAREA"},a0=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!am(t)&&n[e]==="visible")},sm=function(t){return a0(t,"overflowY")},cm=function(t){return a0(t,"overflowX")},Ns=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=s0(t,r);if(i){var o=c0(t,r),l=o[1],a=o[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},um=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},dm=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},s0=function(t,e){return t==="v"?sm(e):cm(e)},c0=function(t,e){return t==="v"?um(e):dm(e)},fm=function(t,e){return t==="h"&&e==="rtl"?-1:1},hm=function(t,e,n,r,i){var o=fm(t,window.getComputedStyle(e).direction),l=o*r,a=n.target,s=e.contains(a),c=!1,d=l>0,f=0,h=0;do{if(!a)break;var v=c0(t,a),b=v[0],p=v[1],g=v[2],m=p-g-o*b;(b||m)&&s0(t,a)&&(f+=m,h+=b);var C=a.parentNode;a=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!s&&a!==document.body||s&&(e.contains(a)||e===a));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(c=!0),c},gr=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Rs=function(t){return[t.deltaX,t.deltaY]},Ms=function(t){return t&&"current"in t?t.current:t},pm=function(t,e){return t[0]===e[0]&&t[1]===e[1]},vm=function(t){return`
|
|
82
82
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
83
83
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
84
|
-
`)},gm=0,
|
|
84
|
+
`)},gm=0,Wt=[];function mm(t){var e=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),i=D.useState(gm++)[0],o=D.useState(l0)[0],l=D.useRef(t);D.useEffect(function(){l.current=t},[t]),D.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var p=kp([t.lockRef.current],(t.shards||[]).map(Ms),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=D.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!l.current.allowPinchZoom;var m=gr(p),C=n.current,S="deltaX"in p?p.deltaX:C[0]-m[0],P="deltaY"in p?p.deltaY:C[1]-m[1],$,x=p.target,E=Math.abs(S)>Math.abs(P)?"h":"v";if("touches"in p&&E==="h"&&x.type==="range")return!1;var N=Ns(E,x);if(!N)return!0;if(N?$=E:($=E==="v"?"h":"v",N=Ns(E,x)),!N)return!1;if(!r.current&&"changedTouches"in p&&(S||P)&&(r.current=$),!$)return!0;var H=r.current||$;return hm(H,g,p,H==="h"?S:P)},[]),s=D.useCallback(function(p){var g=p;if(!(!Wt.length||Wt[Wt.length-1]!==o)){var m="deltaY"in g?Rs(g):gr(g),C=e.current.filter(function($){return $.name===g.type&&($.target===g.target||g.target===$.shadowParent)&&pm($.delta,m)})[0];if(C&&C.should){g.cancelable&&g.preventDefault();return}if(!C){var S=(l.current.shards||[]).map(Ms).filter(Boolean).filter(function($){return $.contains(g.target)}),P=S.length>0?a(g,S[0]):!l.current.noIsolation;P&&g.cancelable&&g.preventDefault()}}},[]),c=D.useCallback(function(p,g,m,C){var S={name:p,delta:g,target:m,should:C,shadowParent:bm(m)};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(P){return P!==S})},1)},[]),d=D.useCallback(function(p){n.current=gr(p),r.current=void 0},[]),f=D.useCallback(function(p){c(p.type,Rs(p),p.target,a(p,t.lockRef.current))},[]),h=D.useCallback(function(p){c(p.type,gr(p),p.target,a(p,t.lockRef.current))},[]);D.useEffect(function(){return Wt.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",s,Ut),document.addEventListener("touchmove",s,Ut),document.addEventListener("touchstart",d,Ut),function(){Wt=Wt.filter(function(p){return p!==o}),document.removeEventListener("wheel",s,Ut),document.removeEventListener("touchmove",s,Ut),document.removeEventListener("touchstart",d,Ut)}},[]);var v=t.removeScrollBar,b=t.inert;return D.createElement(D.Fragment,null,b?D.createElement(o,{styles:vm(i)}):null,v?D.createElement(lm,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function bm(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const ym=G1(o0,mm);var u0=D.forwardRef(function(t,e){return D.createElement(xi,Ge({},t,{ref:e,sideCar:ym}))});u0.classNames=xi.classNames;var Cm=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Gt=new WeakMap,mr=new WeakMap,br={},oo=0,d0=function(t){return t&&(t.host||d0(t.parentNode))},Sm=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=d0(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})},wm=function(t,e,n,r){var i=Sm(e,Array.isArray(t)?t:[t]);br[n]||(br[n]=new WeakMap);var o=br[n],l=[],a=new Set,s=new Set(i),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};i.forEach(c);var d=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var v=h.getAttribute(r),b=v!==null&&v!=="false",p=(Gt.get(h)||0)+1,g=(o.get(h)||0)+1;Gt.set(h,p),o.set(h,g),l.push(h),p===1&&b&&mr.set(h,!0),g===1&&h.setAttribute(n,"true"),b||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return d(e),a.clear(),oo++,function(){l.forEach(function(f){var h=Gt.get(f)-1,v=o.get(f)-1;Gt.set(f,h),o.set(f,v),h||(mr.has(f)||f.removeAttribute(r),mr.delete(f)),v||f.removeAttribute(n)}),oo--,oo||(Gt=new WeakMap,Gt=new WeakMap,mr=new WeakMap,br={})}},xm=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=Cm(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),wm(r,i,n,"aria-hidden")):function(){return null}},Ei="Dialog",[f0,M7]=i1(Ei),[Em,Ve]=f0(Ei),h0=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,a=D.useRef(null),s=D.useRef(null),[c,d]=c1({prop:r,defaultProp:i??!1,onChange:o,caller:Ei});return y.jsx(Em,{scope:e,triggerRef:a,contentRef:s,contentId:Qe(),titleId:Qe(),descriptionId:Qe(),open:c,onOpenChange:d,onOpenToggle:D.useCallback(()=>d(f=>!f),[d]),modal:l,children:n})};h0.displayName=Ei;var p0="DialogTrigger",$m=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ve(p0,n),o=jt(e,i.triggerRef);return y.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Wl(i.open),...r,ref:o,onClick:dt(t.onClick,i.onOpenToggle)})});$m.displayName=p0;var Bl="DialogPortal",[Pm,v0]=f0(Bl,{forceMount:void 0}),g0=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,o=Ve(Bl,e);return y.jsx(Pm,{scope:e,forceMount:n,children:D.Children.map(r,l=>y.jsx(wi,{present:n||o.open,children:y.jsx(r0,{asChild:!0,container:i,children:l})}))})};g0.displayName=Bl;var Zr="DialogOverlay",m0=D.forwardRef((t,e)=>{const n=v0(Zr,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Ve(Zr,t.__scopeDialog);return o.modal?y.jsx(wi,{present:r||o.open,children:y.jsx(_m,{...i,ref:e})}):null});m0.displayName=Zr;var Dm=Xf("DialogOverlay.RemoveScroll"),_m=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ve(Zr,n);return y.jsx(u0,{as:Dm,allowPinchZoom:!0,shards:[i.contentRef],children:y.jsx(me.div,{"data-state":Wl(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),kt="DialogContent",b0=D.forwardRef((t,e)=>{const n=v0(kt,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Ve(kt,t.__scopeDialog);return y.jsx(wi,{present:r||o.open,children:o.modal?y.jsx(Tm,{...i,ref:e}):y.jsx(Im,{...i,ref:e})})});b0.displayName=kt;var Tm=D.forwardRef((t,e)=>{const n=Ve(kt,t.__scopeDialog),r=D.useRef(null),i=jt(e,n.contentRef,r);return D.useEffect(()=>{const o=r.current;if(o)return xm(o)},[]),y.jsx(y0,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dt(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:dt(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&o.preventDefault()}),onFocusOutside:dt(t.onFocusOutside,o=>o.preventDefault())})}),Im=D.forwardRef((t,e)=>{const n=Ve(kt,t.__scopeDialog),r=D.useRef(!1),i=D.useRef(!1);return y.jsx(y0,{...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,c;(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;((c=n.triggerRef.current)==null?void 0:c.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),y0=D.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=t,a=Ve(kt,n),s=D.useRef(null),c=jt(e,s);return F1(),y.jsxs(y.Fragment,{children:[y.jsx(t0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:y.jsx(Qf,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Wl(a.open),...l,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(Rm,{titleId:a.titleId}),y.jsx(Lm,{contentRef:s,descriptionId:a.descriptionId})]})]})}),Ul="DialogTitle",Om=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ve(Ul,n);return y.jsx(me.h2,{id:i.titleId,...r,ref:e})});Om.displayName=Ul;var C0="DialogDescription",km=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ve(C0,n);return y.jsx(me.p,{id:i.descriptionId,...r,ref:e})});km.displayName=C0;var S0="DialogClose",Nm=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ve(S0,n);return y.jsx(me.button,{type:"button",...r,ref:e,onClick:dt(t.onClick,()=>i.onOpenChange(!1))})});Nm.displayName=S0;function Wl(t){return t?"open":"closed"}var w0="DialogTitleWarning",[L7,x0]=r1(w0,{contentName:kt,titleName:Ul,docsSlug:"dialog"}),Rm=({titleId:t})=>{const e=x0(w0),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
85
85
|
|
|
86
86
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
87
87
|
|
|
88
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return _.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},Mm="DialogDescriptionWarning",Lm=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${E0(Mm).contentName}}.`;return _.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},Am=h0,Fm=g0,Km=m0,jm=b0,On='[cmdk-group=""]',oo='[cmdk-group-items=""]',Hm='[cmdk-group-heading=""]',Gl='[cmdk-item=""]',Ls=`${Gl}:not([aria-disabled="true"])`,Zo="cmdk-item-select",gt="data-value",zm=(t,e,n)=>n1(t,e,n),x0=_.createContext(void 0),nr=()=>_.useContext(x0),$0=_.createContext(void 0),ql=()=>_.useContext($0),P0=_.createContext(void 0),D0=_.forwardRef((t,e)=>{let n=tn(()=>{var P,O;return{search:"",value:(O=(P=t.value)!=null?P:t.defaultValue)!=null?O:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=tn(()=>new Set),i=tn(()=>new Map),o=tn(()=>new Map),l=tn(()=>new Set),a=_0(t),{label:s,children:c,value:u,onValueChange:f,filter:h,shouldFilter:g,loop:b,disablePointerSelection:p=!1,vimBindings:v=!0,...m}=t,C=Qe(),S=Qe(),D=Qe(),$=_.useRef(null),E=Qm();kt(()=>{if(u!==void 0){let P=u.trim();n.current.value=P,x.emit()}},[u]),kt(()=>{E(6,V)},[]);let x=_.useMemo(()=>({subscribe:P=>(l.current.add(P),()=>l.current.delete(P)),snapshot:()=>n.current,setState:(P,O,F)=>{var K,z,B;if(!Object.is(n.current[P],O)){if(n.current[P]=O,P==="search")M(),j(),E(1,w);else if(P==="value"&&(F||E(5,V),((K=a.current)==null?void 0:K.value)!==void 0)){let W=O??"";(B=(z=a.current).onValueChange)==null||B.call(z,W);return}x.emit()}},emit:()=>{l.current.forEach(P=>P())}}),[]),R=_.useMemo(()=>({value:(P,O,F)=>{var K;O!==((K=o.current.get(P))==null?void 0:K.value)&&(o.current.set(P,{value:O,keywords:F}),n.current.filtered.items.set(P,H(O,F)),E(2,()=>{j(),x.emit()}))},item:(P,O)=>(r.current.add(P),O&&(i.current.has(O)?i.current.get(O).add(P):i.current.set(O,new Set([P]))),E(3,()=>{M(),j(),n.current.value||w(),x.emit()}),()=>{o.current.delete(P),r.current.delete(P),n.current.filtered.items.delete(P);let F=A();E(4,()=>{M(),(F==null?void 0:F.getAttribute("id"))===P&&w(),x.emit()})}),group:P=>(i.current.has(P)||i.current.set(P,new Set),()=>{o.current.delete(P),i.current.delete(P)}),filter:()=>a.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:C,inputId:D,labelId:S,listInnerRef:$}),[]);function H(P,O){var F,K;let z=(K=(F=a.current)==null?void 0:F.filter)!=null?K:zm;return P?z(P,n.current.search,O):0}function j(){if(!n.current.search||a.current.shouldFilter===!1)return;let P=n.current.filtered.items,O=[];n.current.filtered.groups.forEach(K=>{let z=i.current.get(K),B=0;z.forEach(W=>{let Y=P.get(W);B=Math.max(Y,B)}),O.push([K,B])});let F=$.current;U().sort((K,z)=>{var B,W;let Y=K.getAttribute("id"),Q=z.getAttribute("id");return((B=P.get(Q))!=null?B:0)-((W=P.get(Y))!=null?W:0)}).forEach(K=>{let z=K.closest(oo);z?z.appendChild(K.parentElement===z?K:K.closest(`${oo} > *`)):F.appendChild(K.parentElement===F?K:K.closest(`${oo} > *`))}),O.sort((K,z)=>z[1]-K[1]).forEach(K=>{var z;let B=(z=$.current)==null?void 0:z.querySelector(`${On}[${gt}="${encodeURIComponent(K[0])}"]`);B==null||B.parentElement.appendChild(B)})}function w(){let P=U().find(F=>F.getAttribute("aria-disabled")!=="true"),O=P==null?void 0:P.getAttribute(gt);x.setState("value",O||void 0)}function M(){var P,O,F,K;if(!n.current.search||a.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 W=(O=(P=o.current.get(B))==null?void 0:P.value)!=null?O:"",Y=(K=(F=o.current.get(B))==null?void 0:F.keywords)!=null?K:[],Q=H(W,Y);n.current.filtered.items.set(B,Q),Q>0&&z++}for(let[B,W]of i.current)for(let Y of W)if(n.current.filtered.items.get(Y)>0){n.current.filtered.groups.add(B);break}n.current.filtered.count=z}function V(){var P,O,F;let K=A();K&&(((P=K.parentElement)==null?void 0:P.firstChild)===K&&((F=(O=K.closest(On))==null?void 0:O.querySelector(Hm))==null||F.scrollIntoView({block:"nearest"})),K.scrollIntoView({block:"nearest"}))}function A(){var P;return(P=$.current)==null?void 0:P.querySelector(`${Gl}[aria-selected="true"]`)}function U(){var P;return Array.from(((P=$.current)==null?void 0:P.querySelectorAll(Ls))||[])}function I(P){let O=U()[P];O&&x.setState("value",O.getAttribute(gt))}function N(P){var O;let F=A(),K=U(),z=K.findIndex(W=>W===F),B=K[z+P];(O=a.current)!=null&&O.loop&&(B=z+P<0?K[K.length-1]:z+P===K.length?K[0]:K[z+P]),B&&x.setState("value",B.getAttribute(gt))}function k(P){let O=A(),F=O==null?void 0:O.closest(On),K;for(;F&&!K;)F=P>0?Xm(F,On):Jm(F,On),K=F==null?void 0:F.querySelector(Ls);K?x.setState("value",K.getAttribute(gt)):N(P)}let G=()=>I(U().length-1),T=P=>{P.preventDefault(),P.metaKey?G():P.altKey?k(1):N(1)},L=P=>{P.preventDefault(),P.metaKey?I(0):P.altKey?k(-1):N(-1)};return _.createElement(me.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:P=>{var O;if((O=m.onKeyDown)==null||O.call(m,P),!P.defaultPrevented)switch(P.key){case"n":case"j":{v&&P.ctrlKey&&T(P);break}case"ArrowDown":{T(P);break}case"p":case"k":{v&&P.ctrlKey&&L(P);break}case"ArrowUp":{L(P);break}case"Home":{P.preventDefault(),I(0);break}case"End":{P.preventDefault(),G();break}case"Enter":if(!P.nativeEvent.isComposing&&P.keyCode!==229){P.preventDefault();let F=A();if(F){let K=new Event(Zo);F.dispatchEvent(K)}}}}},_.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:tb},s),xi(t,P=>_.createElement($0.Provider,{value:x},_.createElement(x0.Provider,{value:R},P))))}),Vm=_.forwardRef((t,e)=>{var n,r;let i=Qe(),o=_.useRef(null),l=_.useContext(P0),a=nr(),s=_0(t),c=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;kt(()=>{if(!c)return a.item(i,l==null?void 0:l.id)},[c]);let u=T0(i,o,[t.value,t.children,o],t.keywords),f=ql(),h=Nt(E=>E.value&&E.value===u.current),g=Nt(E=>c||a.filter()===!1?!0:E.search?E.filtered.items.get(i)>0:!0);_.useEffect(()=>{let E=o.current;if(!(!E||t.disabled))return E.addEventListener(Zo,b),()=>E.removeEventListener(Zo,b)},[g,t.onSelect,t.disabled]);function b(){var E,x;p(),(x=(E=s.current).onSelect)==null||x.call(E,u.current)}function p(){f.setState("value",u.current,!0)}if(!g)return null;let{disabled:v,value:m,onSelect:C,forceMount:S,keywords:D,...$}=t;return _.createElement(me.div,{ref:Xn([o,e]),...$,id:i,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!h,"data-disabled":!!v,"data-selected":!!h,onPointerMove:v||a.getDisablePointerSelection()?void 0:p,onClick:v?void 0:b},t.children)}),Bm=_.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=Qe(),a=_.useRef(null),s=_.useRef(null),c=Qe(),u=nr(),f=Nt(g=>i||u.filter()===!1?!0:g.search?g.filtered.groups.has(l):!0);kt(()=>u.group(l),[]),T0(l,a,[t.value,t.heading,s]);let h=_.useMemo(()=>({id:l,forceMount:i}),[i]);return _.createElement(me.div,{ref:Xn([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&_.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),xi(t,g=>_.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},_.createElement(P0.Provider,{value:h},g))))}),Um=_.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=_.useRef(null),o=Nt(l=>!l.search);return!n&&!o?null:_.createElement(me.div,{ref:Xn([i,e]),...r,"cmdk-separator":"",role:"separator"})}),Wm=_.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=ql(),l=Nt(u=>u.search),a=Nt(u=>u.value),s=nr(),c=_.useMemo(()=>{var u;let f=(u=s.listInnerRef.current)==null?void 0:u.querySelector(`${Gl}[${gt}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return _.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),_.createElement(me.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":c,id:s.inputId,type:"text",value:i?t.value:l,onChange:u=>{i||o.setState("search",u.target.value),n==null||n(u.target.value)}})}),Gm=_.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=_.useRef(null),l=_.useRef(null),a=nr();return _.useEffect(()=>{if(l.current&&o.current){let s=l.current,c=o.current,u,f=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{let h=s.offsetHeight;c.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(u),f.unobserve(s)}}},[]),_.createElement(me.div,{ref:Xn([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},xi(t,s=>_.createElement("div",{ref:Xn([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),qm=_.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return _.createElement(Am,{open:n,onOpenChange:r},_.createElement(Fm,{container:l},_.createElement(Km,{"cmdk-overlay":"",className:i}),_.createElement(jm,{"aria-label":t.label,"cmdk-dialog":"",className:o},_.createElement(D0,{ref:e,...a}))))}),Ym=_.forwardRef((t,e)=>Nt(n=>n.filtered.count===0)?_.createElement(me.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),Zm=_.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return _.createElement(me.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},xi(t,l=>_.createElement("div",{"aria-hidden":!0},l)))}),Zn=Object.assign(D0,{List:Gm,Item:Vm,Input:Wm,Group:Bm,Separator:Um,Dialog:qm,Empty:Ym,Loading:Zm});function Xm(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function Jm(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function _0(t){let e=_.useRef(t);return kt(()=>{e.current=t}),e}var kt=typeof window>"u"?_.useEffect:_.useLayoutEffect;function tn(t){let e=_.useRef();return e.current===void 0&&(e.current=t()),e}function Xn(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Nt(t){let e=ql(),n=()=>t(e.snapshot());return $l.useSyncExternalStore(e.subscribe,n,n)}function T0(t,e,n,r=[]){let i=_.useRef(),o=nr();return kt(()=>{var l;let a=(()=>{var c;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():i.current}})(),s=r.map(c=>c.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(gt,a),i.current=a}),i}var Qm=()=>{let[t,e]=_.useState(),n=tn(()=>new Map);return kt(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function eb(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function xi({asChild:t,children:e},n){return t&&_.isValidElement(e)?_.cloneElement(eb(e),{ref:e.ref},n(e.props.children)):n(e)}var tb={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Xo=({withPadding:t=!0})=>y.jsx("div",{className:Pe("c__horizontal-separator",{"with-padding":t})}),I0=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=ae.useCunningham();return i?y.jsxs(y.Fragment,{children:[i,o&&y.jsx(Xo,{})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"quick-search-input-container",children:[!t&&y.jsx("span",{className:"material-icons",children:"search"}),t&&y.jsx("div",{children:y.jsx(Vl,{size:"md"})}),y.jsx(Zn.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&y.jsx(Xo,{withPadding:!0})]})},nb=t=>{let e=!1;return d.Children.forEach(t,n=>{e=e||!!n}),e},O0=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=d.useRef(null);return y.jsx(y.Fragment,{children:y.jsx("div",{className:"quick-search-container",children:y.jsxs(Zn,{label:o,shouldFilter:!1,ref:s,children:[i&&y.jsx(I0,{loading:r,withSeparator:nb(a),inputValue:n,onFilter:t,placeholder:l,children:e}),y.jsx(Zn.List,{children:y.jsx("div",{children:a})})]})})})},Dr=({children:t,onSelect:e,id:n})=>y.jsx(Zn.Item,{value:n,onSelect:e,children:t}),k0=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:y.jsx("div",{className:"pt-base",children:y.jsxs(Zn.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>y.jsx(Dr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>y.jsx(Dr,{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)=>y.jsx(Dr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&y.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},$i=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=wn();return y.jsxs("div",{className:"c__quick-search-item-template",children:[y.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&y.jsx("div",{className:Pe("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},rb=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:y.jsx("div",{className:Pe("c__tabs",{"c__tabs__full-width":n}),children:y.jsxs(Bg,{defaultSelectedKey:e,children:[y.jsx(Wg,{"aria-label":"History of Ancient Rome",children:t.map(r=>y.jsxs(qg,{id:r.id,children:[r.icon&&y.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>y.jsx(Yg,{id:r.id,children:r.content},r.id))]})}),N0=d.createContext(null);function Te(){const t=d.useContext(N0);if(t===null)throw new Error("No Tree Api Provided");return t}const R0=d.createContext(null);function ib(){const t=d.useContext(R0);if(t===null)throw new Error("Provide a NodesContext");return t}const M0=d.createContext(null);function ob(){const t=d.useContext(M0);if(t===null)throw new Error("Provide a DnDContext");return t}const L0=d.createContext(0);function A0(){d.useContext(L0)}function _r(t,e,n){return Math.max(Math.min(t,n),e)}function F0(t){return t&&t.isLeaf}function K0(t){return t&&t.isInternal&&!t.isOpen}function j0(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const H0=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},z0=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function lb(){}function Yl(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=Yl(n,e);if(r)return r}return null}function Zr(t,e){if(e(t),t.children)for(let n of t.children)Zr(n,e)}function V0(t){const e=U0(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=ab(e,r);break}n==null||n.focus()}function B0(t){const e=U0(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=sb(e,r);break}n==null||n.focus()}function ab(t,e){return e+1<t.length?t[e+1]:t[0]}function sb(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function U0(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 Kn(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function W0(t){return t===null?null:mt(t)}function mt(t){return typeof t=="string"?t:t.id}function cb(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function G0(t,...e){if(t)return t(...e)}function q0(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function Y0(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 Z0(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const ub=Object.freeze(Object.defineProperty({__proto__:null,access:Kn,bound:_r,dfs:Yl,focusNextElement:V0,focusPrevElement:B0,getInsertIndex:Y0,getInsertParentId:Z0,identify:mt,identifyNull:W0,indexOf:z0,isClosed:K0,isDescendant:H0,isItem:F0,isOpenWithEmptyChildren:j0,mergeRefs:cb,noop:lb,safeRun:G0,waitFor:q0,walk:Zr},Symbol.toStringTag,{value:"Module"})),db={display:"flex",alignItems:"center",zIndex:1},fb={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},hb={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},pb=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 y.jsxs("div",{style:Object.assign(Object.assign({},db),i),children:[y.jsx("div",{style:Object.assign({},hb)}),y.jsx("div",{style:Object.assign({},fb)})]})});function vb({node:t,attrs:e,innerRef:n,children:r}){return y.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function gb(t){return y.jsxs("div",{ref:t.dragHandle,style:t.style,children:[y.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?y.jsx(bb,Object.assign({},t)):y.jsx(mb,Object.assign({},t))]})}function mb(t){return y.jsx(y.Fragment,{children:y.jsx("span",{children:t.node.data.name})})}function bb({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()},[]),y.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 lo(t){return{type:"EDIT",id:t}}function yb(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function Gt(t){return{type:"FOCUS",id:t}}function Cb(){return{type:"TREE_BLUR"}}function Sb(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 Xr{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===Jn}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 Xr(Object.assign({},this))}edit(){return this.tree.edit(this)}}const Jn="__REACT_ARBORIST_INTERNAL_ROOT__";function As(t){var e;function n(o,l,a){const s=t.accessId(o),c=new Xr({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),u=t.accessChildren(o);return u&&(c.children=u.map(f=>n(f,l+1,c))),c}const r=new Xr({tree:t,id:Jn,data:{id:Jn},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 Jo={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 Fs(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 wb(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:Fs(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:Fs(t.unfiltered,e)}):t}const mn=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:mt(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(mt)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(mt)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:mt(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:mt(t)})};function Eb(t=mn().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 bn={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 xb(t=mn().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 mn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const $b={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},Pb=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},Db=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function X0({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return y.jsxs(_b,{isDragging:i,children:[y.jsx(Tb,{offset:t,children:y.jsx(Ob,{id:n,dragIds:r})}),y.jsx(Ib,{mouse:e,count:r.length})]})}const _b=d.memo(function(e){return e.isDragging?y.jsx("div",{style:$b,children:e.children}):null});function Tb(t){return y.jsx("div",{className:"row preview",style:Pb(t.offset),children:t.children})}function Ib(t){const{count:e,mouse:n}=t;return e>1?y.jsx("div",{className:"selected-count",style:Db(n),children:e}):null}const Ob=d.memo(function(e){const n=Te(),r=n.get(e.id);return r?y.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function Qo(){return Qo=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},Qo.apply(null,arguments)}function Ks(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function el(t,e){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},el(t,e)}function kb(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,el(t,e)}var js=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Nb(t,e){return!!(t===e||js(t)&&js(e))}function Rb(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Nb(t[n],e[n]))return!1;return!0}function ao(t,e){e===void 0&&(e=Rb);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 Mb=typeof performance=="object"&&typeof performance.now=="function",Hs=Mb?function(){return performance.now()}:function(){return Date.now()};function zs(t){cancelAnimationFrame(t.id)}function Lb(t,e){var n=Hs();function r(){Hs()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var so=-1;function Vs(t){if(t===void 0&&(t=!1),so===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),so=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return so}var qt=null;function Bs(t){if(t===void 0&&(t=!1),qt===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?qt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?qt="negative":qt="positive-ascending"),document.body.removeChild(e),qt}return qt}process.env.NODE_ENV;var Ab=150,Fb=function(e,n){return e},Tr=null,Ir=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Tr=new WeakSet,Ir=new WeakSet);function Kb(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,c=t.shouldResetStyleCacheOnItemSizeChange,u=t.validateProps;return e=function(f){kb(h,f);function h(b){var p;return p=f.call(this,b)||this,p._instanceProps=s(p.props,Ks(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:Ks(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=ao(function(v,m,C,S){return p.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:m,visibleStartIndex:C,visibleStopIndex:S})}),p._callOnScroll=void 0,p._callOnScroll=ao(function(v,m,C){return p.props.onScroll({scrollDirection:v,scrollOffset:m,scrollUpdateWasRequested:C})}),p._getItemStyle=void 0,p._getItemStyle=function(v){var m=p.props,C=m.direction,S=m.itemSize,D=m.layout,$=p._getItemStyleCache(c&&S,c&&D,c&&C),E;if($.hasOwnProperty(v))E=$[v];else{var x=n(p.props,v,p._instanceProps),R=i(p.props,v,p._instanceProps),H=C==="horizontal"||D==="horizontal",j=C==="rtl",w=H?x:0;$[v]=E={position:"absolute",left:j?void 0:w,right:j?w:void 0,top:H?0:x,height:H?"100%":R,width:H?R:"100%"}}return E},p._getItemStyleCache=void 0,p._getItemStyleCache=ao(function(v,m,C){return{}}),p._onScrollHorizontal=function(v){var m=v.currentTarget,C=m.clientWidth,S=m.scrollLeft,D=m.scrollWidth;p.setState(function($){if($.scrollOffset===S)return null;var E=p.props.direction,x=S;if(E==="rtl")switch(Bs()){case"negative":x=-S;break;case"positive-descending":x=D-C-S;break}return x=Math.max(0,Math.min(x,D-C)),{isScrolling:!0,scrollDirection:$.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(v){var m=v.currentTarget,C=m.clientHeight,S=m.scrollHeight,D=m.scrollTop;p.setState(function($){if($.scrollOffset===D)return null;var E=Math.max(0,Math.min(D,S-C));return{isScrolling:!0,scrollDirection:$.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(v){var m=p.props.outerRef;p._outerRef=v,typeof m=="function"?m(v):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=v)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&zs(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=Lb(p._resetIsScrolling,Ab)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}h.getDerivedStateFromProps=function(p,v){return jb(p,v),u(p),null};var g=h.prototype;return g.scrollTo=function(p){p=Math.max(0,p),this.setState(function(v){return v.scrollOffset===p?null:{scrollDirection:v.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(p,v){v===void 0&&(v="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 $=0;if(this._outerRef){var E=this._outerRef;S==="vertical"?$=E.scrollWidth>E.clientWidth?Vs():0:$=E.scrollHeight>E.clientHeight?Vs():0}this.scrollTo(o(this.props,p,v,D,this._instanceProps,$))},g.componentDidMount=function(){var p=this.props,v=p.direction,m=p.initialScrollOffset,C=p.layout;if(typeof m=="number"&&this._outerRef!=null){var S=this._outerRef;v==="horizontal"||C==="horizontal"?S.scrollLeft=m:S.scrollTop=m}this._callPropsCallbacks()},g.componentDidUpdate=function(){var p=this.props,v=p.direction,m=p.layout,C=this.state,S=C.scrollOffset,D=C.scrollUpdateWasRequested;if(D&&this._outerRef!=null){var $=this._outerRef;if(v==="horizontal"||m==="horizontal")if(v==="rtl")switch(Bs()){case"negative":$.scrollLeft=-S;break;case"positive-ascending":$.scrollLeft=S;break;default:var E=$.clientWidth,x=$.scrollWidth;$.scrollLeft=x-E-S;break}else $.scrollLeft=S;else $.scrollTop=S}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&zs(this._resetIsScrollingTimeoutId)},g.render=function(){var p=this.props,v=p.children,m=p.className,C=p.direction,S=p.height,D=p.innerRef,$=p.innerElementType,E=p.innerTagName,x=p.itemCount,R=p.itemData,H=p.itemKey,j=H===void 0?Fb:H,w=p.layout,M=p.outerElementType,V=p.outerTagName,A=p.style,U=p.useIsScrolling,I=p.width,N=this.state.isScrolling,k=C==="horizontal"||w==="horizontal",G=k?this._onScrollHorizontal:this._onScrollVertical,T=this._getRangeToRender(),L=T[0],P=T[1],O=[];if(x>0)for(var F=L;F<=P;F++)O.push(d.createElement(v,{data:R,key:j(F,R),index:F,isScrolling:U?N:void 0,style:this._getItemStyle(F)}));var K=r(this.props,this._instanceProps);return d.createElement(M||V||"div",{className:m,onScroll:G,ref:this._outerRefSetter,style:Qo({position:"relative",height:S,width:I,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},A)},d.createElement($||E||"div",{children:O,ref:D,style:{height:k?"100%":K,pointerEvents:N?"none":void 0,width:k?K:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var v=this._getRangeToRender(),m=v[0],C=v[1],S=v[2],D=v[3];this._callOnItemsRendered(m,C,S,D)}}if(typeof this.props.onScroll=="function"){var $=this.state,E=$.scrollDirection,x=$.scrollOffset,R=$.scrollUpdateWasRequested;this._callOnScroll(E,x,R)}},g._getRangeToRender=function(){var p=this.props,v=p.itemCount,m=p.overscanCount,C=this.state,S=C.isScrolling,D=C.scrollDirection,$=C.scrollOffset;if(v===0)return[0,0,0,0];var E=l(this.props,$,this._instanceProps),x=a(this.props,E,$,this._instanceProps),R=!S||D==="backward"?Math.max(1,m):1,H=!S||D==="forward"?Math.max(1,m):1;return[Math.max(0,E-R),Math.max(0,Math.min(v-1,x+H)),E,x]},h}(d.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var jb=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,c=e.width,u=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Ir&&!Ir.has(u)&&(Ir.add(u),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":Tr&&!Tr.has(u)&&(Tr.add(u),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 c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" 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.'))}},Hb=Kb({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,c=e.itemCount,u=e.itemSize,f=e.layout,h=e.width,g=a==="horizontal"||f==="horizontal",b=g?h:s,p=Math.max(0,c*u-b),v=Math.min(p,n*u),m=Math.max(0,n*u-b+u+l);switch(r==="smart"&&(i>=m-b&&i<=v+b?r="auto":r="center"),r){case"start":return v;case"end":return m;case"center":{var C=Math.round(m+(v-m)/2);return C<Math.ceil(b/2)?0:C>p+Math.floor(b/2)?p:C}case"auto":default:return i>=m&&i<=v?i:i<m?m: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,l=e.itemCount,a=e.itemSize,s=e.layout,c=e.width,u=i==="horizontal"||s==="horizontal",f=n*a,h=u?c:o,g=Math.ceil((h+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 zb(){var t,e;const n=Te(),i=ob().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 y.jsx(s,{top:l,left:a,indent:o})}var Vb=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 Bb=d.forwardRef(function(e,n){const{children:r}=e,i=Vb(e,["children"]),o=Te();return y.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[y.jsx(Ub,{}),r]}))}),Ub=()=>{const t=Te();return y.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:y.jsx(zb,{})})};var Wb=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 Gb=d.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=Wb(e,["style"]);const c=Te(),u=(i=(r=c.props.padding)!==null&&r!==void 0?r:c.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=c.props.padding)!==null&&o!==void 0?o:c.props.paddingBottom)!==null&&l!==void 0?l:0;return y.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+u+f}px`})},s))});var J0=d.createContext({dragDropManager:void 0}),Ne;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Ne||(Ne={}));function Z(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 Zl="dnd-core/INIT_COORDS",Pi="dnd-core/BEGIN_DRAG",Xl="dnd-core/PUBLISH_DRAG_SOURCE",Di="dnd-core/HOVER",_i="dnd-core/DROP",Ti="dnd-core/END_DRAG";function Us(t,e){return{type:Zl,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Or(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Or=function(n){return typeof n}:Or=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Or(t)}function qb(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n||null},t)}function Yb(t,e){return t.filter(function(n){return n!==e})}function Q0(t){return Or(t)==="object"}function Zb(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 Xb(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var Jb={type:Zl,payload:{clientOffset:null,sourceClientOffset:null}};function Qb(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(),c=t.getRegistry();t.dispatch(Us(l)),ey(n,s,c);var u=ry(n,s);if(u===null){t.dispatch(Jb);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");ty(a),f=a(u)}t.dispatch(Us(l,f));var h=c.getSource(u),g=h.beginDrag(s,u);if(g!=null){ny(g),c.pinSource(u);var b=c.getSourceType(u);return{type:Pi,payload:{itemType:b,item:g,sourceId:u,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function ey(t,e,n){Z(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Z(n.getSource(r),"Expected sourceIds to be registered.")})}function ty(t){Z(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ny(t){Z(Q0(t),"Item must be an object.")}function ry(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 iy(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:Xl}}}function tl(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function oy(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;ly(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();ay(o,l,a);var s=l.getItemType();return sy(o,a,s),cy(o,l,a),{type:Di,payload:{targetIds:o,clientOffset:i||null}}}}function ly(t){Z(Array.isArray(t),"Expected targetIds to be an array.")}function ay(t,e,n){Z(e.isDragging(),"Cannot call hover while not dragging."),Z(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];Z(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);Z(o,"Expected targetIds to be registered.")}}function sy(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);tl(o,n)||t.splice(r,1)}}function cy(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function Ws(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 Gs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ws(Object(n),!0).forEach(function(r){uy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function uy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dy(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();fy(r);var o=vy(r);o.forEach(function(l,a){var s=hy(l,a,i,r),c={type:_i,payload:{dropResult:Gs(Gs({},n),s)}};t.dispatch(c)})}}function fy(t){Z(t.isDragging(),"Cannot call drop while not dragging."),Z(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function hy(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return py(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function py(t){Z(typeof t>"u"||Q0(t),"Drop result must either be an object or undefined.")}function vy(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function gy(t){return function(){var n=t.getMonitor(),r=t.getRegistry();my(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:Ti}}}function my(t){Z(t.isDragging(),"Cannot call endDrag while not dragging.")}function by(t){return{beginDrag:Qb(t),publishDragSource:iy(t),hover:oy(t),drop:dy(t),endDrag:gy(t)}}function yy(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 Sy(t,e,n){return e&&Cy(t.prototype,e),t}function kn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wy=function(){function t(e,n){var r=this;yy(this,t),kn(this,"store",void 0),kn(this,"monitor",void 0),kn(this,"backend",void 0),kn(this,"isSetUp",!1),kn(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 Sy(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),c=0;c<a;c++)s[c]=arguments[c];var u=l.apply(n,s);typeof u<"u"&&r(u)}}var o=by(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 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 qs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ys=function(){return Math.random().toString(36).substring(7).split("").join(".")},Zs={INIT:"@@redux/INIT"+Ys(),REPLACE:"@@redux/REPLACE"+Ys()};function Ey(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 xy(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(Dy(t))return"date";if(Py(t))return"error";var n=$y(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 $y(t){return typeof t.constructor=="function"?t.constructor.name:null}function Py(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Dy(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Yt(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=xy(t)),e}function e2(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: '"+Yt(n)+"'");return n(e2)(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: '"+Yt(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function c(){a===l&&(a=l.slice())}function u(){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 f(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(4):"Expected the listener to be a function. Instead, received: '"+Yt(p)+"'");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 c(),a.push(p),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,c();var C=a.indexOf(p);a.splice(C,1),l=null}}}function h(p){if(!Ey(p))throw new Error(process.env.NODE_ENV==="production"?Ie(7):"Actions must be plain objects. Instead, the actual type was: '"+Yt(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"?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,p)}finally{s=!1}for(var v=l=a,m=0;m<v.length;m++){var C=v[m];C()}return p}function g(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(10):"Expected the nextReducer to be a function. Instead, received: '"+Yt(p));i=p,h({type:Zs.REPLACE})}function b(){var p,v=f;return p={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: '"+Yt(C)+"'");function S(){C.next&&C.next(u())}S();var D=v(S);return{unsubscribe:D}}},p[qs]=function(){return this},p}return h({type:Zs.INIT}),r={dispatch:h,subscribe:f,getState:u,replaceReducer:g},r[qs]=b,r}var _y=function(e,n){return e===n};function Ty(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Iy(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_y;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 Xs(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 Js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xs(Object(n),!0).forEach(function(r){Oy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Oy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qs={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qs,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Zl:case Pi:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Di:return Ty(t.clientOffset,n.clientOffset)?t:Js(Js({},t),{},{clientOffset:n.clientOffset});case Ti:case _i:return Qs;default:return t}}var Jl="dnd-core/ADD_SOURCE",Ql="dnd-core/ADD_TARGET",ea="dnd-core/REMOVE_SOURCE",Ii="dnd-core/REMOVE_TARGET";function Ny(t){return{type:Jl,payload:{sourceId:t}}}function Ry(t){return{type:Ql,payload:{targetId:t}}}function My(t){return{type:ea,payload:{sourceId:t}}}function Ly(t){return{type:Ii,payload:{targetId:t}}}function ec(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 Oe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ec(Object(n),!0).forEach(function(r){Ay(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ay(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={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fy,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Pi:return Oe(Oe({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Xl:return Oe(Oe({},t),{},{isSourcePublic:!0});case Di:return Oe(Oe({},t),{},{targetIds:n.targetIds});case Ii:return t.targetIds.indexOf(n.targetId)===-1?t:Oe(Oe({},t),{},{targetIds:Yb(t.targetIds,n.targetId)});case _i:return Oe(Oe({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Ti:return Oe(Oe({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function jy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Jl:case Ql:return t+1;case ea:case Ii:return t-1;default:return t}}var Jr=[],ta=[];Jr.__IS_NONE__=!0;ta.__IS_ALL__=!0;function Hy(t,e){if(t===Jr)return!1;if(t===ta||typeof e>"u")return!0;var n=Xb(e,t);return n.length>0}function zy(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Di:break;case Jl:case Ql:case Ii:case ea:return Jr;case Pi:case Xl:case Ti:case _i:default:return ta}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=Zb(r,o),a=l.length>0||!Iy(r,o);if(!a)return Jr;var s=o[o.length-1],c=r[r.length-1];return s!==c&&(s&&l.push(s),c&&l.push(c)),l}function Vy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function tc(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 nc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tc(Object(n),!0).forEach(function(r){By(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function By(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:zy(t.dirtyHandlerIds,{type:e.type,payload:nc(nc({},e.payload),{},{prevTargetIds:qb(t,"dragOperation.targetIds",[])})}),dragOffset:ky(t.dragOffset,e),refCount:jy(t.refCount,e),dragOperation:Ky(t.dragOperation,e),stateId:Vy(t.stateId)}}function Wy(t,e){return{x:t.x+e.x,y:t.y+e.y}}function t2(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Gy(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:t2(Wy(e,r),n)}function qy(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:t2(e,n)}function Yy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zy(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 Xy(t,e,n){return e&&Zy(t.prototype,e),t}function rc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jy=function(){function t(e,n){Yy(this,t),rc(this,"store",void 0),rc(this,"registry",void 0),this.store=e,this.registry=n}return Xy(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;Z(typeof n=="function","listener must be a function."),Z(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var c=r.store.getState(),u=c.stateId;try{var f=u===l||u===l+1&&!Hy(c.dirtyHandlerIds,o);f||n()}finally{l=u}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;Z(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 Z(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(Z(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 tl(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(Z(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&&!tl(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 Gy(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return qy(this.store.getState().dragOffset)}}]),t}(),Qy=0;function e9(){return Qy++}function kr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kr=function(n){return typeof n}:kr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kr(t)}function t9(t){Z(typeof t.canDrag=="function","Expected canDrag to be a function."),Z(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Z(typeof t.endDrag=="function","Expected endDrag to be a function.")}function n9(t){Z(typeof t.canDrop=="function","Expected canDrop to be a function."),Z(typeof t.hover=="function","Expected hover to be a function."),Z(typeof t.drop=="function","Expected beginDrag to be a function.")}function nl(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return nl(n,!1)});return}Z(typeof t=="string"||kr(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 ic=typeof global<"u"?global:self,n2=ic.MutationObserver||ic.WebKitMutationObserver;function r2(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function r9(t){let e=1;const n=new n2(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const i9=typeof n2=="function"?r9:r2;class o9{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=i9(this.flush),this.requestErrorThrow=r2(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class l9{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 a9{create(e){const n=this.freeTasks,r=n.length?n.pop():new l9(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const i2=new o9,s9=new a9(i2.registerPendingError);function c9(t){i2.enqueueTask(s9.create(t))}function u9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d9(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 f9(t,e,n){return e&&d9(t.prototype,e),t}function Zt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h9(t,e){return m9(t)||g9(t,e)||v9(t,e)||p9()}function p9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
89
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v9(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 g9(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 m9(t){if(Array.isArray(t))return t}function b9(t){var e=e9().toString();switch(t){case Ne.SOURCE:return"S".concat(e);case Ne.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function lc(t){switch(t[0]){case"S":return Ne.SOURCE;case"T":return Ne.TARGET;default:Z(!1,"Cannot parse handler ID: ".concat(t))}}function ac(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done,l=h9(i.value,2),a=l[1];if(a===e)return!0;r=!!o}while(!r);return!1}var y9=function(){function t(e){u9(this,t),
|
|
90
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $9(t,e){if(t){if(typeof t=="string")return sc(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 sc(t,e)}}function sc(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 P9(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 D9(t){if(Array.isArray(t))return t}function _9(t,e){if(t==null)return{};var n=T9(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 T9(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 cc=0,Nr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),I9=d.memo(function(e){var n=e.children,r=_9(e,w9),i=O9(r),o=E9(i,2),l=o[0],a=o[1];return d.useEffect(function(){if(a){var s=o2();return++cc,function(){--cc===0&&(s[Nr]=null)}}},[]),y.jsx(J0.Provider,Object.assign({value:l},{children:n}),void 0)});function O9(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=k9(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function k9(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o2(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Nr]||(i[Nr]={dragDropManager:C9(t,e,n,r)}),i[Nr]}function o2(){return typeof global<"u"?global:window}function N9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R9(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 M9(t,e,n){return e&&R9(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 co=!1,uo=!1,L9=function(){function t(e){N9(this,t),uc(this,"internalMonitor",void 0),uc(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return M9(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Z(!co,"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 co=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{co=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Z(!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 A9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F9(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 e&&F9(t.prototype,e),t}function dc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fo=!1,j9=function(){function t(e){A9(this,t),dc(this,"internalMonitor",void 0),dc(this,"targetId",null),this.internalMonitor=e.getMonitor()}return K9(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;Z(!fo,"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 fo=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{fo=!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 H9(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 z9(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;H9(i);var o=n?function(l){return t(l,n)}:t;return V9(i,o)}}function l2(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=z9(r);e[n]=function(){return i}}}),e}function fc(t,e){typeof t=="function"?t(e):t.current=e}function V9(t,e){var n=t.ref;return Z(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){fc(n,i),fc(e,i)}}):d.cloneElement(t,{ref:e})}function Rr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rr=function(n){return typeof n}:Rr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rr(t)}function rl(t){return t!==null&&Rr(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function il(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 c=o[s];if(!a(c))return!1;var u=t[c],f=e[c];if(i=void 0,i===!1||i===void 0&&u!==f)return!1}return!0}function B9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U9(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 W9(t,e,n){return e&&U9(t.prototype,e),t}function be(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var G9=function(){function t(e){var n=this;B9(this,t),be(this,"hooks",l2({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,rl(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,rl(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),be(this,"handlerId",null),be(this,"dragSourceRef",null),be(this,"dragSourceNode",void 0),be(this,"dragSourceOptionsInternal",null),be(this,"dragSourceUnsubscribe",void 0),be(this,"dragPreviewRef",null),be(this,"dragPreviewNode",void 0),be(this,"dragPreviewOptionsInternal",null),be(this,"dragPreviewUnsubscribe",void 0),be(this,"lastConnectedHandlerId",null),be(this,"lastConnectedDragSource",null),be(this,"lastConnectedDragSourceOptions",null),be(this,"lastConnectedDragPreview",null),be(this,"lastConnectedDragPreviewOptions",null),be(this,"backend",void 0),this.backend=e}return W9(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!il(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!il(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 q9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y9(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 e&&Y9(t.prototype,e),t}function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var X9=function(){function t(e){var n=this;q9(this,t),We(this,"hooks",l2({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,rl(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),We(this,"handlerId",null),We(this,"dropTargetRef",null),We(this,"dropTargetNode",void 0),We(this,"dropTargetOptionsInternal",null),We(this,"unsubscribeDropTarget",void 0),We(this,"lastConnectedHandlerId",null),We(this,"lastConnectedDropTarget",null),We(this,"lastConnectedDropTargetOptions",null),We(this,"backend",void 0),this.backend=e}return Z9(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!il(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 J9(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function Q9(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var Rt=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Mr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mr=function(n){return typeof n}:Mr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mr(t)}function e4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t4(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 n4(t,e,n){return e&&t4(t.prototype,e),t}function ho(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r4=function(){function t(e,n,r){e4(this,t),ho(this,"spec",void 0),ho(this,"monitor",void 0),ho(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return n4(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Mr(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 i4(t,e,n){var r=d.useMemo(function(){return new r4(t,e,n)},[e,n]);return d.useEffect(function(){r.spec=t},[t]),r}function jt(){var t=d.useContext(J0),e=t.dragDropManager;return Z(e!=null,"Expected drag drop context"),e}function o4(t){return d.useMemo(function(){var e=t.type;return Z(e!=null,"spec.type must be defined"),e},[t])}function l4(t,e){return u4(t)||c4(t,e)||s4(t,e)||a4()}function a4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
91
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s4(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 c4(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 u4(t){if(Array.isArray(t))return t}function d4(t,e,n){var r=
|
|
92
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p4(t,e){if(t){if(typeof t=="string")return ol(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 ol(t,e)}}function v4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function g4(t){if(Array.isArray(t))return ol(t)}function ol(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 a2(t,e){var n=f4(e||[]);return e==null&&typeof t!="function"&&n.push(t),
|
|
93
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
94
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T4(t,e){if(t){if(typeof t=="string")return gc(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 gc(t,e)}}function gc(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 I4(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 O4(t){if(Array.isArray(t))return t}function k4(t,e,n){var r=s2(t,e,n),i=D4(r,2),o=i[0],l=i[1];return
|
|
95
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B4(t,e){if(t){if(typeof t=="string")return bc(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 bc(t,e)}}function bc(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 U4(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 W4(t){if(Array.isArray(t))return t}function G4(t,e,n){var r=
|
|
96
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q4(t,e){if(t){if(typeof t=="string")return yc(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 yc(t,e)}}function yc(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 e3(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 t3(t){if(Array.isArray(t))return t}function n3(t){var e=
|
|
97
|
-
`)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Cr(Xt,g2,{exposeProperties:{text:function(e,n){return vo(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),Xt);function m3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b3(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 y3(t,e,n){return e&&b3(t.prototype,e),t}function Ec(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var C3=function(){function t(e){m3(this,t),Ec(this,"item",void 0),Ec(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return y3(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 S3(t,e){var n=new C3(ll[t]);return n.loadDataTransfer(e),n}function go(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(ll).filter(function(n){var r=ll[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function w3(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 e&&E3(t.prototype,e),t}function mo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $3=function(){function t(e,n){w3(this,t),mo(this,"ownerDocument",null),mo(this,"globalContext",void 0),mo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return x3(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 xc(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?xc(Object(n),!0).forEach(function(r){J(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function P3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D3(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 _3(t,e,n){return e&&D3(t.prototype,e),t}function J(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T3=function(){function t(e,n,r){var i=this;P3(this,t),J(this,"options",void 0),J(this,"actions",void 0),J(this,"monitor",void 0),J(this,"registry",void 0),J(this,"enterLeaveCounter",void 0),J(this,"sourcePreviewNodes",new Map),J(this,"sourcePreviewNodeOptions",new Map),J(this,"sourceNodes",new Map),J(this,"sourceNodeOptions",new Map),J(this,"dragStartSourceIds",null),J(this,"dropTargetIds",[]),J(this,"dragEnterTargetIds",[]),J(this,"currentNativeSource",null),J(this,"currentNativeHandle",null),J(this,"currentDragSourceNode",null),J(this,"altKeyPressed",!1),J(this,"mouseMoveTimeoutTimer",null),J(this,"asyncEndDragFrameId",null),J(this,"dragOverTargetIds",null),J(this,"lastClientOffset",null),J(this,"hoverRafId",null),J(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&h2(l)||null}),J(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),J(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),J(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),J(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),J(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=yr(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,c=go(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var u=i.monitor.getSourceId(),f=i.sourceNodes.get(u),h=i.sourcePreviewNodes.get(u)||f;if(h){var g=i.getCurrentSourcePreviewNodeOptions(),b=g.anchorX,p=g.anchorY,v=g.offsetX,m=g.offsetY,C={anchorX:b,anchorY:p},S={offsetX:v,offsetY:m},D=g3(f,h,a,C,S);s.setDragImage(h,D.x,D.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var $=i.getCurrentSourcePreviewNodeOptions(),E=$.captureDraggingState;E?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(c)i.beginDragNativeItem(c);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),J(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),J(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=go(a);s&&i.beginDragNativeItem(s,a)}}),J(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:yr(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),J(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),J(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=yr(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"))}),J(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),J(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 go(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),J(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:yr(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),J(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 $3(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new s3(this.isNodeInDocument)}return _3(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(c){return o.handleDragStart(c,n)},a=function(c){return o.handleSelectStart(c)};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(c){return i.handleDragEnter(c,n)},l=function(c){return i.handleDragOver(c,n)},a=function(c){return i.handleDrop(c,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 $c({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 $c({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(wc).some(function(r){return wc[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=S3(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}(),Sr;function I3(){return Sr||(Sr=new Image,Sr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Sr}var O3=function(e,n,r){return new T3(e,n,r)};function k3(t){const e=Te(),n=e.selectedIds,[r,i,o]=M4(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(bn.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(bn.dragEnd())}}),[n,t]);return d.useEffect(()=>{o(I3())},[o]),i}function N3(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,c=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:c,atTop:!c&&l,atBottom:!c&&a}}function R3(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 wr(t,e){return{parentId:t||null,index:e}}function Jt(t,e){return{type:"line",index:t,level:e}}function M3(t){return{type:"highlight",id:t}}function bo(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=z0(r)+1;return{parentId:i,index:o}}function b2(t){var e;const n=N3(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,c]=R3(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:wr(o.id,null),cursor:M3(o.id)};if(!s)return{drop:wr((e=c==null?void 0:c.parent)===null||e===void 0?void 0:e.id,0),cursor:Jt(0,0)};if(F0(s)){const u=_r(i,(c==null?void 0:c.level)||0,s.level);return{drop:bo(s,u),cursor:Jt(s.rowIndex+1,u)}}if(K0(s)){const u=_r(i,(c==null?void 0:c.level)||0,s.level);return{drop:bo(s,u),cursor:Jt(s.rowIndex+1,u)}}if(j0(s)){const u=_r(i,0,s.level+1);return u>s.level?{drop:wr(s.id,0),cursor:Jt(s.rowIndex+1,u)}:{drop:bo(s,u),cursor:Jt(s.rowIndex+1,u)}}return{drop:wr(s==null?void 0:s.id,0),cursor:Jt(s.rowIndex+1,s.level+1)}}function L3(t,e){const n=Te(),[r,i]=u2(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:c}=b2({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&n.dispatch(bn.hovering(c.parentId,c.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:c}=n.state.dnd;G0(n.props.onMove,{dragIds:c,parentId:a===Jn?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 A3(t){const e=Te(),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 F3=d.memo(function({index:e,style:n}){A0(),ib();const r=Te(),i=A3(e),o=d.useRef(null),l=k3(i),a=L3(o,i),s=d.useCallback(p=>{o.current=p,a(p)},[a]),c=r.indent*i.level,u=d.useMemo(()=>({paddingLeft:c}),[c]),f=d.useMemo(()=>{var p,v;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((v=(p=r.props.padding)!==null&&p!==void 0?p:r.props.paddingTop)!==null&&v!==void 0?v:0)})},[n,r.props.padding,r.props.paddingTop]),h={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:r.props.rowClassName};d.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,b=r.renderRow;return y.jsx(b,{node:i,innerRef:s,attrs:h,children:y.jsx(g,{node:i,tree:r,style:u,dragHandle:l})})});let yo="",Pc=null;function y2(){A0();const t=Te();return y.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(),V0(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),B0(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(Pc),yo+=e.key,Pc=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:y.jsx(Hb,{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:Bb,innerElementType:Gb,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:F3})})}function Dc(t){return t.isFiltered?j3(t.root,t.isMatch.bind(t)):K3(t.root)}function K3(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(C2),e}function j3(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(C2),r}function C2(t,e){t.rowIndex=e}const _c=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var Co=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(u){try{c(r.next(u))}catch(f){l(f)}}function s(u){try{c(r.throw(u))}catch(f){l(f)}}function c(u){u.done?o(u.value):i(u.value).then(a,s)}c((r=r.apply(t,e||[])).next())})};const{safeRun:ge,identify:Ze,identifyNull:Ke}=ub;class fn{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=As(this),this.visibleNodes=Dc(this),this.idToIndex=_c(this.visibleNodes)}update(e){this.props=e,this.root=As(this),this.visibleNodes=Dc(this),this.idToIndex=_c(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=Kn(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=Kn(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=W0(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 Co(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?Z0(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:Y0(this),l=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield ge(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 Co(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(Ze),i=r.map(o=>this.get(o)).filter(o=>!!o);yield ge(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=Ze(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(lo(n)),new Promise(r=>{fn.editPromise=r})}submit(e,n){return Co(this,void 0,void 0,function*(){if(!e)return;const r=Ze(e);yield ge(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(lo(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(lo(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(Ke(e));n&&ge(this.props.onActivate,n)}resolveEdit(e){const n=fn.editPromise;n&&n(e),fn.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(Gt(Ze(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ge(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=Ze(e);r&&this.dispatch(Gt(i)),this.dispatch(Fe.only(i)),this.dispatch(Fe.anchor(i)),this.dispatch(Fe.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=Ze(e);this.dispatch(Fe.remove(n)),ge(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(Ke(e));n&&(this.dispatch(Gt(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&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=Ze(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(Gt(n)),this.dispatch(Fe.remove(this.nodesBetween(r,i))),this.dispatch(Fe.add(this.nodesBetween(r,Ke(n)))),this.dispatch(Fe.mostRecent(n)),this.scrollTo(n),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ge(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(Gt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(Ze)),i=Ke(e.anchor),o=Ke(e.mostRecent);this.dispatch(Fe.set({ids:r,anchor:i,mostRecent:o})),ge(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&&H0(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(bn.cursor({type:"none"}))}showCursor(e){this.dispatch(bn.cursor(e))}open(e){const n=Ke(e);n&&(this.isOpen(n)||(this.dispatch(Jo.open(n,this.isFiltered)),ge(this.props.onToggle,n)))}close(e){const n=Ke(e);n&&this.isOpen(n)&&(this.dispatch(Jo.close(n,this.isFiltered)),ge(this.props.onToggle,n))}toggle(e){const n=Ke(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=Ke(e);if(!n)return;const r=Yl(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(){Zr(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Zr(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=Ze(e);return this.openParents(r),q0(()=>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===Jn)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!Kn(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!Kn(e,n)}isDragging(e){const n=Ke(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=Ke(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(Gt(e.id))}onBlur(){this.dispatch(Cb())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||y2}get renderRow(){return this.props.renderRow||vb}get renderNode(){return this.props.children||gb}get renderDragPreview(){return this.props.renderDragPreview||X0}get renderCursor(){return this.props.renderCursor||pb}}function ye(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 H3=typeof Symbol=="function"&&Symbol.observable||"@@observable",Tc=H3,So=()=>Math.random().toString(36).substring(7).split("").join("."),z3={INIT:`@@redux/INIT${So()}`,REPLACE:`@@redux/REPLACE${So()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${So()}`},$t=z3;function S2(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 V3(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(W3(t))return"date";if(U3(t))return"error";const n=B3(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 B3(t){return typeof t.constructor=="function"?t.constructor.name:null}function U3(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function W3(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function lt(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=V3(t)),e}function w2(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?ye(2):`Expected the root reducer to be a function. Instead, received: '${lt(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ye(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"?ye(1):`Expected the enhancer to be a function. Instead, received: '${lt(n)}'`);return n(w2)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function c(){l===o&&(l=new Map,o.forEach((v,m)=>{l.set(m,v)}))}function u(){if(s)throw new Error(process.env.NODE_ENV==="production"?ye(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(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?ye(4):`Expected the listener to be a function. Instead, received: '${lt(v)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?ye(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;c();const C=a++;return l.set(C,v),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?ye(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,c(),l.delete(C),o=null}}}function h(v){if(!S2(v))throw new Error(process.env.NODE_ENV==="production"?ye(7):`Actions must be plain objects. Instead, the actual type was: '${lt(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"?ye(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"?ye(17):`Action "type" property must be a string. Instead, the actual type was: '${lt(v.type)}'. Value was: '${v.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?ye(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,v)}finally{s=!1}return(o=l).forEach(C=>{C()}),v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?ye(10):`Expected the nextReducer to be a function. Instead, received: '${lt(v)}`);r=v,h({type:$t.REPLACE})}function b(){const v=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?ye(11):`Expected the observer to be an object. Instead, received: '${lt(m)}'`);function C(){const D=m;D.next&&D.next(u())}return C(),{unsubscribe:v(C)}},[Tc](){return this}}}return h({type:$t.INIT}),{dispatch:h,subscribe:f,getState:u,replaceReducer:g,[Tc]:b}}function Ic(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function G3(t,e,n,r){const i=Object.keys(e),o=n&&n.type===$t.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(!S2(t))return`The ${o} has unexpected type of "${lt(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===$t.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 q3(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:$t.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?ye(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:$t.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?ye(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${$t.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 Oc(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"&&Ic(`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{q3(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=G3(a,n,s,i);f&&Ic(f)}let c=!1;const u={};for(let f=0;f<r.length;f++){const h=r[f],g=n[h],b=a[h],p=g(b,s);if(typeof p>"u"){const v=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?ye(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${h}" 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.`)}u[h]=p,c=c||p!==b}return c=c||r.length!==Object.keys(a).length,c?u:a}}function Y3(t=mn().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 Z3=Oc({nodes:Oc({focus:Sb,edit:yb,open:wb,selection:Eb,drag:Y3}),dnd:xb}),X3=mn();function J3({treeProps:t,imperativeHandle:e,children:n}){const r=d.useRef(null),i=d.useRef(null),o=d.useRef(w2(Z3,mn(t))),l=$l.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>X3),a=d.useMemo(()=>new fn(o.current,t,r,i),[]),s=d.useRef(0);return d.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),d.useImperativeHandle(e,()=>a),d.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),d.useEffect(()=>{a.props.searchTerm||o.current.dispatch(Jo.clear(!0))},[a.props.searchTerm]),y.jsx(N0.Provider,{value:a,children:y.jsx(L0.Provider,{value:s.current,children:y.jsx(R0.Provider,{value:l.nodes,children:y.jsx(M0.Provider,{value:l.dnd,children:y.jsx(I9,Object.assign({backend:O3,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function Q3(){const t=Te(),[,e]=u2(()=>({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}=b2({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(bn.hovering(l.parentId,l.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function e7(t){return Q3(),t.children}function t7(){const e=Te().props.renderContainer||y2;return y.jsx(y.Fragment,{children:y.jsx(e,{})})}function n7(){const t=Te(),{offset:e,mouse:n,item:r,isDragging:i}=n3(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||X0;return y.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class r7{constructor(e){this.root=i7(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 i7(t){const e=new E2({id:"ROOT"},null);return e.children=t.map(n=>na(n,e)),e}function na(t,e){const n=new E2(t,e);return t.children&&(n.children=t.children.map(r=>na(r,n))),n}class E2{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=na(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 o7=0;function l7(t){const[e,n]=d.useState(t),r=d.useMemo(()=>new r7(e),[e]);return[e,{onMove:c=>{for(const u of c.dragIds)r.move({id:u,parentId:c.parentId,index:c.index});n(r.data)},onRename:({name:c,id:u})=>{r.update({id:u,changes:{name:c}}),n(r.data)},onCreate:({parentId:c,index:u,type:f})=>{const h={id:`simple-tree-id-${o7++}`,name:""};return f==="internal"&&(h.children=[]),r.create({parentId:c,index:u,data:h}),n(r.data),h},onDelete:c=>{c.ids.forEach(u=>r.drop({id:u})),n(r.data)}}]}function a7(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.
|
|
98
|
-
Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,n]=l7(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function s7(t,e){const n=a7(t);return y.jsxs(J3,{treeProps:n,imperativeHandle:e,children:[y.jsx(e7,{children:y.jsx(t7,{})}),y.jsx(n7,{})]})}const c7=d.forwardRef(s7),x2=({top:t,left:e})=>y.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function u7(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 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 d.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),d.useCallback(function(l){i.current=l,o()},[o])}function kc(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 d7(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}),l=o[0],a=o[1],s=d.useRef(!1);d.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var c=d.useRef({width:void 0,height:void 0}),u=u7(d.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(h){var g=h[0],b=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",p=kc(g,b,"inlineSize"),v=kc(g,b,"blockSize"),m=p?r(p):void 0,C=v?r(v):void 0;if(c.current.width!==m||c.current.height!==C){var S={width:m,height:C};c.current.width=m,c.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 d.useMemo(function(){return{ref:u,width:l.width,height:l.height}},[u,l.width,l.height])}var Le=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(Le||{}),bt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(bt||{});const Qr=t=>t?t.nodeType===Le.SEPARATOR:!1,ei=t=>t?t.nodeType===Le.TITLE:!1,jn=t=>!Qr(t)&&!ei(t),$2=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:l,insertAfter:a,append:s,prepend:c,getItem:u,move:f,items:h}=vg({initialItems:JSON.parse(JSON.stringify(t)),getKey:T=>T.id,getChildren:T=>T.children||[]}),[g,b]=d.useState(),p=(T=[])=>{const L=h.map(O=>O.key);r(...L);const P=JSON.parse(JSON.stringify(T));P.length>0&&o(null,0,...P),b(void 0)},v=T=>{const L=u(T);L&&b(L.value)},m=(T,L,P)=>{var O;if(T){const F=u(T);F&&o(T,P??((O=F.children)==null?void 0:O.length)??0,L)}else o(null,P??h.length,L)},C=T=>{var L;return(L=u(T))==null?void 0:L.value},S=(T,L)=>{var z;const P=u(T);if(!P){console.error("No item found");return}let O=((z=P.children)==null?void 0:z.map(B=>B.value))??null;const F=L.childrenCount??P.value.childrenCount??0;if((O==null?void 0:O.length)===0&&F>0&&(O=null),L.children&&(O=[...O??[],...L.children]),L.children){const B=new Set(L.children.map(W=>W.id));O=L.children.filter(W=>!B.has(W.id)),O=[...O??[],...L.children]}const K={...P.value,...L,children:O,childrenCount:(O==null?void 0:O.length)??F};i(T,K)},D=T=>{r(T)},$=T=>{r(...T)},E=async T=>{if(!e){console.error("No refresh callback provided");return}try{const L=await e(T);S(T,L)}catch(L){console.error("error while refreshing node:",L)}},x=(T,L)=>{o(null,L??h.length,T)},R=(T,L)=>{o(null,L??h.length,...T)},H=(T,L)=>{const P=u(T);if(!P){console.error("No item found");return}const O={...P.value,children:L,childrenCount:L.length,hasLoadedChildren:L.length>0};i(T,O)},j=T=>{const L=[],P=u(T);if(!P)return[];L.push(P.value);const O=F=>{const K=w(F);if(!K)return;const z=u(K);z&&(L.push(z.value),O(K))};return O(T),L.reverse()},w=T=>{var L;return((L=u(T))==null?void 0:L.parentKey)??null},M=T=>{const L=w(T);if(!L)return null;const P=u(L);return P?P.value:null},V=(T,L)=>{l(T,L)},A=(T,L)=>{a(T,L)},U=(T,L)=>{s(T,L)},I=(T,L)=>{c(T,L)},N=(T,L,P)=>{f(T,L,P)},k=T=>{N(T.sourceId,T.newParentId,T.index)},G=async T=>{if(!n)return[];const L=await n(T);return S(T,{children:L,hasLoadedChildren:!0,childrenCount:L.length}),L};return d.useEffect(()=>{const T=L=>{L.forEach(P=>{var O;if(P.children&&P.children.length>0){const F=P.value.hasLoadedChildren||((O=P.children)==null?void 0:O.length)>0||P.value.children&&P.value.children.length>0;P.value.children=P.children.map(z=>z.value);const K=F?P.children.length:P.value.childrenCount??0;P.value.childrenCount=K,F&&!P.value.hasLoadedChildren&&(P.value.hasLoadedChildren=!0),T(P.children)}else{const K=P.value.hasLoadedChildren||P.value.children&&P.value.children.length>0?0:P.value.childrenCount;P.value.children=[],P.value.childrenCount=K}})};T(h)},[h]),{nodes:h,addChild:m,updateNode:S,deleteNode:D,deleteNodes:$,addRootNode:x,addRootNodes:R,selectedNode:g,setSelectedNode:b,refreshNode:E,setChildren:H,insertBeforeNode:V,insertAfterNode:A,handleMove:k,prependToNode:I,moveNode:N,appendToNode:U,move:f,resetTree:p,handleLoadChildren:G,selectNodeById:v,getParent:M,getNode:C,getParentId:w,getAncestors:j}},ra=d.createContext(null),f7=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=d.useRef(null),[l,a]=d.useState(null),[s,c]=d.useState(n??null),u=$2(i??[],e,r);return y.jsx(ra.Provider,{value:{treeApiRef:o,treeData:u,root:l,initialTargetId:s,setInitialTargetId:c,setRoot:a},children:t})},ia=()=>{const t=d.useContext(ra);if(!t)throw new Error("TreeContext not found");return t},h7=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:l,beforeMove:a})=>{const[s,c]=d.useState(400),{ref:u,width:f}=d7(),h=ia(),g=(h==null?void 0:h.treeData.nodes)??[];d.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;c(parseInt(D,10)+20)}}),S.observe(C)),()=>S==null?void 0:S.disconnect()},[]);const b=m=>{var k,G,T,L;const C=JSON.parse(JSON.stringify(g)),S=m.dragNodes[0],D=m.parentId?((k=m.parentNode)==null?void 0:k.data.children)??[]:C,$=m.dragNodes[0].data.value.id,E=m.dragNodes[0].data,x=(G=m.parentNode)==null?void 0:G.data;if((x==null?void 0:x.value.nodeType)===Le.TITLE||(x==null?void 0:x.value.nodeType)===Le.SEPARATOR)return null;const R=E.parentKey??n,H=m.parentId??n;let j=m.index+0,w=null,M=H;const V=((L=(T=S.parent)==null?void 0:T.children)==null?void 0:L.findIndex(P=>P.data.value.id===$))??0;if(R===H){if(V===j)return null;j=j<V?j:j-1}const A=m.index-1,U=D[A],I=m.index,N=D[I];return m.index===0?(M=m.parentId??n,w=bt.FIRST_CHILD):!x&&m.index===1&&!jn(U.value)?(M=n,j=1,w=bt.FIRST_CHILD):m.index===D.length?(M=M??n,w=bt.LAST_CHILD):U&&jn(U.value)?(M=U.value.id,w=bt.RIGHT):N&&jn(N.value)&&(w=bt.LEFT,M=N.value.id),w&&M?{targetModeId:M,mode:w,oldParentId:R,index:j,newParentId:m.parentId,sourceId:$}:null},p=m=>{const C=b(m);C&&(a?a(C,()=>{h==null||h.treeData.handleMove(C),l==null||l(C)}):(h==null||h.treeData.handleMove(C),l==null||l(C)))},v=d.useCallback(m=>o?!o(m):!1,[o]);if(h)return y.jsx("div",{ref:u,style:{height:s},className:"c__tree-view--container",children:y.jsx(c7,{data:g,ref:h.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:v,disableDrop:({parentNode:m,dragNodes:C,index:S})=>{var R,H;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||((R=m.data.value)==null?void 0:R.nodeType)===Le.TITLE||((H=m.data.value)==null?void 0:H.nodeType)===Le.SEPARATOR)return!0;if(m.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const j=g[S-1],w=g[S],M=g[S+1],V=Qr(j==null?void 0:j.value),A=Qr(w==null?void 0:w.value),U=ei(j==null?void 0:j.value),I=ei(w==null?void 0:w.value),N=jn(M==null?void 0:M.value);return!!(S===0&&(A||I)||V&&I&&N||U&&A&&N)}const $=m==null?void 0:m.isOpen,E=(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(!E)return m.data.value.canDrop=!0,!1;let x=m.data.value.childrenCount&&m.data.value.childrenCount>0&&(m==null?void 0:m.data.children)&&m.data.children.length>0;return x=x??!0,!$&&!x&&E?(m.data.value.canDrop=!0,!0):(m.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:e,renderCursor:x2,renderRow:p7,rowClassName:"c__tree-view--row",children:r})})},p7=({children:t,...e})=>{const n=e.node.data.value.nodeType===Le.TITLE,r=e.node.data.value.nodeType===Le.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:l=>l.stopPropagation(),onClick:e.node.handleClick},t):d.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},y.jsx("div",{className:"c__tree-view--row-content",children:t}))},v7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",P2=v7?d.useLayoutEffect:d.useEffect;function D2(t){const e=d.useRef(t);return P2(()=>{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 Nc(t,e){e===void 0&&(e=[t]);const n=d.useRef(t);return P2(()=>{n.current!==t&&(n.current=t)},e),n}function g7(t){const e=D2(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 wo={};function m7(t,e){return d.useMemo(()=>{const n=wo[t]==null?0:wo[t]+1;return wo[t]=n,t+"-"+n},[t,e])}var zn;(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"})(zn||(zn={}));function Rc(){}const b7=Object.freeze({x:0,y:0});var on;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(on||(on={}));var Mc;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(Mc||(Mc={}));var at;(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"})(at||(at={}));at.Space,at.Enter,at.Esc,at.Space,at.Enter,at.Tab;var Lc;(function(t){t[t.RightClick=2]="RightClick"})(Lc||(Lc={}));var Ac;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(Ac||(Ac={}));var Fc;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(Fc||(Fc={}));on.Backward+"",on.Forward+"",on.Backward+"",on.Forward+"";var al;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(al||(al={}));var sl;(function(t){t.Optimized="optimized"})(sl||(sl={}));function y7(t){let{callback:e,disabled:n}=t;const r=D2(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}al.WhileDragging,sl.Optimized;const C7={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Rc,draggableNodes:new Map,over:null,measureDroppableContainers:Rc},S7=d.createContext(C7);({...b7});var Kc;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Kc||(Kc={}));const w7="Droppable",E7={timeout:25};function x7(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=m7(w7),{active:l,dispatch:a,over:s,measureDroppableContainers:c}=d.useContext(S7),u=d.useRef({disabled:n}),f=d.useRef(!1),h=d.useRef(null),g=d.useRef(null),{disabled:b,updateMeasurementsFor:p,timeout:v}={...E7,...i},m=Nc(p??r),C=d.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),g.current=null},v)},[v]),S=y7({callback:C,disabled:b||!l}),D=d.useCallback((R,H)=>{S&&(H&&(S.unobserve(H),f.current=!1),R&&S.observe(R))},[S]),[$,E]=g7(D),x=Nc(e);return d.useEffect(()=>{!S||!$.current||(S.disconnect(),f.current=!1,S.observe($.current))},[$,S]),d.useEffect(()=>(a({type:zn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:$,rect:h,data:x}}),()=>a({type:zn.UnregisterDroppable,key:o,id:r})),[r]),d.useEffect(()=>{n!==u.current.disabled&&(a({type:zn.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,a]),{active:l,rect:h,isOver:(s==null?void 0:s.id)===r,node:$,over:s,setNodeRef:E}}const $7=t=>{const{isOver:e,setNodeRef:n}=x7({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]),y.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},P7=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var S,D;const l=ia(),a=d.useRef(null),[s,c]=d.useState(!1),[u,f]=d.useState(!1),h=o??s,g=n.willReceiveDrop||u,b=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,v=n.isLeaf||!b,m=d.useCallback(async()=>{if(!v){if(p||n.data.value.hasLoadedChildren){n.toggle();return}c(!0),await(l==null?void 0:l.treeData.handleLoadChildren(n.data.value.id)),c(!1),n.open()}},[v,p,n,l==null?void 0:l.treeData]),C=d.useCallback($=>{$&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{m()},500)),a.current&&!$&&clearTimeout(a.current)},[m,n.isOpen,n.isDragging]);return d.useEffect(()=>{C(g)},[g,C]),n.data.value.nodeType===Le.SEPARATOR?y.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===Le.TITLE?y.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):y.jsx($7,{id:n.id,data:{data:n.data,nodeApi:n},onOver:f,children:y.jsxs("div",{onClick:$=>{if(!$.target.closest(".c__tree-view--node")){$.stopPropagation();return}e==null||e()},onKeyDown:$=>{$.target.closest(".c__tree-view--node")||$.stopPropagation()},ref:r,style:i,className:Pe("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:u}),children:[v&&y.jsx("div",{className:"c__tree-view--node__leaf"}),!v&&y.jsxs(y.Fragment,{children:[h&&y.jsx("div",{className:"c__tree-view--node__loading",children:y.jsx(Vl,{})}),!h&&y.jsx("span",{onClick:$=>{$.stopPropagation(),m()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})};var Re=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(Re||{}),Vn=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(Vn||{});const D7=({name:t,size:e,className:n,color:r,type:i=Vn.FILLED,...o})=>{const l=Pe("",{[`icon--${e}`]:e!==void 0,[`material-icons-${i}`]:i!==Vn.OUTLINED,"material-icons":i===Vn.OUTLINED},n),a={color:r,fontSize:typeof e=="number"?`${e}px`:void 0};return y.jsx("span",{className:l,style:a,...o,children:t})},_2={[Re.X_SMALL]:11,[Re.SMALL]:16,[Re.MEDIUM]:24,[Re.LARGE]:32,[Re.X_LARGE]:40},T2={[Re.X_SMALL]:16,[Re.SMALL]:24,[Re.MEDIUM]:32,[Re.LARGE]:40,[Re.X_LARGE]:48},_7=t=>T2[t]??24,T7=t=>_2[t]??24,Oi=({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?y.jsx(Sn,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:l,children:y.jsxs("div",{role:"button",className:"c__access-role-dropdown",onClick:()=>{o==null||o(!i)},children:[y.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label}),y.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):y.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label})},I2=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=ae.useCunningham(),[c,u]=d.useState(!1);return y.jsxs("div",{className:"c__add-share-user-list",children:[y.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>y.jsx(O2,{user:f,onRemoveUser:e},f.id))}),y.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,y.jsx(Oi,{roles:o,selectedRole:l,onSelect:a,isOpen:c,onOpenChange:u}),y.jsx(ae.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},O2=({user:t,onRemoveUser:e})=>y.jsxs("div",{className:"c__add-share-user-item",children:[y.jsx("span",{children:t.full_name||t.email}),y.jsx(ae.Button,{color:"tertiary-text",size:"nano",onClick:()=>e==null?void 0:e(t),icon:y.jsx("span",{className:"material-icons",children:"close"})})]}),jc=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],k2=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),N2=t=>{let e=0;for(let n=0;n<t.length;n++)e+=t.charCodeAt(n);return jc[e%jc.length]},R2=({fullName:t,size:e="medium",forceColor:n})=>{const r=k2(t),i=N2(t);return y.jsx("div",{style:{backgroundColor:n||void 0},className:Pe(`c__avatar ${e}`,{[i]:!n&&i}),children:y.jsx("div",{className:"c__avatar__initials",children:r})})},ki=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return y.jsxs("div",{className:"c__user-row",children:[y.jsx(R2,{fullName:r,size:"small"}),y.jsxs("div",{className:"c__user-row__info",children:[y.jsx("span",{className:"c__user-row__name",children:t}),n&&e&&y.jsx("span",{className:Pe("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},cl=({user:t})=>{const{t:e}=ae.useCunningham();return y.jsx($i,{left:y.jsx(ki,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:y.jsxs("div",{className:"c__search-user-item-right",children:[y.jsx("span",{children:e("components.share.item.add")}),y.jsx("span",{className:"material-icons",children:"add"})]})})},M2=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=ae.useCunningham(),a=Tt(),s=Tt(),c=d.useMemo(()=>{const f=[];return r&&f.push({label:l("components.share.access.delete"),icon:y.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!i,callback:()=>r(t)}),f},[r,t,i,l]),u=()=>{const f=s.isOpen;s.setIsOpen(!f)};return y.jsx("div",{className:"c__share-member-item",children:y.jsx($i,{left:y.jsx(ki,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:y.jsxs("div",{className:"c__share-member-item__right",children:[y.jsx(Oi,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,onOpenChange:a.setIsOpen,canUpdate:i,roleTopMessage:o}),c.length>0&&i&&y.jsx(Sn,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:y.jsx(ae.Button,{color:"primary-text",onClick:u,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},L2=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=ae.useCunningham(),a=Tt(),s=Tt(),c=[{label:l("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:y.jsx("span",{className:"material-icons",children:"back_hand"})}],u=()=>{const f=s.isOpen;s.setIsOpen(!f)};return y.jsx("div",{className:"c__share-member-item",children:y.jsx($i,{left:y.jsx(ki,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:y.jsxs("div",{className:"c__share-member-item__right",children:[y.jsx(Oi,{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&&y.jsx(Sn,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:y.jsx(ae.Button,{color:"primary-text",onClick:u,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},I7="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6167%2022%209.31667%2021.7375%208.1%2021.2125C6.88333%2020.6875%205.825%2019.975%204.925%2019.075C4.025%2018.175%203.3125%2017.1167%202.7875%2015.9C2.2625%2014.6833%202%2013.3833%202%2012C2%2010.6167%202.2625%209.31667%202.7875%208.1C3.3125%206.88333%204.025%205.825%204.925%204.925C5.825%204.025%206.88333%203.3125%208.1%202.7875C9.31667%202.2625%2010.6167%202%2012%202C13.3833%202%2014.6833%202.2625%2015.9%202.7875C17.1167%203.3125%2018.175%204.025%2019.075%204.925C19.975%205.825%2020.6875%206.88333%2021.2125%208.1C21.7375%209.31667%2022%2010.6167%2022%2012C22%2013.3833%2021.7375%2014.6833%2021.2125%2015.9C20.6875%2017.1167%2019.975%2018.175%2019.075%2019.075C18.175%2019.975%2017.1167%2020.6875%2015.9%2021.2125C14.6833%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0167%204.6625%2015.7833%205.9875%2017.3C7.3125%2018.8167%208.98333%2019.7%2011%2019.95ZM17.9%2017.4C18.2333%2017.0333%2018.5333%2016.6375%2018.8%2016.2125C19.0667%2015.7875%2019.2875%2015.3458%2019.4625%2014.8875C19.6375%2014.4292%2019.7708%2013.9583%2019.8625%2013.475C19.9542%2012.9917%2020%2012.5%2020%2012C20%2010.3667%2019.5458%208.875%2018.6375%207.525C17.7292%206.175%2016.5167%205.2%2015%204.6V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.4333%2016%2016.825%2016.1292%2017.175%2016.3875C17.525%2016.6458%2017.7667%2016.9833%2017.9%2017.4Z'%20fill='%233D3D8C'/%3e%3c/svg%3e",O7="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2018C18.4167%2018%2018.7708%2017.8542%2019.0625%2017.5625C19.3542%2017.2708%2019.5%2016.9167%2019.5%2016.5C19.5%2016.0833%2019.3542%2015.7292%2019.0625%2015.4375C18.7708%2015.1458%2018.4167%2015%2018%2015C17.5833%2015%2017.2292%2015.1458%2016.9375%2015.4375C16.6458%2015.7292%2016.5%2016.0833%2016.5%2016.5C16.5%2016.9167%2016.6458%2017.2708%2016.9375%2017.5625C17.2292%2017.8542%2017.5833%2018%2018%2018ZM18%2021C18.5%2021%2018.9667%2020.8833%2019.4%2020.65C19.8333%2020.4167%2020.1917%2020.0917%2020.475%2019.675C20.0917%2019.4417%2019.6917%2019.2708%2019.275%2019.1625C18.8583%2019.0542%2018.4333%2019%2018%2019C17.5667%2019%2017.1417%2019.0542%2016.725%2019.1625C16.3083%2019.2708%2015.9083%2019.4417%2015.525%2019.675C15.8083%2020.0917%2016.1667%2020.4167%2016.6%2020.65C17.0333%2020.8833%2017.5%2021%2018%2021ZM9%208H15V6C15%205.16667%2014.7083%204.45833%2014.125%203.875C13.5417%203.29167%2012.8333%203%2012%203C11.1667%203%2010.4583%203.29167%209.875%203.875C9.29167%204.45833%209%205.16667%209%206V8ZM12.25%2022H6C5.45%2022%204.97917%2021.8042%204.5875%2021.4125C4.19583%2021.0208%204%2020.55%204%2020V10C4%209.45%204.19583%208.97917%204.5875%208.5875C4.97917%208.19583%205.45%208%206%208H7V6C7%204.61667%207.4875%203.4375%208.4625%202.4625C9.4375%201.4875%2010.6167%201%2012%201C13.3833%201%2014.5625%201.4875%2015.5375%202.4625C16.5125%203.4375%2017%204.61667%2017%206V8H18C18.55%208%2019.0208%208.19583%2019.4125%208.5875C19.8042%208.97917%2020%209.45%2020%2010V11.3C19.7%2011.2%2019.3875%2011.125%2019.0625%2011.075C18.7375%2011.025%2018.3833%2011%2018%2011V10H6V20H11.3C11.4333%2020.4%2011.5667%2020.7458%2011.7%2021.0375C11.8333%2021.3292%2012.0167%2021.65%2012.25%2022ZM18%2023C16.6167%2023%2015.4375%2022.5125%2014.4625%2021.5375C13.4875%2020.5625%2013%2019.3833%2013%2018C13%2016.6167%2013.4875%2015.4375%2014.4625%2014.4625C15.4375%2013.4875%2016.6167%2013%2018%2013C19.3833%2013%2020.5625%2013.4875%2021.5375%2014.4625C22.5125%2015.4375%2023%2016.6167%2023%2018C23%2019.3833%2022.5125%2020.5625%2021.5375%2021.5375C20.5625%2022.5125%2019.3833%2023%2018%2023Z'%20fill='%233D3D8C'/%3e%3c/svg%3e",Eo=t=>{switch(t){case"public":return y.jsx("img",{src:I7,alt:""});case"restricted":return y.jsx("img",{src:O7,alt:""});default:return null}},k7=({linkReachChoices:t=[],canUpdate:e,linkReach:n="public",onUpdate:r})=>{var u,f;const{isOpen:i,setIsOpen:o}=Tt(),[l,a]=d.useState([n]),{t:s}=ae.useCunningham(),c=d.useMemo(()=>t.map(h=>({icon:h.icon??Eo(h.value),value:h.value,label:s("components.share.linkSettings.reach.choices."+h.value+".title"),...h})),[t]);return y.jsxs("div",{className:"c__share-modal__link-settings",children:[y.jsx("span",{className:"c__share-modal__link-settings__title",children:s("components.share.linkSettings.title")}),y.jsxs("div",{className:"c__share-modal__link-settings__content",children:[y.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?y.jsx(Sn,{onSelectValue:h=>{a([h]),r==null||r(h)},options:c,isOpen:i,onOpenChange:o,selectedValues:l,children:y.jsxs(ae.Button,{color:"primary-text",icon:Eo(l[0]),iconPosition:"left",onClick:()=>{e&&o(!i)},children:[(u=c.find(h=>h.value===l[0]))==null?void 0:u.label,y.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):y.jsxs("span",{className:"c__share-modal__link-settings__content__select__value",children:[Eo(l[0]),(f=c.find(h=>h.value===l[0]))==null?void 0:f.label]})}),y.jsx("div",{className:"c__share-modal__link-settings__content__description",children:s("components.share.linkSettings.reach.choices."+l[0]+".description")})]})]})},N7=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,hasNextInvitations:a=!1,hideInvitations:s=!1,hideMembers:c=!1,...u})=>{var T,L;if(!(s&&c)){if(!u.invitationRoles)throw new Error("invitationRoles is required");if(!u.onSearchUsers)throw new Error("onSearchUsers is required")}if(!s&&!u.onInviteUser)throw new Error("onInviteUser is required");const{t:f}=ae.useCunningham(),{isMobile:h}=wn(),g=d.useRef(null),[b,p]=d.useState("400px"),v=d.useRef(null),[m,C]=d.useState(""),[S,D]=d.useState(""),[$,E]=d.useState([]),[x,R]=d.useState(((L=(T=u.invitationRoles)==null?void 0:T[0])==null?void 0:L.value)??""),H=h?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",j=P=>{if(g.current&&clearTimeout(g.current),P===""){D(""),u.onSearchUsers("");return}g.current=setTimeout(()=>{u.onSearchUsers(P),D(P)},300)},w=P=>{C(P),j(P)},M=S!==""||$.length>0,V=d.useCallback(P=>{E(O=>[...O,P]),C(""),D(""),u.onSearchUsers("")},[u]),A=P=>{E(O=>O.filter(F=>F.id!==P.id))},U=d.useMemo(()=>{const P=t==null?void 0:t.filter(W=>!$.includes(W));let O=f(S!==""?"components.share.user.no_result":"components.share.user.placeholder");const K=(W=>!!W.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,}))$/))(S??"")&&!(P!=null&&P.some(W=>W.email===S)),z={id:S,full_name:"",email:S};return K&&(O=void 0),{groupName:f("components.share.search.group_name"),elements:P??[],showWhenEmpty:!0,emptyString:O,endActions:K?[{content:y.jsx(cl,{user:z}),onSelect:()=>void V(z)}]:void 0}},[t,S,f,$,V]),I=P=>{var B;const F=(P==null?void 0:P.clientHeight)??0,K=((B=v.current)==null?void 0:B.clientHeight)??0,z=`calc(${H} - ${F}px - ${K}px - 70px - 10px)`;p(z)},N=!s&&!M&&!u.loading&&i.length>0,k=!c&&!M&&!u.loading&&r.length>0,G=!(s&&c);return y.jsx(ae.Modal,{title:u.modalTitle??f("components.share.modalTitle"),isOpen:u.isOpen,onClose:u.onClose,closeOnClickOutside:!0,size:h?ae.ModalSize.FULL:ae.ModalSize.LARGE,children:y.jsxs("div",{className:"c__share-modal no-padding",children:[l&&$.length>0&&y.jsx("div",{className:"c__share-modal__selected-users",ref:v,children:y.jsx(I2,{users:$,onRemoveUser:A,roles:u.invitationRoles,selectedRole:x,onSelectRole:R,onShare:()=>{u.onInviteUser($,x),E([])}})}),G&&y.jsx(O0,{onFilter:w,inputValue:m,showInput:l,loading:u.loading,placeholder:f("components.share.user.placeholder"),children:y.jsxs("div",{style:{height:b,overflowY:"auto"},children:[M&&y.jsx("div",{className:"c__share-modal__search-users",children:y.jsx(k0,{group:U,onSelect:P=>{V(P)},renderElement:P=>y.jsx(cl,{user:P})})}),!M&&e,N&&y.jsxs("div",{className:"c__share-modal__invitations",children:[y.jsx("span",{className:"c__share-modal__invitations-title",children:f("components.share.invitations.title")}),i.map(P=>{var O;return y.jsx(L2,{invitation:P,roles:u.invitationRoles,updateRole:u.onUpdateInvitation,deleteInvitation:u.onDeleteInvitation,canUpdate:l,roleTopMessage:(O=u.invitationRoleTopMessage)==null?void 0:O.call(u,P)},P.id)}),y.jsx(Hc,{show:a,onShowMore:u.onLoadNextInvitations})]}),k&&y.jsxs("div",{className:"c__share-modal__members",children:[y.jsx("span",{className:"c__share-modal__members-title",children:f(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(P=>{var O,F;return y.jsx(M2,{accessData:P,canUpdate:l,roleTopMessage:(O=u.accessRoleTopMessage)==null?void 0:O.call(u,P),roles:((F=u.getAccessRoles)==null?void 0:F.call(u,P))??u.invitationRoles,updateRole:u.onUpdateAccess,deleteAccess:u.onDeleteAccess},P.id)}),y.jsx(Hc,{show:o,onShowMore:u.onLoadNextMembers})]})]})}),y.jsx("div",{ref:I,children:!M&&y.jsxs("div",{className:"c__share-modal__footer",children:[u.linkSettings&&y.jsx(k7,{linkReachChoices:u.linkReachChoices,canUpdate:l,onUpdate:u.onUpdateLinkReach,linkReach:u.linkReach}),n]})})]})})},Hc=({show:t,onShowMore:e})=>{const{t:n}=ae.useCunningham();return t?y.jsx("div",{className:"c__share-modal__show-more-button",children:y.jsx(ae.Button,{color:"primary-text",size:"small",icon:y.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:n("components.share.members.load_more")})}):null},R7=({onCopyLink:t,onOk:e})=>{const{t:n}=ae.useCunningham();return y.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[y.jsx(ae.Button,{color:"tertiary",icon:y.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),y.jsx(ae.Button,{color:"primary",onClick:e,children:n("components.share.ok")})]})};exports.AccessRoleDropdown=Oi;exports.CunninghamProvider=J2;exports.CustomTabs=rb;exports.DropdownMenu=Sn;exports.Filter=Jg;exports.Footer=Xg;exports.Header=xf;exports.Hero=e5;exports.HomeGutter=t5;exports.HorizontalSeparator=Xo;exports.Icon=D7;exports.IconSize=Re;exports.IconType=Vn;exports.InvitationUserSelectorItem=O2;exports.InvitationUserSelectorList=I2;exports.LaGaufre=f5;exports.Label=qf;exports.LanguagePicker=Ef;exports.LeftPanel=$f;exports.MainLayout=U5;exports.ProConnectButton=Bc;exports.QuickSearch=O0;exports.QuickSearchGroup=k0;exports.QuickSearchInput=I0;exports.QuickSearchItem=Dr;exports.QuickSearchItemTemplate=$i;exports.SearchUserItem=cl;exports.ShareInvitationItem=L2;exports.ShareMemberItem=M2;exports.ShareModal=N7;exports.ShareModalCopyLinkFooter=R7;exports.Spinner=Vl;exports.TreeApi=fn;exports.TreeContext=ra;exports.TreeProvider=f7;exports.TreeView=h7;exports.TreeViewItem=P7;exports.TreeViewMoveModeEnum=bt;exports.TreeViewNodeTypeEnum=Le;exports.TreeViewSeparator=x2;exports.UserAvatar=R2;exports.UserRow=ki;exports.WithLabel=G5;exports.containerSizeMap=T2;exports.cunninghamConfig=Bo;exports.getContainerSize=_7;exports.getIconSize=T7;exports.getLocales=Vc;exports.getUserColor=N2;exports.getUserInitials=k2;exports.headerHeight=W5;exports.iconSizeMap=_2;exports.isNode=jn;exports.isSeparator=Qr;exports.isTitle=ei;exports.useDropdownMenu=Tt;exports.useResponsive=wn;exports.useTree=$2;exports.useTreeContext=ia;
|
|
88
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return D.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},Mm="DialogDescriptionWarning",Lm=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${x0(Mm).contentName}}.`;return D.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},Am=h0,Fm=g0,Km=m0,jm=b0,On='[cmdk-group=""]',lo='[cmdk-group-items=""]',Hm='[cmdk-group-heading=""]',Gl='[cmdk-item=""]',Ls=`${Gl}:not([aria-disabled="true"])`,Zo="cmdk-item-select",mt="data-value",zm=(t,e,n)=>n1(t,e,n),E0=D.createContext(void 0),nr=()=>D.useContext(E0),$0=D.createContext(void 0),ql=()=>D.useContext($0),P0=D.createContext(void 0),D0=D.forwardRef((t,e)=>{let n=nn(()=>{var _,O;return{search:"",value:(O=(_=t.value)!=null?_:t.defaultValue)!=null?O:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=nn(()=>new Set),i=nn(()=>new Map),o=nn(()=>new Map),l=nn(()=>new Set),a=_0(t),{label:s,children:c,value:d,onValueChange:f,filter:h,shouldFilter:v,loop:b,disablePointerSelection:p=!1,vimBindings:g=!0,...m}=t,C=Qe(),S=Qe(),P=Qe(),$=D.useRef(null),x=Qm();Nt(()=>{if(d!==void 0){let _=d.trim();n.current.value=_,E.emit()}},[d]),Nt(()=>{x(6,B)},[]);let E=D.useMemo(()=>({subscribe:_=>(l.current.add(_),()=>l.current.delete(_)),snapshot:()=>n.current,setState:(_,O,K)=>{var M,z,V;if(!Object.is(n.current[_],O)){if(n.current[_]=O,_==="search")A(),j(),x(1,w);else if(_==="value"&&(K||x(5,B),((M=a.current)==null?void 0:M.value)!==void 0)){let W=O??"";(V=(z=a.current).onValueChange)==null||V.call(z,W);return}E.emit()}},emit:()=>{l.current.forEach(_=>_())}}),[]),N=D.useMemo(()=>({value:(_,O,K)=>{var M;O!==((M=o.current.get(_))==null?void 0:M.value)&&(o.current.set(_,{value:O,keywords:K}),n.current.filtered.items.set(_,H(O,K)),x(2,()=>{j(),E.emit()}))},item:(_,O)=>(r.current.add(_),O&&(i.current.has(O)?i.current.get(O).add(_):i.current.set(O,new Set([_]))),x(3,()=>{A(),j(),n.current.value||w(),E.emit()}),()=>{o.current.delete(_),r.current.delete(_),n.current.filtered.items.delete(_);let K=L();x(4,()=>{A(),(K==null?void 0:K.getAttribute("id"))===_&&w(),E.emit()})}),group:_=>(i.current.has(_)||i.current.set(_,new Set),()=>{o.current.delete(_),i.current.delete(_)}),filter:()=>a.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:C,inputId:P,labelId:S,listInnerRef:$}),[]);function H(_,O){var K,M;let z=(M=(K=a.current)==null?void 0:K.filter)!=null?M:zm;return _?z(_,n.current.search,O):0}function j(){if(!n.current.search||a.current.shouldFilter===!1)return;let _=n.current.filtered.items,O=[];n.current.filtered.groups.forEach(M=>{let z=i.current.get(M),V=0;z.forEach(W=>{let Y=_.get(W);V=Math.max(Y,V)}),O.push([M,V])});let K=$.current;U().sort((M,z)=>{var V,W;let Y=M.getAttribute("id"),J=z.getAttribute("id");return((V=_.get(J))!=null?V:0)-((W=_.get(Y))!=null?W:0)}).forEach(M=>{let z=M.closest(lo);z?z.appendChild(M.parentElement===z?M:M.closest(`${lo} > *`)):K.appendChild(M.parentElement===K?M:M.closest(`${lo} > *`))}),O.sort((M,z)=>z[1]-M[1]).forEach(M=>{var z;let V=(z=$.current)==null?void 0:z.querySelector(`${On}[${mt}="${encodeURIComponent(M[0])}"]`);V==null||V.parentElement.appendChild(V)})}function w(){let _=U().find(K=>K.getAttribute("aria-disabled")!=="true"),O=_==null?void 0:_.getAttribute(mt);E.setState("value",O||void 0)}function A(){var _,O,K,M;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let z=0;for(let V of r.current){let W=(O=(_=o.current.get(V))==null?void 0:_.value)!=null?O:"",Y=(M=(K=o.current.get(V))==null?void 0:K.keywords)!=null?M:[],J=H(W,Y);n.current.filtered.items.set(V,J),J>0&&z++}for(let[V,W]of i.current)for(let Y of W)if(n.current.filtered.items.get(Y)>0){n.current.filtered.groups.add(V);break}n.current.filtered.count=z}function B(){var _,O,K;let M=L();M&&(((_=M.parentElement)==null?void 0:_.firstChild)===M&&((K=(O=M.closest(On))==null?void 0:O.querySelector(Hm))==null||K.scrollIntoView({block:"nearest"})),M.scrollIntoView({block:"nearest"}))}function L(){var _;return(_=$.current)==null?void 0:_.querySelector(`${Gl}[aria-selected="true"]`)}function U(){var _;return Array.from(((_=$.current)==null?void 0:_.querySelectorAll(Ls))||[])}function I(_){let O=U()[_];O&&E.setState("value",O.getAttribute(mt))}function R(_){var O;let K=L(),M=U(),z=M.findIndex(W=>W===K),V=M[z+_];(O=a.current)!=null&&O.loop&&(V=z+_<0?M[M.length-1]:z+_===M.length?M[0]:M[z+_]),V&&E.setState("value",V.getAttribute(mt))}function k(_){let O=L(),K=O==null?void 0:O.closest(On),M;for(;K&&!M;)K=_>0?Xm(K,On):Jm(K,On),M=K==null?void 0:K.querySelector(Ls);M?E.setState("value",M.getAttribute(mt)):R(_)}let G=()=>I(U().length-1),T=_=>{_.preventDefault(),_.metaKey?G():_.altKey?k(1):R(1)},F=_=>{_.preventDefault(),_.metaKey?I(0):_.altKey?k(-1):R(-1)};return D.createElement(me.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:_=>{var O;if((O=m.onKeyDown)==null||O.call(m,_),!_.defaultPrevented)switch(_.key){case"n":case"j":{g&&_.ctrlKey&&T(_);break}case"ArrowDown":{T(_);break}case"p":case"k":{g&&_.ctrlKey&&F(_);break}case"ArrowUp":{F(_);break}case"Home":{_.preventDefault(),I(0);break}case"End":{_.preventDefault(),G();break}case"Enter":if(!_.nativeEvent.isComposing&&_.keyCode!==229){_.preventDefault();let K=L();if(K){let M=new Event(Zo);K.dispatchEvent(M)}}}}},D.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:tb},s),$i(t,_=>D.createElement($0.Provider,{value:E},D.createElement(E0.Provider,{value:N},_))))}),Vm=D.forwardRef((t,e)=>{var n,r;let i=Qe(),o=D.useRef(null),l=D.useContext(P0),a=nr(),s=_0(t),c=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Nt(()=>{if(!c)return a.item(i,l==null?void 0:l.id)},[c]);let d=T0(i,o,[t.value,t.children,o],t.keywords),f=ql(),h=Rt(x=>x.value&&x.value===d.current),v=Rt(x=>c||a.filter()===!1?!0:x.search?x.filtered.items.get(i)>0:!0);D.useEffect(()=>{let x=o.current;if(!(!x||t.disabled))return x.addEventListener(Zo,b),()=>x.removeEventListener(Zo,b)},[v,t.onSelect,t.disabled]);function b(){var x,E;p(),(E=(x=s.current).onSelect)==null||E.call(x,d.current)}function p(){f.setState("value",d.current,!0)}if(!v)return null;let{disabled:g,value:m,onSelect:C,forceMount:S,keywords:P,...$}=t;return D.createElement(me.div,{ref:Xn([o,e]),...$,id:i,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!h,"data-disabled":!!g,"data-selected":!!h,onPointerMove:g||a.getDisablePointerSelection()?void 0:p,onClick:g?void 0:b},t.children)}),Bm=D.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=Qe(),a=D.useRef(null),s=D.useRef(null),c=Qe(),d=nr(),f=Rt(v=>i||d.filter()===!1?!0:v.search?v.filtered.groups.has(l):!0);Nt(()=>d.group(l),[]),T0(l,a,[t.value,t.heading,s]);let h=D.useMemo(()=>({id:l,forceMount:i}),[i]);return D.createElement(me.div,{ref:Xn([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&D.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),$i(t,v=>D.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},D.createElement(P0.Provider,{value:h},v))))}),Um=D.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=D.useRef(null),o=Rt(l=>!l.search);return!n&&!o?null:D.createElement(me.div,{ref:Xn([i,e]),...r,"cmdk-separator":"",role:"separator"})}),Wm=D.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=ql(),l=Rt(d=>d.search),a=Rt(d=>d.value),s=nr(),c=D.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${Gl}[${mt}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return D.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),D.createElement(me.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":c,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)}})}),Gm=D.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=D.useRef(null),l=D.useRef(null),a=nr();return D.useEffect(()=>{if(l.current&&o.current){let s=l.current,c=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let h=s.offsetHeight;c.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),D.createElement(me.div,{ref:Xn([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},$i(t,s=>D.createElement("div",{ref:Xn([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),qm=D.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return D.createElement(Am,{open:n,onOpenChange:r},D.createElement(Fm,{container:l},D.createElement(Km,{"cmdk-overlay":"",className:i}),D.createElement(jm,{"aria-label":t.label,"cmdk-dialog":"",className:o},D.createElement(D0,{ref:e,...a}))))}),Ym=D.forwardRef((t,e)=>Rt(n=>n.filtered.count===0)?D.createElement(me.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),Zm=D.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return D.createElement(me.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},$i(t,l=>D.createElement("div",{"aria-hidden":!0},l)))}),Zn=Object.assign(D0,{List:Gm,Item:Vm,Input:Wm,Group:Bm,Separator:Um,Dialog:qm,Empty:Ym,Loading:Zm});function Xm(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function Jm(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function _0(t){let e=D.useRef(t);return Nt(()=>{e.current=t}),e}var Nt=typeof window>"u"?D.useEffect:D.useLayoutEffect;function nn(t){let e=D.useRef();return e.current===void 0&&(e.current=t()),e}function Xn(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Rt(t){let e=ql(),n=()=>t(e.snapshot());return $l.useSyncExternalStore(e.subscribe,n,n)}function T0(t,e,n,r=[]){let i=D.useRef(),o=nr();return Nt(()=>{var l;let a=(()=>{var c;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():i.current}})(),s=r.map(c=>c.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(mt,a),i.current=a}),i}var Qm=()=>{let[t,e]=D.useState(),n=nn(()=>new Map);return Nt(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function eb(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function $i({asChild:t,children:e},n){return t&&D.isValidElement(e)?D.cloneElement(eb(e),{ref:e.ref},n(e.props.children)):n(e)}var tb={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Xo=({withPadding:t=!0})=>y.jsx("div",{className:Pe("c__horizontal-separator",{"with-padding":t})}),I0=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=le.useCunningham();return i?y.jsxs(y.Fragment,{children:[i,o&&y.jsx(Xo,{})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"quick-search-input-container",children:[!t&&y.jsx("span",{className:"material-icons",children:"search"}),t&&y.jsx("div",{children:y.jsx(Vl,{size:"md"})}),y.jsx(Zn.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&y.jsx(Xo,{withPadding:!0})]})},nb=t=>{let e=!1;return u.Children.forEach(t,n=>{e=e||!!n}),e},O0=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=u.useRef(null);return y.jsx(y.Fragment,{children:y.jsx("div",{className:"quick-search-container",children:y.jsxs(Zn,{label:o,shouldFilter:!1,ref:s,children:[i&&y.jsx(I0,{loading:r,withSeparator:nb(a),inputValue:n,onFilter:t,placeholder:l,children:e}),y.jsx(Zn.List,{children:y.jsx("div",{children:a})})]})})})},_r=({children:t,onSelect:e,id:n})=>y.jsx(Zn.Item,{value:n,onSelect:e,children:t}),k0=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:y.jsx("div",{className:"pt-base",children:y.jsxs(Zn.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>y.jsx(_r,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>y.jsx(_r,{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)=>y.jsx(_r,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&y.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},Pi=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=wn();return y.jsxs("div",{className:"c__quick-search-item-template",children:[y.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&y.jsx("div",{className:Pe("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},rb=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:y.jsx("div",{className:Pe("c__tabs",{"c__tabs__full-width":n}),children:y.jsxs(Bg,{defaultSelectedKey:e,children:[y.jsx(Wg,{"aria-label":"History of Ancient Rome",children:t.map(r=>y.jsxs(qg,{id:r.id,children:[r.icon&&y.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>y.jsx(Yg,{id:r.id,children:r.content},r.id))]})}),N0=u.createContext(null);function Te(){const t=u.useContext(N0);if(t===null)throw new Error("No Tree Api Provided");return t}const R0=u.createContext(null);function ib(){const t=u.useContext(R0);if(t===null)throw new Error("Provide a NodesContext");return t}const M0=u.createContext(null);function ob(){const t=u.useContext(M0);if(t===null)throw new Error("Provide a DnDContext");return t}const L0=u.createContext(0);function A0(){u.useContext(L0)}function Tr(t,e,n){return Math.max(Math.min(t,n),e)}function F0(t){return t&&t.isLeaf}function K0(t){return t&&t.isInternal&&!t.isOpen}function j0(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const H0=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},z0=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function lb(){}function Yl(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=Yl(n,e);if(r)return r}return null}function Xr(t,e){if(e(t),t.children)for(let n of t.children)Xr(n,e)}function V0(t){const e=U0(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=ab(e,r);break}n==null||n.focus()}function B0(t){const e=U0(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=sb(e,r);break}n==null||n.focus()}function ab(t,e){return e+1<t.length?t[e+1]:t[0]}function sb(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function U0(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 Kn(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function W0(t){return t===null?null:bt(t)}function bt(t){return typeof t=="string"?t:t.id}function cb(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function G0(t,...e){if(t)return t(...e)}function q0(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function Y0(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 Z0(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const ub=Object.freeze(Object.defineProperty({__proto__:null,access:Kn,bound:Tr,dfs:Yl,focusNextElement:V0,focusPrevElement:B0,getInsertIndex:Y0,getInsertParentId:Z0,identify:bt,identifyNull:W0,indexOf:z0,isClosed:K0,isDescendant:H0,isItem:F0,isOpenWithEmptyChildren:j0,mergeRefs:cb,noop:lb,safeRun:G0,waitFor:q0,walk:Xr},Symbol.toStringTag,{value:"Module"})),db={display:"flex",alignItems:"center",zIndex:1},fb={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},hb={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},pb=u.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 y.jsxs("div",{style:Object.assign(Object.assign({},db),i),children:[y.jsx("div",{style:Object.assign({},hb)}),y.jsx("div",{style:Object.assign({},fb)})]})});function vb({node:t,attrs:e,innerRef:n,children:r}){return y.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function gb(t){return y.jsxs("div",{ref:t.dragHandle,style:t.style,children:[y.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?y.jsx(bb,Object.assign({},t)):y.jsx(mb,Object.assign({},t))]})}function mb(t){return y.jsx(y.Fragment,{children:y.jsx("span",{children:t.node.data.name})})}function bb({node:t}){const e=u.useRef();return u.useEffect(()=>{var n,r;(n=e.current)===null||n===void 0||n.focus(),(r=e.current)===null||r===void 0||r.select()},[]),y.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 ao(t){return{type:"EDIT",id:t}}function yb(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function qt(t){return{type:"FOCUS",id:t}}function Cb(){return{type:"TREE_BLUR"}}function Sb(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 Jr{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===Jn}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 Jr(Object.assign({},this))}edit(){return this.tree.edit(this)}}const Jn="__REACT_ARBORIST_INTERNAL_ROOT__";function As(t){var e;function n(o,l,a){const s=t.accessId(o),c=new Jr({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(c.children=d.map(f=>n(f,l+1,c))),c}const r=new Jr({tree:t,id:Jn,data:{id:Jn},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 Jo={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 Fs(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 wb(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:Fs(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:Fs(t.unfiltered,e)}):t}const bn=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:bt(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(bt)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(bt)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:bt(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:bt(t)})};function xb(t=bn().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 yn={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 Eb(t=bn().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 bn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const $b={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},Pb=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},Db=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function X0({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return y.jsxs(_b,{isDragging:i,children:[y.jsx(Tb,{offset:t,children:y.jsx(Ob,{id:n,dragIds:r})}),y.jsx(Ib,{mouse:e,count:r.length})]})}const _b=u.memo(function(e){return e.isDragging?y.jsx("div",{style:$b,children:e.children}):null});function Tb(t){return y.jsx("div",{className:"row preview",style:Pb(t.offset),children:t.children})}function Ib(t){const{count:e,mouse:n}=t;return e>1?y.jsx("div",{className:"selected-count",style:Db(n),children:e}):null}const Ob=u.memo(function(e){const n=Te(),r=n.get(e.id);return r?y.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function Qo(){return Qo=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},Qo.apply(null,arguments)}function Ks(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function el(t,e){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},el(t,e)}function kb(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,el(t,e)}var js=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Nb(t,e){return!!(t===e||js(t)&&js(e))}function Rb(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Nb(t[n],e[n]))return!1;return!0}function so(t,e){e===void 0&&(e=Rb);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 Mb=typeof performance=="object"&&typeof performance.now=="function",Hs=Mb?function(){return performance.now()}:function(){return Date.now()};function zs(t){cancelAnimationFrame(t.id)}function Lb(t,e){var n=Hs();function r(){Hs()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var co=-1;function Vs(t){if(t===void 0&&(t=!1),co===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),co=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return co}var Yt=null;function Bs(t){if(t===void 0&&(t=!1),Yt===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?Yt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Yt="negative":Yt="positive-ascending"),document.body.removeChild(e),Yt}return Yt}process.env.NODE_ENV;var Ab=150,Fb=function(e,n){return e},Ir=null,Or=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Ir=new WeakSet,Or=new WeakSet);function Kb(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,c=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){kb(h,f);function h(b){var p;return p=f.call(this,b)||this,p._instanceProps=s(p.props,Ks(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:Ks(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=so(function(g,m,C,S){return p.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:m,visibleStartIndex:C,visibleStopIndex:S})}),p._callOnScroll=void 0,p._callOnScroll=so(function(g,m,C){return p.props.onScroll({scrollDirection:g,scrollOffset:m,scrollUpdateWasRequested:C})}),p._getItemStyle=void 0,p._getItemStyle=function(g){var m=p.props,C=m.direction,S=m.itemSize,P=m.layout,$=p._getItemStyleCache(c&&S,c&&P,c&&C),x;if($.hasOwnProperty(g))x=$[g];else{var E=n(p.props,g,p._instanceProps),N=i(p.props,g,p._instanceProps),H=C==="horizontal"||P==="horizontal",j=C==="rtl",w=H?E:0;$[g]=x={position:"absolute",left:j?void 0:w,right:j?w:void 0,top:H?0:E,height:H?"100%":N,width:H?N:"100%"}}return x},p._getItemStyleCache=void 0,p._getItemStyleCache=so(function(g,m,C){return{}}),p._onScrollHorizontal=function(g){var m=g.currentTarget,C=m.clientWidth,S=m.scrollLeft,P=m.scrollWidth;p.setState(function($){if($.scrollOffset===S)return null;var x=p.props.direction,E=S;if(x==="rtl")switch(Bs()){case"negative":E=-S;break;case"positive-descending":E=P-C-S;break}return E=Math.max(0,Math.min(E,P-C)),{isScrolling:!0,scrollDirection:$.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(g){var m=g.currentTarget,C=m.clientHeight,S=m.scrollHeight,P=m.scrollTop;p.setState(function($){if($.scrollOffset===P)return null;var x=Math.max(0,Math.min(P,S-C));return{isScrolling:!0,scrollDirection:$.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(g){var m=p.props.outerRef;p._outerRef=g,typeof m=="function"?m(g):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=g)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&zs(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=Lb(p._resetIsScrolling,Ab)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}h.getDerivedStateFromProps=function(p,g){return jb(p,g),d(p),null};var v=h.prototype;return v.scrollTo=function(p){p=Math.max(0,p),this.setState(function(g){return g.scrollOffset===p?null:{scrollDirection:g.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(p,g){g===void 0&&(g="auto");var m=this.props,C=m.itemCount,S=m.layout,P=this.state.scrollOffset;p=Math.max(0,Math.min(p,C-1));var $=0;if(this._outerRef){var x=this._outerRef;S==="vertical"?$=x.scrollWidth>x.clientWidth?Vs():0:$=x.scrollHeight>x.clientHeight?Vs():0}this.scrollTo(o(this.props,p,g,P,this._instanceProps,$))},v.componentDidMount=function(){var p=this.props,g=p.direction,m=p.initialScrollOffset,C=p.layout;if(typeof m=="number"&&this._outerRef!=null){var S=this._outerRef;g==="horizontal"||C==="horizontal"?S.scrollLeft=m:S.scrollTop=m}this._callPropsCallbacks()},v.componentDidUpdate=function(){var p=this.props,g=p.direction,m=p.layout,C=this.state,S=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var $=this._outerRef;if(g==="horizontal"||m==="horizontal")if(g==="rtl")switch(Bs()){case"negative":$.scrollLeft=-S;break;case"positive-ascending":$.scrollLeft=S;break;default:var x=$.clientWidth,E=$.scrollWidth;$.scrollLeft=E-x-S;break}else $.scrollLeft=S;else $.scrollTop=S}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&zs(this._resetIsScrollingTimeoutId)},v.render=function(){var p=this.props,g=p.children,m=p.className,C=p.direction,S=p.height,P=p.innerRef,$=p.innerElementType,x=p.innerTagName,E=p.itemCount,N=p.itemData,H=p.itemKey,j=H===void 0?Fb:H,w=p.layout,A=p.outerElementType,B=p.outerTagName,L=p.style,U=p.useIsScrolling,I=p.width,R=this.state.isScrolling,k=C==="horizontal"||w==="horizontal",G=k?this._onScrollHorizontal:this._onScrollVertical,T=this._getRangeToRender(),F=T[0],_=T[1],O=[];if(E>0)for(var K=F;K<=_;K++)O.push(u.createElement(g,{data:N,key:j(K,N),index:K,isScrolling:U?R:void 0,style:this._getItemStyle(K)}));var M=r(this.props,this._instanceProps);return u.createElement(A||B||"div",{className:m,onScroll:G,ref:this._outerRefSetter,style:Qo({position:"relative",height:S,width:I,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},L)},u.createElement($||x||"div",{children:O,ref:P,style:{height:k?"100%":M,pointerEvents:R?"none":void 0,width:k?M:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var g=this._getRangeToRender(),m=g[0],C=g[1],S=g[2],P=g[3];this._callOnItemsRendered(m,C,S,P)}}if(typeof this.props.onScroll=="function"){var $=this.state,x=$.scrollDirection,E=$.scrollOffset,N=$.scrollUpdateWasRequested;this._callOnScroll(x,E,N)}},v._getRangeToRender=function(){var p=this.props,g=p.itemCount,m=p.overscanCount,C=this.state,S=C.isScrolling,P=C.scrollDirection,$=C.scrollOffset;if(g===0)return[0,0,0,0];var x=l(this.props,$,this._instanceProps),E=a(this.props,x,$,this._instanceProps),N=!S||P==="backward"?Math.max(1,m):1,H=!S||P==="forward"?Math.max(1,m):1;return[Math.max(0,x-N),Math.max(0,Math.min(g-1,E+H)),x,E]},h}(u.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var jb=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,c=e.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Or&&!Or.has(d)&&(Or.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":Ir&&!Ir.has(d)&&(Ir.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 c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" 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.'))}},Hb=Kb({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,c=e.itemCount,d=e.itemSize,f=e.layout,h=e.width,v=a==="horizontal"||f==="horizontal",b=v?h:s,p=Math.max(0,c*d-b),g=Math.min(p,n*d),m=Math.max(0,n*d-b+d+l);switch(r==="smart"&&(i>=m-b&&i<=g+b?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":{var C=Math.round(m+(g-m)/2);return C<Math.ceil(b/2)?0:C>p+Math.floor(b/2)?p:C}case"auto":default:return i>=m&&i<=g?i:i<m?m:g}},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,c=e.width,d=i==="horizontal"||s==="horizontal",f=n*a,h=d?c:o,v=Math.ceil((h+r-f)/a);return Math.max(0,Math.min(l-1,n+v-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 zb(){var t,e;const n=Te(),i=ob().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 y.jsx(s,{top:l,left:a,indent:o})}var Vb=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 Bb=u.forwardRef(function(e,n){const{children:r}=e,i=Vb(e,["children"]),o=Te();return y.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[y.jsx(Ub,{}),r]}))}),Ub=()=>{const t=Te();return y.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:y.jsx(zb,{})})};var Wb=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 Gb=u.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=Wb(e,["style"]);const c=Te(),d=(i=(r=c.props.padding)!==null&&r!==void 0?r:c.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=c.props.padding)!==null&&o!==void 0?o:c.props.paddingBottom)!==null&&l!==void 0?l:0;return y.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+d+f}px`})},s))});var J0=u.createContext({dragDropManager:void 0}),Ne;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Ne||(Ne={}));function Z(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 Zl="dnd-core/INIT_COORDS",Di="dnd-core/BEGIN_DRAG",Xl="dnd-core/PUBLISH_DRAG_SOURCE",_i="dnd-core/HOVER",Ti="dnd-core/DROP",Ii="dnd-core/END_DRAG";function Us(t,e){return{type:Zl,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function kr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kr=function(n){return typeof n}:kr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kr(t)}function qb(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n||null},t)}function Yb(t,e){return t.filter(function(n){return n!==e})}function Q0(t){return kr(t)==="object"}function Zb(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 Xb(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var Jb={type:Zl,payload:{clientOffset:null,sourceClientOffset:null}};function Qb(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(),c=t.getRegistry();t.dispatch(Us(l)),ey(n,s,c);var d=ry(n,s);if(d===null){t.dispatch(Jb);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");ty(a),f=a(d)}t.dispatch(Us(l,f));var h=c.getSource(d),v=h.beginDrag(s,d);if(v!=null){ny(v),c.pinSource(d);var b=c.getSourceType(d);return{type:Di,payload:{itemType:b,item:v,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function ey(t,e,n){Z(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Z(n.getSource(r),"Expected sourceIds to be registered.")})}function ty(t){Z(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ny(t){Z(Q0(t),"Item must be an object.")}function ry(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 iy(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:Xl}}}function tl(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function oy(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;ly(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();ay(o,l,a);var s=l.getItemType();return sy(o,a,s),cy(o,l,a),{type:_i,payload:{targetIds:o,clientOffset:i||null}}}}function ly(t){Z(Array.isArray(t),"Expected targetIds to be an array.")}function ay(t,e,n){Z(e.isDragging(),"Cannot call hover while not dragging."),Z(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];Z(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);Z(o,"Expected targetIds to be registered.")}}function sy(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);tl(o,n)||t.splice(r,1)}}function cy(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function Ws(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 Gs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ws(Object(n),!0).forEach(function(r){uy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function uy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dy(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();fy(r);var o=vy(r);o.forEach(function(l,a){var s=hy(l,a,i,r),c={type:Ti,payload:{dropResult:Gs(Gs({},n),s)}};t.dispatch(c)})}}function fy(t){Z(t.isDragging(),"Cannot call drop while not dragging."),Z(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function hy(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return py(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function py(t){Z(typeof t>"u"||Q0(t),"Drop result must either be an object or undefined.")}function vy(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function gy(t){return function(){var n=t.getMonitor(),r=t.getRegistry();my(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:Ii}}}function my(t){Z(t.isDragging(),"Cannot call endDrag while not dragging.")}function by(t){return{beginDrag:Qb(t),publishDragSource:iy(t),hover:oy(t),drop:dy(t),endDrag:gy(t)}}function yy(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 Sy(t,e,n){return e&&Cy(t.prototype,e),t}function kn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wy=function(){function t(e,n){var r=this;yy(this,t),kn(this,"store",void 0),kn(this,"monitor",void 0),kn(this,"backend",void 0),kn(this,"isSetUp",!1),kn(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 Sy(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),c=0;c<a;c++)s[c]=arguments[c];var d=l.apply(n,s);typeof d<"u"&&r(d)}}var o=by(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 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 qs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ys=function(){return Math.random().toString(36).substring(7).split("").join(".")},Zs={INIT:"@@redux/INIT"+Ys(),REPLACE:"@@redux/REPLACE"+Ys()};function xy(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 Ey(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(Dy(t))return"date";if(Py(t))return"error";var n=$y(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 $y(t){return typeof t.constructor=="function"?t.constructor.name:null}function Py(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Dy(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Zt(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=Ey(t)),e}function e2(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: '"+Zt(n)+"'");return n(e2)(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: '"+Zt(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function c(){a===l&&(a=l.slice())}function d(){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 f(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(4):"Expected the listener to be a function. Instead, received: '"+Zt(p)+"'");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 g=!0;return c(),a.push(p),function(){if(g){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.");g=!1,c();var C=a.indexOf(p);a.splice(C,1),l=null}}}function h(p){if(!xy(p))throw new Error(process.env.NODE_ENV==="production"?Ie(7):"Actions must be plain objects. Instead, the actual type was: '"+Zt(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"?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,p)}finally{s=!1}for(var g=l=a,m=0;m<g.length;m++){var C=g[m];C()}return p}function v(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(10):"Expected the nextReducer to be a function. Instead, received: '"+Zt(p));i=p,h({type:Zs.REPLACE})}function b(){var p,g=f;return p={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: '"+Zt(C)+"'");function S(){C.next&&C.next(d())}S();var P=g(S);return{unsubscribe:P}}},p[qs]=function(){return this},p}return h({type:Zs.INIT}),r={dispatch:h,subscribe:f,getState:d,replaceReducer:v},r[qs]=b,r}var _y=function(e,n){return e===n};function Ty(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Iy(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_y;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 Xs(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 Js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xs(Object(n),!0).forEach(function(r){Oy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Oy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qs={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qs,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Zl:case Di:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case _i:return Ty(t.clientOffset,n.clientOffset)?t:Js(Js({},t),{},{clientOffset:n.clientOffset});case Ii:case Ti:return Qs;default:return t}}var Jl="dnd-core/ADD_SOURCE",Ql="dnd-core/ADD_TARGET",ea="dnd-core/REMOVE_SOURCE",Oi="dnd-core/REMOVE_TARGET";function Ny(t){return{type:Jl,payload:{sourceId:t}}}function Ry(t){return{type:Ql,payload:{targetId:t}}}function My(t){return{type:ea,payload:{sourceId:t}}}function Ly(t){return{type:Oi,payload:{targetId:t}}}function ec(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 Oe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ec(Object(n),!0).forEach(function(r){Ay(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ay(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={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fy,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Di:return Oe(Oe({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Xl:return Oe(Oe({},t),{},{isSourcePublic:!0});case _i:return Oe(Oe({},t),{},{targetIds:n.targetIds});case Oi:return t.targetIds.indexOf(n.targetId)===-1?t:Oe(Oe({},t),{},{targetIds:Yb(t.targetIds,n.targetId)});case Ti:return Oe(Oe({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Ii:return Oe(Oe({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function jy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Jl:case Ql:return t+1;case ea:case Oi:return t-1;default:return t}}var Qr=[],ta=[];Qr.__IS_NONE__=!0;ta.__IS_ALL__=!0;function Hy(t,e){if(t===Qr)return!1;if(t===ta||typeof e>"u")return!0;var n=Xb(e,t);return n.length>0}function zy(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case _i:break;case Jl:case Ql:case Oi:case ea:return Qr;case Di:case Xl:case Ii:case Ti:default:return ta}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=Zb(r,o),a=l.length>0||!Iy(r,o);if(!a)return Qr;var s=o[o.length-1],c=r[r.length-1];return s!==c&&(s&&l.push(s),c&&l.push(c)),l}function Vy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function tc(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 nc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tc(Object(n),!0).forEach(function(r){By(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function By(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:zy(t.dirtyHandlerIds,{type:e.type,payload:nc(nc({},e.payload),{},{prevTargetIds:qb(t,"dragOperation.targetIds",[])})}),dragOffset:ky(t.dragOffset,e),refCount:jy(t.refCount,e),dragOperation:Ky(t.dragOperation,e),stateId:Vy(t.stateId)}}function Wy(t,e){return{x:t.x+e.x,y:t.y+e.y}}function t2(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Gy(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:t2(Wy(e,r),n)}function qy(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:t2(e,n)}function Yy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zy(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 Xy(t,e,n){return e&&Zy(t.prototype,e),t}function rc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jy=function(){function t(e,n){Yy(this,t),rc(this,"store",void 0),rc(this,"registry",void 0),this.store=e,this.registry=n}return Xy(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;Z(typeof n=="function","listener must be a function."),Z(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var c=r.store.getState(),d=c.stateId;try{var f=d===l||d===l+1&&!Hy(c.dirtyHandlerIds,o);f||n()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;Z(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 Z(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(Z(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 tl(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(Z(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&&!tl(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 Gy(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return qy(this.store.getState().dragOffset)}}]),t}(),Qy=0;function e9(){return Qy++}function Nr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nr=function(n){return typeof n}:Nr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nr(t)}function t9(t){Z(typeof t.canDrag=="function","Expected canDrag to be a function."),Z(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Z(typeof t.endDrag=="function","Expected endDrag to be a function.")}function n9(t){Z(typeof t.canDrop=="function","Expected canDrop to be a function."),Z(typeof t.hover=="function","Expected hover to be a function."),Z(typeof t.drop=="function","Expected beginDrag to be a function.")}function nl(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return nl(n,!1)});return}Z(typeof t=="string"||Nr(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 ic=typeof global<"u"?global:self,n2=ic.MutationObserver||ic.WebKitMutationObserver;function r2(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function r9(t){let e=1;const n=new n2(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const i9=typeof n2=="function"?r9:r2;class o9{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=i9(this.flush),this.requestErrorThrow=r2(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class l9{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 a9{create(e){const n=this.freeTasks,r=n.length?n.pop():new l9(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const i2=new o9,s9=new a9(i2.registerPendingError);function c9(t){i2.enqueueTask(s9.create(t))}function u9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d9(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 f9(t,e,n){return e&&d9(t.prototype,e),t}function Xt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h9(t,e){return m9(t)||g9(t,e)||v9(t,e)||p9()}function p9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
89
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v9(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 g9(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 m9(t){if(Array.isArray(t))return t}function b9(t){var e=e9().toString();switch(t){case Ne.SOURCE:return"S".concat(e);case Ne.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function lc(t){switch(t[0]){case"S":return Ne.SOURCE;case"T":return Ne.TARGET;default:Z(!1,"Cannot parse handler ID: ".concat(t))}}function ac(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done,l=h9(i.value,2),a=l[1];if(a===e)return!0;r=!!o}while(!r);return!1}var y9=function(){function t(e){u9(this,t),Xt(this,"types",new Map),Xt(this,"dragSources",new Map),Xt(this,"dropTargets",new Map),Xt(this,"pinnedSourceId",null),Xt(this,"pinnedSource",null),Xt(this,"store",void 0),this.store=e}return f9(t,[{key:"addSource",value:function(n,r){nl(n),t9(r);var i=this.addHandler(Ne.SOURCE,n,r);return this.store.dispatch(Ny(i)),i}},{key:"addTarget",value:function(n,r){nl(n,!0),n9(r);var i=this.addHandler(Ne.TARGET,n,r);return this.store.dispatch(Ry(i)),i}},{key:"containsHandler",value:function(n){return ac(this.dragSources,n)||ac(this.dropTargets,n)}},{key:"getSource",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Z(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 Z(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}},{key:"getSourceType",value:function(n){return Z(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}},{key:"getTargetType",value:function(n){return Z(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}},{key:"isSourceId",value:function(n){var r=lc(n);return r===Ne.SOURCE}},{key:"isTargetId",value:function(n){var r=lc(n);return r===Ne.TARGET}},{key:"removeSource",value:function(n){var r=this;Z(this.getSource(n),"Expected an existing source."),this.store.dispatch(My(n)),c9(function(){r.dragSources.delete(n),r.types.delete(n)})}},{key:"removeTarget",value:function(n){Z(this.getTarget(n),"Expected an existing target."),this.store.dispatch(Ly(n)),this.dropTargets.delete(n),this.types.delete(n)}},{key:"pinSource",value:function(n){var r=this.getSource(n);Z(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}},{key:"unpinSource",value:function(){Z(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(n,r,i){var o=b9(n);return this.types.set(o,r),n===Ne.SOURCE?this.dragSources.set(o,i):n===Ne.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function C9(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=S9(r),o=new Jy(i,new y9(i)),l=new wy(i,o),a=t(l,e,n);return l.receiveBackend(a),l}function S9(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return e2(Uy,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var w9=["children"];function x9(t,e){return D9(t)||P9(t,e)||$9(t,e)||E9()}function E9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
90
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $9(t,e){if(t){if(typeof t=="string")return sc(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 sc(t,e)}}function sc(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 P9(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 D9(t){if(Array.isArray(t))return t}function _9(t,e){if(t==null)return{};var n=T9(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 T9(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 cc=0,Rr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),I9=u.memo(function(e){var n=e.children,r=_9(e,w9),i=O9(r),o=x9(i,2),l=o[0],a=o[1];return u.useEffect(function(){if(a){var s=o2();return++cc,function(){--cc===0&&(s[Rr]=null)}}},[]),y.jsx(J0.Provider,Object.assign({value:l},{children:n}),void 0)});function O9(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=k9(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function k9(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o2(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Rr]||(i[Rr]={dragDropManager:C9(t,e,n,r)}),i[Rr]}function o2(){return typeof global<"u"?global:window}function N9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R9(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 M9(t,e,n){return e&&R9(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 uo=!1,fo=!1,L9=function(){function t(e){N9(this,t),uc(this,"internalMonitor",void 0),uc(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return M9(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Z(!uo,"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 uo=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{uo=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Z(!fo,"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 fo=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{fo=!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 A9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F9(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 e&&F9(t.prototype,e),t}function dc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ho=!1,j9=function(){function t(e){A9(this,t),dc(this,"internalMonitor",void 0),dc(this,"targetId",null),this.internalMonitor=e.getMonitor()}return K9(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;Z(!ho,"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 ho=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ho=!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 H9(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 z9(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(!u.isValidElement(e)){var r=e;return t(r,n),r}var i=e;H9(i);var o=n?function(l){return t(l,n)}:t;return V9(i,o)}}function l2(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=z9(r);e[n]=function(){return i}}}),e}function fc(t,e){typeof t=="function"?t(e):t.current=e}function V9(t,e){var n=t.ref;return Z(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?u.cloneElement(t,{ref:function(i){fc(n,i),fc(e,i)}}):u.cloneElement(t,{ref:e})}function Mr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mr=function(n){return typeof n}:Mr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mr(t)}function rl(t){return t!==null&&Mr(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function il(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 c=o[s];if(!a(c))return!1;var d=t[c],f=e[c];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function B9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U9(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 W9(t,e,n){return e&&U9(t.prototype,e),t}function be(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var G9=function(){function t(e){var n=this;B9(this,t),be(this,"hooks",l2({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,rl(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,rl(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),be(this,"handlerId",null),be(this,"dragSourceRef",null),be(this,"dragSourceNode",void 0),be(this,"dragSourceOptionsInternal",null),be(this,"dragSourceUnsubscribe",void 0),be(this,"dragPreviewRef",null),be(this,"dragPreviewNode",void 0),be(this,"dragPreviewOptionsInternal",null),be(this,"dragPreviewUnsubscribe",void 0),be(this,"lastConnectedHandlerId",null),be(this,"lastConnectedDragSource",null),be(this,"lastConnectedDragSourceOptions",null),be(this,"lastConnectedDragPreview",null),be(this,"lastConnectedDragPreviewOptions",null),be(this,"backend",void 0),this.backend=e}return W9(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!il(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!il(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 q9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y9(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 e&&Y9(t.prototype,e),t}function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var X9=function(){function t(e){var n=this;q9(this,t),We(this,"hooks",l2({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,rl(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),We(this,"handlerId",null),We(this,"dropTargetRef",null),We(this,"dropTargetNode",void 0),We(this,"dropTargetOptionsInternal",null),We(this,"unsubscribeDropTarget",void 0),We(this,"lastConnectedHandlerId",null),We(this,"lastConnectedDropTarget",null),We(this,"lastConnectedDropTargetOptions",null),We(this,"backend",void 0),this.backend=e}return Z9(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!il(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 J9(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function Q9(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var Mt=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Lr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lr=function(n){return typeof n}:Lr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lr(t)}function e4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t4(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 n4(t,e,n){return e&&t4(t.prototype,e),t}function po(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r4=function(){function t(e,n,r){e4(this,t),po(this,"spec",void 0),po(this,"monitor",void 0),po(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return n4(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Lr(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 i4(t,e,n){var r=u.useMemo(function(){return new r4(t,e,n)},[e,n]);return u.useEffect(function(){r.spec=t},[t]),r}function Ht(){var t=u.useContext(J0),e=t.dragDropManager;return Z(e!=null,"Expected drag drop context"),e}function o4(t){return u.useMemo(function(){var e=t.type;return Z(e!=null,"spec.type must be defined"),e},[t])}function l4(t,e){return u4(t)||c4(t,e)||s4(t,e)||a4()}function a4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
91
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s4(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 c4(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 u4(t){if(Array.isArray(t))return t}function d4(t,e,n){var r=Ht(),i=i4(t,e,n),o=o4(t);Mt(function(){if(o!=null){var a=Q9(o,i,r),s=l4(a,2),c=s[0],d=s[1];return e.receiveHandlerId(c),n.receiveHandlerId(c),d}},[r,e,n,i,o])}function f4(t){return g4(t)||v4(t)||p4(t)||h4()}function h4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
92
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p4(t,e){if(t){if(typeof t=="string")return ol(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 ol(t,e)}}function v4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function g4(t){if(Array.isArray(t))return ol(t)}function ol(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 a2(t,e){var n=f4(e||[]);return e==null&&typeof t!="function"&&n.push(t),u.useMemo(function(){return typeof t=="function"?t():t},n)}function m4(){var t=Ht();return u.useMemo(function(){return new L9(t)},[t])}function b4(t,e){var n=Ht(),r=u.useMemo(function(){return new G9(n.getBackend())},[n]);return Mt(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),Mt(function(){return r.dragPreviewOptions=e||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,e]),r}var vo,pc;function y4(){return pc||(pc=1,vo=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}),vo}var C4=y4();const S4=j2(C4);function w4(t,e){return P4(t)||$4(t,e)||E4(t,e)||x4()}function x4(){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 E4(t,e){if(t){if(typeof t=="string")return vc(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 vc(t,e)}}function vc(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 $4(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 P4(t){if(Array.isArray(t))return t}function s2(t,e,n){var r=u.useState(function(){return e(t)}),i=w4(r,2),o=i[0],l=i[1],a=u.useCallback(function(){var s=e(t);S4(o,s)||(l(s),n&&n())},[o,t,n]);return Mt(a),[o,a]}function D4(t,e){return O4(t)||I4(t,e)||T4(t,e)||_4()}function _4(){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 T4(t,e){if(t){if(typeof t=="string")return gc(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 gc(t,e)}}function gc(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 I4(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 O4(t){if(Array.isArray(t))return t}function k4(t,e,n){var r=s2(t,e,n),i=D4(r,2),o=i[0],l=i[1];return Mt(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(l,{handlerIds:[s]})},[t,l]),o}function c2(t,e,n){return k4(e,t||function(){return{}},function(){return n.reconnect()})}function N4(t){return u.useMemo(function(){return t.hooks.dragSource()},[t])}function R4(t){return u.useMemo(function(){return t.hooks.dragPreview()},[t])}function M4(t,e){var n=a2(t,e);Z(!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=m4(),i=b4(n.options,n.previewOptions);return d4(n,r,i),[c2(n.collect,r,i),N4(i),R4(i)]}function L4(t){var e=t.accept;return u.useMemo(function(){return Z(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function A4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F4(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 K4(t,e,n){return e&&F4(t.prototype,e),t}function mc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var j4=function(){function t(e,n){A4(this,t),mc(this,"spec",void 0),mc(this,"monitor",void 0),this.spec=e,this.monitor=n}return K4(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 H4(t,e){var n=u.useMemo(function(){return new j4(t,e)},[e]);return u.useEffect(function(){n.spec=t},[t]),n}function z4(t,e){return W4(t)||U4(t,e)||B4(t,e)||V4()}function V4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
95
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B4(t,e){if(t){if(typeof t=="string")return bc(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 bc(t,e)}}function bc(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 U4(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 W4(t){if(Array.isArray(t))return t}function G4(t,e,n){var r=Ht(),i=H4(t,e),o=L4(t);Mt(function(){var a=J9(o,i,r),s=z4(a,2),c=s[0],d=s[1];return e.receiveHandlerId(c),n.receiveHandlerId(c),d},[r,e,i,n,o.map(function(l){return l.toString()}).join("|")])}function q4(){var t=Ht();return u.useMemo(function(){return new j9(t)},[t])}function Y4(t){var e=Ht(),n=u.useMemo(function(){return new X9(e.getBackend())},[e]);return Mt(function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}},[t]),n}function Z4(t){return u.useMemo(function(){return t.hooks.dropTarget()},[t])}function u2(t,e){var n=a2(t,e),r=q4(),i=Y4(n.options);return G4(n,r,i),[c2(n.collect,r,i),Z4(i)]}function X4(t,e){return t3(t)||e3(t,e)||Q4(t,e)||J4()}function J4(){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 Q4(t,e){if(t){if(typeof t=="string")return yc(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 yc(t,e)}}function yc(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 e3(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 t3(t){if(Array.isArray(t))return t}function n3(t){var e=Ht(),n=e.getMonitor(),r=s2(n,t),i=X4(r,2),o=i[0],l=i[1];return u.useEffect(function(){return n.subscribeToOffsetChange(l)}),u.useEffect(function(){return n.subscribeToStateChange(l)}),o}function d2(t){var e=null,n=function(){return e==null&&(e=t()),e};return n}function r3(t,e){return t.filter(function(n){return n!==e})}function i3(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 o3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l3(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 a3(t,e,n){return e&&l3(t.prototype,e),t}function Cc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s3=function(){function t(e){o3(this,t),Cc(this,"entered",[]),Cc(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return a3(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=i3(this.entered.filter(o),[n]),i===0&&this.entered.length>0}},{key:"leave",value:function(n){var r=this.entered.length;return this.entered=r3(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),c3=d2(function(){return/firefox/i.test(navigator.userAgent)}),f2=d2(function(){return!!window.safari});function u3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d3(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 f3(t,e,n){return e&&d3(t.prototype,e),t}function Nn(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=function(){function t(e,n){u3(this,t),Nn(this,"xs",void 0),Nn(this,"ys",void 0),Nn(this,"c1s",void 0),Nn(this,"c2s",void 0),Nn(this,"c3s",void 0);for(var r=e.length,i=[],o=0;o<r;o++)i.push(o);i.sort(function(N,H){return e[N]<e[H]?-1:1});for(var l=[],a=[],s,c,d=0;d<r-1;d++)s=e[d+1]-e[d],c=n[d+1]-n[d],l.push(s),a.push(c/s);for(var f=[a[0]],h=0;h<l.length-1;h++){var v=a[h],b=a[h+1];if(v*b<=0)f.push(0);else{s=l[h];var p=l[h+1],g=s+p;f.push(3*g/((g+p)/v+(g+s)/b))}}f.push(a[a.length-1]);for(var m=[],C=[],S,P=0;P<f.length-1;P++){S=a[P];var $=f[P],x=1/l[P],E=$+f[P+1]-S-S;m.push((S-$-E)*x),C.push(E*x*x)}this.xs=e,this.ys=n,this.c1s=f,this.c2s=m,this.c3s=C}return f3(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 c=0,d=a.length-1,f;c<=d;){f=Math.floor(.5*(c+d));var h=r[f];if(h<n)c=f+1;else if(h>n)d=f-1;else return i[f]}s=Math.max(0,d);var v=n-r[s],b=v*v;return i[s]+o[s]*v+l[s]*b+a[s]*v*b}}]),t}(),h3=1;function h2(t){var e=t.nodeType===h3?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top,i=n.left;return{x:i,y:r}}function yr(t){return{x:t.clientX,y:t.clientY}}function p3(t){var e;return t.nodeName==="IMG"&&(c3()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function v3(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return f2()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function g3(t,e,n,r,i){var o=p3(e),l=o?t:e,a=h2(l),s={x:n.x-a.x,y:n.y-a.y},c=t.offsetWidth,d=t.offsetHeight,f=r.anchorX,h=r.anchorY,v=v3(o,e,c,d),b=v.dragPreviewWidth,p=v.dragPreviewHeight,g=function(){var E=new Sc([0,.5,1],[s.y,s.y/d*p,s.y+p-d]),N=E.interpolate(h);return f2()&&o&&(N+=(window.devicePixelRatio-1)*p),N},m=function(){var E=new Sc([0,.5,1],[s.x,s.x/c*b,s.x+b-c]);return E.interpolate(f)},C=i.offsetX,S=i.offsetY,P=C===0||C,$=S===0||S;return{x:P?C:m(),y:$?S:g()}}var p2="__NATIVE_FILE__",v2="__NATIVE_URL__",g2="__NATIVE_TEXT__",m2="__NATIVE_HTML__";const wc=Object.freeze(Object.defineProperty({__proto__:null,FILE:p2,HTML:m2,TEXT:g2,URL:v2},Symbol.toStringTag,{value:"Module"}));function go(t,e,n){var r=e.reduce(function(i,o){return i||t.getData(o)},"");return r??n}var Jt;function Cr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ll=(Jt={},Cr(Jt,p2,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),Cr(Jt,m2,{exposeProperties:{html:function(e,n){return go(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),Cr(Jt,v2,{exposeProperties:{urls:function(e,n){return go(e,n,"").split(`
|
|
97
|
+
`)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Cr(Jt,g2,{exposeProperties:{text:function(e,n){return go(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),Jt);function m3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b3(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 y3(t,e,n){return e&&b3(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 C3=function(){function t(e){m3(this,t),xc(this,"item",void 0),xc(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return y3(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 S3(t,e){var n=new C3(ll[t]);return n.loadDataTransfer(e),n}function mo(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(ll).filter(function(n){var r=ll[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function w3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x3(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 E3(t,e,n){return e&&x3(t.prototype,e),t}function bo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $3=function(){function t(e,n){w3(this,t),bo(this,"ownerDocument",null),bo(this,"globalContext",void 0),bo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return E3(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 Ec(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?Ec(Object(n),!0).forEach(function(r){Q(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function P3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D3(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 _3(t,e,n){return e&&D3(t.prototype,e),t}function Q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T3=function(){function t(e,n,r){var i=this;P3(this,t),Q(this,"options",void 0),Q(this,"actions",void 0),Q(this,"monitor",void 0),Q(this,"registry",void 0),Q(this,"enterLeaveCounter",void 0),Q(this,"sourcePreviewNodes",new Map),Q(this,"sourcePreviewNodeOptions",new Map),Q(this,"sourceNodes",new Map),Q(this,"sourceNodeOptions",new Map),Q(this,"dragStartSourceIds",null),Q(this,"dropTargetIds",[]),Q(this,"dragEnterTargetIds",[]),Q(this,"currentNativeSource",null),Q(this,"currentNativeHandle",null),Q(this,"currentDragSourceNode",null),Q(this,"altKeyPressed",!1),Q(this,"mouseMoveTimeoutTimer",null),Q(this,"asyncEndDragFrameId",null),Q(this,"dragOverTargetIds",null),Q(this,"lastClientOffset",null),Q(this,"hoverRafId",null),Q(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&h2(l)||null}),Q(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),Q(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),Q(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),Q(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=yr(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,c=mo(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),h=i.sourcePreviewNodes.get(d)||f;if(h){var v=i.getCurrentSourcePreviewNodeOptions(),b=v.anchorX,p=v.anchorY,g=v.offsetX,m=v.offsetY,C={anchorX:b,anchorY:p},S={offsetX:g,offsetY:m},P=g3(f,h,a,C,S);s.setDragImage(h,P.x,P.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var $=i.getCurrentSourcePreviewNodeOptions(),x=$.captureDraggingState;x?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(c)i.beginDragNativeItem(c);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),Q(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),Q(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=mo(a);s&&i.beginDragNativeItem(s,a)}}),Q(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:yr(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),Q(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),Q(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=yr(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"))}),Q(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),Q(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 mo(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),Q(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:yr(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),Q(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 $3(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new s3(this.isNodeInDocument)}return _3(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(c){return o.handleDragStart(c,n)},a=function(c){return o.handleSelectStart(c)};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(c){return i.handleDragEnter(c,n)},l=function(c){return i.handleDragOver(c,n)},a=function(c){return i.handleDrop(c,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 $c({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 $c({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(wc).some(function(r){return wc[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=S3(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}(),Sr;function I3(){return Sr||(Sr=new Image,Sr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Sr}var O3=function(e,n,r){return new T3(e,n,r)};function k3(t){const e=Te(),n=e.selectedIds,[r,i,o]=M4(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(yn.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(yn.dragEnd())}}),[n,t]);return u.useEffect(()=>{o(I3())},[o]),i}function N3(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,c=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:c,atTop:!c&&l,atBottom:!c&&a}}function R3(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 wr(t,e){return{parentId:t||null,index:e}}function Qt(t,e){return{type:"line",index:t,level:e}}function M3(t){return{type:"highlight",id:t}}function yo(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=z0(r)+1;return{parentId:i,index:o}}function b2(t){var e;const n=N3(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,c]=R3(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:wr(o.id,null),cursor:M3(o.id)};if(!s)return{drop:wr((e=c==null?void 0:c.parent)===null||e===void 0?void 0:e.id,0),cursor:Qt(0,0)};if(F0(s)){const d=Tr(i,(c==null?void 0:c.level)||0,s.level);return{drop:yo(s,d),cursor:Qt(s.rowIndex+1,d)}}if(K0(s)){const d=Tr(i,(c==null?void 0:c.level)||0,s.level);return{drop:yo(s,d),cursor:Qt(s.rowIndex+1,d)}}if(j0(s)){const d=Tr(i,0,s.level+1);return d>s.level?{drop:wr(s.id,0),cursor:Qt(s.rowIndex+1,d)}:{drop:yo(s,d),cursor:Qt(s.rowIndex+1,d)}}return{drop:wr(s==null?void 0:s.id,0),cursor:Qt(s.rowIndex+1,s.level+1)}}function L3(t,e){const n=Te(),[r,i]=u2(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:c}=b2({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&n.dispatch(yn.hovering(c.parentId,c.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:c}=n.state.dnd;G0(n.props.onMove,{dragIds:c,parentId:a===Jn?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 A3(t){const e=Te(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return u.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const F3=u.memo(function({index:e,style:n}){A0(),ib();const r=Te(),i=A3(e),o=u.useRef(null),l=k3(i),a=L3(o,i),s=u.useCallback(p=>{o.current=p,a(p)},[a]),c=r.indent*i.level,d=u.useMemo(()=>({paddingLeft:c}),[c]),f=u.useMemo(()=>{var p,g;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((g=(p=r.props.padding)!==null&&p!==void 0?p:r.props.paddingTop)!==null&&g!==void 0?g:0)})},[n,r.props.padding,r.props.paddingTop]),h={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:r.props.rowClassName};u.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 v=r.renderNode,b=r.renderRow;return y.jsx(b,{node:i,innerRef:s,attrs:h,children:y.jsx(v,{node:i,tree:r,style:d,dragHandle:l})})});let Co="",Pc=null;function y2(){A0();const t=Te();return y.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(),V0(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),B0(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(Pc),Co+=e.key,Pc=setTimeout(()=>{Co=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(Co):!1});r&&t.focus(r.id)},children:y.jsx(Hb,{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:Bb,innerElementType:Gb,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:F3})})}function Dc(t){return t.isFiltered?j3(t.root,t.isMatch.bind(t)):K3(t.root)}function K3(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(C2),e}function j3(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(C2),r}function C2(t,e){t.rowIndex=e}const _c=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var So=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{c(r.next(d))}catch(f){l(f)}}function s(d){try{c(r.throw(d))}catch(f){l(f)}}function c(d){d.done?o(d.value):i(d.value).then(a,s)}c((r=r.apply(t,e||[])).next())})};const{safeRun:ge,identify:Ze,identifyNull:Ke}=ub;class hn{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=As(this),this.visibleNodes=Dc(this),this.idToIndex=_c(this.visibleNodes)}update(e){this.props=e,this.root=As(this),this.visibleNodes=Dc(this),this.idToIndex=_c(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=Kn(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=Kn(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=W0(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 So(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?Z0(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:Y0(this),l=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield ge(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 So(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(Ze),i=r.map(o=>this.get(o)).filter(o=>!!o);yield ge(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=Ze(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(ao(n)),new Promise(r=>{hn.editPromise=r})}submit(e,n){return So(this,void 0,void 0,function*(){if(!e)return;const r=Ze(e);yield ge(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(ao(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(ao(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(Ke(e));n&&ge(this.props.onActivate,n)}resolveEdit(e){const n=hn.editPromise;n&&n(e),hn.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(qt(Ze(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ge(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=Ze(e);r&&this.dispatch(qt(i)),this.dispatch(Fe.only(i)),this.dispatch(Fe.anchor(i)),this.dispatch(Fe.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=Ze(e);this.dispatch(Fe.remove(n)),ge(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(Ke(e));n&&(this.dispatch(qt(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&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=Ze(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(qt(n)),this.dispatch(Fe.remove(this.nodesBetween(r,i))),this.dispatch(Fe.add(this.nodesBetween(r,Ke(n)))),this.dispatch(Fe.mostRecent(n)),this.scrollTo(n),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ge(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(qt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ge(this.props.onFocus,this.focusedNode),ge(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(Ze)),i=Ke(e.anchor),o=Ke(e.mostRecent);this.dispatch(Fe.set({ids:r,anchor:i,mostRecent:o})),ge(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&&H0(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(yn.cursor({type:"none"}))}showCursor(e){this.dispatch(yn.cursor(e))}open(e){const n=Ke(e);n&&(this.isOpen(n)||(this.dispatch(Jo.open(n,this.isFiltered)),ge(this.props.onToggle,n)))}close(e){const n=Ke(e);n&&this.isOpen(n)&&(this.dispatch(Jo.close(n,this.isFiltered)),ge(this.props.onToggle,n))}toggle(e){const n=Ke(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=Ke(e);if(!n)return;const r=Yl(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(){Xr(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Xr(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=Ze(e);return this.openParents(r),q0(()=>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===Jn)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!Kn(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!Kn(e,n)}isDragging(e){const n=Ke(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=Ke(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(qt(e.id))}onBlur(){this.dispatch(Cb())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||y2}get renderRow(){return this.props.renderRow||vb}get renderNode(){return this.props.children||gb}get renderDragPreview(){return this.props.renderDragPreview||X0}get renderCursor(){return this.props.renderCursor||pb}}function ye(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 H3=typeof Symbol=="function"&&Symbol.observable||"@@observable",Tc=H3,wo=()=>Math.random().toString(36).substring(7).split("").join("."),z3={INIT:`@@redux/INIT${wo()}`,REPLACE:`@@redux/REPLACE${wo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${wo()}`},Pt=z3;function S2(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 V3(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(W3(t))return"date";if(U3(t))return"error";const n=B3(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 B3(t){return typeof t.constructor=="function"?t.constructor.name:null}function U3(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function W3(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function lt(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=V3(t)),e}function w2(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?ye(2):`Expected the root reducer to be a function. Instead, received: '${lt(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ye(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"?ye(1):`Expected the enhancer to be a function. Instead, received: '${lt(n)}'`);return n(w2)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function c(){l===o&&(l=new Map,o.forEach((g,m)=>{l.set(m,g)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?ye(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(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?ye(4):`Expected the listener to be a function. Instead, received: '${lt(g)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?ye(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;c();const C=a++;return l.set(C,g),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?ye(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,c(),l.delete(C),o=null}}}function h(g){if(!S2(g))throw new Error(process.env.NODE_ENV==="production"?ye(7):`Actions must be plain objects. Instead, the actual type was: '${lt(g)}'. 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 g.type>"u")throw new Error(process.env.NODE_ENV==="production"?ye(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(process.env.NODE_ENV==="production"?ye(17):`Action "type" property must be a string. Instead, the actual type was: '${lt(g.type)}'. Value was: '${g.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?ye(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,g)}finally{s=!1}return(o=l).forEach(C=>{C()}),g}function v(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?ye(10):`Expected the nextReducer to be a function. Instead, received: '${lt(g)}`);r=g,h({type:Pt.REPLACE})}function b(){const g=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?ye(11):`Expected the observer to be an object. Instead, received: '${lt(m)}'`);function C(){const P=m;P.next&&P.next(d())}return C(),{unsubscribe:g(C)}},[Tc](){return this}}}return h({type:Pt.INIT}),{dispatch:h,subscribe:f,getState:d,replaceReducer:v,[Tc]:b}}function Ic(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function G3(t,e,n,r){const i=Object.keys(e),o=n&&n.type===Pt.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(!S2(t))return`The ${o} has unexpected type of "${lt(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===Pt.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 q3(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Pt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?ye(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:Pt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?ye(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Pt.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 Oc(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"&&Ic(`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{q3(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=G3(a,n,s,i);f&&Ic(f)}let c=!1;const d={};for(let f=0;f<r.length;f++){const h=r[f],v=n[h],b=a[h],p=v(b,s);if(typeof p>"u"){const g=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?ye(14):`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${h}" 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[h]=p,c=c||p!==b}return c=c||r.length!==Object.keys(a).length,c?d:a}}function Y3(t=bn().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 Z3=Oc({nodes:Oc({focus:Sb,edit:yb,open:wb,selection:xb,drag:Y3}),dnd:Eb}),X3=bn();function J3({treeProps:t,imperativeHandle:e,children:n}){const r=u.useRef(null),i=u.useRef(null),o=u.useRef(w2(Z3,bn(t))),l=$l.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>X3),a=u.useMemo(()=>new hn(o.current,t,r,i),[]),s=u.useRef(0);return u.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),u.useImperativeHandle(e,()=>a),u.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),u.useEffect(()=>{a.props.searchTerm||o.current.dispatch(Jo.clear(!0))},[a.props.searchTerm]),y.jsx(N0.Provider,{value:a,children:y.jsx(L0.Provider,{value:s.current,children:y.jsx(R0.Provider,{value:l.nodes,children:y.jsx(M0.Provider,{value:l.dnd,children:y.jsx(I9,Object.assign({backend:O3,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function Q3(){const t=Te(),[,e]=u2(()=>({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}=b2({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(yn.hovering(l.parentId,l.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function e7(t){return Q3(),t.children}function t7(){const e=Te().props.renderContainer||y2;return y.jsx(y.Fragment,{children:y.jsx(e,{})})}function n7(){const t=Te(),{offset:e,mouse:n,item:r,isDragging:i}=n3(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||X0;return y.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class r7{constructor(e){this.root=i7(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 i7(t){const e=new x2({id:"ROOT"},null);return e.children=t.map(n=>na(n,e)),e}function na(t,e){const n=new x2(t,e);return t.children&&(n.children=t.children.map(r=>na(r,n))),n}class x2{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=na(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 o7=0;function l7(t){const[e,n]=u.useState(t),r=u.useMemo(()=>new r7(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)r.move({id:d,parentId:c.parentId,index:c.index});n(r.data)},onRename:({name:c,id:d})=>{r.update({id:d,changes:{name:c}}),n(r.data)},onCreate:({parentId:c,index:d,type:f})=>{const h={id:`simple-tree-id-${o7++}`,name:""};return f==="internal"&&(h.children=[]),r.create({parentId:c,index:d,data:h}),n(r.data),h},onDelete:c=>{c.ids.forEach(d=>r.drop({id:d})),n(r.data)}}]}function a7(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.
|
|
98
|
+
Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,n]=l7(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function s7(t,e){const n=a7(t);return y.jsxs(J3,{treeProps:n,imperativeHandle:e,children:[y.jsx(e7,{children:y.jsx(t7,{})}),y.jsx(n7,{})]})}const c7=u.forwardRef(s7),E2=({top:t,left:e})=>y.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function u7(t,e){var n=u.useRef(null),r=u.useRef(null);r.current=e;var i=u.useRef(null);u.useEffect(function(){o()});var o=u.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 u.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),u.useCallback(function(l){i.current=l,o()},[o])}function kc(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 d7(t){t===void 0&&(t={});var e=t.onResize,n=u.useRef(void 0);n.current=e;var r=t.round||Math.round,i=u.useRef(),o=u.useState({width:void 0,height:void 0}),l=o[0],a=o[1],s=u.useRef(!1);u.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var c=u.useRef({width:void 0,height:void 0}),d=u7(u.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(h){var v=h[0],b=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",p=kc(v,b,"inlineSize"),g=kc(v,b,"blockSize"),m=p?r(p):void 0,C=g?r(g):void 0;if(c.current.width!==m||c.current.height!==C){var S={width:m,height:C};c.current.width=m,c.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 u.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var Le=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(Le||{}),yt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(yt||{});const ei=t=>t?t.nodeType===Le.SEPARATOR:!1,ti=t=>t?t.nodeType===Le.TITLE:!1,jn=t=>!ei(t)&&!ti(t),$2=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:l,insertAfter:a,append:s,prepend:c,getItem:d,move:f,items:h}=vg({initialItems:JSON.parse(JSON.stringify(t)),getKey:T=>T.id,getChildren:T=>T.children||[]}),[v,b]=u.useState(),p=(T=[])=>{const F=h.map(O=>O.key);r(...F);const _=JSON.parse(JSON.stringify(T));_.length>0&&o(null,0,..._),b(void 0)},g=T=>{const F=d(T);F&&b(F.value)},m=(T,F,_)=>{var O;if(T){const K=d(T);K&&o(T,_??((O=K.children)==null?void 0:O.length)??0,F)}else o(null,_??h.length,F)},C=T=>{var F;return(F=d(T))==null?void 0:F.value},S=(T,F)=>{var z;const _=d(T);if(!_){console.error("No item found");return}let O=((z=_.children)==null?void 0:z.map(V=>V.value))??null;const K=F.childrenCount??_.value.childrenCount??0;if((O==null?void 0:O.length)===0&&K>0&&(O=null),F.children&&(O=[...O??[],...F.children]),F.children){const V=new Set(F.children.map(W=>W.id));O=F.children.filter(W=>!V.has(W.id)),O=[...O??[],...F.children]}const M={..._.value,...F,children:O,childrenCount:(O==null?void 0:O.length)??K};i(T,M)},P=T=>{r(T)},$=T=>{r(...T)},x=async T=>{if(!e){console.error("No refresh callback provided");return}try{const F=await e(T);S(T,F)}catch(F){console.error("error while refreshing node:",F)}},E=(T,F)=>{o(null,F??h.length,T)},N=(T,F)=>{o(null,F??h.length,...T)},H=(T,F)=>{const _=d(T);if(!_){console.error("No item found");return}const O={..._.value,children:F,childrenCount:F.length,hasLoadedChildren:F.length>0};i(T,O)},j=T=>{const F=[],_=d(T);if(!_)return[];F.push(_.value);const O=K=>{const M=w(K);if(!M)return;const z=d(M);z&&(F.push(z.value),O(M))};return O(T),F.reverse()},w=T=>{var F;return((F=d(T))==null?void 0:F.parentKey)??null},A=T=>{const F=w(T);if(!F)return null;const _=d(F);return _?_.value:null},B=(T,F)=>{l(T,F)},L=(T,F)=>{a(T,F)},U=(T,F)=>{s(T,F)},I=(T,F)=>{c(T,F)},R=(T,F,_)=>{f(T,F,_)},k=T=>{R(T.sourceId,T.newParentId,T.index)},G=async T=>{if(!n)return[];const F=await n(T);return S(T,{children:F,hasLoadedChildren:!0,childrenCount:F.length}),F};return u.useEffect(()=>{const T=F=>{F.forEach(_=>{var O;if(_.children&&_.children.length>0){const K=_.value.hasLoadedChildren||((O=_.children)==null?void 0:O.length)>0||_.value.children&&_.value.children.length>0;_.value.children=_.children.map(z=>z.value);const M=K?_.children.length:_.value.childrenCount??0;_.value.childrenCount=M,K&&!_.value.hasLoadedChildren&&(_.value.hasLoadedChildren=!0),T(_.children)}else{const M=_.value.hasLoadedChildren||_.value.children&&_.value.children.length>0?0:_.value.childrenCount;_.value.children=[],_.value.childrenCount=M}})};T(h)},[h]),{nodes:h,addChild:m,updateNode:S,deleteNode:P,deleteNodes:$,addRootNode:E,addRootNodes:N,selectedNode:v,setSelectedNode:b,refreshNode:x,setChildren:H,insertBeforeNode:B,insertAfterNode:L,handleMove:k,prependToNode:I,moveNode:R,appendToNode:U,move:f,resetTree:p,handleLoadChildren:G,selectNodeById:g,getParent:A,getNode:C,getParentId:w,getAncestors:j}},ra=u.createContext(null),f7=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=u.useRef(null),[l,a]=u.useState(null),[s,c]=u.useState(n??null),d=$2(i??[],e,r);return y.jsx(ra.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:c,setRoot:a},children:t})},ia=()=>{const t=u.useContext(ra);if(!t)throw new Error("TreeContext not found");return t},h7=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:l,beforeMove:a})=>{const[s,c]=u.useState(400),{ref:d,width:f}=d7(),h=ia(),v=(h==null?void 0:h.treeData.nodes)??[];u.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 P=C.style.height;c(parseInt(P,10)+20)}}),S.observe(C)),()=>S==null?void 0:S.disconnect()},[]);const b=m=>{var k,G,T,F;const C=JSON.parse(JSON.stringify(v)),S=m.dragNodes[0],P=m.parentId?((k=m.parentNode)==null?void 0:k.data.children)??[]:C,$=m.dragNodes[0].data.value.id,x=m.dragNodes[0].data,E=(G=m.parentNode)==null?void 0:G.data;if((E==null?void 0:E.value.nodeType)===Le.TITLE||(E==null?void 0:E.value.nodeType)===Le.SEPARATOR)return null;const N=x.parentKey??n,H=m.parentId??n;let j=m.index+0,w=null,A=H;const B=((F=(T=S.parent)==null?void 0:T.children)==null?void 0:F.findIndex(_=>_.data.value.id===$))??0;if(N===H){if(B===j)return null;j=j<B?j:j-1}const L=m.index-1,U=P[L],I=m.index,R=P[I];return m.index===0?(A=m.parentId??n,w=yt.FIRST_CHILD):!E&&m.index===1&&!jn(U.value)?(A=n,j=1,w=yt.FIRST_CHILD):m.index===P.length?(A=A??n,w=yt.LAST_CHILD):U&&jn(U.value)?(A=U.value.id,w=yt.RIGHT):R&&jn(R.value)&&(w=yt.LEFT,A=R.value.id),w&&A?{targetModeId:A,mode:w,oldParentId:N,index:j,newParentId:m.parentId,sourceId:$}:null},p=m=>{const C=b(m);C&&(a?a(C,()=>{h==null||h.treeData.handleMove(C),l==null||l(C)}):(h==null||h.treeData.handleMove(C),l==null||l(C)))},g=u.useCallback(m=>o?!o(m):!1,[o]);if(h)return y.jsx("div",{ref:d,style:{height:s},className:"c__tree-view--container",children:y.jsx(c7,{data:v,ref:h.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:g,disableDrop:({parentNode:m,dragNodes:C,index:S})=>{var N,H;if(i&&!i({parentNode:m,dragNodes:C,index:S}))return m.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(m.data.value.canDrop=!1),!0;const P=C[0];if(P&&P.isDragging&&P.willReceiveDrop||((N=m.data.value)==null?void 0:N.nodeType)===Le.TITLE||((H=m.data.value)==null?void 0:H.nodeType)===Le.SEPARATOR)return!0;if(m.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const j=v[S-1],w=v[S],A=v[S+1],B=ei(j==null?void 0:j.value),L=ei(w==null?void 0:w.value),U=ti(j==null?void 0:j.value),I=ti(w==null?void 0:w.value),R=jn(A==null?void 0:A.value);return!!(S===0&&(L||I)||B&&I&&R||U&&L&&R)}const $=m==null?void 0:m.isOpen,x=(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(!x)return m.data.value.canDrop=!0,!1;let E=m.data.value.childrenCount&&m.data.value.childrenCount>0&&(m==null?void 0:m.data.children)&&m.data.children.length>0;return E=E??!0,!$&&!E&&x?(m.data.value.canDrop=!0,!0):(m.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:e,renderCursor:E2,renderRow:p7,rowClassName:"c__tree-view--row",children:r})})},p7=({children:t,...e})=>{const n=e.node.data.value.nodeType===Le.TITLE,r=e.node.data.value.nodeType===Le.SEPARATOR,{style:i}=e.attrs,o={...i};return n||r?u.createElement("div",{...e.attrs,key:e.node.id,style:o,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},t):u.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},y.jsx("div",{className:"c__tree-view--row-content",children:t}))},v7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",P2=v7?u.useLayoutEffect:u.useEffect;function D2(t){const e=u.useRef(t);return P2(()=>{e.current=t}),u.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 Nc(t,e){e===void 0&&(e=[t]);const n=u.useRef(t);return P2(()=>{n.current!==t&&(n.current=t)},e),n}function g7(t){const e=D2(t),n=u.useRef(null),r=u.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let xo={};function m7(t,e){return u.useMemo(()=>{const n=xo[t]==null?0:xo[t]+1;return xo[t]=n,t+"-"+n},[t,e])}var zn;(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"})(zn||(zn={}));function Rc(){}const b7=Object.freeze({x:0,y:0});var ln;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(ln||(ln={}));var Mc;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(Mc||(Mc={}));var at;(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"})(at||(at={}));at.Space,at.Enter,at.Esc,at.Space,at.Enter,at.Tab;var Lc;(function(t){t[t.RightClick=2]="RightClick"})(Lc||(Lc={}));var Ac;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(Ac||(Ac={}));var Fc;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(Fc||(Fc={}));ln.Backward+"",ln.Forward+"",ln.Backward+"",ln.Forward+"";var al;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(al||(al={}));var sl;(function(t){t.Optimized="optimized"})(sl||(sl={}));function y7(t){let{callback:e,disabled:n}=t;const r=D2(e),i=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}al.WhileDragging,sl.Optimized;const C7={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Rc,draggableNodes:new Map,over:null,measureDroppableContainers:Rc},S7=u.createContext(C7);({...b7});var Kc;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Kc||(Kc={}));const w7="Droppable",x7={timeout:25};function E7(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=m7(w7),{active:l,dispatch:a,over:s,measureDroppableContainers:c}=u.useContext(S7),d=u.useRef({disabled:n}),f=u.useRef(!1),h=u.useRef(null),v=u.useRef(null),{disabled:b,updateMeasurementsFor:p,timeout:g}={...x7,...i},m=Nc(p??r),C=u.useCallback(()=>{if(!f.current){f.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),v.current=null},g)},[g]),S=y7({callback:C,disabled:b||!l}),P=u.useCallback((N,H)=>{S&&(H&&(S.unobserve(H),f.current=!1),N&&S.observe(N))},[S]),[$,x]=g7(P),E=Nc(e);return u.useEffect(()=>{!S||!$.current||(S.disconnect(),f.current=!1,S.observe($.current))},[$,S]),u.useEffect(()=>(a({type:zn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:$,rect:h,data:E}}),()=>a({type:zn.UnregisterDroppable,key:o,id:r})),[r]),u.useEffect(()=>{n!==d.current.disabled&&(a({type:zn.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,a]),{active:l,rect:h,isOver:(s==null?void 0:s.id)===r,node:$,over:s,setNodeRef:x}}const $7=t=>{const{isOver:e,setNodeRef:n}=E7({id:t.id,data:t.data});return u.useEffect(()=>{var r;(r=t.onOver)==null||r.call(t,e,t.data)},[e,t.data,t.onOver]),y.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},P7=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var S,P;const l=ia(),a=u.useRef(null),[s,c]=u.useState(!1),[d,f]=u.useState(!1),h=o??s,v=n.willReceiveDrop||d,b=n.data.value.childrenCount!==void 0&&n.data.value.childrenCount>0||(((S=n.data.children)==null?void 0:S.length)??0)>0,p=((P=n.children)==null?void 0:P.length)??!1,g=n.isLeaf||!b,m=u.useCallback(async()=>{if(!g){if(p||n.data.value.hasLoadedChildren){n.toggle();return}c(!0),await(l==null?void 0:l.treeData.handleLoadChildren(n.data.value.id)),c(!1),n.open()}},[g,p,n,l==null?void 0:l.treeData]),C=u.useCallback($=>{$&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{m()},500)),a.current&&!$&&clearTimeout(a.current)},[m,n.isOpen,n.isDragging]);return u.useEffect(()=>{C(v)},[v,C]),n.data.value.nodeType===Le.SEPARATOR?y.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===Le.TITLE?y.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):y.jsx($7,{id:n.id,data:{data:n.data,nodeApi:n},onOver:f,children:y.jsxs("div",{onClick:$=>{if(!$.target.closest(".c__tree-view--node")){$.stopPropagation();return}e==null||e()},onKeyDown:$=>{$.target.closest(".c__tree-view--node")||$.stopPropagation()},ref:r,style:i,className:Pe("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:d}),children:[g&&y.jsx("div",{className:"c__tree-view--node__leaf"}),!g&&y.jsxs(y.Fragment,{children:[h&&y.jsx("div",{className:"c__tree-view--node__loading",children:y.jsx(Vl,{})}),!h&&y.jsx("span",{onClick:$=>{$.stopPropagation(),m()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})};var Re=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(Re||{}),Vn=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(Vn||{});const D7=({name:t,size:e,className:n,color:r,type:i=Vn.FILLED,...o})=>{const l=Pe("",{[`icon--${e}`]:e!==void 0,[`material-icons-${i}`]:i!==Vn.OUTLINED,"material-icons":i===Vn.OUTLINED},n),a={color:r,fontSize:typeof e=="number"?`${e}px`:void 0};return y.jsx("span",{className:l,style:a,...o,children:t})},_2={[Re.X_SMALL]:11,[Re.SMALL]:16,[Re.MEDIUM]:24,[Re.LARGE]:32,[Re.X_LARGE]:40},T2={[Re.X_SMALL]:16,[Re.SMALL]:24,[Re.MEDIUM]:32,[Re.LARGE]:40,[Re.X_LARGE]:48},_7=t=>T2[t]??24,T7=t=>_2[t]??24,ki=({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?y.jsx(It,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:l,children:y.jsxs("div",{role:"button",className:"c__access-role-dropdown",onClick:()=>{o==null||o(!i)},children:[y.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label}),y.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):y.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label})},I2=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=le.useCunningham(),[c,d]=u.useState(!1);return y.jsxs("div",{className:"c__add-share-user-list",children:[y.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>y.jsx(O2,{user:f,onRemoveUser:e},f.id))}),y.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,y.jsx(ki,{roles:o,selectedRole:l,onSelect:a,isOpen:c,onOpenChange:d}),y.jsx(le.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},O2=({user:t,onRemoveUser:e})=>y.jsxs("div",{className:"c__add-share-user-item",children:[y.jsx("span",{children:t.full_name||t.email}),y.jsx(le.Button,{color:"tertiary-text",size:"nano",onClick:()=>e==null?void 0:e(t),icon:y.jsx("span",{className:"material-icons",children:"close"})})]}),jc=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],k2=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),N2=t=>{let e=0;for(let n=0;n<t.length;n++)e+=t.charCodeAt(n);return jc[e%jc.length]},R2=({fullName:t,size:e="medium",forceColor:n})=>{const r=k2(t),i=N2(t);return y.jsx("div",{style:{backgroundColor:n||void 0},className:Pe(`c__avatar ${e}`,{[i]:!n&&i}),children:y.jsx("div",{className:"c__avatar__initials",children:r})})},Ni=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return y.jsxs("div",{className:"c__user-row",children:[y.jsx(R2,{fullName:r,size:"small"}),y.jsxs("div",{className:"c__user-row__info",children:[y.jsx("span",{className:"c__user-row__name",children:t}),n&&e&&y.jsx("span",{className:Pe("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},cl=({user:t})=>{const{t:e}=le.useCunningham();return y.jsx(Pi,{left:y.jsx(Ni,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:y.jsxs("div",{className:"c__search-user-item-right",children:[y.jsx("span",{children:e("components.share.item.add")}),y.jsx("span",{className:"material-icons",children:"add"})]})})},M2=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=le.useCunningham(),a=ht(),s=ht(),c=u.useMemo(()=>{const f=[];return r&&f.push({label:l("components.share.access.delete"),icon:y.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!i,callback:()=>r(t)}),f},[r,t,i,l]),d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return y.jsx("div",{className:"c__share-member-item",children:y.jsx(Pi,{left:y.jsx(Ni,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:y.jsxs("div",{className:"c__share-member-item__right",children:[y.jsx(ki,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,onOpenChange:a.setIsOpen,canUpdate:i,roleTopMessage:o}),c.length>0&&i&&y.jsx(It,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:y.jsx(le.Button,{color:"primary-text",onClick:d,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},L2=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=le.useCunningham(),a=ht(),s=ht(),c=[{label:l("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:y.jsx("span",{className:"material-icons",children:"back_hand"})}],d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return y.jsx("div",{className:"c__share-member-item",children:y.jsx(Pi,{left:y.jsx(Ni,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:y.jsxs("div",{className:"c__share-member-item__right",children:[y.jsx(ki,{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&&y.jsx(It,{options:c,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:y.jsx(le.Button,{color:"primary-text",onClick:d,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},I7="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%2022C10.6167%2022%209.31667%2021.7375%208.1%2021.2125C6.88333%2020.6875%205.825%2019.975%204.925%2019.075C4.025%2018.175%203.3125%2017.1167%202.7875%2015.9C2.2625%2014.6833%202%2013.3833%202%2012C2%2010.6167%202.2625%209.31667%202.7875%208.1C3.3125%206.88333%204.025%205.825%204.925%204.925C5.825%204.025%206.88333%203.3125%208.1%202.7875C9.31667%202.2625%2010.6167%202%2012%202C13.3833%202%2014.6833%202.2625%2015.9%202.7875C17.1167%203.3125%2018.175%204.025%2019.075%204.925C19.975%205.825%2020.6875%206.88333%2021.2125%208.1C21.7375%209.31667%2022%2010.6167%2022%2012C22%2013.3833%2021.7375%2014.6833%2021.2125%2015.9C20.6875%2017.1167%2019.975%2018.175%2019.075%2019.075C18.175%2019.975%2017.1167%2020.6875%2015.9%2021.2125C14.6833%2021.7375%2013.3833%2022%2012%2022ZM11%2019.95V18C10.45%2018%209.97917%2017.8042%209.5875%2017.4125C9.19583%2017.0208%209%2016.55%209%2016V15L4.2%2010.2C4.15%2010.5%204.10417%2010.8%204.0625%2011.1C4.02083%2011.4%204%2011.7%204%2012C4%2014.0167%204.6625%2015.7833%205.9875%2017.3C7.3125%2018.8167%208.98333%2019.7%2011%2019.95ZM17.9%2017.4C18.2333%2017.0333%2018.5333%2016.6375%2018.8%2016.2125C19.0667%2015.7875%2019.2875%2015.3458%2019.4625%2014.8875C19.6375%2014.4292%2019.7708%2013.9583%2019.8625%2013.475C19.9542%2012.9917%2020%2012.5%2020%2012C20%2010.3667%2019.5458%208.875%2018.6375%207.525C17.7292%206.175%2016.5167%205.2%2015%204.6V5C15%205.55%2014.8042%206.02083%2014.4125%206.4125C14.0208%206.80417%2013.55%207%2013%207H11V9C11%209.28333%2010.9042%209.52083%2010.7125%209.7125C10.5208%209.90417%2010.2833%2010%2010%2010H8V12H14C14.2833%2012%2014.5208%2012.0958%2014.7125%2012.2875C14.9042%2012.4792%2015%2012.7167%2015%2013V16H16C16.4333%2016%2016.825%2016.1292%2017.175%2016.3875C17.525%2016.6458%2017.7667%2016.9833%2017.9%2017.4Z'%20fill='%233D3D8C'/%3e%3c/svg%3e",O7="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%2018C18.4167%2018%2018.7708%2017.8542%2019.0625%2017.5625C19.3542%2017.2708%2019.5%2016.9167%2019.5%2016.5C19.5%2016.0833%2019.3542%2015.7292%2019.0625%2015.4375C18.7708%2015.1458%2018.4167%2015%2018%2015C17.5833%2015%2017.2292%2015.1458%2016.9375%2015.4375C16.6458%2015.7292%2016.5%2016.0833%2016.5%2016.5C16.5%2016.9167%2016.6458%2017.2708%2016.9375%2017.5625C17.2292%2017.8542%2017.5833%2018%2018%2018ZM18%2021C18.5%2021%2018.9667%2020.8833%2019.4%2020.65C19.8333%2020.4167%2020.1917%2020.0917%2020.475%2019.675C20.0917%2019.4417%2019.6917%2019.2708%2019.275%2019.1625C18.8583%2019.0542%2018.4333%2019%2018%2019C17.5667%2019%2017.1417%2019.0542%2016.725%2019.1625C16.3083%2019.2708%2015.9083%2019.4417%2015.525%2019.675C15.8083%2020.0917%2016.1667%2020.4167%2016.6%2020.65C17.0333%2020.8833%2017.5%2021%2018%2021ZM9%208H15V6C15%205.16667%2014.7083%204.45833%2014.125%203.875C13.5417%203.29167%2012.8333%203%2012%203C11.1667%203%2010.4583%203.29167%209.875%203.875C9.29167%204.45833%209%205.16667%209%206V8ZM12.25%2022H6C5.45%2022%204.97917%2021.8042%204.5875%2021.4125C4.19583%2021.0208%204%2020.55%204%2020V10C4%209.45%204.19583%208.97917%204.5875%208.5875C4.97917%208.19583%205.45%208%206%208H7V6C7%204.61667%207.4875%203.4375%208.4625%202.4625C9.4375%201.4875%2010.6167%201%2012%201C13.3833%201%2014.5625%201.4875%2015.5375%202.4625C16.5125%203.4375%2017%204.61667%2017%206V8H18C18.55%208%2019.0208%208.19583%2019.4125%208.5875C19.8042%208.97917%2020%209.45%2020%2010V11.3C19.7%2011.2%2019.3875%2011.125%2019.0625%2011.075C18.7375%2011.025%2018.3833%2011%2018%2011V10H6V20H11.3C11.4333%2020.4%2011.5667%2020.7458%2011.7%2021.0375C11.8333%2021.3292%2012.0167%2021.65%2012.25%2022ZM18%2023C16.6167%2023%2015.4375%2022.5125%2014.4625%2021.5375C13.4875%2020.5625%2013%2019.3833%2013%2018C13%2016.6167%2013.4875%2015.4375%2014.4625%2014.4625C15.4375%2013.4875%2016.6167%2013%2018%2013C19.3833%2013%2020.5625%2013.4875%2021.5375%2014.4625C22.5125%2015.4375%2023%2016.6167%2023%2018C23%2019.3833%2022.5125%2020.5625%2021.5375%2021.5375C20.5625%2022.5125%2019.3833%2023%2018%2023Z'%20fill='%233D3D8C'/%3e%3c/svg%3e",xr=t=>{switch(t){case"public":return y.jsx("img",{src:I7,alt:""});case"restricted":return y.jsx("img",{src:O7,alt:""});default:return null}},k7=({linkReachChoices:t=[],canUpdate:e,linkReach:n="public",onUpdateLinkReach:r,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:l="reader",onUpdateLinkRole:a})=>{const s=ht(),c=ht(),[d,f]=u.useState([n]),h=d[0],[v,b]=u.useState([l]),p=v[0],{t:g}=le.useCunningham(),m=u.useMemo(()=>t.map(N=>({icon:N.icon??xr(N.value),value:N.value,label:g("components.share.linkSettings.reach.choices."+N.value+".title"),...N})),[t]),C=u.useMemo(()=>m.find(N=>N.value===h),[m,h]),S=u.useMemo(()=>o.map(N=>({value:N.value,label:g("components.share.linkSettings.role.choices."+N.value+".title"),...N})),[o]),P=u.useMemo(()=>S.find(N=>N.value===p),[S,p]),$=i&&o.length>0,x=()=>y.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?y.jsx(It,{onSelectValue:N=>{f([N]),r==null||r(N)},options:m,isOpen:s.isOpen,onOpenChange:s.setIsOpen,selectedValues:d,children:y.jsxs(le.Button,{color:"primary-text",icon:xr(h),iconPosition:"left",onClick:()=>{e&&s.setIsOpen(!s.isOpen)},children:[C==null?void 0:C.label,y.jsx("span",{className:"material-icons",children:s.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):y.jsxs("span",{className:"c__share-modal__link-settings__content__select__value",children:[xr(h),C==null?void 0:C.label]})}),E=()=>$?y.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?y.jsx(It,{onSelectValue:N=>{b([N]),a==null||a(N)},options:S,isOpen:c.isOpen,onOpenChange:c.setIsOpen,selectedValues:v,children:y.jsx(le.Button,{color:"primary-text",icon:y.jsx("span",{className:"material-icons",children:c.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&c.setIsOpen(!c.isOpen)},size:"small",children:P==null?void 0:P.label})}):y.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value",children:[xr(p),P==null?void 0:P.label]})}):null;return y.jsxs("div",{className:"c__share-modal__link-settings",children:[y.jsx("span",{className:"c__share-modal__link-settings__title",children:g("components.share.linkSettings.title")}),y.jsxs("div",{className:"c__share-modal__link-settings__content",children:[x(),y.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:g(`components.share.linkSettings.reach.choices.${h}.description`)}),E()]}),y.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:g(`components.share.linkSettings.reach.choices.${h}.description`)})]})},N7=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,canView:a=!0,hasNextInvitations:s=!1,hideInvitations:c=!1,hideMembers:d=!1,cannotViewChildren:f,...h})=>{var O,K;if(!(c&&d)){if(!h.invitationRoles)throw new Error("invitationRoles is required");if(!h.onSearchUsers)throw new Error("onSearchUsers is required")}if(!c&&!h.onInviteUser)throw new Error("onInviteUser is required");if(l&&!a)throw new Error("canView cannot be false if canUpdate is true");const{t:v}=le.useCunningham(),{isMobile:b}=wn(),p=u.useRef(null),[g,m]=u.useState("400px"),C=u.useRef(null),[S,P]=u.useState(""),[$,x]=u.useState(""),[E,N]=u.useState([]),[H,j]=u.useState(((K=(O=h.invitationRoles)==null?void 0:O[0])==null?void 0:K.value)??""),w=b?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",A=M=>{if(p.current&&clearTimeout(p.current),M===""){x(""),h.onSearchUsers("");return}p.current=setTimeout(()=>{h.onSearchUsers(M),x(M)},300)},B=M=>{P(M),A(M)},L=$!==""||E.length>0,U=u.useCallback(M=>{N(z=>[...z,M]),P(""),x(""),h.onSearchUsers("")},[h]),I=M=>{N(z=>z.filter(V=>V.id!==M.id))},R=u.useMemo(()=>{const M=t==null?void 0:t.filter(se=>!E.includes(se));let z=v($!==""?"components.share.user.no_result":"components.share.user.placeholder");const W=(se=>!!se.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!=null&&M.some(se=>se.email===$)),Y={id:$,full_name:"",email:$};return W&&(z=void 0),{groupName:v("components.share.search.group_name"),elements:M??[],showWhenEmpty:!0,emptyString:z,endActions:W?[{content:y.jsx(cl,{user:Y}),onSelect:()=>void U(Y)}]:void 0}},[t,$,v,E,U]),k=M=>{var J;const V=(M==null?void 0:M.clientHeight)??0,W=((J=C.current)==null?void 0:J.clientHeight)??0,Y=`calc(${w} - ${V}px - ${W}px - 70px - 10px)`;m(Y)},G=!c&&!L&&!h.loading&&i.length>0,T=!d&&!L&&!h.loading&&r.length>0,_=a?c&&d?"empty":"search":"cannot_view";return y.jsx(le.Modal,{title:h.modalTitle??v("components.share.modalTitle"),isOpen:h.isOpen,onClose:h.onClose,closeOnClickOutside:!0,size:b?le.ModalSize.FULL:le.ModalSize.LARGE,children:y.jsxs("div",{className:"c__share-modal no-padding",children:[l&&E.length>0&&y.jsx("div",{className:"c__share-modal__selected-users",ref:C,children:y.jsx(I2,{users:E,onRemoveUser:I,roles:h.invitationRoles,selectedRole:H,onSelectRole:j,onShare:()=>{h.onInviteUser(E,H),N([])}})}),_==="cannot_view"&&y.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:g},children:[y.jsx("div",{className:"c__share-modal__cannot-view__content",children:y.jsx("p",{children:h.cannotViewMessage??v("components.share.cannot_view.message")})}),f]}),_==="search"&&y.jsx(O0,{onFilter:B,inputValue:S,showInput:l,loading:h.loading,placeholder:v("components.share.user.placeholder"),children:y.jsxs("div",{style:{height:g,overflowY:"auto"},children:[L&&y.jsx("div",{className:"c__share-modal__search-users",children:y.jsx(k0,{group:R,onSelect:M=>{U(M)},renderElement:M=>y.jsx(cl,{user:M})})}),!L&&e,G&&y.jsxs("div",{className:"c__share-modal__invitations",children:[y.jsx("span",{className:"c__share-modal__invitations-title",children:v("components.share.invitations.title")}),i.map(M=>{var z;return y.jsx(L2,{invitation:M,roles:h.invitationRoles,updateRole:h.onUpdateInvitation,deleteInvitation:h.onDeleteInvitation,canUpdate:l,roleTopMessage:(z=h.invitationRoleTopMessage)==null?void 0:z.call(h,M)},M.id)}),y.jsx(Hc,{show:s,onShowMore:h.onLoadNextInvitations})]}),T&&y.jsxs("div",{className:"c__share-modal__members",children:[y.jsx("span",{className:"c__share-modal__members-title",children:v(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(M=>{var z,V;return y.jsx(M2,{accessData:M,canUpdate:l,roleTopMessage:(z=h.accessRoleTopMessage)==null?void 0:z.call(h,M),roles:((V=h.getAccessRoles)==null?void 0:V.call(h,M))??h.invitationRoles,updateRole:h.onUpdateAccess,deleteAccess:h.onDeleteAccess},M.id)}),y.jsx(Hc,{show:o,onShowMore:h.onLoadNextMembers})]})]})}),y.jsx("div",{ref:k,children:!L&&y.jsxs("div",{className:"c__share-modal__footer",children:[h.linkSettings&&y.jsx(k7,{linkReachChoices:h.linkReachChoices,canUpdate:l,onUpdateLinkReach:h.onUpdateLinkReach,linkReach:h.linkReach,linkRoleChoices:h.linkRoleChoices,linkRole:h.linkRole,onUpdateLinkRole:h.onUpdateLinkRole,showLinkRole:h.showLinkRole}),n]})})]})})},Hc=({show:t,onShowMore:e})=>{const{t:n}=le.useCunningham();return t?y.jsx("div",{className:"c__share-modal__show-more-button",children:y.jsx(le.Button,{color:"primary-text",size:"small",icon:y.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:n("components.share.members.load_more")})}):null},R7=({onCopyLink:t,onOk:e})=>{const{t:n}=le.useCunningham();return y.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[y.jsx(le.Button,{color:"tertiary",icon:y.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),y.jsx(le.Button,{color:"primary",onClick:e,children:n("components.share.ok")})]})};exports.AccessRoleDropdown=ki;exports.CunninghamProvider=J2;exports.CustomTabs=rb;exports.DropdownMenu=It;exports.Filter=Jg;exports.Footer=Xg;exports.Header=Ef;exports.Hero=e5;exports.HomeGutter=t5;exports.HorizontalSeparator=Xo;exports.Icon=D7;exports.IconSize=Re;exports.IconType=Vn;exports.InvitationUserSelectorItem=O2;exports.InvitationUserSelectorList=I2;exports.LaGaufre=f5;exports.Label=qf;exports.LanguagePicker=xf;exports.LeftPanel=$f;exports.MainLayout=U5;exports.ProConnectButton=Bc;exports.QuickSearch=O0;exports.QuickSearchGroup=k0;exports.QuickSearchInput=I0;exports.QuickSearchItem=_r;exports.QuickSearchItemTemplate=Pi;exports.SearchUserItem=cl;exports.ShareInvitationItem=L2;exports.ShareMemberItem=M2;exports.ShareModal=N7;exports.ShareModalCopyLinkFooter=R7;exports.Spinner=Vl;exports.TreeApi=hn;exports.TreeContext=ra;exports.TreeProvider=f7;exports.TreeView=h7;exports.TreeViewItem=P7;exports.TreeViewMoveModeEnum=yt;exports.TreeViewNodeTypeEnum=Le;exports.TreeViewSeparator=E2;exports.UserAvatar=R2;exports.UserRow=Ni;exports.WithLabel=G5;exports.containerSizeMap=T2;exports.cunninghamConfig=Bo;exports.getContainerSize=_7;exports.getIconSize=T7;exports.getLocales=Vc;exports.getUserColor=N2;exports.getUserInitials=k2;exports.headerHeight=W5;exports.iconSizeMap=_2;exports.isNode=jn;exports.isSeparator=ei;exports.isTitle=ti;exports.useDropdownMenu=ht;exports.useResponsive=wn;exports.useTree=$2;exports.useTreeContext=ia;
|
|
99
99
|
//# sourceMappingURL=index.cjs.map
|