@gouvfr-lasuite/ui-kit 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),ae=require("@openfun/cunningham-react"),Ht=require("react-dom");function Pu(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 T=Pu(d),x0=Pu(Ht);function $0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fr={exports:{}},In={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),se=require("@openfun/cunningham-react"),Nt=require("react-dom");function dd(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const k=dd(c),_p=dd(Nt);function kp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hr={exports:{}},or={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Xs;function T0(){if(Xs)return In;Xs=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var s=null;if(o!==void 0&&(s=""+o),i.key!==void 0&&(s=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:s,ref:i!==void 0?i:null,props:o}}return In.Fragment=e,In.jsx=n,In.jsxs=n,In}var kn={};/**
9
+ */var hs;function Lp(){if(hs)return or;hs=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:l,ref:i!==void 0?i:null,props:o}}return or.Fragment=e,or.jsx=n,or.jsxs=n,or}var lr={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,21 +14,21 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Js;function P0(){return Js||(Js=1,process.env.NODE_ENV!=="production"&&function(){function t($){if($==null)return null;if(typeof $=="function")return $.$$typeof===L?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case D:return"Fragment";case x:return"Portal";case S:return"Profiler";case _:return"StrictMode";case H:return"Suspense";case E:return"SuspenseList"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case F:return($.displayName||"Context")+".Provider";case R:return($._context.displayName||"Context")+".Consumer";case N:var q=$.render;return $=$.displayName,$||($=q.displayName||q.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case O:return q=$.displayName||null,q!==null?q:t($.type)||"Memo";case z:q=$._payload,$=$._init;try{return t($(q))}catch{}}return null}function e($){return""+$}function n($){try{e($);var q=!1}catch{q=!0}if(q){q=console;var Z=q.error,ie=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return Z.call(q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ie),e($)}}function r(){}function i(){if(A===0){M=console.log,W=console.info,U=console.warn,K=console.error,X=console.group,te=console.groupCollapsed,fe=console.groupEnd;var $={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}A++}function o(){if(A--,A===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B({},$,{value:M}),info:B({},$,{value:W}),warn:B({},$,{value:U}),error:B({},$,{value:K}),group:B({},$,{value:X}),groupCollapsed:B({},$,{value:te}),groupEnd:B({},$,{value:fe})})}0>A&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function s($){if(de===void 0)try{throw Error()}catch(Z){var q=Z.stack.trim().match(/\n( *(at )?)/);de=q&&q[1]||"",oe=-1<Z.stack.indexOf(`
18
- at`)?" (<anonymous>)":-1<Z.stack.indexOf("@")?"@unknown:0:0":""}return`
19
- `+de+$+oe}function a($,q){if(!$||ve)return"";var Z=re.get($);if(Z!==void 0)return Z;ve=!0,Z=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var ie=null;ie=Y.H,Y.H=null,i();try{var Ce={DetermineComponentFrameRoot:function(){try{if(q){var ut=function(){throw Error()};if(Object.defineProperty(ut.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ut,[])}catch(Qe){var dr=Qe}Reflect.construct($,[],ut)}else{try{ut.call()}catch(Qe){dr=Qe}$.call(ut.prototype)}}else{try{throw Error()}catch(Qe){dr=Qe}(ut=$())&&typeof ut.catch=="function"&&ut.catch(function(){})}}catch(Qe){if(Qe&&dr&&typeof Qe.stack=="string")return[Qe.stack,dr.stack]}return[null,null]}};Ce.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var le=Object.getOwnPropertyDescriptor(Ce.DetermineComponentFrameRoot,"name");le&&le.configurable&&Object.defineProperty(Ce.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Q=Ce.DetermineComponentFrameRoot(),Je=Q[0],Vt=Q[1];if(Je&&Vt){var xe=Je.split(`
20
- `),St=Vt.split(`
21
- `);for(Q=le=0;le<xe.length&&!xe[le].includes("DetermineComponentFrameRoot");)le++;for(;Q<St.length&&!St[Q].includes("DetermineComponentFrameRoot");)Q++;if(le===xe.length||Q===St.length)for(le=xe.length-1,Q=St.length-1;1<=le&&0<=Q&&xe[le]!==St[Q];)Q--;for(;1<=le&&0<=Q;le--,Q--)if(xe[le]!==St[Q]){if(le!==1||Q!==1)do if(le--,Q--,0>Q||xe[le]!==St[Q]){var On=`
22
- `+xe[le].replace(" at new "," at ");return $.displayName&&On.includes("<anonymous>")&&(On=On.replace("<anonymous>",$.displayName)),typeof $=="function"&&re.set($,On),On}while(1<=le&&0<=Q);break}}}finally{ve=!1,Y.H=ie,o(),Error.prepareStackTrace=Z}return xe=(xe=$?$.displayName||$.name:"")?s(xe):"",typeof $=="function"&&re.set($,xe),xe}function l($){if($==null)return"";if(typeof $=="function"){var q=$.prototype;return a($,!(!q||!q.isReactComponent))}if(typeof $=="string")return s($);switch($){case H:return s("Suspense");case E:return s("SuspenseList")}if(typeof $=="object")switch($.$$typeof){case N:return $=a($.render,!1),$;case O:return l($.type);case z:q=$._payload,$=$._init;try{return l($(q))}catch{}}return""}function u(){var $=Y.A;return $===null?null:$.getOwner()}function c($){if(j.call($,"key")){var q=Object.getOwnPropertyDescriptor($,"key").get;if(q&&q.isReactWarning)return!1}return $.key!==void 0}function f($,q){function Z(){lt||(lt=!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)",q))}Z.isReactWarning=!0,Object.defineProperty($,"key",{get:Z,configurable:!0})}function p(){var $=t(this.type);return me[$]||(me[$]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),$=this.props.ref,$!==void 0?$:null}function g($,q,Z,ie,Ce,le){return Z=le.ref,$={$$typeof:P,type:$,key:q,props:le,_owner:Ce},(Z!==void 0?Z:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:p}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function b($,q,Z,ie,Ce,le){if(typeof $=="string"||typeof $=="function"||$===D||$===S||$===_||$===H||$===E||$===G||typeof $=="object"&&$!==null&&($.$$typeof===z||$.$$typeof===O||$.$$typeof===F||$.$$typeof===R||$.$$typeof===N||$.$$typeof===k||$.getModuleId!==void 0)){var Q=q.children;if(Q!==void 0)if(ie)if(I(Q)){for(ie=0;ie<Q.length;ie++)h(Q[ie],$);Object.freeze&&Object.freeze(Q)}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 h(Q,$)}else Q="",($===void 0||typeof $=="object"&&$!==null&&Object.keys($).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),$===null?ie="null":I($)?ie="array":$!==void 0&&$.$$typeof===P?(ie="<"+(t($.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof $,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,Q);if(j.call(q,"key")){Q=t($);var Je=Object.keys(q).filter(function(xe){return xe!=="key"});ie=0<Je.length?"{key: someKey, "+Je.join(": ..., ")+": ...}":"{key: someKey}",Dn[Q+ie]||(Je=0<Je.length?"{"+Je.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var ps;function Mp(){return ps||(ps=1,process.env.NODE_ENV!=="production"&&function(){function t(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===O?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case T:return"Fragment";case x:return"Portal";case h:return"Profiler";case I:return"StrictMode";case F:return"Suspense";case y:return"SuspenseList"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case A:return(_.displayName||"Context")+".Provider";case L:return(_._context.displayName||"Context")+".Consumer";case P:var Y=_.render;return _=_.displayName,_||(_=Y.displayName||Y.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case E:return Y=_.displayName||null,Y!==null?Y:t(_.type)||"Memo";case K:Y=_._payload,_=_._init;try{return t(_(Y))}catch{}}return null}function e(_){return""+_}function n(_){try{e(_);var Y=!1}catch{Y=!0}if(Y){Y=console;var X=Y.error,ie=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return X.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ie),e(_)}}function r(){}function i(){if(z===0){j=console.log,W=console.info,G=console.warn,R=console.error,Z=console.group,J=console.groupCollapsed,de=console.groupEnd;var _={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}z++}function o(){if(z--,z===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},_,{value:j}),info:U({},_,{value:W}),warn:U({},_,{value:G}),error:U({},_,{value:R}),group:U({},_,{value:Z}),groupCollapsed:U({},_,{value:J}),groupEnd:U({},_,{value:de})})}0>z&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function l(_){if(ce===void 0)try{throw Error()}catch(X){var Y=X.stack.trim().match(/\n( *(at )?)/);ce=Y&&Y[1]||"",oe=-1<X.stack.indexOf(`
18
+ at`)?" (<anonymous>)":-1<X.stack.indexOf("@")?"@unknown:0:0":""}return`
19
+ `+ce+_+oe}function a(_,Y){if(!_||me)return"";var X=re.get(_);if(X!==void 0)return X;me=!0,X=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var ie=null;ie=q.H,q.H=null,i();try{var Ce={DetermineComponentFrameRoot:function(){try{if(Y){var $t=function(){throw Error()};if(Object.defineProperty($t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($t,[])}catch(ot){var jr=ot}Reflect.construct(_,[],$t)}else{try{$t.call()}catch(ot){jr=ot}_.call($t.prototype)}}else{try{throw Error()}catch(ot){jr=ot}($t=_())&&typeof $t.catch=="function"&&$t.catch(function(){})}}catch(ot){if(ot&&jr&&typeof ot.stack=="string")return[ot.stack,jr.stack]}return[null,null]}};Ce.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var ue=Object.getOwnPropertyDescriptor(Ce.DetermineComponentFrameRoot,"name");ue&&ue.configurable&&Object.defineProperty(Ce.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var ee=Ce.DetermineComponentFrameRoot(),it=ee[0],gn=ee[1];if(it&&gn){var Pe=it.split(`
20
+ `),At=gn.split(`
21
+ `);for(ee=ue=0;ue<Pe.length&&!Pe[ue].includes("DetermineComponentFrameRoot");)ue++;for(;ee<At.length&&!At[ee].includes("DetermineComponentFrameRoot");)ee++;if(ue===Pe.length||ee===At.length)for(ue=Pe.length-1,ee=At.length-1;1<=ue&&0<=ee&&Pe[ue]!==At[ee];)ee--;for(;1<=ue&&0<=ee;ue--,ee--)if(Pe[ue]!==At[ee]){if(ue!==1||ee!==1)do if(ue--,ee--,0>ee||Pe[ue]!==At[ee]){var ir=`
22
+ `+Pe[ue].replace(" at new "," at ");return _.displayName&&ir.includes("<anonymous>")&&(ir=ir.replace("<anonymous>",_.displayName)),typeof _=="function"&&re.set(_,ir),ir}while(1<=ue&&0<=ee);break}}}finally{me=!1,q.H=ie,o(),Error.prepareStackTrace=X}return Pe=(Pe=_?_.displayName||_.name:"")?l(Pe):"",typeof _=="function"&&re.set(_,Pe),Pe}function s(_){if(_==null)return"";if(typeof _=="function"){var Y=_.prototype;return a(_,!(!Y||!Y.isReactComponent))}if(typeof _=="string")return l(_);switch(_){case F:return l("Suspense");case y:return l("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case P:return _=a(_.render,!1),_;case E:return s(_.type);case K:Y=_._payload,_=_._init;try{return s(_(Y))}catch{}}return""}function u(){var _=q.A;return _===null?null:_.getOwner()}function d(_){if(V.call(_,"key")){var Y=Object.getOwnPropertyDescriptor(_,"key").get;if(Y&&Y.isReactWarning)return!1}return _.key!==void 0}function f(_,Y){function X(){yt||(yt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Y))}X.isReactWarning=!0,Object.defineProperty(_,"key",{get:X,configurable:!0})}function v(){var _=t(this.type);return be[_]||(be[_]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),_=this.props.ref,_!==void 0?_:null}function g(_,Y,X,ie,Ce,ue){return X=ue.ref,_={$$typeof:D,type:_,key:Y,props:ue,_owner:Ce},(X!==void 0?X:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:v}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function $(_,Y,X,ie,Ce,ue){if(typeof _=="string"||typeof _=="function"||_===T||_===h||_===I||_===F||_===y||_===B||typeof _=="object"&&_!==null&&(_.$$typeof===K||_.$$typeof===E||_.$$typeof===A||_.$$typeof===L||_.$$typeof===P||_.$$typeof===N||_.getModuleId!==void 0)){var ee=Y.children;if(ee!==void 0)if(ie)if(M(ee)){for(ie=0;ie<ee.length;ie++)p(ee[ie],_);Object.freeze&&Object.freeze(ee)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(ee,_)}else ee="",(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),_===null?ie="null":M(_)?ie="array":_!==void 0&&_.$$typeof===D?(ie="<"+(t(_.type)||"Unknown")+" />",ee=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof _,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,ee);if(V.call(Y,"key")){ee=t(_);var it=Object.keys(Y).filter(function(Pe){return Pe!=="key"});ie=0<it.length?"{key: someKey, "+it.join(": ..., ")+": ...}":"{key: someKey}",rr[ee+ie]||(it=0<it.length?"{"+it.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
23
23
  let props = %s;
24
24
  <%s {...props} />
25
25
  React keys must be passed directly to JSX without using spread:
26
26
  let props = %s;
27
- <%s key={someKey} {...props} />`,ie,Q,Je,Q),Dn[Q+ie]=!0)}if(Q=null,Z!==void 0&&(n(Z),Q=""+Z),c(q)&&(n(q.key),Q=""+q.key),"key"in q){Z={};for(var Vt in q)Vt!=="key"&&(Z[Vt]=q[Vt])}else Z=q;return Q&&f(Z,typeof $=="function"?$.displayName||$.name||"Unknown":$),g($,Q,le,Ce,u(),Z)}function h($,q){if(typeof $=="object"&&$&&$.$$typeof!==Ge){if(I($))for(var Z=0;Z<$.length;Z++){var ie=$[Z];m(ie)&&v(ie,q)}else if(m($))$._store&&($._store.validated=1);else if($===null||typeof $!="object"?Z=null:(Z=V&&$[V]||$["@@iterator"],Z=typeof Z=="function"?Z:null),typeof Z=="function"&&Z!==$.entries&&(Z=Z.call($),Z!==$))for(;!($=Z.next()).done;)m($.value)&&v($.value,q)}}function m($){return typeof $=="object"&&$!==null&&$.$$typeof===P}function v($,q){if($._store&&!$._store.validated&&$.key==null&&($._store.validated=1,q=C(q),!cr[q])){cr[q]=!0;var Z="";$&&$._owner!=null&&$._owner!==u()&&(Z=null,typeof $._owner.tag=="number"?Z=t($._owner.type):typeof $._owner.name=="string"&&(Z=$._owner.name),Z=" It was passed a child from "+Z+".");var ie=Y.getCurrentStack;Y.getCurrentStack=function(){var Ce=l($.type);return ie&&(Ce+=ie()||""),Ce},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',q,Z),Y.getCurrentStack=ie}}function C($){var q="",Z=u();return Z&&(Z=t(Z.type))&&(q=`
27
+ <%s key={someKey} {...props} />`,ie,ee,it,ee),rr[ee+ie]=!0)}if(ee=null,X!==void 0&&(n(X),ee=""+X),d(Y)&&(n(Y.key),ee=""+Y.key),"key"in Y){X={};for(var gn in Y)gn!=="key"&&(X[gn]=Y[gn])}else X=Y;return ee&&f(X,typeof _=="function"?_.displayName||_.name||"Unknown":_),g(_,ee,ue,Ce,u(),X)}function p(_,Y){if(typeof _=="object"&&_&&_.$$typeof!==Je){if(M(_))for(var X=0;X<_.length;X++){var ie=_[X];b(ie)&&m(ie,Y)}else if(b(_))_._store&&(_._store.validated=1);else if(_===null||typeof _!="object"?X=null:(X=H&&_[H]||_["@@iterator"],X=typeof X=="function"?X:null),typeof X=="function"&&X!==_.entries&&(X=X.call(_),X!==_))for(;!(_=X.next()).done;)b(_.value)&&m(_.value,Y)}}function b(_){return typeof _=="object"&&_!==null&&_.$$typeof===D}function m(_,Y){if(_._store&&!_._store.validated&&_.key==null&&(_._store.validated=1,Y=C(Y),!Fr[Y])){Fr[Y]=!0;var X="";_&&_._owner!=null&&_._owner!==u()&&(X=null,typeof _._owner.tag=="number"?X=t(_._owner.type):typeof _._owner.name=="string"&&(X=_._owner.name),X=" It was passed a child from "+X+".");var ie=q.getCurrentStack;q.getCurrentStack=function(){var Ce=s(_.type);return ie&&(Ce+=ie()||""),Ce},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',Y,X),q.getCurrentStack=ie}}function C(_){var Y="",X=u();return X&&(X=t(X.type))&&(Y=`
28
28
 
29
- Check the render method of \``+Z+"`."),q||($=t($))&&(q=`
29
+ Check the render method of \``+X+"`."),Y||(_=t(_))&&(Y=`
30
30
 
31
- Check the top-level render call using <`+$+">."),q}var w=d,P=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),F=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),V=Symbol.iterator,L=Symbol.for("react.client.reference"),Y=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,B=Object.assign,k=Symbol.for("react.client.reference"),I=Array.isArray,A=0,M,W,U,K,X,te,fe;r.__reactDisabledLog=!0;var de,oe,ve=!1,re=new(typeof WeakMap=="function"?WeakMap:Map),Ge=Symbol.for("react.client.reference"),lt,me={},Dn={},cr={};kn.Fragment=D,kn.jsx=function($,q,Z,ie,Ce){return b($,q,Z,!1,ie,Ce)},kn.jsxs=function($,q,Z,ie,Ce){return b($,q,Z,!0,ie,Ce)}}()),kn}var Qs;function _0(){return Qs||(Qs=1,process.env.NODE_ENV==="production"?fr.exports=T0():fr.exports=P0()),fr.exports}var y=_0();const D0={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"}}}},O0={components:D0},I0={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"}}},k0={components:I0},N0={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",access:{delete:"Remove access"},invitations:{title:"Pending invitations"},members:{title:"Members",title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},item:{add:"Add"}},footer:{links:{legal:"Legal mentions",personal_data:"Personal data and cookies",accessibility:"Accessibility"},mention:"Unless otherwise stated, all content on this site is under the",license:"etalab-2.0 license"}},R0={components:N0},L0={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},invitations:{title:"Invitations en attente"},members:{title_plural:"Partagé entre {count} personnes",title_singular:"Partagé entre {count} personne",load_more:"Afficher plus"},item:{add:"Ajouter"},search:{placeholder:"Rechercher un utilisateur",group_name:"Résultat de la recherche d'utilisateur"},user:{no_result:"Aucun résultat",placeholder:"Rechercher un utilisateur"}},footer:{links:{legal:"Mentions Légales",personal_data:"Données personnelles et cookies",accessibility:"Accessibilité"},mention:"Sauf mention contraire, tout le contenu de ce site est sous",license:"licence etalab-2.0"}},M0={components:L0};function Ri(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ur(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]:{}}),Ur(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Ur(t,...e)}function _u(){return{"en-US":Ur(O0,R0),"fr-FR":Ur(k0,M0)}}const A0=t=>{const e=_u();return y.jsx(ae.CunninghamProvider,{theme:"dsfr",customLocales:e,...t})},Du=({disabled:t,onClick:e})=>y.jsx(ae.Button,{disabled:t,className:"pro-connect-button",onClick:e}),ge=typeof document<"u"?d.useLayoutEffect:()=>{};function _e(t){const e=d.useRef(null);return ge(()=>{e.current=t},[t]),d.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function K0(t){let[e,n]=d.useState(t),r=d.useRef(null),i=_e(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}e===s.value?i():n(s.value)});ge(()=>{r.current&&i()});let o=_e(s=>{r.current=s(e),i()});return[e,o]}const Gr={prefix:String(Math.round(Math.random()*1e10)),current:0},Ou=d.createContext(Gr),F0=d.createContext(!1);let j0=!!(typeof window<"u"&&window.document&&window.document.createElement),Li=new WeakMap;function H0(t=!1){let e=d.useContext(Ou),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 s=Li.get(o);s==null?Li.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==s.state&&(e.current=s.id,Li.delete(o))}n.current=++e.current}return n.current}function z0(t){let e=d.useContext(Ou);e===Gr&&!j0&&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=H0(!!t),r=e===Gr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function B0(t){let e=d.useId(),[n]=d.useState(xn()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Gr.prefix}`;return t||`${r}-${e}`}const V0=typeof d.useId=="function"?B0:z0;function W0(){return!1}function U0(){return!0}function G0(t){return()=>{}}function xn(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(G0,W0,U0):d.useContext(F0)}let q0=!!(typeof window<"u"&&window.document&&window.document.createElement),ht=new Map;function rr(t){let[e,n]=d.useState(t),r=d.useRef(null),i=V0(e),o=d.useCallback(s=>{r.current=s},[]);return q0&&(ht.has(i)&&!ht.get(i).includes(o)?ht.set(i,[...ht.get(i),o]):ht.set(i,[o])),ge(()=>{let s=i;return()=>{ht.delete(s)}},[i]),d.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function Y0(t,e){if(t===e)return t;let n=ht.get(t);if(n)return n.forEach(i=>i(e)),e;let r=ht.get(e);return r?(r.forEach(i=>i(t)),t):e}function Mi(t=[]){let e=rr(),[n,r]=K0(e),i=d.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return ge(i,[e,i,...t]),n}function qn(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Ae=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},yn=t=>t&&"window"in t&&t.window===t?t:Ae(t).defaultView||window;function Iu(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=Iu(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ve(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Iu(t))&&(r&&(r+=" "),r+=e);return r}function be(...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],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=qn(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?e[i]=Ve(o,s):i==="id"&&o&&s?e.id=Y0(o,s):e[i]=s!==void 0?s:o}}return e}function ku(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const Z0=new Set(["id"]),X0=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),J0=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Q0=/^(data-.*)$/;function We(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(Z0.has(s)||n&&X0.has(s)||r&&J0.has(s)||i!=null&&i.has(s)||Q0.test(s))&&(o[s]=t[s]);return o}function $t(t){if(e2())t.focus({preventScroll:!0});else{let e=t2(t);t.focus(),n2(e)}}let hr=null;function e2(){if(hr==null){hr=!1;try{document.createElement("div").focus({get preventScroll(){return hr=!0,!0}})}catch{}}return hr}function t2(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function n2(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function fi(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 fs(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function at(t){let e=null;return()=>(e==null&&(e=t()),e)}const It=at(function(){return fs(/^Mac/i)}),r2=at(function(){return fs(/^iPhone/i)}),Nu=at(function(){return fs(/^iPad/i)||It()&&navigator.maxTouchPoints>1}),hi=at(function(){return r2()||Nu()}),i2=at(function(){return It()||hi()}),Ru=at(function(){return fi(/AppleWebKit/i)&&!o2()}),o2=at(function(){return fi(/Chrome/i)}),Lu=at(function(){return fi(/Android/i)}),s2=at(function(){return fi(/Firefox/i)}),a2=d.createContext({isNative:!0,open:u2,useHref:t=>t});function pi(){return d.useContext(a2)}function kt(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=e;s2()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(It()?o=!0:s=!0);let u=Ru()&&It()&&!Nu()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});kt.isOpening=n,$t(t),t.dispatchEvent(u),kt.isOpening=!1}kt.isOpening=!1;function l2(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 u2(t,e){l2(t,n=>kt(n,e))}function Mu(t){let e=pi();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let rn=new Map,Po=new Set;function ea(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=rn.get(r.target);i||(i=new Set,rn.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=rn.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),rn.delete(r.target)),rn.size===0)){for(let o of Po)o();Po.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ea():document.addEventListener("DOMContentLoaded",ea));function c2(t){requestAnimationFrame(()=>{rn.size===0?t():Po.add(t)})}function Au(){let t=d.useRef(new Map),e=d.useCallback((i,o,s,a)=>{let l=a!=null&&a.once?(...u)=>{t.current.delete(s),s(...u)}:s;t.current.set(s,{type:o,eventTarget:i,fn:l,options:a}),i.addEventListener(o,l,a)},[]),n=d.useCallback((i,o,s,a)=>{var l;let u=((l=t.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,u,a),t.current.delete(s)},[]),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 hs(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=rr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function $n(t){const e=d.useRef(null);return d.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function ta(t,e){const n=d.useRef(!0),r=d.useRef(null);ge(()=>(n.current=!0,()=>{n.current=!1}),[]),ge(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function d2(){return typeof window.ResizeObserver<"u"}function na(t){const{ref:e,box:n,onResize:r}=t;d.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(d2()){const o=new window.ResizeObserver(s=>{s.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 f2(t,e){ge(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Yn(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 Ku(t,e){let n=t;for(Yn(n,e)&&(n=n.parentElement);n&&!Yn(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function h2(t,e){const n=[];for(;t&&t!==document.documentElement;)Yn(t,e)&&n.push(t),t=t.parentElement;return n}let p2=0;const Ai=new Map;function g2(t){let[e,n]=d.useState();return ge(()=>{if(!t)return;let r=Ai.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${p2++}`;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},Ai.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Ai.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function pr(t,e,n,r){let i=_e(n),o=n==null;d.useEffect(()=>{if(o||!t.current)return;let s=t.current;return s.addEventListener(e,i,r),()=>{s.removeEventListener(e,i,r)}},[t,e,r,o,i])}function Fu(t,e){let n=ra(t,e,"left"),r=ra(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,s=t.scrollLeft,a=t.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(t),b=s+parseInt(u,10),h=a+parseInt(l,10),m=b+t.clientWidth,v=h+t.clientHeight,C=parseInt(c,10)||0,w=parseInt(p,10)||0,P=parseInt(f,10)||0,x=parseInt(g,10)||0;n<=s+x?s=n-parseInt(u,10)-x:n+i>m-P&&(s+=n+i-m+P),r<=h+C?a=r-parseInt(l,10)-C:r+o>v-w&&(a+=r+o-v+w),t.scrollLeft=s,t.scrollTop=a}function ra(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 ia(t,e){if(t&&document.contains(t)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=h2(t);for(let u of l)Fu(u,t)}else{var n;let{left:l,top:u}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:c,top:f}=t.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-f)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function _o(t){return t.mozInputSource===0&&t.isTrusted?!0:Lu()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function v2(t){return!Lu()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}const m2="react-aria-clear-focus",y2="react-aria-focus",ju="react-aria-update-activedescendant";function on(t){return It()?t.metaKey:t.ctrlKey}function b2(t,e=!0){let[n,r]=d.useState(!0),i=n&&e;return ge(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Hu(t,i,d.useCallback(()=>r(!1),[])),i}function S2(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 Hu(t,i,d.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Hu(t,e,n){ge(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||Ht.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}function ir(t,e,n){let[r,i]=d.useState(t||e),o=d.useRef(t!==void 0),s=t!==void 0;d.useEffect(()=>{let u=o.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let a=s?t:r,l=d.useCallback((u,...c)=>{let f=(p,...g)=>{n&&(Object.is(a,p)||n(p,...g)),s||(a=p)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...b)=>{let h=u(s?a:g,...b);return f(h,...c),s?g:h})):(s||i(u),f(u,...c))},[s,a,n]);return[a,l]}function Do(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const oa=Symbol("default");function or({values:t,children:e}){for(let[n,r]of t)e=d.createElement(n.Provider,{value:r},e);return e}function bt(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:a}=t;return d.useMemo(()=>{let l,u,c;return typeof e=="function"?l=e({...a,defaultClassName:i}):l=e,typeof n=="function"?u=n({...a,defaultStyle:s||{}}):u=n,typeof r=="function"?c=r({...a,defaultChildren:o}):r==null?c=o:c=r,{className:l??i,style:u||s?{...s,...u}:void 0,children:c??o,"data-rac":""}},[e,n,r,i,o,s,a])}function ps(t,e){let n=d.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(o=>`"${o}"`));if(!e&&!n.slots[oa])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=e||oa;if(!n.slots[i])throw new Error(`Invalid slot "${e}". Valid slot names are ${r}.`);return n.slots[i]}return n}function sr(t,e,n){let r=ps(n,t.slot)||{},{ref:i,...o}=r,s=$n(d.useMemo(()=>ku(e,i),[e,i])),a=be(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?a.style=l=>{let u=typeof o.style=="function"?o.style(l):o.style,c={...l.defaultStyle,...u},f=typeof t.style=="function"?t.style({...l,defaultStyle:c}):t.style;return{...c,...f}}:a.style={...o.style,...t.style}),[a,s]}function C2(){let[t,e]=d.useState(!0),n=d.useRef(!1),r=d.useCallback(i=>{n.current=!0,e(!!i)},[]);return ge(()=>{n.current||e(!1)},[]),[r,t]}class gs{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new gs(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=n}}class vs{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new vs,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),s=null;for(let a of this.getChildren(i.key))if(e(a.textValue)||a.type==="header"){let l=a.clone();s==null&&(o.firstChildKey=l.key),n.firstKey==null&&(n.firstKey=o.key),s&&s.parentKey===l.parentKey?(s.nextKey=l.key,l.prevKey=s.key):l.prevKey=null,l.nextKey=null,n.addNode(l),s=l}s&&(s.type!=="header"?(o.lastChildKey=s.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(s.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,n.addNode(o))}else if(e(i.textValue)){let o=i.clone();n.firstKey==null&&(n.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,n.addNode(o),r=o}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=n.getItem(r.prevKey),i.nextKey=null),n.removeNode(r.key),r=i}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class zu{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let n=e.nextSibling;for(;n;)n.index--,n=n.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class Zn extends zu{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Zn?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,n,r,i;let o=this.ownerDocument.getMutableNode(this);o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof Zn?this.parentNode.node.key:null;var s;o.prevKey=(s=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&s!==void 0?s:null;var a;o.nextKey=(a=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var l;o.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var u;o.lastChildKey=(u=(i=this.lastChild)===null||i===void 0?void 0:i.node.key)!==null&&u!==void 0?u:null}setProps(e,n,r,i){let o=this.ownerDocument.getMutableNode(this),{value:s,textValue:a,id:l,...u}=e;if(u.ref=n,o.props=u,o.rendered=r,o.render=i,o.value=s,o.textValue=a||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",l!=null&&l!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=l}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new gs(e,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class w2 extends zu{get isConnected(){return this.isMounted}createElement(e){return new Zn(e,this)}getMutableNode(e){let n=e.node;return this.mutatedNodes.has(e)||(n=e.node.clone(),this.mutatedNodes.add(e),e.node=n),this.markDirty(e),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let n=this.getMutableCollection();if(!n.getItem(e.node.key)){n.addNode(e.node);for(let r of e)this.addNode(r)}this.markDirty(e)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof Zn&&o.isConnected&&o.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,n;let o=this.getMutableCollection();for(let s of this.mutatedNodes)s.isConnected&&o.addNode(s.node);var r,i;o.commit((r=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function Bu(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,s=d.useMemo(()=>new WeakMap,o);return d.useMemo(()=>{if(n&&typeof e=="function"){let u=[];for(let c of n){let f=s.get(c);if(!f){f=e(c);var a,l;let p=(l=(a=f.props.id)!==null&&a!==void 0?a:c.key)!==null&&l!==void 0?l:c.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=d.cloneElement(f,i?{key:p,id:p,value:c}:{key:p}),s.set(c,f)}u.push(f)}return u}else if(typeof e!="function")return e},[e,n,s,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 qr=d.createContext(!1),E2=typeof DocumentFragment<"u"?new DocumentFragment:null;function x2(t){let e=d.useContext(qr),n=xn();if(e)return d.createElement(d.Fragment,null,t.children);let r=d.createElement(qr.Provider,{value:!0},t.children);return n?d.createElement("template",{"data-react-aria-hidden":!0},r):Ht.createPortal(r,E2)}function $2(t){let e=(n,r)=>d.useContext(qr)?null:t(n,r);return e.displayName=t.displayName||t.name,d.forwardRef(e)}function T2(){return d.useContext(qr)}const P2=typeof document<"u"?d.useLayoutEffect:()=>{};var gr={exports:{}},Ki={};/**
31
+ Check the top-level render call using <`+_+">."),Y}var S=c,D=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),A=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),H=Symbol.iterator,O=Symbol.for("react.client.reference"),q=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,U=Object.assign,N=Symbol.for("react.client.reference"),M=Array.isArray,z=0,j,W,G,R,Z,J,de;r.__reactDisabledLog=!0;var ce,oe,me=!1,re=new(typeof WeakMap=="function"?WeakMap:Map),Je=Symbol.for("react.client.reference"),yt,be={},rr={},Fr={};lr.Fragment=T,lr.jsx=function(_,Y,X,ie,Ce){return $(_,Y,X,!1,ie,Ce)},lr.jsxs=function(_,Y,X,ie,Ce){return $(_,Y,X,!0,ie,Ce)}}()),lr}var gs;function Np(){return gs||(gs=1,process.env.NODE_ENV==="production"?Hr.exports=Lp():Hr.exports=Mp()),Hr.exports}var w=Np();const Rp={alert:{close_aria_label:"Delete alert",expand_aria_label:"Expand alert",shrink_aria_label:"Shrink alert"},pagination:{goto_label:"Go to page",goto_label_aria:"Go to any page",next_aria:"Go to next page",previous_aria:"Go to previous page",goto_page_aria:"Go to page {page}",current_page_aria:"You are currently on page {page}"},datagrid:{empty:"This table is empty",empty_alt:"Illustration of an empty table",loader_aria:"Loading data",rows_selection_aria:"All rows selection",row_selection_aria:"Row selection"},provider:{test:"This is a test: {name}"},forms:{input:{password:{show_password:"Show password",hide_password:"Hide password"}},select:{toggle_button_aria_label:"Toggle dropdown",clear_button_aria_label:"Clear selection",clear_all_button_aria_label:"Clear all selections",menu_empty_placeholder:"No options available"},file_uploader:{delete_file_name:"Delete file {name}",delete_file:"Delete file",uploading:"Uploading...",caption:"Drag and drop or ",browse_files:"Browse files"},date_picker:{toggle_button_aria_label_open:"Open calendar",toggle_button_aria_label_close:"Close calendar",clear_button_aria_label:"Clear date",next_month_button_aria_label:"Next month",next_year_button_aria_label:"Next year",previous_month_button_aria_label:"Previous month",previous_year_button_aria_label:"Previous year",year_select_button_aria_label:"Select a year",month_select_button_aria_label:"Select a month"}},modals:{helpers:{delete_confirmation:{title:"Are you sure?",children:"Are you sure to delete this item?",cancel:"Cancel",delete:"Delete"},confirmation:{title:"Are you sure?",children:"Are you sure you want to do that?",cancel:"Cancel",yes:"Yes"},disclaimer:{title:"Disclaimer",children:"This is a disclaimer",ok:"Ok"}}}},Ap={components:Rp},Kp={alert:{close_aria_label:"Supprimer l'alerte",expand_aria_label:"Ouvrir l'alerte",shrink_aria_label:"Fermer l'alerte"},pagination:{goto_label:"Aller à",goto_label_aria:"Aller à la page",next_aria:"Aller à la page suivante",previous_aria:"Aller à la page précédente",goto_page_aria:"Aller à la page {page}",current_page_aria:"Vous êtes actuellement sur la page {page}"},datagrid:{empty:"Ce tableau est vide",empty_alt:"Illustration d'un tableau vide",loader_aria:"Loading data"},provider:{test:"Ceci est un test : {name}"},forms:{select:{toggle_button_aria_label:"Ouvrir le menu",clear_button_aria_label:"Effacer la sélection",clear_all_button_aria_label:"Effacer toutes les sélections",menu_empty_placeholder:"Aucun choix disponible"},file_uploader:{delete_file_name:"Supprimer le fichier {name}",delete_file:"Supprimer le fichier",uploading:"Upload en cours ...",caption:"Glisser-déposer ou ",browse_files:"Parcourir"},date_picker:{toggle_button_aria_label_open:"Ouvrir le calendrier",toggle_button_aria_label_close:"Fermer le calendrier",clear_button_aria_label:"Effacer la date",next_month_button_aria_label:"Mois suivant",next_year_button_aria_label:"Année suivante",previous_month_button_aria_label:"Mois précédent",previous_year_button_aria_label:"Année précédente",year_select_button_aria_label:"Sélectionner une année",month_select_button_aria_label:"Sélectionner un mois"}}},Fp={components:Kp},jp={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",access:{delete:"Remove access"},invitations:{title:"Pending invitations"},members:{title:"Members",title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},item:{add:"Add"}},footer:{links:{legal:"Legal mentions",personal_data:"Personal data and cookies",accessibility:"Accessibility"},mention:"Unless otherwise stated, all content on this site is under the",license:"etalab-2.0 license"}},Hp={components:jp},zp={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},invitations:{title:"Invitations en attente"},members:{title_plural:"Partagé entre {count} personnes",title_singular:"Partagé entre {count} personne",load_more:"Afficher plus"},item:{add:"Ajouter"},search:{placeholder:"Rechercher un utilisateur",group_name:"Résultat de la recherche d'utilisateur"},user:{no_result:"Aucun résultat",placeholder:"Rechercher un utilisateur"}},footer:{links:{legal:"Mentions Légales",personal_data:"Données personnelles et cookies",accessibility:"Accessibilité"},mention:"Sauf mention contraire, tout le contenu de ce site est sous",license:"licence etalab-2.0"}},Bp={components:zp};function Eo(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ti(t,...e){if(!e.length)return t;const n=e.shift();if(Eo(t)&&Eo(n))for(const r in n)Eo(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Ti(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Ti(t,...e)}function fd(){return{"en-US":Ti(Ap,Hp),"fr-FR":Ti(Fp,Bp)}}const Vp=t=>{const e=fd();return w.jsx(se.CunninghamProvider,{theme:"dsfr",customLocales:e,...t})},hd=({disabled:t,onClick:e})=>w.jsx(se.Button,{disabled:t,className:"pro-connect-button",onClick:e}),pe=typeof document<"u"?c.useLayoutEffect:()=>{};function ye(t){const e=c.useRef(null);return pe(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Up(t){let[e,n]=c.useState(t),r=c.useRef(null),i=ye(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});pe(()=>{r.current&&i()});let o=ye(l=>{r.current=l(e),i()});return[e,o]}const Di={prefix:String(Math.round(Math.random()*1e10)),current:0},pd=c.createContext(Di),Wp=c.createContext(!1);let Gp=!!(typeof window<"u"&&window.document&&window.document.createElement),xo=new WeakMap;function qp(t=!1){let e=c.useContext(pd),n=c.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=xo.get(o);l==null?xo.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,xo.delete(o))}n.current=++e.current}return n.current}function Yp(t){let e=c.useContext(pd);e===Di&&!Gp&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=qp(!!t),r=e===Di&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function Xp(t){let e=c.useId(),[n]=c.useState(un()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Di.prefix}`;return t||`${r}-${e}`}const gd=typeof c.useId=="function"?Xp:Yp;function Zp(){return!1}function Jp(){return!0}function Qp(t){return()=>{}}function un(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(Qp,Zp,Jp):c.useContext(Wp)}let eg=!!(typeof window<"u"&&window.document&&window.document.createElement),xt=new Map;function Be(t){let[e,n]=c.useState(t),r=c.useRef(null),i=gd(e),o=c.useCallback(l=>{r.current=l},[]);return eg&&(xt.has(i)&&!xt.get(i).includes(o)?xt.set(i,[...xt.get(i),o]):xt.set(i,[o])),pe(()=>{let l=i;return()=>{xt.delete(l)}},[i]),c.useEffect(()=>{let l=r.current;l&&(r.current=null,n(l))}),i}function tg(t,e){if(t===e)return t;let n=xt.get(t);if(n)return n.forEach(i=>i(e)),e;let r=xt.get(e);return r?(r.forEach(i=>i(t)),t):e}function Sr(t=[]){let e=Be(),[n,r]=Up(e),i=c.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return pe(i,[e,i,...t]),n}function Un(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const He=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Wn=t=>t&&"window"in t&&t.window===t?t:He(t).defaultView||window;function vd(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=vd(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Te(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=vd(t))&&(r&&(r+=" "),r+=e);return r}function ae(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Un(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Te(o,l):i==="id"&&o&&l?e.id=tg(o,l):e[i]=l!==void 0?l:o}}return e}function ma(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const ng=new Set(["id"]),rg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ig=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),og=/^(data-.*)$/;function Se(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(ng.has(l)||n&&rg.has(l)||r&&ig.has(l)||i!=null&&i.has(l)||og.test(l))&&(o[l]=t[l]);return o}function zt(t){if(lg())t.focus({preventScroll:!0});else{let e=ag(t);t.focus(),sg(e)}}let zr=null;function lg(){if(zr==null){zr=!1;try{document.createElement("div").focus({get preventScroll(){return zr=!0,!0}})}catch{}}return zr}function ag(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function sg(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function Yi(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function ba(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function gt(t){let e=null;return()=>(e==null&&(e=t()),e)}const Yt=gt(function(){return ba(/^Mac/i)}),ug=gt(function(){return ba(/^iPhone/i)}),md=gt(function(){return ba(/^iPad/i)||Yt()&&navigator.maxTouchPoints>1}),Xi=gt(function(){return ug()||md()}),cg=gt(function(){return Yt()||Xi()}),bd=gt(function(){return Yi(/AppleWebKit/i)&&!dg()}),dg=gt(function(){return Yi(/Chrome/i)}),yd=gt(function(){return Yi(/Android/i)}),fg=gt(function(){return Yi(/Firefox/i)}),hg=c.createContext({isNative:!0,open:gg,useHref:t=>t});function Zi(){return c.useContext(hg)}function Xt(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;fg()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(Yt()?o=!0:l=!0);let u=bd()&&Yt()&&!md()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});Xt.isOpening=n,zt(t),t.dispatchEvent(u),Xt.isOpening=!1}Xt.isOpening=!1;function pg(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function gg(t,e){pg(t,n=>Xt(n,e))}function $d(t){let e=Zi();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let Dn=new Map,wl=new Set;function vs(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=Dn.get(r.target);i||(i=new Set,Dn.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=Dn.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Dn.delete(r.target)),Dn.size===0)){for(let o of wl)o();wl.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?vs():document.addEventListener("DOMContentLoaded",vs));function vg(t){requestAnimationFrame(()=>{Dn.size===0?t():wl.add(t)})}function Sd(){let t=c.useRef(new Map),e=c.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...u)=>{t.current.delete(l),l(...u)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=c.useCallback((i,o,l,a)=>{var s;let u=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,u,a),t.current.delete(l)},[]),r=c.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ji(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Be(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function vt(t){const e=c.useRef(null);return c.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function ms(t,e){const n=c.useRef(!0),r=c.useRef(null);pe(()=>(n.current=!0,()=>{n.current=!1}),[]),pe(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function mg(){return typeof window.ResizeObserver<"u"}function Cl(t){const{ref:e,box:n,onResize:r}=t;c.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(mg()){const o=new window.ResizeObserver(l=>{l.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,n])}function bg(t,e){pe(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Pr(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function wd(t,e){let n=t;for(Pr(n,e)&&(n=n.parentElement);n&&!Pr(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function yg(t,e){const n=[];for(;t&&t!==document.documentElement;)Pr(t,e)&&n.push(t),t=t.parentElement;return n}let $g=0;const Po=new Map;function Sg(t){let[e,n]=c.useState();return pe(()=>{if(!t)return;let r=Po.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${$g++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Po.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Po.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Br(t,e,n,r){let i=ye(n),o=n==null;c.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o,i])}function Cd(t,e){let n=bs(t,e,"left"),r=bs(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:v,scrollPaddingLeft:g}=getComputedStyle(t),$=l+parseInt(u,10),p=a+parseInt(s,10),b=$+t.clientWidth,m=p+t.clientHeight,C=parseInt(d,10)||0,S=parseInt(v,10)||0,D=parseInt(f,10)||0,x=parseInt(g,10)||0;n<=l+x?l=n-parseInt(u,10)-x:n+i>b-D&&(l+=n+i-b+D),r<=p+C?a=r-parseInt(s,10)-C:r+o>m-S&&(a+=r+o-m+S),t.scrollLeft=l,t.scrollTop=a}function bs(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[r];break}e=e.offsetParent}return i}function ys(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=yg(t);for(let u of s)Cd(u,t)}else{var n;let{left:s,top:u}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(u-f)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function El(t){return t.mozInputSource===0&&t.isTrusted?!0:yd()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function wg(t){return!yd()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Cg(t,e,n){let r=c.useRef(e),i=ye(()=>{n&&n(r.current)});c.useEffect(()=>{var o;let l=t==null||(o=t.current)===null||o===void 0?void 0:o.form;return l==null||l.addEventListener("reset",i),()=>{l==null||l.removeEventListener("reset",i)}},[t,i])}const Eg="react-aria-clear-focus",xg="react-aria-focus",Ed="react-aria-update-activedescendant";function In(t){return Yt()?t.metaKey:t.ctrlKey}function Pg(t,e=!0){let[n,r]=c.useState(!0),i=n&&e;return pe(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),xd(t,i,c.useCallback(()=>r(!1),[])),i}function Tg(t,e){let[n,r]=c.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return xd(t,i,c.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function xd(t,e,n){pe(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||Nt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}function Mr(t,e,n){let[r,i]=c.useState(t||e),o=c.useRef(t!==void 0),l=t!==void 0;c.useEffect(()=>{let u=o.current;u!==l&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=c.useCallback((u,...d)=>{let f=(v,...g)=>{n&&(Object.is(a,v)||n(v,...g)),l||(a=v)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...$)=>{let p=u(l?a:g,...$);return f(p,...d),l?g:p})):(l||i(u),f(u,...d))},[l,a,n]);return[a,s]}function xl(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const $s=Symbol("default");function Rt({values:t,children:e}){for(let[n,r]of t)e=c.createElement(n.Provider,{value:r},e);return e}function _e(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a}=t;return c.useMemo(()=>{let s,u,d;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?u=n({...a,defaultStyle:l||{}}):u=n,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:s??i,style:u||l?{...l,...u}:void 0,children:d??o,"data-rac":""}},[e,n,r,i,o,l,a])}function Qi(t,e){let n=c.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(o=>`"${o}"`));if(!e&&!n.slots[$s])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=e||$s;if(!n.slots[i])throw new Error(`Invalid slot "${e}". Valid slot names are ${r}.`);return n.slots[i]}return n}function mt(t,e,n){let r=Qi(n,t.slot)||{},{ref:i,...o}=r,l=vt(c.useMemo(()=>ma(e,i),[e,i])),a=ae(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?a.style=s=>{let u=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...u},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:a.style={...o.style,...t.style}),[a,l]}function ya(){let[t,e]=c.useState(!0),n=c.useRef(!1),r=c.useCallback(i=>{n.current=!0,e(!!i)},[]);return pe(()=>{n.current||e(!1)},[]),[r,t]}function Dg(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class $a{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new $a(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=n}}class Sa{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new Sa,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),l=null;for(let a of this.getChildren(i.key))if(e(a.textValue)||a.type==="header"){let s=a.clone();l==null&&(o.firstChildKey=s.key),n.firstKey==null&&(n.firstKey=o.key),l&&l.parentKey===s.parentKey?(l.nextKey=s.key,s.prevKey=l.key):s.prevKey=null,s.nextKey=null,n.addNode(s),l=s}l&&(l.type!=="header"?(o.lastChildKey=l.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,n.addNode(o)):(n.firstKey===o.key&&(n.firstKey=null),n.removeNode(l.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,n.addNode(o))}else if(e(i.textValue)){let o=i.clone();n.firstKey==null&&(n.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,n.addNode(o),r=o}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=n.getItem(r.prevKey),i.nextKey=null),n.removeNode(r.key),r=i}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class Pd{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let n=e.nextSibling;for(;n;)n.index--,n=n.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class Tr extends Pd{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Tr?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,n,r,i;let o=this.ownerDocument.getMutableNode(this);o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof Tr?this.parentNode.node.key:null;var l;o.prevKey=(l=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var a;o.nextKey=(a=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null;var u;o.lastChildKey=(u=(i=this.lastChild)===null||i===void 0?void 0:i.node.key)!==null&&u!==void 0?u:null}setProps(e,n,r,i){let o=this.ownerDocument.getMutableNode(this),{value:l,textValue:a,id:s,...u}=e;if(u.ref=n,o.props=u,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new $a(e,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class Ig extends Pd{get isConnected(){return this.isMounted}createElement(e){return new Tr(e,this)}getMutableNode(e){let n=e.node;return this.mutatedNodes.has(e)||(n=e.node.clone(),this.mutatedNodes.add(e),e.node=n),this.markDirty(e),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let n=this.getMutableCollection();if(!n.getItem(e.node.key)){n.addNode(e.node);for(let r of e)this.addNode(r)}this.markDirty(e)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof Tr&&o.isConnected&&o.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,n;let o=this.getMutableCollection();for(let l of this.mutatedNodes)l.isConnected&&o.addNode(l.node);var r,i;o.commit((r=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function Td(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(n&&typeof e=="function"){let u=[];for(let d of n){let f=l.get(d);if(!f){f=e(d);var a,s;let v=(s=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&s!==void 0?s:d.id;if(v==null)throw new Error("Could not determine key for item");r&&(v=r+":"+v),f=c.cloneElement(f,i?{key:v,id:v,value:d}:{key:v}),l.set(d,f)}u.push(f)}return u}else if(typeof e!="function")return e},[e,n,l,r,i])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Ii=c.createContext(!1),Og=typeof DocumentFragment<"u"?new DocumentFragment:null;function _g(t){let e=c.useContext(Ii),n=un();if(e)return c.createElement(c.Fragment,null,t.children);let r=c.createElement(Ii.Provider,{value:!0},t.children);return n?c.createElement("template",{"data-react-aria-hidden":!0},r):Nt.createPortal(r,Og)}function wa(t){let e=(n,r)=>c.useContext(Ii)?null:t(n,r);return e.displayName=t.displayName||t.name,c.forwardRef(e)}function kg(){return c.useContext(Ii)}const Lg=typeof document<"u"?c.useLayoutEffect:()=>{};var Vr={exports:{}},To={};/**
32
32
  * @license React
33
33
  * use-sync-external-store-shim.production.js
34
34
  *
@@ -36,7 +36,7 @@ Check the top-level render call using <`+$+">."),q}var w=d,P=Symbol.for("react.t
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var sa;function _2(){if(sa)return Ki;sa=1;var t=d;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function a(f,p){var g=p(),b=r({inst:{value:g,getSnapshot:p}}),h=b[0].inst,m=b[1];return o(function(){h.value=g,h.getSnapshot=p,l(h)&&m({inst:h})},[f,g,p]),i(function(){return l(h)&&m({inst:h}),f(function(){l(h)&&m({inst:h})})},[f]),s(g),g}function l(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!n(f,g)}catch{return!0}}function u(f,p){return p()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Ki.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:c,Ki}var Fi={};/**
39
+ */var Ss;function Mg(){if(Ss)return To;Ss=1;var t=c;function e(f,v){return f===v&&(f!==0||1/f===1/v)||f!==f&&v!==v}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function a(f,v){var g=v(),$=r({inst:{value:g,getSnapshot:v}}),p=$[0].inst,b=$[1];return o(function(){p.value=g,p.getSnapshot=v,s(p)&&b({inst:p})},[f,g,v]),i(function(){return s(p)&&b({inst:p}),f(function(){s(p)&&b({inst:p})})},[f]),l(g),g}function s(f){var v=f.getSnapshot;f=f.value;try{var g=v();return!n(f,g)}catch{return!0}}function u(f,v){return v()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return To.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,To}var Do={};/**
40
40
  * @license React
41
41
  * use-sync-external-store-shim.development.js
42
42
  *
@@ -44,59 +44,59 @@ Check the top-level render call using <`+$+">."),q}var w=d,P=Symbol.for("react.t
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var aa;function D2(){return aa||(aa=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){c||i.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=b();if(!f){var m=b();o(h,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}m=s({inst:{value:h,getSnapshot:b}});var v=m[0].inst,C=m[1];return l(function(){v.value=h,v.getSnapshot=b,n(v)&&C({inst:v})},[g,h,b]),a(function(){return n(v)&&C({inst:v}),g(function(){n(v)&&C({inst:v})})},[g]),u(h),h}function n(g){var b=g.getSnapshot;g=g.value;try{var h=b();return!o(g,h)}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,s=i.useState,a=i.useEffect,l=i.useLayoutEffect,u=i.useDebugValue,c=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Fi.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Fi}var la;function O2(){return la||(la=1,process.env.NODE_ENV==="production"?gr.exports=_2():gr.exports=D2()),gr.exports}var ms=O2();const Vu=d.createContext(!1),Xn=d.createContext(null);function Wu(t){if(d.useContext(Xn))return t.content;let{collection:n,document:r}=R2(t.createCollection);return d.createElement(d.Fragment,null,d.createElement(x2,null,d.createElement(Xn.Provider,{value:r},t.content)),d.createElement(I2,{render:t.children,collection:n}))}function I2({collection:t,render:e}){return e(t)}function k2(t,e,n){let r=xn(),i=d.useRef(r);i.current=r;let o=d.useCallback(()=>i.current?n():e(),[e,n]);return ms.useSyncExternalStore(t,o)}const N2=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:k2;function R2(t){let[e]=d.useState(()=>new w2((t==null?void 0:t())||new vs)),n=d.useCallback(s=>e.subscribe(s),[e]),r=d.useCallback(()=>{let s=e.getCollection();return e.isSSR&&e.resetAfterSSR(),s},[e]),i=d.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=N2(n,r,i);return P2(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Oo=d.createContext(null);function L2(t,e,n,r,i,o){let s=d.useCallback(l=>{l==null||l.setProps(e,n,r,o)},[e,n,r,o]),a=d.useContext(Oo);if(a){let l=a.ownerDocument.nodesByProps.get(e);return l||(l=a.ownerDocument.createElement(t),l.setProps(e,n,r,o),a.appendChild(l),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,l)),i?d.createElement(Oo.Provider,{value:l},i):null}return d.createElement(t,{ref:s},i)}function ys(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=d.forwardRef((i,o)=>{if(!d.useContext(Vu)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return L2(t,i,o,"children"in i?i.children:null,null,a=>d.createElement(n,{node:a}))});return r.displayName=e.name,r}function M2(t){return Bu({...t,addIdAndValue:!0})}const ua=d.createContext(null);function Uu(t){let e=d.useContext(ua),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=M2({...t,idScope:r,dependencies:n});return d.useContext(Xn)&&(i=d.createElement(A2,null,i)),e=d.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),d.createElement(ua.Provider,{value:e},i)}function A2({children:t}){let e=d.useContext(Xn),n=d.useMemo(()=>d.createElement(Xn.Provider,{value:null},d.createElement(Vu.Provider,{value:!0},t)),[t]);return xn()?d.createElement(Oo.Provider,{value:e},n):Ht.createPortal(n,e)}const De=typeof document<"u"?d.useLayoutEffect:()=>{};function K2(t){const e=d.useRef(null);return De(()=>{e.current=t},[t]),d.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}const ye=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},vt=t=>t&&"window"in t&&t.window===t?t:ye(t).defaultView||window;function ca(t){if(F2())t.focus({preventScroll:!0});else{let e=j2(t);t.focus(),H2(e)}}let vr=null;function F2(){if(vr==null){vr=!1;try{document.createElement("div").focus({get preventScroll(){return vr=!0,!0}})}catch{}}return vr}function j2(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 H2(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function Gu(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 z2(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 bs(t){let e=null;return()=>(e==null&&(e=t()),e)}const B2=bs(function(){return z2(/^Mac/i)}),V2=bs(function(){return Gu(/Chrome/i)}),qu=bs(function(){return Gu(/Android/i)});let sn=new Map,Io=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=sn.get(r.target);i||(i=new Set,sn.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=sn.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),sn.delete(r.target)),sn.size===0)){for(let o of Io)o();Io.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?da():document.addEventListener("DOMContentLoaded",da));function W2(t){requestAnimationFrame(()=>{sn.size===0?t():Io.add(t)})}function U2(t){return t.mozInputSource===0&&t.isTrusted?!0:qu()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function G2(t,e){return e.get?e.get.call(t):e.value}function Yu(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function q2(t,e){var n=Yu(t,e,"get");return G2(t,n)}function Y2(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Z2(t,e,n){Y2(t,e),e.set(t,n)}function X2(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 fa(t,e,n){var r=Yu(t,e,"set");return X2(t,r,n),n}let J2=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}};function Zu(t){let e=d.useRef({isFocused:!1,observer:null});De(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=K2(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=s=>{e.current.isFocused=!1,i.disabled&&n(new J2("blur",s)),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 s;(s=e.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Q2(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=d.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=Zu(o),a=d.useCallback(l=>{const u=ye(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}let Tn=null,ko=new Set,Wn=new Map,Nt=!1,No=!1;const eh={Tab:!0,Escape:!0};function Ss(t,e){for(let n of ko)n(t,e)}function th(t){return!(t.metaKey||!B2()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Yr(t){Nt=!0,th(t)&&(Tn="keyboard",Ss("keyboard",t))}function Re(t){Tn="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Nt=!0,Ss("pointer",t))}function Xu(t){U2(t)&&(Nt=!0,Tn="virtual")}function Ju(t){t.target===window||t.target===document||(!Nt&&!No&&(Tn="virtual",Ss("virtual",t)),Nt=!1,No=!1)}function Qu(){Nt=!1,No=!0}function Ro(t){if(typeof window>"u"||Wn.get(vt(t)))return;const e=vt(t),n=ye(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Nt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Yr,!0),n.addEventListener("keyup",Yr,!0),n.addEventListener("click",Xu,!0),e.addEventListener("focus",Ju,!0),e.addEventListener("blur",Qu,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Re,!0),n.addEventListener("pointermove",Re,!0),n.addEventListener("pointerup",Re,!0)):(n.addEventListener("mousedown",Re,!0),n.addEventListener("mousemove",Re,!0),n.addEventListener("mouseup",Re,!0)),e.addEventListener("beforeunload",()=>{ec(t)},{once:!0}),Wn.set(e,{focus:r})}const ec=(t,e)=>{const n=vt(t),r=ye(t);e&&r.removeEventListener("DOMContentLoaded",e),Wn.has(n)&&(n.HTMLElement.prototype.focus=Wn.get(n).focus,r.removeEventListener("keydown",Yr,!0),r.removeEventListener("keyup",Yr,!0),r.removeEventListener("click",Xu,!0),n.removeEventListener("focus",Ju,!0),n.removeEventListener("blur",Qu,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Re,!0),r.removeEventListener("pointermove",Re,!0),r.removeEventListener("pointerup",Re,!0)):(r.removeEventListener("mousedown",Re,!0),r.removeEventListener("mousemove",Re,!0),r.removeEventListener("mouseup",Re,!0)),Wn.delete(n))};function nh(t){const e=ye(t);let n;return e.readyState!=="loading"?Ro(t):(n=()=>{Ro(t)},e.addEventListener("DOMContentLoaded",n)),()=>ec(t,n)}typeof document<"u"&&nh();function tc(){return Tn!=="pointer"}function nc(){return Tn}const rh=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ih(t,e,n){var r;const i=typeof window<"u"?vt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?vt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?vt(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?vt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||(n==null?void 0:n.target)instanceof i&&!rh.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(t&&e==="keyboard"&&n instanceof a&&!eh[n.key])}function oh(t,e,n){Ro(),d.useEffect(()=>{let r=(i,o)=>{ih(!!(n!=null&&n.isTextInput),i,o)&&t(tc())};return ko.add(r),()=>{ko.delete(r)}},e)}function sh(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=d.useRef({isFocusWithin:!1}),s=d.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Zu(s),l=d.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}function Zr(t){const e=ye(t);if(nc()==="virtual"){let n=e.activeElement;W2(()=>{e.activeElement===n&&t.isConnected&&ca(t)})}else ca(t)}function ah(t){const e=vt(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:s,visibility:a}=o(t);i=s!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function lh(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 rc(t,e){return t.nodeName!=="#comment"&&ah(t)&&lh(t,e)&&(!t.parentElement||rc(t.parentElement,t))}const ha=d.createContext(null),Lo="react-aria-focus-scope-restore";let se=null;function ic(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=d.useRef(null),s=d.useRef(null),a=d.useRef([]),{parentNode:l}=d.useContext(ha)||{},u=d.useMemo(()=>new Ao({scopeRef:a}),[a]);De(()=>{let p=l||ce.root;if(ce.getTreeNode(p.scopeRef)&&se&&!Xr(se,p.scopeRef)){let g=ce.getTreeNode(se);g&&(p=g)}p.addChild(u),ce.addNode(u)},[u,l]),De(()=>{let p=ce.getTreeNode(a);p&&(p.contain=!!n)},[n]),De(()=>{var p;let g=(p=o.current)===null||p===void 0?void 0:p.nextSibling,b=[],h=m=>m.stopPropagation();for(;g&&g!==s.current;)b.push(g),g.addEventListener(Lo,h),g=g.nextSibling;return a.current=b,()=>{for(let m of b)m.removeEventListener(Lo,h)}},[e]),gh(a,r,n),fh(a,n),vh(a,r,n),ph(a,i),d.useEffect(()=>{const p=ye(a.current?a.current[0]:void 0).activeElement;let g=null;if(Fe(p,a.current)){for(let b of ce.traverse())b.scopeRef&&Fe(p,b.scopeRef.current)&&(g=b);g===ce.getTreeNode(a)&&(se=g.scopeRef)}},[a]),De(()=>()=>{var p,g,b;let h=(b=(g=ce.getTreeNode(a))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(a===se||Xr(a,se))&&(!h||ce.getTreeNode(h))&&(se=h),ce.removeTreeNode(a)},[a]);let c=d.useMemo(()=>uh(a),[]),f=d.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return d.createElement(ha.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:s}))}function uh(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:s}=e,a=r||ye(n[0]).activeElement,l=n[0].previousElementSibling,u=Tt(n),c=Ze(u,{tabbable:i,accept:s},n);c.currentNode=Fe(a,n)?a:l;let f=c.nextNode();return!f&&o&&(c.currentNode=l,f=c.nextNode()),f&&ot(f,!0),f},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:s}=e,a=r||ye(n[0]).activeElement,l=n[n.length-1].nextElementSibling,u=Tt(n),c=Ze(u,{tabbable:i,accept:s},n);c.currentNode=Fe(a,n)?a:l;let f=c.previousNode();return!f&&o&&(c.currentNode=l,f=c.previousNode()),f&&ot(f,!0),f},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Tt(n),s=Ze(o,{tabbable:r,accept:i},n);s.currentNode=n[0].previousElementSibling;let a=s.nextNode();return a&&ot(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Tt(n),s=Ze(o,{tabbable:r,accept:i},n);s.currentNode=n[n.length-1].nextElementSibling;let a=s.previousNode();return a&&ot(a,!0),a}}}const Cs=["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"])'],ch=Cs.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Cs.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const dh=Cs.join(':not([hidden]):not([tabindex="-1"]),');function Tt(t){return t[0].parentElement}function Fn(t){let e=ce.getTreeNode(se);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function fh(t,e){let n=d.useRef(void 0),r=d.useRef(void 0);De(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=ye(i?i[0]:void 0);let s=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Fn(t)||u.isComposing)return;let c=o.activeElement,f=t.current;if(!f||!Fe(c,f))return;let p=Tt(f),g=Ze(p,{tabbable:!0},f);if(!c)return;g.currentNode=c;let b=u.shiftKey?g.previousNode():g.nextNode();b||(g.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),b&&ot(b,!0)},a=u=>{(!se||Xr(se,t))&&Fe(u.target,t.current)?(se=t,n.current=u.target):Fn(t)&&!mt(u.target,t)?n.current?n.current.focus():se&&se.current&&Mo(se.current):Fn(t)&&(n.current=u.target)},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=nc();if(!((c==="virtual"||c===null)&&qu()&&V2())&&o.activeElement&&Fn(t)&&!mt(o.activeElement,t))if(se=t,o.body.contains(u.target)){var p;n.current=u.target,(p=n.current)===null||p===void 0||p.focus()}else se.current&&Mo(se.current)})};return o.addEventListener("keydown",s,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{o.removeEventListener("keydown",s,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",l,!1))}},[t,e]),De(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function oc(t){return mt(t)}function Fe(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function mt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ce.traverse(ce.getTreeNode(e)))if(n&&Fe(t,n.current))return!0;return!1}function hh(t){return mt(t,se)}function Xr(t,e){var n;let r=(n=ce.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function ot(t,e=!1){if(t!=null&&!e)try{Zr(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function sc(t,e=!0){let n=t[0].previousElementSibling,r=Tt(t),i=Ze(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Tt(t),i=Ze(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Mo(t,e=!0){ot(sc(t,e))}function ph(t,e){const n=d.useRef(e);d.useEffect(()=>{if(n.current){se=t;const r=ye(t.current?t.current[0]:void 0);!Fe(r.activeElement,se.current)&&t.current&&Mo(t.current)}n.current=!1},[t])}function gh(t,e,n){De(()=>{if(e||n)return;let r=t.current;const i=ye(r?r[0]:void 0);let o=s=>{let a=s.target;Fe(a,t.current)?se=t:oc(a)||(se=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(s=>s.removeEventListener("focusin",o,!1))}},[t,e,n])}function pa(t){let e=ce.getTreeNode(se);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function vh(t,e,n){const r=d.useRef(typeof document<"u"?ye(t.current?t.current[0]:void 0).activeElement:null);De(()=>{let i=t.current;const o=ye(i?i[0]:void 0);if(!e||n)return;let s=()=>{(!se||Xr(se,t))&&Fe(o.activeElement,t.current)&&(se=t)};return o.addEventListener("focusin",s,!1),i==null||i.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",s,!1))}},[t,n]),De(()=>{const i=ye(t.current?t.current[0]:void 0);if(!e)return;let o=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Fn(t)||s.isComposing)return;let a=i.activeElement;if(!mt(a,t)||!pa(t))return;let l=ce.getTreeNode(t);if(!l)return;let u=l.nodeToRestore,c=Ze(i.body,{tabbable:!0});c.currentNode=a;let f=s.shiftKey?c.previousNode():c.nextNode();if((!u||!i.body.contains(u)||u===i.body)&&(u=void 0,l.nodeToRestore=void 0),(!f||!mt(f,t))&&u){c.currentNode=u;do f=s.shiftKey?c.previousNode():c.nextNode();while(mt(f,t));s.preventDefault(),s.stopPropagation(),f?ot(f,!0):oc(u)?ot(u,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),De(()=>{const i=ye(t.current?t.current[0]:void 0);if(!e)return;let o=ce.getTreeNode(t);if(o){var s;return o.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let a=ce.getTreeNode(t);if(!a)return;let l=a.nodeToRestore;if(e&&l&&(i.activeElement&&mt(i.activeElement,t)||i.activeElement===i.body&&pa(t))){let u=ce.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=u.getTreeNode(t);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){ga(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(t);c;){if(c.scopeRef&&c.scopeRef.current&&ce.getTreeNode(c.scopeRef)){let f=sc(c.scopeRef.current,!0);ga(f);return}c=c.parent}}})}}}},[t,e])}function ga(t){t.dispatchEvent(new CustomEvent(Lo,{bubbles:!0,cancelable:!0}))&&ot(t)}function Ze(t,e,n){let r=e!=null&&e.tabbable?dh:ch,i=ye(t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&rc(o)&&(!n||Fe(o,n))&&(!(e!=null&&e.accept)||e.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(i.currentNode=e.from),i}class ws{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 Ao({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&&Fe(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 ws;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 Ao({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ao{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 ce=new ws;function gi(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=d.useRef({isFocused:!1,isFocusVisible:e||tc()}),[o,s]=d.useState(!1),[a,l]=d.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=d.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=d.useCallback(g=>{i.current.isFocused=g,s(g),u()},[u]);oh(g=>{i.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=Q2({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=sh({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}function mh(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=d.useState(!1);return De(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=Ze(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let s=new MutationObserver(o);return s.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{s.disconnect()}}}),n?!1:r}let un="default",Ko="",Rr=new WeakMap;function va(t){if(hi()){if(un==="default"){const e=Ae(t);Ko=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}un="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(Rr.set(t,t.style.userSelect),t.style.userSelect="none")}function mr(t){if(hi()){if(un!=="disabled")return;un="restoring",setTimeout(()=>{c2(()=>{if(un==="restoring"){const e=Ae(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Ko||""),Ko="",un="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Rr.has(t)){let e=Rr.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Rr.delete(t)}}const Es=d.createContext({register:()=>{}});Es.displayName="PressResponderContext";function yh(t){let e=d.useContext(Es);if(e){let{register:n,...r}=e;t=be(r,t),n()}return f2(e,t.ref),t}var yr=new WeakMap;class br{continuePropagation(){fa(this,yr,!1)}get shouldStopPropagation(){return q2(this,yr)}constructor(e,n,r,i){Z2(this,yr,{writable:!0,value:void 0}),fa(this,yr,!0);var o;let s=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=s==null?void 0:s.getBoundingClientRect();let l,u=0,c,f=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,f=r.clientY),a&&(c!=null&&f!=null?(l=c-a.left,u=f-a.top):(l=a.width/2,u=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const ma=Symbol("linkClicked");function xs(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:f,...p}=yh(t),[g,b]=d.useState(!1),h=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:m,removeAllGlobalListeners:v}=Au(),C=_e((S,R)=>{let F=h.current;if(s||F.didFirePressStart)return!1;let N=!0;if(F.isTriggeringEvent=!0,r){let H=new br("pressstart",R,S);r(H),N=H.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,b(!0),N}),w=_e((S,R,F=!0)=>{let N=h.current;if(!N.didFirePressStart)return!1;N.ignoreClickAfterPress=!0,N.didFirePressStart=!1,N.isTriggeringEvent=!0;let H=!0;if(i){let E=new br("pressend",R,S);i(E),H=E.shouldStopPropagation}if(n&&n(!1),b(!1),e&&F&&!s){let E=new br("press",R,S);e(E),H&&(H=E.shouldStopPropagation)}return N.isTriggeringEvent=!1,H}),P=_e((S,R)=>{let F=h.current;if(s)return!1;if(o){F.isTriggeringEvent=!0;let N=new br("pressup",R,S);return o(N),F.isTriggeringEvent=!1,N.shouldStopPropagation}return!0}),x=_e(S=>{let R=h.current;R.isPressed&&R.target&&(R.isOverTarget&&R.pointerType!=null&&w(et(R.target,S),R.pointerType,!1),R.isPressed=!1,R.isOverTarget=!1,R.activePointerId=null,R.pointerType=null,v(),c||mr(R.target))}),D=_e(S=>{u&&x(S)}),_=d.useMemo(()=>{let S=h.current,R={onKeyDown(N){if(ji(N.nativeEvent,N.currentTarget)&&N.currentTarget.contains(N.target)){var H;ba(N.target,N.key)&&N.preventDefault();let E=!0;if(!S.isPressed&&!N.repeat){S.target=N.currentTarget,S.isPressed=!0,E=C(N,"keyboard");let O=N.currentTarget,z=G=>{ji(G,O)&&!G.repeat&&O.contains(G.target)&&S.target&&P(et(S.target,G),"keyboard")};m(Ae(N.currentTarget),"keyup",qn(z,F),!0)}E&&N.stopPropagation(),N.metaKey&&It()&&((H=S.metaKeyEvents)===null||H===void 0||H.set(N.key,N.nativeEvent))}else N.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(N){if(!(N&&!N.currentTarget.contains(N.target))&&N&&N.button===0&&!S.isTriggeringEvent&&!kt.isOpening){let H=!0;if(s&&N.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||_o(N.nativeEvent))){!s&&!l&&$t(N.currentTarget);let E=C(N,"virtual"),O=P(N,"virtual"),z=w(N,"virtual");H=E&&O&&z}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,H&&N.stopPropagation()}}},F=N=>{var H;if(S.isPressed&&S.target&&ji(N,S.target)){var E;ba(N.target,N.key)&&N.preventDefault();let z=N.target;w(et(S.target,N),"keyboard",S.target.contains(z)),v(),N.key!=="Enter"&&$s(S.target)&&S.target.contains(z)&&!N[ma]&&(N[ma]=!0,kt(S.target,N,!1)),S.isPressed=!1,(E=S.metaKeyEvents)===null||E===void 0||E.delete(N.key)}else if(N.key==="Meta"&&(!((H=S.metaKeyEvents)===null||H===void 0)&&H.size)){var O;let z=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let G of z.values())(O=S.target)===null||O===void 0||O.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){R.onPointerDown=O=>{if(O.button!==0||!O.currentTarget.contains(O.target))return;if(v2(O.nativeEvent)){S.pointerType="virtual";return}zi(O.currentTarget)&&O.preventDefault(),S.pointerType=O.pointerType;let z=!0;if(!S.isPressed){S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=O.pointerId,S.target=O.currentTarget,!s&&!l&&$t(O.currentTarget),c||va(S.target),z=C(O,S.pointerType);let G=O.target;"releasePointerCapture"in G&&G.releasePointerCapture(O.pointerId),m(Ae(O.currentTarget),"pointerup",N,!1),m(Ae(O.currentTarget),"pointercancel",E,!1)}z&&O.stopPropagation()},R.onMouseDown=O=>{O.currentTarget.contains(O.target)&&O.button===0&&(zi(O.currentTarget)&&O.preventDefault(),O.stopPropagation())},R.onPointerUp=O=>{!O.currentTarget.contains(O.target)||S.pointerType==="virtual"||O.button===0&&P(O,S.pointerType||O.pointerType)},R.onPointerEnter=O=>{O.pointerId===S.activePointerId&&S.target&&!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,C(et(S.target,O),S.pointerType))},R.onPointerLeave=O=>{O.pointerId===S.activePointerId&&S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,w(et(S.target,O),S.pointerType,!1),D(O))};let N=O=>{O.pointerId===S.activePointerId&&S.isPressed&&O.button===0&&S.target&&(S.target.contains(O.target)&&S.pointerType!=null?w(et(S.target,O),S.pointerType):S.isOverTarget&&S.pointerType!=null&&w(et(S.target,O),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,v(),c||mr(S.target),"ontouchend"in S.target&&O.pointerType!=="mouse"&&m(S.target,"touchend",H,{once:!0}))},H=O=>{ac(O.currentTarget)&&O.preventDefault()},E=O=>{x(O)};R.onDragStart=O=>{O.currentTarget.contains(O.target)&&x(O)}}else{R.onMouseDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(zi(E.currentTarget)&&E.preventDefault(),S.ignoreEmulatedMouseEvents){E.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=E.currentTarget,S.pointerType=_o(E.nativeEvent)?"virtual":"mouse",!s&&!l&&$t(E.currentTarget),C(E,S.pointerType)&&E.stopPropagation(),m(Ae(E.currentTarget),"mouseup",N,!1)},R.onMouseEnter=E=>{if(!E.currentTarget.contains(E.target))return;let O=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,O=C(E,S.pointerType)),O&&E.stopPropagation()},R.onMouseLeave=E=>{if(!E.currentTarget.contains(E.target))return;let O=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,O=w(E,S.pointerType,!1),D(E)),O&&E.stopPropagation()},R.onMouseUp=E=>{E.currentTarget.contains(E.target)&&!S.ignoreEmulatedMouseEvents&&E.button===0&&P(E,S.pointerType||"mouse")};let N=E=>{if(E.button===0){if(S.isPressed=!1,v(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&Hi(E,S.target)&&S.pointerType!=null?w(et(S.target,E),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&w(et(S.target,E),S.pointerType,!1),S.isOverTarget=!1}};R.onTouchStart=E=>{if(!E.currentTarget.contains(E.target))return;let O=bh(E.nativeEvent);if(!O)return;S.activePointerId=O.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=E.currentTarget,S.pointerType="touch",!s&&!l&&$t(E.currentTarget),c||va(S.target),C(ct(S.target,E),S.pointerType)&&E.stopPropagation(),m(yn(E.currentTarget),"scroll",H,!0)},R.onTouchMove=E=>{if(!E.currentTarget.contains(E.target))return;if(!S.isPressed){E.stopPropagation();return}let O=ya(E.nativeEvent,S.activePointerId),z=!0;O&&Hi(O,E.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,z=C(ct(S.target,E),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,z=w(ct(S.target,E),S.pointerType,!1),D(ct(S.target,E))),z&&E.stopPropagation()},R.onTouchEnd=E=>{if(!E.currentTarget.contains(E.target))return;if(!S.isPressed){E.stopPropagation();return}let O=ya(E.nativeEvent,S.activePointerId),z=!0;O&&Hi(O,E.currentTarget)&&S.pointerType!=null?(P(ct(S.target,E),S.pointerType),z=w(ct(S.target,E),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(z=w(ct(S.target,E),S.pointerType,!1)),z&&E.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!c&&mr(S.target),v()},R.onTouchCancel=E=>{E.currentTarget.contains(E.target)&&(E.stopPropagation(),S.isPressed&&x(ct(S.target,E)))};let H=E=>{S.isPressed&&E.target.contains(S.target)&&x({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};R.onDragStart=E=>{E.currentTarget.contains(E.target)&&x(E)}}return R},[m,s,l,v,c,x,D,w,C,P]);return d.useEffect(()=>()=>{var S;c||mr((S=h.current.target)!==null&&S!==void 0?S:void 0)},[c]),{isPressed:a||g,pressProps:be(p,_)}}function $s(t){return t.tagName==="A"&&t.hasAttribute("href")}function ji(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof yn(i).HTMLInputElement&&!lc(i,n)||i instanceof yn(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&$s(i))&&n!=="Enter")}function bh(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function ya(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 ct(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 et(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 Sh(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 Ch(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Hi(t,e){let n=e.getBoundingClientRect(),r=Sh(t);return Ch(n,r)}function zi(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function ac(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!$s(t)}function ba(t,e){return t instanceof HTMLInputElement?!lc(t,e):ac(t)}const wh=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function lc(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":wh.has(t.type)}function Eh({children:t}){let e=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(Es.Provider,{value:e},t)}class xh{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function uc(t){let e=d.useRef({isFocused:!1,observer:null});ge(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=_e(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=s=>{e.current.isFocused=!1,i.disabled&&n(new xh("blur",s)),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 s;(s=e.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function $h(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=d.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=uc(o),a=d.useCallback(l=>{const u=Ae(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}let Pn=null,Th=new Set,Un=new Map,Rt=!1,Fo=!1;function Ts(t,e){for(let n of Th)n(t,e)}function Ph(t){return!(t.metaKey||!It()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Jr(t){Rt=!0,Ph(t)&&(Pn="keyboard",Ts("keyboard",t))}function Le(t){Pn="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Rt=!0,Ts("pointer",t))}function cc(t){_o(t)&&(Rt=!0,Pn="virtual")}function dc(t){t.target===window||t.target===document||(!Rt&&!Fo&&(Pn="virtual",Ts("virtual",t)),Rt=!1,Fo=!1)}function fc(){Rt=!1,Fo=!0}function Sa(t){if(typeof window>"u"||Un.get(yn(t)))return;const e=yn(t),n=Ae(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Rt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Jr,!0),n.addEventListener("keyup",Jr,!0),n.addEventListener("click",cc,!0),e.addEventListener("focus",dc,!0),e.addEventListener("blur",fc,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Le,!0),n.addEventListener("pointermove",Le,!0),n.addEventListener("pointerup",Le,!0)):(n.addEventListener("mousedown",Le,!0),n.addEventListener("mousemove",Le,!0),n.addEventListener("mouseup",Le,!0)),e.addEventListener("beforeunload",()=>{hc(t)},{once:!0}),Un.set(e,{focus:r})}const hc=(t,e)=>{const n=yn(t),r=Ae(t);e&&r.removeEventListener("DOMContentLoaded",e),Un.has(n)&&(n.HTMLElement.prototype.focus=Un.get(n).focus,r.removeEventListener("keydown",Jr,!0),r.removeEventListener("keyup",Jr,!0),r.removeEventListener("click",cc,!0),n.removeEventListener("focus",dc,!0),n.removeEventListener("blur",fc,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Le,!0),r.removeEventListener("pointermove",Le,!0),r.removeEventListener("pointerup",Le,!0)):(r.removeEventListener("mousedown",Le,!0),r.removeEventListener("mousemove",Le,!0),r.removeEventListener("mouseup",Le,!0)),Un.delete(n))};function _h(t){const e=Ae(t);let n;return e.readyState!=="loading"?Sa(t):(n=()=>{Sa(t)},e.addEventListener("DOMContentLoaded",n)),()=>hc(t,n)}typeof document<"u"&&_h();function Dh(){return Pn!=="pointer"}function Ca(){return Pn}function pc(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=d.useRef({isFocusWithin:!1}),s=d.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=uc(s),l=d.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let Qr=!1,Bi=0;function jo(){Qr=!0,setTimeout(()=>{Qr=!1},50)}function wa(t){t.pointerType==="touch"&&jo()}function Oh(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",wa):document.addEventListener("touchend",jo),Bi++,()=>{Bi--,!(Bi>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",wa):document.removeEventListener("touchend",jo))}}function Ps(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,s]=d.useState(!1),a=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(Oh,[]);let{hoverProps:l,triggerHoverEnd:u}=d.useMemo(()=>{let c=(g,b)=>{if(a.pointerType=b,i||b==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let h=g.currentTarget;a.target=h,e&&e({type:"hoverstart",target:h,pointerType:b}),n&&n(!0),s(!0)},f=(g,b)=>{if(a.pointerType="",a.target=null,b==="touch"||!a.isHovered)return;a.isHovered=!1;let h=g.currentTarget;r&&r({type:"hoverend",target:h,pointerType:b}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{Qr&&g.pointerType==="mouse"||c(g,g.pointerType)},p.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,g.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Qr&&c(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[e,n,r,i,a]);return d.useEffect(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function Ih(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=_e(l=>{n&&Sr(l,e)&&(i&&i(l),o.current.isPointerDown=!0)}),a=_e(l=>{n&&n(l)});d.useEffect(()=>{let l=o.current;if(r)return;const u=e.current,c=Ae(u);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&Sr(p,e)&&a(p),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=g=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Sr(g,e)&&a(g),l.isPointerDown=!1},p=g=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Sr(g,e)&&a(g),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",p,!0)}}},[e,r,s,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&&!e.current.contains(t.target)}function Ea(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function kh(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Ea(t.onKeyDown),onKeyUp:Ea(t.onKeyUp)}}}const Nh=500;function Rh(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=Nh,accessibilityDescription:s}=t;const a=d.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=Au(),{pressProps:c}=xs({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...p,type:"longpress"}),a.current=void 0},o),p.pointerType==="touch")){let g=b=>{b.preventDefault()};l(p.target,"contextmenu",g,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=g2(i&&!e?s:void 0);return{longPressProps:be(c,f)}}const Lh=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Mh=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ah(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 Lh.has(n.script)}let e=t.split("-")[0];return Mh.has(e)}const Kh=Symbol.for("react-aria.i18n.locale");function gc(){let t=typeof window<"u"&&window[Kh]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Ah(t)?"rtl":"ltr"}}let Ho=gc(),jn=new Set;function xa(){Ho=gc();for(let t of jn)t(Ho)}function Fh(){let t=xn(),[e,n]=d.useState(Ho);return d.useEffect(()=>(jn.size===0&&window.addEventListener("languagechange",xa),jn.add(n),()=>{jn.delete(n),jn.size===0&&window.removeEventListener("languagechange",xa)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const jh=d.createContext(null);function ar(){let t=Fh();return d.useContext(jh)||t}var Ye=function(){return Ye=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},Ye.apply(this,arguments)};function vc(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 Hh(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 zh=Symbol.for("react-aria.i18n.locale"),Bh=Symbol.for("react-aria.i18n.strings");let Wt;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=Vh(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[zh];if(Wt===void 0){let i=window[Bh];if(!i)return null;Wt={};for(let o in i)Wt[o]=new vi({[n]:i[o]},n)}let r=Wt==null?void 0:Wt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function Vh(t,e,n="en-US"){if(e[t])return e[t];let r=Wh(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function Wh(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const $a=new Map,Ta=new Map;class Uh{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,s=$a.get(o);s||(s=new Intl.PluralRules(this.locale,{type:r}),$a.set(o,s));let a=s.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Ta.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Ta.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 Pa=new WeakMap;function Gh(t){let e=Pa.get(t);return e||(e=new vi(t),Pa.set(t,e)),e}function qh(t,e){return e&&vi.getGlobalDictionaryForPackage(e)||Gh(t)}function Yh(t,e){let{locale:n}=ar(),r=qh(t,e);return d.useMemo(()=>new Uh(n,r),[n,r])}let Vi=new Map;function Zh(t){let{locale:e}=ar(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Vi.has(n))return Vi.get(n);let r=new Intl.Collator(e,t);return Vi.set(n,r),r}const _a={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 Xh(t={}){let{style:e,isFocusable:n}=t,[r,i]=d.useState(!1),{focusWithinProps:o}=pc({isDisabled:!n,onFocusWithinChange:a=>i(a)}),s=d.useMemo(()=>r?e:e?{..._a,...e}:_a,[r]);return{visuallyHiddenProps:{...o,style:s}}}function Jh(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:s}=Xh(t);return d.createElement(n,be(o,s),e)}const Xe={top:"top",bottom:"top",left:"left",right:"left"},ei={top:"bottom",bottom:"top",left:"right",right:"left"},Qh={top:"left",left:"top"},zo={top:"height",left:"width"},mc={width:"totalWidth",height:"totalHeight"},Cr={};let he=typeof document<"u"?window.visualViewport:null;function Da(t){let e=0,n=0,r=0,i=0,o=0,s=0,a={};var l;let u=((l=he==null?void 0:he.scale)!==null&&l!==void 0?l:1)>1;if(t.tagName==="BODY"){let b=document.documentElement;r=b.clientWidth,i=b.clientHeight;var c;e=(c=he==null?void 0:he.width)!==null&&c!==void 0?c:r;var f;n=(f=he==null?void 0:he.height)!==null&&f!==void 0?f:i,a.top=b.scrollTop||t.scrollTop,a.left=b.scrollLeft||t.scrollLeft,he&&(o=he.offsetTop,s=he.offsetLeft)}else({width:e,height:n,top:o,left:s}=hn(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(Ru()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u){a.top=0,a.left=0;var p;o=(p=he==null?void 0:he.pageTop)!==null&&p!==void 0?p:0;var g;s=(g=he==null?void 0:he.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:s}}function ep(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Oa(t,e,n,r,i,o,s){var a;let l=(a=i.scroll[t])!==null&&a!==void 0?a:0,u=r[zo[t]],c=r.scroll[Xe[t]]+o,f=u+r.scroll[Xe[t]]-o,p=e-l+s[t]-r[Xe[t]],g=e-l+n+s[t]-r[Xe[t]];return p<c?c-p:g>f?Math.max(f-g,c-p):0}function tp(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 Ia(t){if(Cr[t])return Cr[t];let[e,n]=t.split(" "),r=Xe[e]||"right",i=Qh[r];Xe[n]||(n="center");let o=zo[r],s=zo[i];return Cr[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:s},Cr[t]}function Wi(t,e,n,r,i,o,s,a,l,u){let{placement:c,crossPlacement:f,axis:p,crossAxis:g,size:b,crossSize:h}=r,m={};var v;m[g]=(v=t[g])!==null&&v!==void 0?v:0;var C,w,P,x;f==="center"?m[g]+=(((C=t[h])!==null&&C!==void 0?C:0)-((w=n[h])!==null&&w!==void 0?w:0))/2:f!==g&&(m[g]+=((P=t[h])!==null&&P!==void 0?P:0)-((x=n[h])!==null&&x!==void 0?x:0)),m[g]+=o;const D=t[g]-n[h]+l+u,_=t[g]+t[h]-l-u;if(m[g]=Do(m[g],D,_),c===p){const S=a?s[b]:e[mc[b]];m[ei[p]]=Math.floor(S-t[p]+i)}else m[p]=Math.floor(t[p]+t[b]+i);return m}function np(t,e,n,r,i,o,s,a){const l=r?n.height:e[mc.height];var u;let c=t.top!=null?n.top+t.top:n.top+(l-((u=t.bottom)!==null&&u!==void 0?u:0)-s);var f,p,g,b,h,m;let v=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-c-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,c+s-(e.top+((b=e.scroll.top)!==null&&b!==void 0?b:0))-(((h=i.top)!==null&&h!==void 0?h:0)+((m=i.bottom)!==null&&m!==void 0?m:0)+o));return Math.min(e.height-o*2,v)}function ka(t,e,n,r,i,o){let{placement:s,axis:a,size:l}=o;var u,c;if(s===a)return Math.max(0,n[a]-t[a]-((u=t.scroll[a])!==null&&u!==void 0?u:0)+e[a]-((c=r[a])!==null&&c!==void 0?c:0)-r[ei[a]]-i);var f;return Math.max(0,t[l]+t[a]+t.scroll[a]-e[a]-n[a]-n[l]-((f=r[a])!==null&&f!==void 0?f:0)-r[ei[a]]-i)}function rp(t,e,n,r,i,o,s,a,l,u,c,f,p,g,b,h){let m=Ia(t),{size:v,crossAxis:C,crossSize:w,placement:P,crossPlacement:x}=m,D=Wi(e,a,n,m,c,f,u,p,b,h),_=c,S=ka(a,u,e,i,o+c,m);if(s&&r[v]>S){let A=Ia(`${ei[P]} ${x}`),M=Wi(e,a,n,A,c,f,u,p,b,h);ka(a,u,e,i,o+c,A)>S&&(m=A,D=M,_=c)}let R="bottom";m.axis==="top"?m.placement==="top"?R="top":m.placement==="bottom"&&(R="bottom"):m.crossAxis==="top"&&(m.crossPlacement==="top"?R="bottom":m.crossPlacement==="bottom"&&(R="top"));let F=Oa(C,D[C],n[w],a,l,o,u);D[C]+=F;let N=np(D,a,u,p,i,o,n.height,R);g&&g<N&&(N=g),n.height=Math.min(n.height,N),D=Wi(e,a,n,m,_,f,u,p,b,h),F=Oa(C,D[C],n[w],a,l,o,u),D[C]+=F;let H={},E=e[C]+.5*e[w]-D[C]-i[Xe[C]];const O=b/2+h;var z,G,V,L;const Y=Xe[C]==="left"?((z=i.left)!==null&&z!==void 0?z:0)+((G=i.right)!==null&&G!==void 0?G:0):((V=i.top)!==null&&V!==void 0?V:0)+((L=i.bottom)!==null&&L!==void 0?L:0),j=n[w]-Y-b/2-h,B=e[C]+b/2-(D[C]+i[Xe[C]]),k=e[C]+e[w]-b/2-(D[C]+i[Xe[C]]),I=Do(E,B,k);return H[C]=Do(I,O,j),{position:D,maxHeight:N,arrowOffsetLeft:H.left,arrowOffsetTop:H.top,placement:m.placement}}function ip(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:u,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,g=r instanceof HTMLElement?op(r):document.documentElement,b=g===document.documentElement;const h=window.getComputedStyle(g).position;let m=!!h&&h!=="static",v=b?hn(n):Na(n,g);if(!b){let{marginTop:H,marginLeft:E}=window.getComputedStyle(n);v.top+=parseInt(H,10)||0,v.left+=parseInt(E,10)||0}let C=hn(r),w=tp(r);var P,x;C.width+=((P=w.left)!==null&&P!==void 0?P:0)+((x=w.right)!==null&&x!==void 0?x:0);var D,_;C.height+=((D=w.top)!==null&&D!==void 0?D:0)+((_=w.bottom)!==null&&_!==void 0?_:0);let S=ep(i),R=Da(a),F=Da(g),N=a.tagName==="BODY"?hn(g):Na(g,a);return g.tagName==="HTML"&&a.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),rp(e,v,C,S,w,o,s,R,F,N,l,u,m,c,f,p)}function hn(t){let{top:e,left:n,width:r,height:i}=t.getBoundingClientRect(),{scrollTop:o,scrollLeft:s,clientTop:a,clientLeft:l}=document.documentElement;return{top:e+o-a,left:n+s-l,width:r,height:i}}function Na(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:i,left:o,width:s,height:a}=t.getBoundingClientRect();r={top:i,left:o,width:s,height:a}}else{r=hn(t);let i=hn(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function op(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Ra(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Ra(e);)e=e.parentElement;return e||document.documentElement}function Ra(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 sp=new WeakMap;function ap(t){let{triggerRef:e,isOpen:n,onClose:r}=t;d.useEffect(()=>{if(!n||r===null)return;let i=o=>{let s=o.target;if(!e.current||s instanceof Node&&!s.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let a=r||sp.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 lp(t){let{direction:e}=ar(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:b,maxHeight:h,arrowBoundaryOffset:m=0}=t,[v,C]=d.useState(null),w=[p,s,i.current,r.current,o.current,a,l,u,c,f,g,e,h,m,n],P=d.useRef(ue==null?void 0:ue.scale);d.useEffect(()=>{g&&(P.current=ue==null?void 0:ue.scale)},[g]);let x=d.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!u||(ue==null?void 0:ue.scale)!==P.current)return;let F=null;if(o.current&&o.current.contains(document.activeElement)){var N;let L=(N=document.activeElement)===null||N===void 0?void 0:N.getBoundingClientRect(),Y=o.current.getBoundingClientRect();var H;if(F={type:"top",offset:((H=L==null?void 0:L.top)!==null&&H!==void 0?H:0)-Y.top},F.offset>Y.height/2){F.type="bottom";var E;F.offset=((E=L==null?void 0:L.bottom)!==null&&E!==void 0?E:0)-Y.bottom}}let O=i.current;if(!h&&i.current){var z;O.style.top="0px",O.style.bottom="";var G;O.style.maxHeight=((G=(z=window.visualViewport)===null||z===void 0?void 0:z.height)!==null&&G!==void 0?G:window.innerHeight)+"px"}let V=ip({placement:cp(s,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:f,maxHeight:h,arrowSize:n,arrowBoundaryOffset:m});if(V.position){if(O.style.top="",O.style.bottom="",O.style.left="",O.style.right="",Object.keys(V.position).forEach(L=>O.style[L]=V.position[L]+"px"),O.style.maxHeight=V.maxHeight!=null?V.maxHeight+"px":"",F&&document.activeElement&&o.current){let L=document.activeElement.getBoundingClientRect(),Y=o.current.getBoundingClientRect(),j=L[F.type]-Y[F.type];o.current.scrollTop+=j-F.offset}C(V)}},w);ge(x,w),up(x),na({ref:i,onResize:x}),na({ref:r,onResize:x});let D=d.useRef(!1);ge(()=>{let F,N=()=>{D.current=!0,clearTimeout(F),F=setTimeout(()=>{D.current=!1},500),x()},H=()=>{D.current&&N()};return ue==null||ue.addEventListener("resize",N),ue==null||ue.addEventListener("scroll",H),()=>{ue==null||ue.removeEventListener("resize",N),ue==null||ue.removeEventListener("scroll",H)}},[x]);let _=d.useCallback(()=>{D.current||b==null||b()},[b,D]);ap({triggerRef:r,isOpen:g,onClose:b&&_});var S,R;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...v==null?void 0:v.position,maxHeight:(S=v==null?void 0:v.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(R=v==null?void 0:v.placement)!==null&&R!==void 0?R:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v==null?void 0:v.arrowOffsetLeft,top:v==null?void 0:v.arrowOffsetTop}},updatePosition:x}}function up(t){ge(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function cp(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const tt=[];function dp(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=t;d.useEffect(()=>(i&&tt.push(e),()=>{let b=tt.indexOf(e);b>=0&&tt.splice(b,1)}),[i,e]);let l=()=>{tt[tt.length-1]===e&&n&&n()},u=b=>{(!a||a(b.target))&&tt[tt.length-1]===e&&(b.stopPropagation(),b.preventDefault())},c=b=>{(!a||a(b.target))&&(tt[tt.length-1]===e&&(b.stopPropagation(),b.preventDefault()),l())},f=b=>{b.key==="Escape"&&!s&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),l())};Ih({ref:e,onInteractOutside:o&&i?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=pc({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||hh(b.relatedTarget)||(!a||a(b.relatedTarget))&&(n==null||n())}}),g=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:g}}}const Ui=typeof document<"u"&&window.visualViewport,fp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let wr=0,Gi;function hp(t={}){let{isDisabled:e}=t;ge(()=>{if(!e)return wr++,wr===1&&(hi()?Gi=gp():Gi=pp()),()=>{wr--,wr===0&&Gi()}},[e])}function pp(){return qn(cn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),cn(document.documentElement,"overflow","hidden"))}function gp(){let t,e,n=u=>{t=Ku(u.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=cn(t,"overscrollBehavior","contain"))},r=u=>{if(!t||t===document.documentElement||t===document.body){u.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&u.preventDefault()},i=()=>{e&&e()},o=u=>{let c=u.target;vp(c)&&(a(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Ui&&(Ui.height<window.innerHeight?requestAnimationFrame(()=>{La(c)}):Ui.addEventListener("resize",()=>La(c),{once:!0}))}))},s=null,a=()=>{if(s)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;s=qn(Nn(window,"scroll",u),cn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),cn(document.documentElement,"overflow","hidden"),cn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},l=qn(Nn(document,"touchstart",n,{passive:!1,capture:!0}),Nn(document,"touchmove",r,{passive:!1,capture:!0}),Nn(document,"touchend",i,{passive:!1,capture:!0}),Nn(document,"focus",o,!0));return()=>{e==null||e(),s==null||s(),l()}}function cn(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Nn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function La(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Ku(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 vp(t){return t instanceof HTMLInputElement&&!fp.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}var yc={};yc={dismiss:"تجاهل"};var bc={};bc={dismiss:"Отхвърляне"};var Sc={};Sc={dismiss:"Odstranit"};var Cc={};Cc={dismiss:"Luk"};var wc={};wc={dismiss:"Schließen"};var Ec={};Ec={dismiss:"Απόρριψη"};var xc={};xc={dismiss:"Dismiss"};var $c={};$c={dismiss:"Descartar"};var Tc={};Tc={dismiss:"Lõpeta"};var Pc={};Pc={dismiss:"Hylkää"};var _c={};_c={dismiss:"Rejeter"};var Dc={};Dc={dismiss:"התעלם"};var Oc={};Oc={dismiss:"Odbaci"};var Ic={};Ic={dismiss:"Elutasítás"};var kc={};kc={dismiss:"Ignora"};var Nc={};Nc={dismiss:"閉じる"};var Rc={};Rc={dismiss:"무시"};var Lc={};Lc={dismiss:"Atmesti"};var Mc={};Mc={dismiss:"Nerādīt"};var Ac={};Ac={dismiss:"Lukk"};var Kc={};Kc={dismiss:"Negeren"};var Fc={};Fc={dismiss:"Zignoruj"};var jc={};jc={dismiss:"Descartar"};var Hc={};Hc={dismiss:"Dispensar"};var zc={};zc={dismiss:"Revocare"};var Bc={};Bc={dismiss:"Пропустить"};var Vc={};Vc={dismiss:"Zrušiť"};var Wc={};Wc={dismiss:"Opusti"};var Uc={};Uc={dismiss:"Odbaci"};var Gc={};Gc={dismiss:"Avvisa"};var qc={};qc={dismiss:"Kapat"};var Yc={};Yc={dismiss:"Скасувати"};var Zc={};Zc={dismiss:"取消"};var Xc={};Xc={dismiss:"關閉"};var Jc={};Jc={"ar-AE":yc,"bg-BG":bc,"cs-CZ":Sc,"da-DK":Cc,"de-DE":wc,"el-GR":Ec,"en-US":xc,"es-ES":$c,"et-EE":Tc,"fi-FI":Pc,"fr-FR":_c,"he-IL":Dc,"hr-HR":Oc,"hu-HU":Ic,"it-IT":kc,"ja-JP":Nc,"ko-KR":Rc,"lt-LT":Lc,"lv-LV":Mc,"nb-NO":Ac,"nl-NL":Kc,"pl-PL":Fc,"pt-BR":jc,"pt-PT":Hc,"ro-RO":zc,"ru-RU":Bc,"sk-SK":Vc,"sl-SI":Wc,"sr-SP":Uc,"sv-SE":Gc,"tr-TR":qc,"uk-UA":Yc,"zh-CN":Zc,"zh-TW":Xc};function mp(t){return t&&t.__esModule?t.default:t}function Ma(t){let{onDismiss:e,...n}=t,r=Yh(mp(Jc),"@react-aria/overlays"),i=hs(n,r.format("dismiss")),o=()=>{e&&e()};return d.createElement(Jh,null,d.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let Rn=new WeakMap,Ie=[];function yp(t,e=document.body){let n=new Set(t),r=new Set,i=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let u=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(p.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(l);if(f===NodeFilter.FILTER_ACCEPT&&o(l),f!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)o(p),p=c.nextNode()}},o=l=>{var u;let c=(u=Rn.get(l))!==null&&u!==void 0?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Rn.set(l,c+1))};Ie.length&&Ie[Ie.length-1].disconnect(),i(e);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&i(c)}});s.observe(e,{childList:!0,subtree:!0});let a={observe(){s.observe(e,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Ie.push(a),()=>{s.disconnect();for(let l of r){let u=Rn.get(l);u!=null&&(u===1?(l.removeAttribute("aria-hidden"),Rn.delete(l)):Rn.set(l,u-1))}a===Ie[Ie.length-1]?(Ie.pop(),Ie.length&&Ie[Ie.length-1].observe()):Ie.splice(Ie.indexOf(a),1)}}function bp(t,e){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...a}=t,{overlayProps:l,underlayProps:u}=dp({isOpen:e.isOpen&&!a["data-react-aria-top-layer"],onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},r),{overlayProps:c,arrowProps:f,placement:p}=lp({...a,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:i?e.close:null});return hp({isDisabled:i||!e.isOpen}),ge(()=>{if(e.isOpen&&!i&&r.current)return yp([r.current])},[i,e.isOpen,r]),{popoverProps:be(l,c),arrowProps:f,underlayProps:u,placement:p}}const Sp=d.createContext({});function Cp(){var t;return(t=d.useContext(Sp))!==null&&t!==void 0?t:{}}const wp=d.createContext(null);function Ep(t){let e=xn(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=d.useState(!1),s=d.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=Cp();if(!t.portalContainer&&a&&(n=a()),!n)return null;let l=t.children;return t.disableFocusManagement||(l=d.createElement(ic,{restoreFocus:!0,contain:i&&!r},l)),l=d.createElement(wp.Provider,{value:s},d.createElement(Eh,null,l)),Ht.createPortal(l,n)}function Bo(t){return i2()?t.altKey:t.ctrlKey}const xp=1e3;function $p(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=d.useRef({search:"",timeout:void 0}).current,o=s=>{let a=Tp(s.key);if(!(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))){if(a===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let l=e.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=e.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},xp)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Tp(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Qc(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,selectOnFocus:l=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:g=r,linkBehavior:b="action"}=t,{direction:h}=ar(),m=pi(),v=E=>{var O;if(E.altKey&&E.key==="Tab"&&E.preventDefault(),!(!((O=r.current)===null||O===void 0)&&O.contains(E.target)))return;const z=(K,X)=>{if(K!=null){if(e.isLink(K)&&b==="selection"&&l&&!Bo(E)){var te;Ht.flushSync(()=>{e.setFocusedKey(K,X)});let fe=(te=g.current)===null||te===void 0?void 0:te.querySelector(`[data-key="${CSS.escape(K.toString())}"]`),de=e.getItemProps(K);fe&&m.open(fe,E,de.href,de.routerOptions);return}if(e.setFocusedKey(K,X),e.isLink(K)&&b==="override")return;E.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(K):l&&!Bo(E)&&e.replaceSelection(K)}};switch(E.key){case"ArrowDown":if(n.getKeyBelow){var G,V,L;let K=e.focusedKey!=null?(G=n.getKeyBelow)===null||G===void 0?void 0:G.call(n,e.focusedKey):(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n);K==null&&o&&(K=(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n,e.focusedKey)),K!=null&&(E.preventDefault(),z(K))}break;case"ArrowUp":if(n.getKeyAbove){var Y,j,B;let K=e.focusedKey!=null?(Y=n.getKeyAbove)===null||Y===void 0?void 0:Y.call(n,e.focusedKey):(j=n.getLastKey)===null||j===void 0?void 0:j.call(n);K==null&&o&&(K=(B=n.getLastKey)===null||B===void 0?void 0:B.call(n,e.focusedKey)),K!=null&&(E.preventDefault(),z(K))}break;case"ArrowLeft":if(n.getKeyLeftOf){var k,I,A;let K=e.focusedKey!=null?(k=n.getKeyLeftOf)===null||k===void 0?void 0:k.call(n,e.focusedKey):null;K==null&&o&&(K=h==="rtl"?(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n,e.focusedKey):(A=n.getLastKey)===null||A===void 0?void 0:A.call(n,e.focusedKey)),K!=null&&(E.preventDefault(),z(K,h==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var M,W,U;let K=e.focusedKey!=null?(M=n.getKeyRightOf)===null||M===void 0?void 0:M.call(n,e.focusedKey):null;K==null&&o&&(K=h==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey):(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n,e.focusedKey)),K!=null&&(E.preventDefault(),z(K,h==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&E.shiftKey)return;E.preventDefault();let K=n.getFirstKey(e.focusedKey,on(E));e.setFocusedKey(K),K!=null&&(on(E)&&E.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(K):l&&e.replaceSelection(K))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&E.shiftKey)return;E.preventDefault();let K=n.getLastKey(e.focusedKey,on(E));e.setFocusedKey(K),K!=null&&(on(E)&&E.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(K):l&&e.replaceSelection(K))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let K=n.getKeyPageBelow(e.focusedKey);K!=null&&(E.preventDefault(),z(K))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let K=n.getKeyPageAbove(e.focusedKey);K!=null&&(E.preventDefault(),z(K))}break;case"a":on(E)&&e.selectionMode==="multiple"&&a!==!0&&(E.preventDefault(),e.selectAll());break;case"Escape":!s&&e.selectedKeys.size!==0&&(E.stopPropagation(),E.preventDefault(),e.clearSelection());break;case"Tab":if(!f){if(E.shiftKey)r.current.focus();else{let K=Ze(r.current,{tabbable:!0}),X,te;do te=K.lastChild(),te&&(X=te);while(te);X&&!X.contains(document.activeElement)&&$t(X)}break}}},C=d.useRef({top:0,left:0});pr(g,"scroll",p?void 0:()=>{var E,O,z,G;C.current={top:(z=(E=g.current)===null||E===void 0?void 0:E.scrollTop)!==null&&z!==void 0?z:0,left:(G=(O=g.current)===null||O===void 0?void 0:O.scrollLeft)!==null&&G!==void 0?G:0}});let w=E=>{if(e.isFocused){E.currentTarget.contains(E.target)||e.setFocused(!1);return}if(E.currentTarget.contains(E.target)){if(e.setFocused(!0),e.focusedKey==null){var O,z;let L=j=>{j!=null&&(e.setFocusedKey(j),l&&e.replaceSelection(j))},Y=E.relatedTarget;var G,V;Y&&E.currentTarget.compareDocumentPosition(Y)&Node.DOCUMENT_POSITION_FOLLOWING?L((G=e.lastSelectedKey)!==null&&G!==void 0?G:(O=n.getLastKey)===null||O===void 0?void 0:O.call(n)):L((V=e.firstSelectedKey)!==null&&V!==void 0?V:(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n))}else!p&&g.current&&(g.current.scrollTop=C.current.top,g.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&g.current){let L=g.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);L&&(L.contains(document.activeElement)||$t(L),Ca()==="keyboard"&&ia(L,{containingElement:r.current}))}}},P=E=>{E.currentTarget.contains(E.relatedTarget)||e.setFocused(!1)},x=d.useRef(!1);pr(r,y2,c?E=>{let{detail:O}=E;E.stopPropagation(),e.setFocused(!0),(O==null?void 0:O.focusStrategy)==="first"&&(x.current=!0)}:void 0);let D=_e(()=>{var E,O;let z=(O=(E=n.getFirstKey)===null||E===void 0?void 0:E.call(n))!==null&&O!==void 0?O:null;if(z==null){var G;(G=r.current)===null||G===void 0||G.dispatchEvent(new CustomEvent(ju,{cancelable:!0,bubbles:!0})),e.collection.size>0&&(x.current=!1)}else e.setFocusedKey(z),x.current=!1});ta(()=>{x.current&&D()},[e.collection,D]);let _=_e(()=>{e.collection.size>0&&(x.current=!1)});ta(()=>{_()},[e.focusedKey,_]),pr(r,m2,c?E=>{E.stopPropagation(),e.setFocused(!1),e.setFocusedKey(null)}:void 0);const S=d.useRef(i);d.useEffect(()=>{if(S.current){var E,O;let V=null;var z;i==="first"&&(V=(z=(E=n.getFirstKey)===null||E===void 0?void 0:E.call(n))!==null&&z!==void 0?z:null);var G;i==="last"&&(V=(G=(O=n.getLastKey)===null||O===void 0?void 0:O.call(n))!==null&&G!==void 0?G:null);let L=e.selectedKeys;if(L.size){for(let Y of L)if(e.canSelectItem(Y)){V=Y;break}}e.setFocused(!0),e.setFocusedKey(V),V==null&&!c&&r.current&&Zr(r.current)}},[]);let R=d.useRef(e.focusedKey);d.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==R.current||S.current)&&g.current&&r.current){let E=Ca(),O=r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!O)return;(E==="keyboard"||S.current)&&(Fu(g.current,O),E!=="virtual"&&ia(O,{containingElement:r.current}))}!c&&e.isFocused&&e.focusedKey==null&&R.current!=null&&r.current&&Zr(r.current),R.current=e.focusedKey,S.current=!1}),pr(r,"react-aria-focus-scope-restore",E=>{E.preventDefault(),e.setFocused(!0)});let F={onKeyDown:v,onFocus:w,onBlur:P,onMouseDown(E){g.current===E.target&&E.preventDefault()}},{typeSelectProps:N}=$p({keyboardDelegate:n,selectionManager:e});u||(F=be(N,F));let H;return c?H=-1:H=e.focusedKey==null?0:-1,{collectionProps:{...F,tabIndex:H}}}function ed(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:s,focus:a,isDisabled:l,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:f="action"}=t,p=pi();e=rr(e);let g=L=>{if(L.pointerType==="keyboard"&&Bo(L))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let Y=n.getItemProps(r);p.open(i.current,L,Y.href,Y.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):L&&L.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||L&&(on(L)||L.pointerType==="touch"||L.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};d.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!s)a?a():document.activeElement!==i.current&&i.current&&Zr(i.current);else{var Y;let j=new CustomEvent(ju,{cancelable:!0,bubbles:!0});(Y=i.current)===null||Y===void 0||Y.dispatchEvent(j)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,s]),l=l||n.isDisabled(r);let b={};!s&&!l?b={tabIndex:r===n.focusedKey?0:-1,onFocus(L){L.target===i.current&&n.setFocusedKey(r)}}:l&&(b.onMouseDown=L=>{L.preventDefault()});let h=n.isLink(r)&&f==="override",m=n.isLink(r)&&f!=="selection"&&f!=="none",v=!l&&n.canSelectItem(r)&&!h,C=(u||m)&&!l,w=C&&(n.selectionBehavior==="replace"?!v:!v||n.isEmpty),P=C&&v&&n.selectionBehavior==="replace",x=w||P,D=d.useRef(null),_=x&&v,S=d.useRef(!1),R=d.useRef(!1),F=L=>{if(u&&u(),m&&i.current){let Y=n.getItemProps(r);p.open(i.current,L,Y.href,Y.routerOptions)}},N={};o?(N.onPressStart=L=>{D.current=L.pointerType,S.current=_,L.pointerType==="keyboard"&&(!x||Ka())&&g(L)},c?(N.onPressUp=w?void 0:L=>{L.pointerType==="mouse"&&v&&g(L)},N.onPress=w?F:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&v&&g(L)}):N.onPress=L=>{if(w||P&&L.pointerType!=="mouse"){if(L.pointerType==="keyboard"&&!Aa())return;F(L)}else L.pointerType!=="keyboard"&&v&&g(L)}):(N.onPressStart=L=>{D.current=L.pointerType,S.current=_,R.current=w,v&&(L.pointerType==="mouse"&&!w||L.pointerType==="keyboard"&&(!C||Ka()))&&g(L)},N.onPress=L=>{(L.pointerType==="touch"||L.pointerType==="pen"||L.pointerType==="virtual"||L.pointerType==="keyboard"&&x&&Aa()||L.pointerType==="mouse"&&R.current)&&(x?F(L):v&&g(L))}),b["data-key"]=r,N.preventFocusOnPress=s;let{pressProps:H,isPressed:E}=xs(N),O=P?L=>{D.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),F(L))}:void 0,{longPressProps:z}=Rh({isDisabled:!_,onLongPress(L){L.pointerType==="touch"&&(g(L),n.setSelectionBehavior("toggle"))}}),G=L=>{D.current==="touch"&&S.current&&L.preventDefault()},V=n.isLink(r)?L=>{kt.isOpening||L.preventDefault()}:void 0;return{itemProps:be(b,v||w?H:{},_?z:{},{onDoubleClick:O,onDragStartCapture:G,onClick:V,id:e}),isPressed:E,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:v,hasAction:x}}function Aa(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Ka(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Fa{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?n.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class Pp{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 s=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(s,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&&!Yn(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&&!Yn(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 s=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(s,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 Fa(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 Fa(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function _p(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:s}=t,a=Zh({usage:"search",sensitivity:"base"}),l=e.disabledBehavior,u=d.useMemo(()=>o||new Pp({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:a,layoutDelegate:s}),[o,s,n,r,i,a,l]),{collectionProps:c}=Qc({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:c}}function td(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Dp(t){return Op(t)}function Op(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=[...ja(t,e),e],i=[...ja(t,n),n],o=r.slice(0,i.length).findIndex((s,a)=>s!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(s=>s===n)>=0?1:(i.findIndex(s=>s===e)>=0,-1)}function ja(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 Ha=new WeakMap;function Ip(t){let e=Ha.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(td(o,t)):n++};return r(t),Ha.set(t,n),n}const nd=new WeakMap;function kp(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...s}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=We(t,{labelable:!0}),{listProps:l}=_p({...s,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return nd.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:be(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...l,onKeyDown:u=>{var c;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((c=l.onKeyDown)===null||c===void 0||c.call(l,u))}})}}function Np(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:s,"aria-haspopup":a,onPressStart:l,onPressUp:u,onPress:c,onPressChange:f,onPressEnd:p,onHoverStart:g,onHoverChange:b,onHoverEnd:h,onKeyDown:m,onKeyUp:v,onFocus:C,onFocusChange:w,onBlur:P,selectionManager:x=e.selectionManager}=t,D=!!a,_=D&&t["aria-expanded"]==="true";var S;let R=(S=t.isDisabled)!==null&&S!==void 0?S:x.isDisabled(i);var F;let N=(F=t.isSelected)!==null&&F!==void 0?F:x.isSelected(i),H=nd.get(e),E=e.collection.getItem(i),O=t.onClose||H.onClose,z=pi(),G=re=>{var Ge;if(!D){if(!(E==null||(Ge=E.props)===null||Ge===void 0)&&Ge.onAction?E.props.onAction():t.onAction&&t.onAction(i),H.onAction){let lt=H.onAction;lt(i)}re.target instanceof HTMLAnchorElement&&E&&z.open(re.target,re,E.props.href,E.props.routerOptions)}},V="menuitem";D||(x.selectionMode==="single"?V="menuitemradio":x.selectionMode==="multiple"&&(V="menuitemcheckbox"));let L=Mi(),Y=Mi(),j=Mi(),B={id:r,"aria-disabled":R||void 0,role:V,"aria-label":t["aria-label"],"aria-labelledby":L,"aria-describedby":[Y,j].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};x.selectionMode!=="none"&&!D&&(B["aria-checked"]=N),s&&(B["aria-posinset"]=E==null?void 0:E.index,B["aria-setsize"]=Ip(e.collection));let k=re=>{re.pointerType==="keyboard"&&G(re),l==null||l(re)},I=()=>{!D&&O&&(o??(x.selectionMode!=="multiple"||x.isLink(i)))&&O()},A=re=>{re.pointerType==="mouse"&&(G(re),I()),u==null||u(re)},M=re=>{re.pointerType!=="keyboard"&&re.pointerType!=="mouse"&&(G(re),I()),c==null||c(re)},{itemProps:W,isFocused:U}=ed({id:r,selectionManager:x,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:H.shouldUseVirtualFocus}),{pressProps:K,isPressed:X}=xs({onPressStart:k,onPress:M,onPressUp:A,onPressChange:f,onPressEnd:p,isDisabled:R}),{hoverProps:te}=Ps({isDisabled:R,onHoverStart(re){!Dh()&&!(_&&a==="dialog")&&(x.setFocused(!0),x.setFocusedKey(i)),g==null||g(re)},onHoverChange:b,onHoverEnd:h}),{keyboardProps:fe}=kh({onKeyDown:re=>{if(re.repeat){re.continuePropagation();return}switch(re.key){case" ":!R&&x.selectionMode==="none"&&!D&&o!==!1&&O&&O();break;case"Enter":!R&&o!==!1&&!D&&O&&O();break;default:D||re.continuePropagation(),m==null||m(re);break}},onKeyUp:v}),{focusProps:de}=$h({onBlur:P,onFocus:C,onFocusChange:w}),oe=We(E==null?void 0:E.props);delete oe.id;let ve=Mu(E==null?void 0:E.props);return{menuItemProps:{...B,...be(oe,ve,D?{onFocus:W.onFocus,"data-key":W["data-key"]}:W,K,te,fe,de),tabIndex:W.tabIndex!=null&&_?-1:W.tabIndex},labelProps:{id:L},descriptionProps:{id:Y},keyboardShortcutProps:{id:j},isFocused:U,isSelected:N,isPressed:X,isDisabled:R}}function Rp(t){let{heading:e,"aria-label":n}=t,r=rr();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}function Lp(t){let e=We(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const rd=new WeakMap;function ti(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${rd.get(t)}-${n}-${e}`):""}function Mp(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:s,selectedKey:a}=e,l=r===a,u=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:c,isPressed:f}=ed({selectionManager:s,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=ti(e,r,"tab"),g=ti(e,r,"tabpanel"),{tabIndex:b}=c,h=e.collection.getItem(r),m=We(h==null?void 0:h.props,{labelable:!0});delete m.id;let v=Mu(h==null?void 0:h.props);return{tabProps:be(m,v,c,{id:p,"aria-selected":l,"aria-disabled":u||void 0,"aria-controls":l?g:void 0,tabIndex:u?void 0:b,role:"tab"}),isSelected:l,isDisabled:u,isPressed:f}}function Ap(t,e,n){let r=mh(n)?void 0:0;var i;const o=ti(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),s=hs({...t,id:o,"aria-labelledby":ti(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:be(s,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class Kp{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do e=this.collection.getKeyAfter(e),e==null&&(e=this.collection.getFirstKey());while(this.isDisabled(e));return e}getPreviousKey(e){do e=this.collection.getKeyBefore(e),e==null&&(e=this.collection.getLastKey());while(this.isDisabled(e));return e}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function Fp(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:s,disabledKeys:a}=e,{direction:l}=ar(),u=d.useMemo(()=>new Kp(o,l,r,a),[o,a,r,l]),{collectionProps:c}=Qc({ref:n,selectionManager:s,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=rr();rd.set(e,f);let p=hs({...t,id:f});return{tabListProps:{...be(c,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const jp=d.createContext({});function Hp(t){let[e,n]=ir(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=d.useCallback(()=>{n(!0)},[n]),i=d.useCallback(()=>{n(!1)},[n]),o=d.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}class zp{build(e,n){return this.context=n,za(()=>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,s=>{s&&i.push(s)});let o=0;for(let s of i){let a=this.getFullNode({element:s,index:o},{});for(let l of a)o++,yield l}}}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 s;let a=(s=o.key)!==null&&s!==void 0?s: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 m=[];d.Children.forEach(e.element.props.children,C=>{m.push(C)});var o;let v=(o=e.index)!==null&&o!==void 0?o:0;for(const C of m)yield*this.getFullNode({element:C,index:v++},n,r,i);return}let s=e.element;if(!s&&e.value&&n&&n.renderer){let m=this.cache.get(e.value);if(m&&(!m.shouldInvalidate||!m.shouldInvalidate(this.context))){m.index=e.index,m.parentKey=i?i.key:null,yield m;return}s=n.renderer(e.value)}if(d.isValidElement(s)){let m=s.type;if(typeof m!="function"&&typeof m.getCollectionNode!="function"){let P=s.type;throw new Error(`Unknown element <${P}> in collection.`)}let v=m.getCollectionNode(s.props,this.context);var a;let C=(a=e.index)!==null&&a!==void 0?a:0,w=v.next();for(;!w.done&&w.value;){let P=w.value;e.index=C;var l;let x=(l=P.key)!==null&&l!==void 0?l:null;x==null&&(x=P.element?null:this.getKey(s,e,n,r));let _=[...this.getFullNode({...P,key:x,index:C,wrapper:Bp(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${s.key}`:s.key,i)];for(let S of _){var u,c;S.value=(c=(u=P.value)!==null&&u!==void 0?u:e.value)!==null&&c!==void 0?c:null,S.value&&this.cache.set(S.value,S);var f;if(e.type&&S.type!==e.type)throw new Error(`Unsupported type <${Yi(S.type)}> in <${Yi((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Yi(e.type)}> is supported.`);C++,yield S}w=v.next(_)}return}if(e.key==null||e.type==null)return;let p=this;var g,b;let h={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:za(function*(){if(!e.hasChildNodes||!e.childNodes)return;let m=0;for(let v of e.childNodes()){v.key!=null&&(v.key=`${h.key}${v.key}`);let C=p.getFullNode({...v,index:m},p.getChildState(n,v),h.key,h);for(let w of C)m++,yield w}})};yield h}constructor(){this.cache=new WeakMap}}function za(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 Bp(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Yi(t){return t[0].toUpperCase()+t.slice(1)}function id(t,e,n){let r=d.useMemo(()=>new zp,[]),{children:i,items:o,collection:s}=t;return d.useMemo(()=>{if(s)return s;let l=r.build({children:i,items:o},n);return e(l)},[r,i,o,s,n,e])}function Vp(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Wp(t){return Up(t)}function Up(t,e){for(let n of t)return n}function Zi(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Ba(t,e),e],i=[...Ba(t,n),n],o=r.slice(0,i.length).findIndex((s,a)=>s!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(s=>s===n)>=0?1:(i.findIndex(s=>s===e)>=0,-1)}function Ba(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}function Gp(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=h=>{var m;return(m=h.id)!==null&&m!==void 0?m:h.key},getChildren:i=h=>h.children}=t,[o,s]=d.useState(()=>f(e,new Map)),{items:a,nodeMap:l}=o,[u,c]=d.useState(new Set(n||[]));function f(h=[],m,v){return h==null&&(h=[]),{items:h.map(C=>{let w={key:r(C),parentKey:v,value:C,children:null};return w.children=f(i(C),m,w.key).items,m.set(w.key,w),w}),nodeMap:m}}function p(h,m,v,C){let w=C.get(m);if(!w)return{items:h,nodeMap:C};let P=new Map(C),x=v(w);for(x==null?b(w,P):g(x,P);w&&w.parentKey;){let _=P.get(w.parentKey),S={key:_.key,parentKey:_.parentKey,value:_.value,children:null},R=_.children;x==null&&R&&(R=R.filter(F=>F!==w));var D;S.children=(D=R==null?void 0:R.map(F=>F===w?x:F))!==null&&D!==void 0?D:null,P.set(S.key,S),x=S,w=_}return x==null&&(h=h.filter(_=>_!==w)),{items:h.map(_=>_===w?x:_),nodeMap:P}}function g(h,m){if(m.set(h.key,h),h.children)for(let v of h.children)g(v,m)}function b(h,m){if(m.delete(h.key),h.children)for(let v of h.children)b(v,m)}return{items:a,selectedKeys:u,setSelectedKeys:c,getItem(h){return l.get(h)},insert(h,m,...v){s(({items:C,nodeMap:w})=>{let{items:P,nodeMap:x}=f(v,w,h);return h==null?{items:[...C.slice(0,m),...P,...C.slice(m)],nodeMap:x}:p(C,h,D=>({key:D.key,parentKey:D.parentKey,value:D.value,children:[...D.children.slice(0,m),...P,...D.children.slice(m)]}),x)})},insertBefore(h,...m){let v=l.get(h);if(!v)return;let C=l.get(v.parentKey),P=(C?C.children:a).indexOf(v);var x;this.insert((x=C==null?void 0:C.key)!==null&&x!==void 0?x:null,P,...m)},insertAfter(h,...m){let v=l.get(h);if(!v)return;let C=l.get(v.parentKey),P=(C?C.children:a).indexOf(v);var x;this.insert((x=C==null?void 0:C.key)!==null&&x!==void 0?x:null,P+1,...m)},prepend(h,...m){this.insert(h,0,...m)},append(h,...m){if(h==null)this.insert(null,a.length,...m);else{let v=l.get(h);if(!v)return;this.insert(h,v.children.length,...m)}},remove(...h){if(h.length===0)return;let m=a,v=l,C;for(let P of h)C=p(m,P,()=>null,v),v=C.nodeMap,m=C.items;s(C);let w=new Set(u);for(let P of u)C.nodeMap.has(P)||w.delete(P);c(w)},removeSelectedItems(){this.remove(...u)},move(h,m,v){s(({items:C,nodeMap:w})=>{let P=w.get(h);if(!P)return{items:C,nodeMap:w};let{items:x,nodeMap:D}=p(C,h,()=>null,w);const _={...P,parentKey:m};return m==null?(D.set(_.key,_),{items:[...x.slice(0,v),_,...x.slice(v)],nodeMap:D}):p(x,m,S=>({key:S.key,parentKey:S.parentKey,value:S.value,children:[...S.children.slice(0,v),_,...S.children.slice(v)]}),D)})},update(h,m){s(({items:v,nodeMap:C})=>p(v,h,w=>{let P={key:w.key,parentKey:w.parentKey,value:m,children:null},x=f(i(m),C,P.key);return P.children=x.items,P},C))}}}class Va{*[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=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let a of s.childNodes)n(a)};for(let s of e)n(s);let r=null,i=0;for(let[s,a]of this.keyMap)r?(r.nextKey=s,a.prevKey=r.key):(this.firstKey=s,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}let rt=class od extends Set{constructor(e,n,r){super(e),e instanceof od?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function qp(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function sd(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,s=d.useRef(!1),[,a]=d.useState(!1),l=d.useRef(null),u=d.useRef(null),[,c]=d.useState(null),f=d.useMemo(()=>Wa(t.selectedKeys),[t.selectedKeys]),p=d.useMemo(()=>Wa(t.defaultSelectedKeys,new rt),[t.defaultSelectedKeys]),[g,b]=ir(f,p,t.onSelectionChange),h=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[m,v]=d.useState(i);i==="replace"&&m==="toggle"&&typeof g=="object"&&g.size===0&&v("replace");let C=d.useRef(i);return d.useEffect(()=>{i!==C.current&&(v(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:v,get isFocused(){return s.current},setFocused(w){s.current=w,a(w)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(w,P="first"){l.current=w,u.current=P,c(w)},selectedKeys:g,setSelectedKeys(w){(r||!qp(w,g))&&b(w)},disabledKeys:h,disabledBehavior:o}}function Wa(t,e){return t?t==="all"?"all":new rt(t):e}let ad=class{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Zi(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&&Zi(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 rt([n],n,n);else{let s=this.state.selectedKeys;var i;let a=(i=s.anchorKey)!==null&&i!==void 0?i:n;r=new rt(s,a,n);var o;for(let l of this.getKeyRange(a,(o=s.currentKey)!==null&&o!==void 0?o:n))r.delete(l);for(let l of this.getKeyRange(n,a))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Zi(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 s=this.collection.getItem(o);if(s&&(s.type==="item"||s.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 rt(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 rt([n],n,n):new rt;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new rt;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 s=this.collection.getItem(r);(s==null?void 0:s.type)==="item"&&e.push(r);var o;s!=null&&s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&n((o=(i=Wp(Vp(s,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 rt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}};function Yp(t){let{filter:e,layoutDelegate:n}=t,r=sd(t),i=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=d.useCallback(c=>e?new Va(e(c)):new Va(c),[e]),s=d.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=id(t,o,s),l=d.useMemo(()=>new ad(a,r,{layoutDelegate:n}),[a,r,n]);const u=d.useRef(null);return d.useEffect(()=>{if(r.focusedKey!=null&&!a.getItem(r.focusedKey)&&u.current){const v=u.current.getItem(r.focusedKey),C=[...u.current.getKeys()].map(S=>{const R=u.current.getItem(S);return(R==null?void 0:R.type)==="item"?R:null}).filter(S=>S!==null),w=[...a.getKeys()].map(S=>{const R=a.getItem(S);return(R==null?void 0:R.type)==="item"?R:null}).filter(S=>S!==null);var c,f;const P=((c=C==null?void 0:C.length)!==null&&c!==void 0?c:0)-((f=w==null?void 0:w.length)!==null&&f!==void 0?f:0);var p,g,b;let x=Math.min(P>1?Math.max(((p=v==null?void 0:v.index)!==null&&p!==void 0?p:0)-P+1,0):(g=v==null?void 0:v.index)!==null&&g!==void 0?g:0,((b=w==null?void 0:w.length)!==null&&b!==void 0?b:0)-1),D=null,_=!1;for(;x>=0;){if(!l.isDisabled(w[x].key)){D=w[x];break}if(x<w.length-1&&!_)x++;else{_=!0;var h,m;x>((h=v==null?void 0:v.index)!==null&&h!==void 0?h:0)&&(x=(m=v==null?void 0:v.index)!==null&&m!==void 0?m:0),x--}}r.setFocusedKey(D?D.key:null)}u.current=a},[a,l,r,r.focusedKey]),{collection:a,disabledKeys:i,selectionManager:l}}function Zp(t){var e;let[n,r]=ir(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=d.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:s,selectionManager:a}=Yp({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{if(u==="all")return;var c;let f=(c=u.values().next().value)!==null&&c!==void 0?c:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),l=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:s,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Xp(t){var e,n;let r=Zp({...t,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Ua(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:s}=r,a=d.useRef(s);return d.useEffect(()=>{let l=s;(i.isEmpty||l==null||!o.getItem(l))&&(l=Ua(o,r.disabledKeys),l!=null&&i.setSelectedKeys([l])),(l!=null&&i.focusedKey==null||!i.isFocused&&l!==a.current)&&i.setFocusedKey(l),a.current=l}),{...r,isDisabled:t.isDisabled||!1}}function Ua(t,e){let n=null;if(t){var r,i,o,s;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)||!((s=t.getItem(n))===null||s===void 0||(o=s.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}class Jp{*[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 l of a.childNodes)r(l)};for(let a of e)r(a);let i=null,o=0;for(let[a,l]of this.keyMap)i?(i.nextKey=a,l.prevKey=i.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),i=l,i.nextKey=void 0;var s;this.lastKey=(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null}}function Qp(t){let{onExpandedChange:e}=t,[n,r]=ir(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=sd(t),o=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),s=id(t,d.useCallback(l=>new Jp(l,{expandedKeys:n}),[n]),null);return d.useEffect(()=>{i.focusedKey!=null&&!s.getItem(i.focusedKey)&&i.setFocusedKey(null)},[s,i.focusedKey]),{collection:s,expandedKeys:n,disabledKeys:o,toggleKey:l=>{r(eg(n,l))},setExpandedKeys:r,selectionManager:new ad(s,i)}}function eg(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const tg=d.createContext(null),ng=d.createContext(null),ld={CollectionRoot({collection:t,renderDropIndicator:e}){return Ga(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Ga(t,e,n)}};function Ga(t,e,n){return Bu({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 s=r.key,a=t.getKeyAfter(s);return d.createElement(d.Fragment,null,n({type:"item",key:s,dropPosition:"before"}),o,(a==null||((i=t.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:s,dropPosition:"after"}))}})}const mi=d.createContext(ld);function ud(t){return d.useMemo(()=>t!=null?new Set([t]):null,[t])}const rg=d.createContext({}),cd=d.createContext({}),ig=ys("separator",function(e,n){[e,n]=sr(e,n,cd);let{elementType:r,orientation:i,style:o,className:s}=e,a=r||"hr";a==="hr"&&i==="vertical"&&(a="div");let{separatorProps:l}=Lp({elementType:r,orientation:i});return d.createElement(a,{...We(e),...l,style:o,className:s??"react-aria-Separator",ref:n,slot:e.slot||void 0})}),og=d.createContext({placement:"bottom"}),sg=d.createContext(null),ag=d.forwardRef(function(e,n){[e,n]=sr(e,n,sg);let r=d.useContext(Sg),i=Hp(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,s=S2(n,o.isOpen)||e.isExiting||!1;if(T2()){let l=e.children;return typeof l=="function"&&(l=l({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),d.createElement(d.Fragment,null,l)}return o&&!o.isOpen&&!s?null:d.createElement(lg,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:s})});function lg({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=d.useRef(null),[o,s]=d.useState(0);ge(()=>{i.current&&t.isOpen&&s(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var a;let{popoverProps:l,underlayProps:u,arrowProps:c,placement:f}=bp({...r,offset:(a=r.offset)!==null&&a!==void 0?a:8,arrowSize:o},t),p=r.popoverRef,g=b2(p,!!f)||r.isEntering||!1,b=bt({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:f,isEntering:g,isExiting:e}}),h={...l.style,...b.style};return d.createElement(Ep,{...r,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&d.createElement("div",{"data-testid":"underlay",...u,style:{position:"fixed",inset:0}}),d.createElement("div",{...be(We(r),l),...b,ref:p,slot:r.slot||void 0,style:h,"data-trigger":r.trigger,"data-placement":f,"data-entering":g||void 0,"data-exiting":e||void 0},!r.isNonModal&&d.createElement(Ma,{onDismiss:t.close}),d.createElement(og.Provider,{value:{...c,placement:f,ref:i}},b.children),d.createElement(Ma,{onDismiss:t.close})))}const ug=d.createContext({});class ze extends Set{constructor(e,n,r){super(e),e instanceof ze?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function cg(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function dg(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,s=d.useRef(!1),[,a]=d.useState(!1),l=d.useRef(null),u=d.useRef(null),[,c]=d.useState(null),f=d.useMemo(()=>qa(t.selectedKeys),[t.selectedKeys]),p=d.useMemo(()=>qa(t.defaultSelectedKeys,new ze),[t.defaultSelectedKeys]),[g,b]=ir(f,p,t.onSelectionChange),h=d.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[m,v]=d.useState(i);i==="replace"&&m==="toggle"&&typeof g=="object"&&g.size===0&&v("replace");let C=d.useRef(i);return d.useEffect(()=>{i!==C.current&&(v(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:v,get isFocused(){return s.current},setFocused(w){s.current=w,a(w)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(w,P="first"){l.current=w,u.current=P,c(w)},selectedKeys:g,setSelectedKeys(w){(r||!cg(w,g))&&b(w)},disabledKeys:h,disabledBehavior:o}}function qa(t,e){return t?t==="all"?"all":new ze(t):e}class fg{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 ze([n],n,n);else{let s=this.state.selectedKeys;var i;let a=(i=s.anchorKey)!==null&&i!==void 0?i:n;r=new ze(s,a,n);var o;for(let l of this.getKeyRange(a,(o=s.currentKey)!==null&&o!==void 0?o:n))r.delete(l);for(let l of this.getKeyRange(n,a))this.canSelectItem(l)&&r.add(l)}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 s=this.collection.getItem(o);if(s&&(s.type==="item"||s.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 ze(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 ze([n],n,n):new ze;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new ze;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 s=this.collection.getItem(r);(s==null?void 0:s.type)==="item"&&e.push(r);var o;s!=null&&s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&n((o=(i=Dp(td(s,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 ze)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}const hg=d.createContext(null),_s=d.createContext(null),pg=d.createContext(null),ni=d.createContext(null),gg=d.createContext(null),vg=d.forwardRef(function(e,n){return[e,n]=sr(e,n,hg),d.createElement(Wu,{content:d.createElement(Uu,e)},r=>r.size>0&&d.createElement(mg,{props:e,collection:r,menuRef:n}))});function mg({props:t,collection:e,menuRef:n}){let{filterFn:r,collectionProps:i,collectionRef:o}=d.useContext(tg)||{};n=$n(d.useMemo(()=>ku(n,o!==void 0?o:null),[o,n]));let s=d.useMemo(()=>r?e.filter(r):e,[e,r]),a=Qp({...t,collection:s,children:void 0}),l=d.useContext(pg),{isVirtualized:u,CollectionRoot:c}=d.useContext(mi),{menuProps:f}=kp({...t,...i,isVirtualized:u,onClose:t.onClose||(l==null?void 0:l.close)},a,n),p=bt({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{}});return d.createElement(ic,null,d.createElement("div",{...We(t),...f,...p,ref:n,slot:t.slot||void 0,onScroll:t.onScroll},d.createElement(or,{values:[[_s,a],[cd,{elementType:"div"}],[ng,{name:"MenuSection",render:bg}],[gg,{parentMenuRef:n}],[Vo,null],[ni,a.selectionManager]]},d.createElement(c,{collection:a.collection,persistedKeys:ud(a.selectionManager.focusedKey),scrollRef:n}))))}class yg extends fg{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 bg(t,e,n,r="react-aria-MenuSection"){var i,o;let s=d.useContext(_s),{CollectionBranch:a}=d.useContext(mi),[l,u]=C2();var c;let{headingProps:f,groupProps:p}=Rp({heading:u,"aria-label":(c=n.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=bt({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(ni),h=dg(t),m=t.selectionMode!=null?new yg(b,h):b;return d.createElement("section",{...We(t),...p,...g,ref:e},d.createElement(or,{values:[[rg,{...f,ref:l}],[ni,m]]},d.createElement(a,{collection:s.collection,parent:n})))}const Vo=d.createContext(null),Ya=ys("item",function(e,n,r){var i;[e,n]=sr(e,n,Vo);let o=(i=ps(Vo))===null||i===void 0?void 0:i.id,s=d.useContext(_s),a=$n(n),l=d.useContext(ni),{menuItemProps:u,labelProps:c,descriptionProps:f,keyboardShortcutProps:p,...g}=Np({...e,id:o,key:r.key,selectionManager:l},s,a),{isFocusVisible:b,focusProps:h}=gi(),{hoverProps:m,isHovered:v}=Ps({isDisabled:g.isDisabled}),C=bt({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:v,isFocusVisible:b,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),w=e.href?"a":"div";return d.createElement(w,{...be(u,h,m),...C,ref:a,"data-disabled":g.isDisabled||void 0,"data-hovered":v||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":b||void 0,"data-pressed":g.isPressed||void 0,"data-selected":g.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},d.createElement(or,{values:[[jp,{slots:{label:c,description:f}}],[ug,p]]},C.children))}),Sg=d.createContext(null),yi=d.createContext(null),bn=d.createContext(null),Cg=d.forwardRef(function(e,n){[e,n]=sr(e,n,yi);let{children:r,orientation:i="horizontal"}=e;return r=d.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),d.createElement(Wu,{content:r},o=>d.createElement(wg,{props:e,collection:o,tabsRef:n}))});function wg({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=Xp({...t,collection:n,children:void 0}),{focusProps:o,isFocused:s,isFocusVisible:a}=gi({within:!0}),l=d.useMemo(()=>({orientation:r,isFocusWithin:s,isFocusVisible:a}),[r,s,a]),u=bt({...t,defaultClassName:"react-aria-Tabs",values:l});return d.createElement("div",{...We(t),...o,...u,ref:e,slot:t.slot||void 0,"data-focused":s||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},d.createElement(or,{values:[[yi,t],[bn,i]]},u.children))}const Eg=d.forwardRef(function(e,n){return d.useContext(bn)?d.createElement(xg,{props:e,forwardedRef:n}):d.createElement(Uu,e)});function xg({props:t,forwardedRef:e}){let n=d.useContext(bn),{CollectionRoot:r}=d.useContext(mi),{orientation:i="horizontal",keyboardActivation:o="automatic"}=ps(yi),s=$n(e),{tabListProps:a}=Fp({...t,orientation:i,keyboardActivation:o},n,s),l=bt({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=We(t);return delete u.id,d.createElement("div",{...u,...a,ref:s,...l,"data-orientation":i||void 0},d.createElement(r,{collection:n.collection,persistedKeys:ud(n.selectionManager.focusedKey)}))}const $g=ys("item",(t,e,n)=>{let r=d.useContext(bn),i=$n(e),{tabProps:o,isSelected:s,isDisabled:a,isPressed:l}=Mp({key:n.key,...t},r,i),{focusProps:u,isFocused:c,isFocusVisible:f}=gi(),{hoverProps:p,isHovered:g}=Ps({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),b=bt({...t,id:void 0,defaultClassName:"react-aria-Tab",values:{isSelected:s,isDisabled:a,isFocused:c,isFocusVisible:f,isPressed:l,isHovered:g}}),h=n.props.href?"a":"div";return d.createElement(h,{...be(o,u,p,b),ref:i,"data-selected":s||void 0,"data-disabled":a||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-pressed":l||void 0,"data-hovered":g||void 0})}),Tg=$2(function(e,n){const r=d.useContext(bn);let i=$n(n),{tabPanelProps:o}=Ap(e,r,i),{focusProps:s,isFocused:a,isFocusVisible:l}=gi(),u=r.selectedKey===e.id,c=bt({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:l,isInert:!u,state:r}});if(!u&&!e.shouldForceMount)return null;let f=We(e);delete f.id;let p=u?be(f,o,s,c):c;return d.createElement("div",{...p,ref:i,"data-focused":a||void 0,"data-focus-visible":l||void 0,inert:u?void 0:"true","data-inert":u?void 0:"true"},d.createElement(or,{values:[[yi,null],[bn,null]]},d.createElement(mi.Provider,{value:ld},c.children)))}),lr=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:s,shouldCloseOnInteractOutside:a})=>{const l=d.useId(),u=f=>{n==null||n(f)},c=d.useRef(null);return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"c__dropdown-menu-trigger",ref:c,id:l,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),y.jsx(ag,{triggerRef:c,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:u,children:y.jsxs(vg,{className:"c__dropdown-menu","aria-labelledby":l,children:[s&&y.jsx(Ya,{className:"c__dropdown-menu-item-top-message",children:s}),t.map(f=>f.isHidden?null:y.jsxs(d.Fragment,{children:[y.jsxs(Ya,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var p;f.value&&(o==null||o(f.value)),(p=f.callback)==null||p.call(f),u(!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(ig,{})]},f.label))]})})]})},Sn=()=>{const[t,e]=d.useState(!1);return{isOpen:t,setIsOpen:e}},Za="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206v2H5v11h11v-5h2v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h6Zm11-3v8h-2V6.413l-7.793%207.794-1.414-1.414L17.585%205H13V3h8Z'%20/%3e%3c/svg%3e",Pg="data:image/svg+xml,%3csvg%20width='109'%20height='60'%20viewBox='0%200%20109%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3crect%20width='33'%20height='12'%20fill='url(%23paint0_linear_5795_13250)'%20/%3e%3cg%20clip-path='url(%23clip0_5795_13250)'%3e%3cg%20clip-path='url(%23clip1_5795_13250)'%3e%3cpath%20d='M8.475%206.8999C7.8%207.3499%207.2%207.8749%206.75%208.4749V8.3999C7.05%208.0249%207.275%207.6499%207.5%207.2749C7.8%207.1249%208.025%206.8999%208.25%206.6749C8.625%206.2999%209%205.9249%209.525%205.6999C9.75%205.6249%209.9%205.6249%2010.125%205.6999C10.05%205.7749%209.975%205.7749%209.825%205.8499H9.75V5.7749C9.525%205.9999%209.225%206.1499%209%206.4499C8.925%206.5999%208.85%206.8999%208.475%206.8999C8.55%206.8999%208.475%206.9749%208.475%206.8999ZM9.675%2010.3499C9.675%2010.2749%209.6%2010.3499%209.525%2010.3499L9.45%2010.4249L9.375%2010.4999L9.225%2010.6499C9.225%2010.6499%209.3%2010.7249%209.375%2010.6499L9.45%2010.5749C9.525%2010.5749%209.6%2010.4999%209.6%2010.4249C9.675%2010.4249%209.675%2010.4249%209.675%2010.3499ZM8.475%207.1249C8.55%207.1249%208.625%207.1249%208.625%207.0499C8.625%206.9749%208.7%206.9749%208.7%206.9749V6.8999C8.55%206.9749%208.475%207.0499%208.475%207.1249ZM10.275%208.5499C10.35%208.4749%2010.425%208.4749%2010.5%208.4749C11.025%208.3999%2011.55%208.2499%2012.075%208.0249C11.475%207.6499%2010.8%207.3499%2010.125%207.2749H10.2C10.125%207.1999%209.975%207.1999%209.825%207.1249H9.9C9.75%207.0499%209.525%207.0499%209.375%206.9749C9.45%206.9749%209.525%206.8249%209.525%206.7499H9.45C9.15%206.8999%209%207.1249%208.85%207.4249C9%207.4999%209.225%207.4249%209.375%207.4999H9.15C9.075%207.4999%209%207.5749%209%207.6499H9.075C9%207.6499%209%207.7249%208.925%207.7249C9%207.7999%209.075%207.7249%209.225%207.7249C9.225%207.7999%209.3%207.7999%209.3%207.7999C9.225%207.7999%209.15%207.8749%209.075%208.0249C9%208.1749%208.925%208.1749%208.85%208.2499V8.3249C8.625%208.4749%208.4%208.6999%208.175%208.9249V8.9999C8.1%209.0749%208.025%209.0749%208.025%209.1499V9.2249C8.325%209.1499%208.475%208.9249%208.775%208.8499L9.225%208.6249C9.375%208.6249%209.45%208.5499%209.6%208.5499V8.6249H9.75C9.75%208.6999%209.6%208.6249%209.675%208.6999C9.75%208.7749%209.9%208.7749%209.975%208.6999C10.125%208.5499%2010.2%208.5499%2010.275%208.5499ZM9.3%209.7499C9%209.8999%208.625%209.8999%208.4%2010.0499C8.4%2010.0499%208.4%2010.1249%208.325%2010.1249C8.325%2010.1249%208.25%2010.1249%208.25%2010.1999C8.175%2010.1999%208.175%2010.2749%208.1%2010.3499L8.025%2010.4249C8.025%2010.4249%208.025%2010.4999%208.1%2010.4249L8.175%2010.3499C8.175%2010.3499%208.1%2010.4249%208.1%2010.4999V10.7249L8.025%2010.7999C8.025%2010.7999%208.025%2010.8749%207.95%2010.8749L7.875%2010.9499L8.025%2010.7999L8.1%2010.7249H8.25C8.25%2010.7249%208.25%2010.6499%208.325%2010.6499C8.4%2010.5749%208.475%2010.4999%208.55%2010.4999H8.625C8.7%2010.4249%208.85%2010.4249%208.925%2010.3499C9%2010.2749%209.075%2010.1999%209.15%2010.1999C9.3%2010.0499%209.525%209.9749%209.75%209.8249C9.675%209.8249%209.6%209.7499%209.525%209.7499C9.525%209.8249%209.375%209.7499%209.3%209.7499ZM22.5%206.5249C22.425%206.6749%2022.2%206.6749%2022.05%206.7499C21.9%206.8999%2022.05%207.0499%2022.125%207.1249C22.2%207.3499%2021.975%207.4999%2021.825%207.4999C21.9%207.5749%2021.975%207.5749%2021.975%207.5749C21.975%207.7249%2022.125%207.7249%2022.05%207.8749C21.975%208.0249%2021.675%208.0999%2021.825%208.2499C21.9%208.3999%2021.9%208.6249%2021.825%208.7749C21.75%208.9249%2021.6%209.0749%2021.45%209.1499C21.3%209.2249%2021.15%209.2249%2021%209.1499C20.925%209.1499%2020.925%209.0749%2020.85%209.0749C20.475%208.9999%2020.1%208.9249%2019.725%208.9249C19.65%208.9249%2019.5%208.9999%2019.425%208.9999C19.35%209.0749%2019.2%209.1499%2019.125%209.2249L19.05%209.2999C18.975%209.3749%2018.9%209.4499%2018.9%209.5249C18.825%209.6749%2018.75%209.8249%2018.75%209.9749C18.6%2010.3499%2018.6%2010.7249%2018.75%2011.0249C18.75%2011.0249%2019.5%2011.2499%2020.025%2011.4749C20.175%2011.5499%2020.4%2011.6249%2020.55%2011.7749L21.825%2012.5249H9.9L11.1%2011.7749C11.55%2011.4749%2012.075%2011.2499%2012.6%2011.0249C12.975%2010.8749%2013.425%2010.6499%2013.725%2010.3499C13.875%2010.1999%2013.95%2010.0499%2014.1%209.9749C14.325%209.6749%2014.55%209.4499%2014.85%209.2249L15.075%208.9999C15.075%208.9999%2015.075%208.9249%2015.15%208.9249C15%208.9999%2015%209.0749%2014.85%209.0749C14.85%209.0749%2014.775%209.0749%2014.85%208.9999C14.925%208.9249%2015%208.8499%2015.075%208.8499V8.7749C14.775%208.7749%2014.55%208.9249%2014.325%209.1499H14.175C13.8%209.2999%2013.575%209.5249%2013.275%209.6749V9.5999C13.125%209.6749%2012.975%209.7499%2012.9%209.7499C12.75%209.7499%2012.525%209.8249%2012.3%209.7499C12%209.7499%2011.775%209.8249%2011.475%209.8999C11.325%209.9749%2011.175%209.9749%2011.025%2010.0499V10.1249L10.875%2010.2749C10.725%2010.3499%2010.65%2010.4249%2010.5%2010.5749L10.125%2010.9499H10.05L10.125%2010.8749L10.2%2010.7999C10.2%2010.7249%2010.275%2010.7249%2010.275%2010.6499C10.425%2010.5749%2010.5%2010.4249%2010.65%2010.3499C10.65%2010.3499%2010.65%2010.2749%2010.725%2010.2749L10.65%2010.3499C10.575%2010.4249%2010.575%2010.4999%2010.5%2010.4999V10.4249V10.3499L10.65%2010.1999C10.725%2010.1249%2010.8%2010.1249%2010.875%2010.0499H10.95C10.8%2010.1249%2010.725%2010.1249%2010.575%2010.1999H10.5H10.425C10.425%2010.1249%2010.5%2010.1249%2010.575%2010.0499H10.65C11.4%209.4499%2012.375%209.5999%2013.2%209.2999C13.275%209.2249%2013.35%209.2249%2013.425%209.1499C13.5%209.0749%2013.65%208.9999%2013.8%208.9249C13.95%208.7749%2014.1%208.6249%2014.175%208.3999V8.3249C13.875%208.6249%2013.575%208.8499%2013.2%209.0749C12.75%209.2249%2012.225%209.3749%2011.7%209.3749C11.7%209.2999%2011.775%209.2999%2011.775%209.2999C11.775%209.2249%2011.85%209.2249%2011.85%209.1499H11.925C11.925%209.1499%2011.925%209.0749%2012%209.0749H12.075C12%208.9999%2011.85%209.1499%2011.775%209.0749C11.85%208.9999%2011.775%208.9249%2011.85%208.9249H11.925C11.925%208.9249%2011.925%208.8499%2012%208.8499C12.375%208.6249%2012.675%208.4749%2012.975%208.3249C12.9%208.3249%2012.9%208.3999%2012.825%208.3249C12.9%208.3249%2012.825%208.2499%2012.9%208.2499C13.125%208.1749%2013.35%208.0249%2013.575%207.9499C13.5%207.9499%2013.425%208.0249%2013.35%207.9499C13.425%207.9499%2013.425%207.8749%2013.5%207.8749V7.7999C13.5%207.7249%2013.575%207.7999%2013.65%207.7249H13.575C13.65%207.6499%2013.725%207.5749%2013.875%207.5749C13.875%207.4999%2013.8%207.5749%2013.8%207.4999H13.875H13.5C13.425%207.4999%2013.5%207.4249%2013.5%207.4249C13.575%207.2749%2013.65%207.0499%2013.725%206.8999H13.65C13.425%207.1249%2013.05%207.2749%2012.75%207.3499H12.6C12.45%207.4249%2012.3%207.4249%2012.225%207.3499C12.15%207.2749%2012.075%207.1999%2012%207.1999C11.85%207.1249%2011.625%206.9749%2011.4%206.8999C10.875%206.7499%2010.275%206.5999%209.675%206.6749C9.9%206.5999%2010.2%206.5249%2010.5%206.4499C10.875%206.2999%2011.25%206.2249%2011.625%206.2249H11.4C11.1%206.2249%2010.725%206.2999%2010.425%206.3749C10.2%206.4499%209.975%206.5249%209.75%206.5249C9.6%206.5999%209.525%206.6749%209.375%206.6749V6.5999C9.6%206.2999%209.9%206.0749%2010.2%205.9999C10.575%205.9249%2011.025%205.9999%2011.4%206.0749C11.7%206.0749%2012%206.1499%2012.225%206.2249C12.3%206.2249%2012.375%206.3749%2012.45%206.4499C12.6%206.5249%2012.75%206.4499%2012.825%206.5249V6.3749C12.9%206.2999%2013.05%206.3749%2013.125%206.3749C13.275%206.2249%2012.975%206.0749%2012.9%205.9249V5.8499C13.05%205.9999%2013.275%206.1499%2013.425%206.2999C13.5%206.3749%2013.8%206.4499%2013.8%206.2999C13.65%206.0749%2013.5%205.8499%2013.275%205.6249V5.4749C13.2%205.4749%2013.2%205.4749%2013.2%205.3999C13.125%205.3249%2013.125%205.2499%2013.125%205.1749C13.05%205.0249%2013.125%204.8749%2013.05%204.7999C12.975%204.6499%2012.975%204.5749%2012.975%204.4249C12.9%204.0499%2012.825%203.6749%2012.75%203.3749C12.675%202.9249%2012.975%202.6249%2013.2%202.2499C13.35%201.9499%2013.575%201.7249%2013.8%201.4999C13.875%201.1999%2014.025%200.974902%2014.25%200.749902C14.475%200.524902%2014.7%200.374902%2014.925%200.299902C15.15%200.224902%2015.3%200.149902%2015.525%200.0749024L17.4%20-0.225098H18.75L20.1%20-9.76473e-05C20.175%20-9.76473e-05%2020.25%20-9.76324e-05%2020.25%200.0749024C20.325%200.149902%2020.475%200.224902%2020.55%200.224902C20.7%200.299902%2020.85%200.449902%2021%200.599902C21.075%200.674902%2021.15%200.824902%2021.075%200.899902C21%200.974902%2021%201.1999%2020.925%201.1999C20.775%201.2749%2020.625%201.2749%2020.475%201.2749C20.4%201.2749%2020.325%201.2749%2020.175%201.1999C20.55%201.3499%2020.85%201.4999%2021.075%201.7999C21.075%201.8749%2021.225%201.8749%2021.3%201.8749V1.9499C21.225%202.0249%2021.225%202.0249%2021.225%202.0999H21.3C21.375%202.0249%2021.375%201.7999%2021.525%201.8749C21.675%201.9499%2021.675%202.0999%2021.6%202.1749C21.525%202.2499%2021.45%202.3249%2021.3%202.3999V2.5499C21.375%202.6249%2021.375%202.6999%2021.45%202.8499C21.525%202.9999%2021.525%203.2249%2021.6%203.3749C21.675%203.7499%2021.75%204.0499%2021.75%204.4249C21.75%204.5749%2021.675%204.7999%2021.75%204.9499L21.975%205.3999C22.05%205.5499%2022.125%205.6249%2022.2%205.7749C22.35%205.9999%2022.65%206.2249%2022.5%206.5249ZM10.8%2010.4249C10.725%2010.4249%2010.725%2010.4999%2010.725%2010.4999C10.725%2010.4999%2010.8%2010.4999%2010.8%2010.4249ZM10.125%208.9249C10.125%208.9999%2010.2%208.9249%2010.2%208.9249C10.35%208.8499%2010.575%208.9249%2010.65%208.7749C10.575%208.6999%2010.5%208.7749%2010.5%208.6999C10.425%208.6999%2010.35%208.6999%2010.35%208.7749C10.275%208.8499%2010.125%208.8499%2010.125%208.9249Z'%20fill='white'%20/%3e%3cpath%20d='M20.925%204.3501C21%204.3501%2021.15%204.3501%2021.15%204.4251C21.075%204.5751%2020.85%204.6501%2020.7%204.8001H20.625C20.55%204.8751%2020.55%204.9501%2020.55%204.9501H20.325C20.4%205.0251%2020.55%205.1001%2020.7%205.1001L20.775%205.1751H20.925V5.2501C20.85%205.3251%2020.775%205.3251%2020.625%205.3251C20.775%205.4001%2021%205.4001%2021.15%205.3251C21.3%205.2501%2021.15%205.0251%2021.225%204.9501C21.15%204.9501%2021.225%204.8751%2021.15%204.8751C21.225%204.8001%2021.225%204.7251%2021.3%204.7251C21.375%204.7251%2021.375%204.7251%2021.45%204.6501C21.45%204.5751%2021.375%204.5751%2021.375%204.5001C21.525%204.4251%2021.6%204.2751%2021.6%204.1251C21.6%204.0501%2021.375%204.0501%2021.3%203.9751H20.925C20.775%203.9751%2020.7%204.0501%2020.55%204.0501L20.1%204.2751C20.25%204.2001%2020.4%204.2001%2020.625%204.1251C20.625%204.3501%2020.775%204.3501%2020.925%204.3501Z'%20fill='%237C7C7C'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M5.355%2025.5762C6.1866%2025.5762%206.9048%2025.2864%207.4088%2024.8076V23.2704H5.166V21.7458H9.198V25.4502C8.379%2026.5464%207.0056%2027.252%205.355%2027.252C2.4948%2027.252%200.5418%2025.11%200.5418%2022.59C0.5418%2020.07%202.4444%2017.928%205.229%2017.928C6.8292%2017.928%208.1396%2018.6462%208.946%2019.7172L7.5348%2020.8134C7.0308%2020.0952%206.237%2019.6038%205.229%2019.6038C3.5658%2019.6038%202.3814%2020.9016%202.3814%2022.59C2.3814%2024.2784%203.6288%2025.5762%205.355%2025.5762ZM15.2175%2017.928C17.9895%2017.928%2019.8921%2020.07%2019.8921%2022.59C19.8921%2025.11%2017.9895%2027.252%2015.2175%2027.252C12.4329%2027.252%2010.5303%2025.11%2010.5303%2022.59C10.5303%2020.07%2012.4329%2017.928%2015.2175%2017.928ZM15.2175%2025.5762C16.8681%2025.5762%2018.0525%2024.2784%2018.0525%2022.59C18.0525%2020.9016%2016.8681%2019.6038%2015.2175%2019.6038C13.5543%2019.6038%2012.3699%2020.9016%2012.3699%2022.59C12.3699%2024.2784%2013.5543%2025.5762%2015.2175%2025.5762ZM26.8084%2023.6988V18.18H28.5976V23.5476C28.5976%2025.866%2027.2368%2027.252%2025.0192%2027.252C22.8142%2027.252%2021.4534%2025.866%2021.4534%2023.5476V18.18H23.2426V23.6988C23.2426%2024.8832%2023.9104%2025.5762%2025.0318%2025.5762C26.128%2025.5762%2026.8084%2024.8832%2026.8084%2023.6988ZM29.7114%2018.18H31.614L34.2222%2025.0722L36.8304%2018.18H38.733L35.394%2027H33.0504L29.7114%2018.18ZM40.095%2027V18.18H45.2358V19.6668H41.8842V21.7584H44.7318V23.2452H41.8842V25.5132H45.2358V27H40.095ZM47.3149%2027V18.18H50.0113C51.9517%2018.18%2053.1487%2019.1754%2053.1487%2020.8134C53.1487%2021.8844%2052.6321%2022.6782%2051.7249%2023.094L54.4843%2027H52.3801L50.0239%2023.4342H49.1041V27H47.3149ZM50.1121%2019.6668H49.1041V21.9474H50.1121C50.8681%2021.9474%2051.3091%2021.5064%2051.3091%2020.7882C51.3091%2020.1204%2050.8681%2019.6668%2050.1121%2019.6668ZM55.6176%2027V18.18H57.9108L61.8546%2024.5556V18.18H63.6438V27H61.3506L57.4068%2020.6244V27H55.6176ZM66.1105%2027V18.18H71.2513V19.6668H67.8997V21.7584H70.7473V23.2452H67.8997V25.5132H71.2513V27H66.1105ZM73.3304%2027V18.18H75.5606L77.7152%2021.8844L79.8698%2018.18H82.1V27H80.3108V20.6748L78.3452%2023.976H77.0852L75.1196%2020.6748V27H73.3304ZM84.5617%2027V18.18H89.7025V19.6668H86.3509V21.7584H89.1985V23.2452H86.3509V25.5132H89.7025V27H84.5617ZM91.7816%2027V18.18H94.0748L98.0186%2024.5556V18.18H99.8078V27H97.5146L93.5708%2020.6244V27H91.7816ZM101.367%2019.8054V18.18H108.6V19.8054H105.878V27H104.089V19.8054H101.367Z'%20fill='%23161616'%20/%3e%3cg%20clip-path='url(%23clip2_5795_13250)'%3e%3cg%20clip-path='url(%23clip3_5795_13250)'%3e%3cg%20clip-path='url(%23clip4_5795_13250)'%3e%3cg%20clip-path='url(%23clip5_5795_13250)'%3e%3cg%20clip-path='url(%23clip6_5795_13250)'%3e%3cpath%20d='M30.775%2056.45C31.15%2055.5%2030.7%2055.125%2030.15%2055.125C29.225%2055.125%2028.175%2056.75%2028.175%2058.05C28.175%2058.675%2028.475%2059%2028.925%2059C29.45%2059%2030%2058.5%2030.475%2057.625H30.225C29.925%2058%2029.575%2058.275%2029.25%2058.275C28.925%2058.275%2028.75%2058.075%2028.75%2057.625C28.7558%2057.4396%2028.781%2057.2552%2028.825%2057.075L30.775%2056.45ZM29.775%2055.675C30.05%2055.675%2030.275%2055.875%2030.15%2056.325L28.95%2056.65C29.15%2056.1%2029.5%2055.65%2029.8%2055.65L29.775%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M30.15%2054.6999L31.275%2053.6749V53.5249H30.525L29.85%2054.6999H30.175H30.15Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip7_5795_13250)'%3e%3cpath%20d='M25.975%2055.675H26.625L25.575%2058.525C25.5421%2058.576%2025.5242%2058.6352%2025.5232%2058.6959C25.5222%2058.7565%2025.5382%2058.8163%2025.5694%2058.8683C25.6007%2058.9204%2025.6458%2058.9626%2025.6998%2058.9903C25.7538%2059.018%2025.8145%2059.03%2025.875%2059.025C26.625%2059.025%2027.475%2058.375%2027.825%2057.475H27.65C27.3359%2057.9021%2026.8865%2058.2105%2026.375%2058.35L27.3%2055.675H28.3L28.425%2055.275H27.475L27.8%2054.25H27.45L26.775%2055.275L25.975%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip8_5795_13250)'%3e%3cpath%20d='M25.3%2055.5249C25.375%2055.2749%2025.2%2055.1249%2025.05%2055.1249C24.5%2055.1249%2023.8%2055.6499%2023.55%2056.3749H23.725C23.9026%2056.0881%2024.1778%2055.875%2024.5%2055.7749L23.425%2058.5999C23.4034%2058.6422%2023.3932%2058.6894%2023.3952%2058.7368C23.3973%2058.7843%2023.4116%2058.8304%2023.4368%2058.8707C23.4619%2058.911%2023.4971%2058.9441%2023.5389%2058.9667C23.5806%2058.9893%2023.6275%2059.0008%2023.675%2058.9999C24.225%2058.9999%2024.85%2058.4999%2025.125%2057.7499H24.9C24.7378%2058.0509%2024.471%2058.2821%2024.15%2058.3999L25.3%2055.5249ZM25.4%2054.4499C25.4591%2054.4499%2025.5176%2054.4383%2025.5722%2054.4156C25.6268%2054.393%2025.6764%2054.3599%2025.7182%2054.3181C25.76%2054.2763%2025.7932%2054.2267%2025.8158%2054.1721C25.8384%2054.1175%2025.85%2054.059%2025.85%2053.9999C25.8534%2053.9387%2025.8443%2053.8775%2025.8232%2053.82C25.8021%2053.7625%2025.7695%2053.7099%2025.7274%2053.6654C25.6853%2053.6209%2025.6345%2053.5855%2025.5782%2053.5614C25.5219%2053.5372%2025.4613%2053.5248%2025.4%2053.5249C25.2807%2053.5249%2025.1662%2053.5723%2025.0818%2053.6567C24.9974%2053.7411%2024.95%2053.8556%2024.95%2053.9749C24.95%2054.0943%2024.9974%2054.2087%2025.0818%2054.2931C25.1662%2054.3775%2025.2807%2054.4249%2025.4%2054.4249'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip9_5795_13250)'%3e%3cpath%20d='M20.125%2055.8999C20.3%2055.8999%2020.375%2056.1499%2020.125%2056.7499L19.375%2058.4499C19.2%2058.7749%2019.375%2058.9999%2019.675%2058.9999C19.7577%2059.0148%2019.843%2058.997%2019.9129%2058.9504C19.9828%2058.9038%2020.0319%2058.8319%2020.05%2058.7499L20.8%2056.7499C21.15%2056.3249%2021.8%2055.8749%2022.05%2055.8749C22.3%2055.8749%2022.25%2056.0249%2022.125%2056.2749L20.975%2058.5249C20.9497%2058.5734%2020.9371%2058.6276%2020.9383%2058.6823C20.9395%2058.737%2020.9545%2058.7906%2020.9819%2058.838C21.0094%2058.8854%2021.0483%2058.925%2021.0952%2058.9533C21.142%2058.9816%2021.1953%2058.9976%2021.25%2058.9999C21.825%2058.9999%2022.5%2058.4999%2022.75%2057.7499H22.6C22.4209%2058.051%2022.1355%2058.274%2021.8%2058.3749L22.8%2056.3749C22.9222%2056.1611%2022.9908%2055.9209%2023%2055.6749C23.0079%2055.6007%2022.9991%2055.5257%2022.9742%2055.4554C22.9494%2055.3851%2022.9091%2055.3212%2022.8564%2055.2685C22.8036%2055.2158%2022.7398%2055.1755%2022.6695%2055.1507C22.5991%2055.1258%2022.5242%2055.117%2022.45%2055.1249C21.95%2055.1249%2021.55%2055.6749%2020.95%2056.3749V55.8249C20.95%2055.4749%2020.825%2055.1249%2020.5%2055.1249C20.1%2055.1249%2019.75%2055.7499%2019.475%2056.3499H19.65C19.825%2056.0749%2019.975%2055.8999%2020.15%2055.8999'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip10_5795_13250)'%3e%3cpath%20d='M19.375%2056C19.5%2055.525%2019.425%2055.125%2019.075%2055.125C18.625%2055.125%2018.5%2055.425%2018.075%2056.375V55.825C18.05%2055.45%2017.925%2055.125%2017.575%2055.125C17.2%2055.125%2016.85%2055.75%2016.55%2056.375H16.75C16.925%2056.05%2017.125%2055.875%2017.25%2055.875C17.425%2055.875%2017.5%2056.125%2017.25%2056.725L16.5%2058.425C16.325%2058.75%2016.5%2058.95%2016.8%2058.95C16.8827%2058.9649%2016.968%2058.9472%2017.0379%2058.9006C17.1078%2058.8539%2017.1569%2058.7821%2017.175%2058.7L17.925%2056.7C18.1317%2056.4415%2018.3486%2056.1913%2018.575%2055.95H19.375V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip11_5795_13250)'%3e%3cpath%20d='M16.175%2056.45C16.55%2055.5%2016.1%2055.125%2015.55%2055.125C14.625%2055.125%2013.575%2056.75%2013.575%2058.05C13.575%2058.675%2013.875%2059%2014.325%2059C14.85%2059%2015.4%2058.5%2015.875%2057.625H15.625C15.325%2058%2014.975%2058.275%2014.65%2058.275C14.325%2058.275%2014.15%2058.075%2014.15%2057.625C14.1559%2057.4396%2014.181%2057.2552%2014.225%2057.075L16.175%2056.45ZM15.175%2055.675C15.45%2055.675%2015.675%2055.875%2015.55%2056.325L14.35%2056.65C14.55%2056.1%2014.9%2055.65%2015.2%2055.65L15.175%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip12_5795_13250)'%3e%3cpath%20d='M11.35%2055.675H12L10.95%2058.525C10.9171%2058.576%2010.8992%2058.6352%2010.8982%2058.6959C10.8972%2058.7565%2010.9132%2058.8163%2010.9444%2058.8683C10.9757%2058.9204%2011.0208%2058.9626%2011.0748%2058.9903C11.1288%2059.018%2011.1895%2059.03%2011.25%2059.025C12%2059.025%2012.85%2058.375%2013.2%2057.475H13.025C12.7109%2057.9021%2012.2615%2058.2105%2011.75%2058.35L12.675%2055.675H13.675L13.8%2055.275H12.85L13.175%2054.25H12.825L12.15%2055.275L11.35%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip13_5795_13250)'%3e%3cpath%20d='M9.84996%2058.2252C9.69996%2058.2252%209.59996%2057.9752%209.84996%2057.3752L10.875%2054.9752L10.575%2054.9502L10.25%2055.2752H10.175C8.74996%2055.2752%207.22496%2057.1002%207.22496%2058.5002C7.22137%2058.5701%207.23249%2058.64%207.25761%2058.7053C7.28272%2058.7706%207.32126%2058.8299%207.37075%2058.8794C7.42024%2058.9289%207.47956%2058.9674%207.54488%2058.9926C7.6102%2059.0177%207.68007%2059.0288%207.74996%2059.0252C8.17496%2059.0252%208.57496%2058.4252%209.04996%2057.7752L9.02496%2058.0252C8.94996%2058.6752%209.17496%2059.0252%209.52496%2059.0252C9.89996%2059.0252%2010.275%2058.4252%2010.525%2057.8002H10.35C10.175%2058.0752%209.97496%2058.2502%209.84996%2058.2502V58.2252ZM9.19996%2057.4002C8.87496%2057.8002%208.34996%2058.2752%208.12496%2058.2752C7.99996%2058.2752%207.89996%2058.1502%207.89996%2057.8752C7.89996%2057.0002%208.89996%2055.8252%209.39996%2055.8252C9.51862%2055.822%209.63696%2055.8389%209.74996%2055.8752L9.19996%2057.4002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip14_5795_13250)'%3e%3cpath%20d='M7.85004%2056C7.97504%2055.525%207.90004%2055.125%207.55004%2055.125C7.10004%2055.125%206.97504%2055.425%206.55004%2056.375V55.825C6.52504%2055.45%206.40004%2055.125%206.05004%2055.125C5.67504%2055.125%205.32504%2055.75%205.02504%2056.375H5.22504C5.40004%2056.05%205.60004%2055.875%205.72504%2055.875C5.90004%2055.875%205.97504%2056.125%205.72504%2056.725L4.97504%2058.425C4.80004%2058.75%204.97504%2058.95%205.27504%2058.95C5.35775%2058.9649%205.443%2058.9472%205.51292%2058.9006C5.58284%2058.8539%205.63198%2058.7821%205.65004%2058.7L6.40004%2056.7C6.60676%2056.4415%206.82359%2056.1913%207.05004%2055.95H7.85004V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip15_5795_13250)'%3e%3cpath%20d='M2.79998%2058.8499L2.87498%2058.6249C1.92498%2058.4499%201.79998%2058.4499%202.19998%2057.4249L2.54998%2056.4499H3.29998C3.77498%2056.4499%203.77498%2056.6749%203.69998%2057.1999H3.94998L4.59998%2055.4749H4.34998C4.09998%2055.8749%203.89998%2056.1999%203.39998%2056.1999H2.64998L3.14998%2054.7999C3.34998%2054.2999%203.42498%2054.1999%204.07498%2054.1999H4.24998C4.89998%2054.1999%204.99998%2054.3749%204.99998%2055.0749H5.24998L5.47498%2053.8999H1.82498L1.74998%2054.1249C2.49998%2054.2749%202.57498%2054.3499%202.24998%2055.3249L1.42498%2057.3999C1.04998%2058.3749%200.924976%2058.4499%200.0499756%2058.5999L-0.0250244%2058.8249L2.79998%2058.8499Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip16_5795_13250)'%3e%3cg%20clip-path='url(%23clip17_5795_13250)'%3e%3cpath%20d='M21.925%2048.2C22.3%2047.25%2021.85%2046.875%2021.3%2046.875C20.375%2046.875%2019.325%2048.5%2019.325%2049.8C19.325%2050.425%2019.625%2050.75%2020.075%2050.75C20.6%2050.75%2021.15%2050.25%2021.625%2049.375H21.375C21.075%2049.75%2020.725%2050.025%2020.4%2050.025C20.075%2050.025%2019.9%2049.825%2019.9%2049.375C19.9059%2049.1896%2019.931%2049.0052%2019.975%2048.825L21.925%2048.2ZM20.925%2047.425C21.2%2047.425%2021.425%2047.625%2021.3%2048.075L20.1%2048.4C20.3%2047.85%2020.65%2047.4%2020.95%2047.4L20.925%2047.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.3%2046.4499L22.425%2045.4249V45.2749H21.675L21%2046.4499H21.325H21.3Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip18_5795_13250)'%3e%3cpath%20d='M17.125%2047.425H17.775L16.725%2050.275C16.6921%2050.326%2016.6742%2050.3852%2016.6732%2050.4459C16.6722%2050.5065%2016.6882%2050.5663%2016.7195%2050.6183C16.7507%2050.6704%2016.7959%2050.7126%2016.8499%2050.7403C16.9039%2050.768%2016.9645%2050.78%2017.025%2050.775C17.775%2050.775%2018.625%2050.125%2018.975%2049.225H18.8C18.4859%2049.6521%2018.0365%2049.9605%2017.525%2050.1L18.45%2047.425H19.45L19.575%2047.025H18.625L18.95%2046H18.6L17.925%2047.025L17.125%2047.125V47.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip19_5795_13250)'%3e%3cpath%20d='M16.45%2047.25C16.525%2047%2016.35%2046.85%2016.2%2046.85C15.65%2046.85%2014.95%2047.375%2014.7%2048.1H14.875C15.0526%2047.8132%2015.3278%2047.6001%2015.65%2047.5L14.575%2050.325C14.5534%2050.3673%2014.5431%2050.4145%2014.5452%2050.4619C14.5472%2050.5094%2014.5615%2050.5555%2014.5867%2050.5958C14.6119%2050.6361%2014.6471%2050.6692%2014.6888%2050.6918C14.7306%2050.7144%2014.7775%2050.7259%2014.825%2050.725C15.375%2050.725%2016%2050.225%2016.275%2049.475H16.05C15.8878%2049.776%2015.621%2050.0072%2015.3%2050.125L16.45%2047.25ZM16.55%2046.175C16.6091%2046.175%2016.6676%2046.1634%2016.7222%2046.1407C16.7768%2046.1181%2016.8264%2046.085%2016.8682%2046.0432C16.91%2046.0014%2016.9431%2045.9518%2016.9657%2045.8972C16.9884%2045.8426%2017%2045.7841%2017%2045.725C17.0034%2045.6638%2016.9943%2045.6026%2016.9732%2045.5451C16.9521%2045.4876%2016.9195%2045.435%2016.8774%2045.3905C16.8352%2045.346%2016.7845%2045.3106%2016.7282%2045.2865C16.6719%2045.2623%2016.6113%2045.2499%2016.55%2045.25C16.4306%2045.25%2016.3162%2045.2974%2016.2318%2045.3818C16.1474%2045.4662%2016.1%2045.5807%2016.1%2045.7C16.1%2045.8193%2016.1474%2045.9338%2016.2318%2046.0182C16.3162%2046.1026%2016.4306%2046.15%2016.55%2046.15'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip20_5795_13250)'%3e%3cpath%20d='M13.075%2050.1249L14.875%2045.3499L14.8%2045.2749L13.55%2045.4249V45.5749L13.8%2045.7499C14.025%2045.9249%2013.95%2046.0749%2013.75%2046.5999L12.4%2050.2499C12.3685%2050.2991%2012.3509%2050.3559%2012.349%2050.4142C12.3471%2050.4726%2012.3609%2050.5304%2012.389%2050.5815C12.4172%2050.6327%2012.4586%2050.6753%2012.5089%2050.705C12.5592%2050.7346%2012.6166%2050.7501%2012.675%2050.7499C13.25%2050.7499%2013.85%2050.2249%2014.125%2049.4999H13.95C13.7377%2049.8015%2013.4291%2050.0219%2013.075%2050.1249Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip21_5795_13250)'%3e%3cpath%20d='M11.35%2049.9752C11.2%2049.9752%2011.1%2049.7252%2011.35%2049.1252L12.375%2046.7252L12.075%2046.7002L11.75%2047.0252H11.675C10.25%2047.0252%208.72496%2048.8502%208.72496%2050.2502C8.72137%2050.3201%208.73249%2050.39%208.75761%2050.4553C8.78272%2050.5206%208.82126%2050.5799%208.87075%2050.6294C8.92024%2050.6789%208.97956%2050.7174%209.04488%2050.7426C9.1102%2050.7677%209.18007%2050.7788%209.24996%2050.7752C9.67496%2050.7752%2010.075%2050.1752%2010.55%2049.5252L10.525%2049.7752C10.45%2050.4252%2010.675%2050.7752%2011.025%2050.7752C11.4%2050.7752%2011.775%2050.1752%2012.025%2049.5502H11.85C11.675%2049.8252%2011.475%2050.0002%2011.35%2050.0002V49.9752ZM10.7%2049.1502C10.375%2049.5502%209.84996%2050.0252%209.62496%2050.0252C9.49996%2050.0252%209.39996%2049.9002%209.39996%2049.6252C9.39996%2048.7502%2010.4%2047.5752%2010.9%2047.5752C11.0186%2047.572%2011.137%2047.5889%2011.25%2047.6252L10.7%2049.1502Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip22_5795_13250)'%3e%3cpath%20d='M9.15%2047.0002H8.075C7.91845%2046.8999%207.73591%2046.8477%207.55%2046.8502C7.11669%2046.8501%206.70075%2047.0205%206.39202%2047.3246C6.0833%2047.6286%205.90657%2048.0419%205.9%2048.4752C5.88969%2048.5836%205.90095%2048.693%205.93314%2048.797C5.96532%2048.9011%206.01779%2048.9977%206.08751%2049.0814C6.15724%2049.1651%206.24284%2049.2341%206.33938%2049.2845C6.43592%2049.335%206.54149%2049.3658%206.65%2049.3752C6.175%2049.5752%205.9%2049.8252%205.9%2050.1002C5.9%2050.1772%205.92093%2050.2528%205.96057%2050.3188C6.0002%2050.3849%206.05703%2050.4389%206.125%2050.4752C5.05%2050.8002%204.625%2051.1752%204.625%2051.6502C4.625%2052.1502%205.275%2052.3502%206.025%2052.3502C7.35%2052.3502%208.425%2051.6752%208.425%2051.0752C8.425%2050.6252%208.025%2050.4502%207.35%2050.2502C6.8%2050.0752%206.55%2050.0502%206.55%2049.8502C6.56644%2049.752%206.60704%2049.6595%206.66814%2049.581C6.72924%2049.5024%206.80892%2049.4403%206.9%2049.4002C7.31131%2049.369%207.69601%2049.1848%207.97828%2048.884C8.26056%2048.5832%208.41993%2048.1876%208.425%2047.7752C8.42962%2047.6483%208.41272%2047.5215%208.375%2047.4002H9L9.15%2047.0002ZM7.1%2050.9002C7.625%2051.0752%207.85%2051.1502%207.85%2051.3002C7.85%2051.6502%207.35%2051.9252%206.45%2051.9252C5.775%2051.9252%205.45%2051.7752%205.45%2051.4252C5.45%2051.0502%205.8%2050.8002%206.325%2050.6002C6.56712%2050.7189%206.81783%2050.8191%207.075%2050.9002H7.1ZM6.9%2049.1002C6.65%2049.1002%206.575%2048.9002%206.575%2048.6752C6.575%2047.9752%206.925%2047.1252%207.45%2047.1252C7.7%2047.1252%207.775%2047.3252%207.775%2047.5252C7.775%2048.2502%207.425%2049.1002%206.9%2049.1002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip23_5795_13250)'%3e%3cpath%20d='M3.575%2048.2252C4.05%2048.2252%204.075%2048.4252%203.975%2048.9252H4.25L4.875%2047.2252H4.625C4.375%2047.6252%204.2%2047.9502%203.675%2047.9502H2.65L3.15%2046.5502C3.325%2046.0502%203.4%2045.9502%204.075%2045.9502H4.5C5.15%2045.9502%205.25%2046.1252%205.25%2046.8252H5.5L5.725%2045.6502H1.825L1.75%2045.8752C2.5%2046.0252%202.575%2046.1002%202.25%2047.0752L1.45%2049.1752C1.075%2050.1502%200.95%2050.2252%200.05%2050.3752L0%2050.6252H4.35L5.15%2049.3752H4.85C4.35%2049.8752%203.85%2050.3252%202.85%2050.3252C1.675%2050.3252%201.775%2050.2502%202.175%2049.1752L2.525%2048.2252H3.575ZM4.15%2045.2752L5.25%2044.4752V44.3252H4.5L3.85%2045.3002H4.15V45.2752Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip24_5795_13250)'%3e%3cg%20clip-path='url(%23clip25_5795_13250)'%3e%3cpath%20d='M21.8%2039.95C22.175%2039%2021.725%2038.625%2021.175%2038.625C20.25%2038.625%2019.2%2040.25%2019.2%2041.55C19.2%2042.175%2019.5%2042.5%2019.95%2042.5C20.475%2042.5%2021.025%2042%2021.5%2041.125H21.25C20.95%2041.5%2020.6%2041.775%2020.275%2041.775C19.95%2041.775%2019.775%2041.575%2019.775%2041.125C19.7809%2040.9396%2019.806%2040.7552%2019.85%2040.575L21.8%2039.95ZM20.8%2039.175C21.075%2039.175%2021.3%2039.375%2021.175%2039.825L19.975%2040.15C20.175%2039.6%2020.525%2039.15%2020.825%2039.15L20.8%2039.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.175%2038.1999L22.3%2037.1749V37.0249H21.55L20.875%2038.1999H21.2H21.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip26_5795_13250)'%3e%3cpath%20d='M16.975%2039.1501H17.625L16.575%2042.0001C16.5421%2042.0511%2016.5242%2042.1103%2016.5232%2042.171C16.5222%2042.2316%2016.5382%2042.2914%2016.5694%2042.3434C16.6007%2042.3955%2016.6458%2042.4377%2016.6998%2042.4654C16.7538%2042.4931%2016.8145%2042.5051%2016.875%2042.5001C17.625%2042.5001%2018.475%2041.8501%2018.825%2040.9501H18.65C18.3359%2041.3772%2017.8865%2041.6856%2017.375%2041.8251L18.3%2039.1501H19.3L19.425%2038.7501H18.475L18.8%2037.7251H18.45L17.775%2038.7501L16.975%2038.8501V39.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip27_5795_13250)'%3e%3cpath%20d='M16.65%2039.5C16.775%2039.025%2016.7%2038.625%2016.35%2038.625C15.9%2038.625%2015.775%2038.925%2015.35%2039.875V39.325C15.325%2038.95%2015.2%2038.625%2014.85%2038.625C14.475%2038.625%2014.125%2039.25%2013.825%2039.875H14.025C14.2%2039.55%2014.4%2039.375%2014.525%2039.375C14.7%2039.375%2014.775%2039.625%2014.525%2040.225L13.775%2041.925C13.6%2042.25%2013.775%2042.45%2014.075%2042.45C14.1577%2042.4649%2014.243%2042.4472%2014.3129%2042.4006C14.3828%2042.3539%2014.432%2042.2821%2014.45%2042.2L15.2%2040.2C15.4067%2039.9415%2015.6236%2039.6913%2015.85%2039.45H16.65V39.5Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip28_5795_13250)'%3e%3cpath%20d='M13.45%2039.9251C13.825%2038.9751%2013.375%2038.6001%2012.825%2038.6001C11.9%2038.6001%2010.85%2040.2251%2010.85%2041.5251C10.85%2042.1501%2011.15%2042.4751%2011.6%2042.4751C12.125%2042.4751%2012.675%2041.9751%2013.15%2041.1001H12.9C12.6%2041.4751%2012.25%2041.7501%2011.925%2041.7501C11.6%2041.7501%2011.425%2041.5501%2011.425%2041.1001C11.4308%2040.9147%2011.456%2040.7303%2011.5%2040.5501L13.45%2039.9251ZM12.45%2039.1501C12.725%2039.1501%2012.95%2039.3501%2012.825%2039.8001L11.625%2040.1251C11.825%2039.5751%2012.175%2039.1251%2012.475%2039.1251L12.45%2039.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip29_5795_13250)'%3e%3cpath%20d='M10.2%2038.6249C9.69998%2038.6249%209.19998%2039.1749%208.74998%2039.8249L9.74998%2037.0999L9.69998%2037.0249L8.44998%2037.1749V37.2749L8.69998%2037.4749C8.92498%2037.6499%208.84998%2037.7999%208.64998%2038.3249L7.54998%2041.2249C7.46796%2041.4023%207.40106%2041.5863%207.34998%2041.7749C7.34998%2042.1249%207.79998%2042.4499%208.22498%2042.4499C9.17498%2042.4499%2010.725%2040.7249%2010.725%2039.3999C10.725%2038.8249%2010.6%2038.5999%2010.2%2038.5999V38.6249ZM8.54998%2041.8999C8.34998%2041.8999%208.07498%2041.7249%208.07498%2041.5749C8.12768%2041.3868%208.19454%2041.2029%208.27498%2041.0249L8.59998%2040.1999C8.92498%2039.7749%209.44998%2039.3499%209.74998%2039.3499C9.92498%2039.3499%2010.05%2039.4499%2010.05%2039.7249C10.05%2040.4999%209.32498%2041.8999%208.54998%2041.8999Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip30_5795_13250)'%3e%3cpath%20d='M7.05003%2039C7.12503%2038.75%206.95003%2038.6%206.80003%2038.6C6.25003%2038.6%205.55003%2039.125%205.30003%2039.85H5.47503C5.65263%2039.5632%205.92784%2039.3501%206.25003%2039.25L5.17503%2042.075C5.15343%2042.1173%205.14316%2042.1645%205.14522%2042.2119C5.14727%2042.2594%205.16158%2042.3055%205.18676%2042.3458C5.21193%2042.3861%205.24711%2042.4192%205.28887%2042.4418C5.33063%2042.4644%205.37754%2042.4759%205.42503%2042.475C5.97503%2042.475%206.60003%2041.975%206.87503%2041.225H6.65003C6.4878%2041.526%206.22102%2041.7572%205.90003%2041.875L7.05003%2039ZM7.15003%2037.925C7.20913%2037.925%207.26764%2037.9134%207.32224%2037.8907C7.37684%2037.8681%207.42645%2037.835%207.46823%2037.7932C7.51002%2037.7514%207.54316%2037.7018%207.56578%2037.6472C7.58839%2037.5926%207.60003%2037.5341%207.60003%2037.475C7.60344%2037.4138%207.59432%2037.3526%207.57323%2037.2951C7.55214%2037.2376%207.51954%2037.185%207.47741%2037.1405C7.43528%2037.096%207.38451%2037.0606%207.32822%2037.0365C7.27193%2037.0123%207.21129%2036.9999%207.15003%2037C7.03069%2037%206.91623%2037.0474%206.83184%2037.1318C6.74744%2037.2162%206.70003%2037.3307%206.70003%2037.45C6.70003%2037.5693%206.74744%2037.6838%206.83184%2037.7682C6.91623%2037.8526%207.03069%2037.9%207.15003%2037.9'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip31_5795_13250)'%3e%3cpath%20d='M4.4%2037.3501H1.825L1.75%2037.5751C2.5%2037.7251%202.575%2037.8001%202.25%2038.7751L1.45%2040.9001C1.075%2041.8751%200.95%2041.9501%200.075%2042.1001L0%2042.3501H3.925L4.8%2040.8501H4.5C4%2041.3501%203.45%2042.0501%202.575%2042.0501C1.9%2042.0501%201.825%2041.9251%202.175%2040.9251L2.95%2038.8001C3.3%2037.8251%203.45%2037.7501%204.325%2037.6001L4.4%2037.3501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5795_13250'%20x1='0'%20y1='6'%20x2='33'%20y2='6'%20gradientUnits='userSpaceOnUse'%20%3e%3cstop%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23E1000F'%20/%3e%3cstop%20offset='1'%20stop-color='%23E1000F'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_5795_13250'%3e%3crect%20width='33'%20height='12'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_5795_13250'%3e%3crect%20width='33'%20height='13.5'%20fill='white'%20transform='translate(0%20-0.75)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_5795_13250'%3e%3crect%20width='108.88'%20height='26.5'%20fill='white'%20transform='translate(0%2033)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_5795_13250'%3e%3crect%20width='63'%20height='45'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip4_5795_13250'%3e%3crect%20width='31.5'%20height='22.5'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip5_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(28.175%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip6_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(28.175%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip7_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(25.55%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip8_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(23.4%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip9_5795_13250'%3e%3crect%20width='3.7'%20height='3.875'%20fill='white'%20transform='translate(19.3%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip10_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(16.425%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip11_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(13.575%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip12_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(10.925%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip13_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(7.22498%2054.9502)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip14_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(4.90002%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip15_5795_13250'%3e%3crect%20width='5.475'%20height='4.95'%20fill='white'%20transform='translate(0%2053.8999)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip16_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.325%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip17_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.325%2046.875)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip18_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.7%2046)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip19_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(14.55%2045.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip20_5795_13250'%3e%3crect%20width='2.525'%20height='5.475'%20fill='white'%20transform='translate(12.35%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip21_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(8.72498%2046.7002)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip22_5795_13250'%3e%3crect%20width='4.5'%20height='5.5'%20fill='white'%20transform='translate(4.65002%2046.8501)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip23_5795_13250'%3e%3crect%20width='5.75'%20height='6.275'%20fill='white'%20transform='translate(0%2044.3252)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip24_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.2%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip25_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.2%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip26_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.55%2037.7251)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip27_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(13.7%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip28_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(10.85%2038.6001)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip29_5795_13250'%3e%3crect%20width='3.4'%20height='5.45'%20fill='white'%20transform='translate(7.34998%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip30_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(5.15002%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip31_5795_13250'%3e%3crect%20width='4.8'%20height='4.975'%20fill='white'%20transform='translate(0%2037.3501)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",_g=()=>{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:Pg})})}),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:Za})]},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:Za})]})]})]})]})},Dg=({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",{children:i}),e||y.jsx(Du,{})]}),y.jsx("img",{src:n,alt:""})]})}),Og=({children:t})=>y.jsx("div",{className:"c__home-gutter",children:t}),dd=(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:dd(t[i],r.slice(1),n)},Ig={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},kg={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"}},Ng={label:"Les services de La Suite numérique"},Rg={homepageLinkTitle:"Accueil - {serviceName}"},Lg={newWindow:"{title} - nouvelle fenêtre"},Mg={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},fd={email:Ig,footer:kg,gaufre:Ng,header:Rg,links:Lg,proconnect:Mg},Ag=d.createContext(fd);function Kg(){const t=d.useContext(Ag)||fd;return{t:function(e,n={}){const r=dd(t,e);if(!r)return console.warn(`Translation for key "${e}" not found`),e;if(n){const i=[];if(Object.keys(n).forEach(s=>{typeof n[s]!="string"&&i.push(s)}),!i.length)return r.replace(/{(\w+)}/g,(s,a)=>n[a]);const o=r.split(/{(.*?)}/);return y.jsx(y.Fragment,{children:o.map((s,a)=>s in n?y.jsx(d.Fragment,{children:n[s]},a):s)})}return r}}}const Fg={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},jg=({variant:t})=>{const{t:e}=Kg(),n=t?Fg[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")})},Hg=()=>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(jg,{variant:"small"})]}),hd=({languages:t})=>{const{isOpen:e,setIsOpen:n}=Sn();return y.jsx(lr,{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"})]})})},pd=({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(hd,{languages:n})}),e]})]})},Wo={themes:{default:{theme:{colors:{"primary-text":"#000091","primary-050":"#F5F5FE","primary-100":"#ECECFE","primary-150":"#F4F4FD","primary-200":"#E3E3FD","primary-300":"#CACAFB","primary-400":"#8585F6","primary-500":"#6A6AF4","primary-600":"#313178","primary-700":"#272747","primary-800":"#000091","primary-900":"#21213F","secondary-text":"#fff","secondary-100":"#fee9ea","secondary-200":"#fedfdf","secondary-300":"#fdbfbf","secondary-400":"#e1020f","secondary-500":"#c91a1f","secondary-600":"#5e2b2b","secondary-700":"#3b2424","secondary-800":"#341f1f","secondary-900":"#2b1919","greyscale-text":"#303C4B","greyscale-000":"#fff","greyscale-050":"#F6F6F6","greyscale-100":"#eee","greyscale-200":"#E5E5E5","greyscale-250":"#ddd","greyscale-300":"#CECECE","greyscale-350":"#ddd","greyscale-400":"#929292","greyscale-500":"#7C7C7C","greyscale-600":"#666666","greyscale-700":"#3A3A3A","greyscale-750":"#353535","greyscale-800":"#2A2A2A","greyscale-900":"#242424","greyscale-950":"#1E1E1E","greyscale-1000":"#161616","success-text":"#1f8d49","success-100":"#dffee6","success-200":"#b8fec9","success-300":"#88fdaa","success-400":"#3bea7e","success-500":"#1f8d49","success-600":"#18753c","success-700":"#204129","success-800":"#1e2e22","success-900":"#19281d","info-text":"#0078f3","info-100":"#E8EDFF","info-200":"#DDE5FF","info-300":"#BCCDFF","info-400":"#518FFF","info-500":"#0078F3","info-600":"#0063CB","info-700":"#273961","info-800":"#222A3F","info-900":"#1D2437","warning-text":"#d64d00","warning-100":"#fff4f3","warning-200":"#ffe9e6","warning-300":"#ffded9","warning-400":"#ffbeb4","warning-500":"#d64d00","warning-600":"#b34000","warning-700":"#5e2c21","warning-800":"#3e241e","warning-900":"#361e19","danger-text":"#FFF","danger-050":"#FFF4F4","danger-100":"#FFE9E9","danger-200":"#FFDDDD","danger-300":"#FFBDBD","danger-400":"#FF5655","danger-500":"#F60700","danger-600":"#CE0500","danger-700":"#642626","danger-800":"#412121","danger-900":"#391C1C","blue-500":"#417DC4","brown-500":"#BD987A","cyan-500":"#009099","gold-500":"#C3992A","green-500":"#00A95F","olive-500":"#68A532","orange-500":"#E4794A","purple-500":"#A558A0","red-500":"#E1000F","yellow-500":"#B7A73F","rose-500":"#E18B76"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:100,extrabold:800,black:900},families:{accent:"Marianne",base:"Marianne"}},spacings:{0:"0",none:"0",auto:"auto",bx:"2.2rem",full:"100%","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px","background-color":"var(--c--theme--colors--greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"var(--c--theme--colors--primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"var(--c--theme--colors--greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"var(--c--theme--colors--greyscale-500)"},"primary-text":{"background--color":"var(--c--theme--colors--primary-text)","background--color-hover":"var(--c--theme--colors--greyscale-100)","background--color-active":"var(--c--theme--colors--primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-800)","color-hover":"var(--c--theme--colors--primary-800)",disabled:"var(--c--theme--colors--greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"var(--c--theme--colors--greyscale-000)","background--disabled":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-800)","border--color":"var(--c--theme--colors--greyscale-300)","border--color-hover":"var(--c--theme--colors--greyscale-300)","border--color-disabled":"var(--c--theme--colors--greyscale-300)",disabled:"var(--c--theme--colors--greyscale-400)"},tertiary:{"background--color":"var(--c--theme--colors--primary-100)","background--color-focus-visible":"var(--c--theme--colors--primary-100)","background--color-hover":"var(--c--theme--colors--primary-300)","background--color-active":"var(--c--theme--colors--primary-300)","background--disabled":"var(--c--theme--colors--primary-050)",color:"var(--c--theme--colors--primary-800)",disabled:"var(--c--theme--colors--primary-300)"},"tertiary-text":{"background--color-hover":"var(--c--theme--colors--greyscale-100)","color-hover":"var(--c--theme--colors--primary-text)",color:"var(--c--theme--colors--primary-600)"},danger:{"color-hover":"white","background--color":"var(--c--theme--colors--danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"var(--c--theme--colors--danger-600)","background--color-disabled":"var(--c--theme--colors--greyscale-100)","color-disabled":"var(--c--theme--colors--greyscale-400)"}},datagrid:{"header--color":"ref(theme.colors.greyscale-600)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(theme.colors.greyscale-100)"},"forms-checkbox":{"border-radius":"4px","border-color":"var(--c--theme--colors--primary-800)","background-color--hover":"var(--c--theme--colors--greyscale-100)","border--color-disabled":"var(--c--theme--colors--greyscale-200)","border--color":"var(--c--theme--colors--primary-800)","background--disabled":"var(--c--theme--colors--greyscale-200)","background--enable":"var(--c--theme--colors--primary-800)","check--disabled":"var(--c--theme--colors--greyscale-300)","check--enable":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-text)","label--color":"var(--c--theme--colors--greyscale-1000)","label--size":"var(--c--theme--font--sizes--sm)","label--weight":"500","text--color":"var(--c--theme--colors--greyscale-600)","text--size":"var(--c--theme--font--sizes--s)","text--weight":"400","text--color-disabled":"var(--c--theme--colors--greyscale-300)"},"forms-labelledbox":{"label-color--small":"ref(theme.colors.greyscale-950)","label-color--small--disabled":"ref(theme.colors.greyscale-300)","label-color--big":"ref(theme.colors.greyscale-950)","label-color--big--disabled":"ref(theme.colors.greyscale-300)"},"forms-radio":{"border-color":"var(--c--theme--colors--primary-800)","background-color":"var(--c--theme--colors--greyscale-000)","accent-color":"var(--c--theme--colors--primary-800)","accent-color-disabled":"var(--c--theme--colors--greyscale-300)"},"forms-switch":{"border--color-disabled":"var(--c--theme--colors--greyscale-300)","border--color":"var(--c--theme--colors--primary-800)","handle-background-color":"white","handle-background-color--disabled":"var(--c--theme--colors--greyscale-000)","rail-background-color--disabled":"var(--c--theme--colors--greyscale-000)","accent-color":"var(--c--theme--colors--primary-800)"},"forms-textarea":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-input":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-select":{"label-color--focus":"ref(theme.colors.greyscale-1000)","item-font-size":"14px","border-radius":"4px","border-radius-hover":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","font-size":"14px"}}}}},_n=()=>{const[t,e]=d.useState(window.innerWidth),n=parseInt(Wo.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(Wo.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,s=t<=r,a=t>r;return{isMobile:o,isTablet:s,isDesktop:a}},gd=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=_n();return n?y.jsx("div",{className:"c__left-panel",children:t}):y.jsx("div",{className:Ve("c__left-panel__mobile",{open:e}),children:t})},{createElement:Cn,createContext:zg,createRef:u7,forwardRef:vd,useCallback:$e,useContext:md,useEffect:_t,useImperativeHandle:yd,useLayoutEffect:Bg,useMemo:Vg,useRef:Te,useState:pn}=T,Xa=T[`useId${Math.random()}`.slice(0,5)],Wg=Bg,bi=zg(null);bi.displayName="PanelGroupContext";const Dt=Wg,Ug=typeof Xa=="function"?Xa:()=>null;let Gg=0;function Ds(t=null){const e=Ug(),n=Te(t||e||null);return n.current===null&&(n.current=""+Gg++),t??n.current}function bd({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:s,maxSize:a,minSize:l,onCollapse:u,onExpand:c,onResize:f,order:p,style:g,tagName:b="div",...h}){const m=md(bi);if(m===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:v,expandPanel:C,getPanelSize:w,getPanelStyle:P,groupId:x,isPanelCollapsed:D,reevaluatePanelConstraints:_,registerPanel:S,resizePanel:R,unregisterPanel:F}=m,N=Ds(s),H=Te({callbacks:{onCollapse:u,onExpand:c,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:l},id:N,idIsFromProps:s!==void 0,order:p});Te({didLogMissingDefaultSizeWarning:!1}),Dt(()=>{const{callbacks:O,constraints:z}=H.current,G={...z};H.current.id=N,H.current.idIsFromProps=s!==void 0,H.current.order=p,O.onCollapse=u,O.onExpand=c,O.onResize=f,z.collapsedSize=n,z.collapsible=r,z.defaultSize=i,z.maxSize=a,z.minSize=l,(G.collapsedSize!==z.collapsedSize||G.collapsible!==z.collapsible||G.maxSize!==z.maxSize||G.minSize!==z.minSize)&&_(H.current,G)}),Dt(()=>{const O=H.current;return S(O),()=>{F(O)}},[p,N,S,F]),yd(o,()=>({collapse:()=>{v(H.current)},expand:O=>{C(H.current,O)},getId(){return N},getSize(){return w(H.current)},isCollapsed(){return D(H.current)},isExpanded(){return!D(H.current)},resize:O=>{R(H.current,O)}}),[v,C,w,D,N,R]);const E=P(H.current,i);return Cn(b,{...h,children:t,className:e,id:s,style:{...E,...g},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":x,"data-panel-id":N,"data-panel-size":parseFloat(""+E.flexGrow).toFixed(1)})}const Uo=vd((t,e)=>Cn(bd,{...t,forwardedRef:e}));bd.displayName="Panel";Uo.displayName="forwardRef(Panel)";let Go=null,Pt=null;function qg(t,e){if(e){const n=(e&xd)!==0,r=(e&$d)!==0,i=(e&Td)!==0,o=(e&Pd)!==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 Yg(){Pt!==null&&(document.head.removeChild(Pt),Go=null,Pt=null)}function Xi(t,e){const n=qg(t,e);Go!==n&&(Go=n,Pt===null&&(Pt=document.createElement("style"),document.head.appendChild(Pt)),Pt.innerHTML=`*{cursor: ${n}!important;}`)}function Sd(t){return t.type==="keydown"}function Cd(t){return t.type.startsWith("pointer")}function wd(t){return t.type.startsWith("mouse")}function Si(t){if(Cd(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(wd(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Zg(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Xg(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 Jg(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:el(t),b:el(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;ee(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Qa(Ja(n.a)),b:Qa(Ja(n.b))};if(i.a===i.b){const o=r.childNodes,s={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const l=o[a];if(l===s.a)return 1;if(l===s.b)return-1}}return Math.sign(i.a-i.b)}const Qg=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function e5(t){var e;const n=getComputedStyle((e=Ed(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function t5(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||e5(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"||Qg.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Ja(t){let e=t.length;for(;e--;){const n=t[e];if(ee(n,"Missing node"),t5(n))return n}return null}function Qa(t){return t&&Number(getComputedStyle(t).zIndex)||0}function el(t){const e=[];for(;t;)e.push(t),t=Ed(t);return e}function Ed(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const xd=1,$d=2,Td=4,Pd=8,n5=Zg()==="coarse";let Be=[],gn=!1,gt=new Map,Ci=new Map;const Jn=new Set;function r5(t,e,n,r,i){var o;const{ownerDocument:s}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},l=(o=gt.get(s))!==null&&o!==void 0?o:0;return gt.set(s,l+1),Jn.add(a),ri(),function(){var c;Ci.delete(t),Jn.delete(a);const f=(c=gt.get(s))!==null&&c!==void 0?c:1;if(gt.set(s,f-1),ri(),f===1&&gt.delete(s),Be.includes(a)){const p=Be.indexOf(a);p>=0&&Be.splice(p,1),Is(),i("up",!0,null)}}}function tl(t){const{target:e}=t,{x:n,y:r}=Si(t);gn=!0,Os({target:e,x:n,y:r}),ri(),Be.length>0&&(ii("down",t),t.preventDefault(),t.stopPropagation())}function Ln(t){const{x:e,y:n}=Si(t);if(gn&&t.buttons===0&&(gn=!1,ii("up",t)),!gn){const{target:r}=t;Os({target:r,x:e,y:n})}ii("move",t),Is(),Be.length>0&&t.preventDefault()}function Ut(t){const{target:e}=t,{x:n,y:r}=Si(t);Ci.clear(),gn=!1,Be.length>0&&t.preventDefault(),ii("up",t),Os({target:e,x:n,y:r}),Is(),ri()}function Os({target:t,x:e,y:n}){Be.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Jn.forEach(i=>{const{element:o,hitAreaMargins:s}=i,a=o.getBoundingClientRect(),{bottom:l,left:u,right:c,top:f}=a,p=n5?s.coarse:s.fine;if(e>=u-p&&e<=c+p&&n>=f-p&&n<=l+p){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&Jg(r,o)>0){let b=r,h=!1;for(;b&&!b.contains(o);){if(Xg(b.getBoundingClientRect(),a)){h=!0;break}b=b.parentElement}if(h)return}Be.push(i)}})}function Ji(t,e){Ci.set(t,e)}function Is(){let t=!1,e=!1;Be.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;Ci.forEach(r=>{n|=r}),t&&e?Xi("intersection",n):t?Xi("horizontal",n):e?Xi("vertical",n):Yg()}function ri(){gt.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",Ut),n.removeEventListener("pointerdown",tl),n.removeEventListener("pointerleave",Ln),n.removeEventListener("pointermove",Ln)}),window.removeEventListener("pointerup",Ut),window.removeEventListener("pointercancel",Ut),Jn.size>0&&(gn?(Be.length>0&&gt.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",Ut),n.addEventListener("pointerleave",Ln),n.addEventListener("pointermove",Ln))}),window.addEventListener("pointerup",Ut),window.addEventListener("pointercancel",Ut)):gt.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",tl,{capture:!0}),n.addEventListener("pointermove",Ln))}))}function ii(t,e){Jn.forEach(n=>{const{setResizeHandlerState:r}=n,i=Be.includes(n);r(t,i,e)})}function i5(){const[t,e]=pn(0);return $e(()=>e(n=>n+1),[])}function ee(t,e){if(!t)throw console.error(e),Error(e)}const ks=10;function Lt(t,e,n=ks){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function it(t,e,n=ks){return Lt(t,e,n)===0}function Pe(t,e,n){return Lt(t,e,n)===0}function o5(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(!Pe(i,o,n))return!1}return!0}function dn({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];ee(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:s=100,minSize:a=0}=r;if(Lt(n,a)<0)if(o){const l=(i+a)/2;Lt(n,l)<0?n=i:n=a}else n=a;return n=Math.min(s,n),n=parseFloat(n.toFixed(ks)),n}function Hn({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(Pe(t,0))return e;const s=[...e],[a,l]=r;ee(a!=null,"Invalid first pivot index"),ee(l!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const f=t<0?l:a,p=n[f];ee(p,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:b,minSize:h=0}=p;if(b){const m=e[f];if(ee(m!=null,`Previous layout not found for panel index ${f}`),Pe(m,g)){const v=h-m;Lt(v,Math.abs(t))>0&&(t=t<0?0-v:v)}}}{const f=t<0?a:l,p=n[f];ee(p,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:b,minSize:h=0}=p;if(b){const m=e[f];if(ee(m!=null,`Previous layout not found for panel index ${f}`),Pe(m,h)){const v=m-g;Lt(v,Math.abs(t))>0&&(t=t<0?0-v:v)}}}}{const f=t<0?1:-1;let p=t<0?l:a,g=0;for(;;){const h=e[p];ee(h!=null,`Previous layout not found for panel index ${p}`);const v=dn({panelConstraints:n,panelIndex:p,size:100})-h;if(g+=v,p+=f,p<0||p>=n.length)break}const b=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-b:b}{let p=t<0?a:l;for(;p>=0&&p<n.length;){const g=Math.abs(t)-Math.abs(u),b=e[p];ee(b!=null,`Previous layout not found for panel index ${p}`);const h=b-g,m=dn({panelConstraints:n,panelIndex:p,size:h});if(!Pe(b,m)&&(u+=b-m,s[p]=m,u.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(o5(i,s))return i;{const f=t<0?l:a,p=e[f];ee(p!=null,`Previous layout not found for panel index ${f}`);const g=p+u,b=dn({panelConstraints:n,panelIndex:f,size:g});if(s[f]=b,!Pe(b,g)){let h=g-b,v=t<0?l:a;for(;v>=0&&v<n.length;){const C=s[v];ee(C!=null,`Previous layout not found for panel index ${v}`);const w=C+h,P=dn({panelConstraints:n,panelIndex:v,size:w});if(Pe(C,P)||(h-=P-C,s[v]=P),Pe(h,0))break;t>0?v--:v++}}}const c=s.reduce((f,p)=>p+f,0);return Pe(c,100)?s:i}function s5({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,s=0;const a=n[0];ee(a!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:g}=f,{maxSize:b=100,minSize:h=0}=g;p===a?(r=h,i=b):(o+=h,s+=b)});const l=Math.min(i,100-o),u=Math.max(r,100-s),c=t[a];return{valueMax:l,valueMin:u,valueNow:c}}function Qn(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function _d(t,e,n=document){const i=Qn(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function Dd(t,e,n){const r=_d(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Od(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 wi(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function a5(t,e,n,r=document){var i,o,s,a;const l=wi(e,r),u=Qn(t,r),c=l?u.indexOf(l):-1,f=(i=(o=n[c])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,p=(s=(a=n[c+1])===null||a===void 0?void 0:a.id)!==null&&s!==void 0?s:null;return[f,p]}function l5({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:s}){Te({didWarnAboutMissingResizeHandle:!1}),Dt(()=>{if(!o)return;const a=Qn(n,o);for(let l=0;l<i.length-1;l++){const{valueMax:u,valueMin:c,valueNow:f}=s5({layout:r,panelsArray:i,pivotIndices:[l,l+1]}),p=a[l];if(p!=null){const g=i[l];ee(g,`No panel data found for index "${l}"`),p.setAttribute("aria-controls",g.id),p.setAttribute("aria-valuemax",""+Math.round(u)),p.setAttribute("aria-valuemin",""+Math.round(c)),p.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((l,u)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,i,o]),_t(()=>{if(!o)return;const a=e.current;ee(a,"Eager values not found");const{panelDataArray:l}=a,u=Od(n,o);ee(u!=null,`No group found for id "${n}"`);const c=Qn(n,o);ee(c,`No resize handles found for group id "${n}"`);const f=c.map(p=>{const g=p.getAttribute("data-panel-resize-handle-id");ee(g,"Resize handle element has no handle id attribute");const[b,h]=a5(n,g,l,o);if(b==null||h==null)return()=>{};const m=v=>{if(!v.defaultPrevented)switch(v.key){case"Enter":{v.preventDefault();const C=l.findIndex(w=>w.id===b);if(C>=0){const w=l[C];ee(w,`No panel data found for index ${C}`);const P=r[C],{collapsedSize:x=0,collapsible:D,minSize:_=0}=w.constraints;if(P!=null&&D){const S=Hn({delta:Pe(P,x)?_-x:x-P,initialLayout:r,panelConstraints:l.map(R=>R.constraints),pivotIndices:Dd(n,g,o),prevLayout:r,trigger:"keyboard"});r!==S&&s(S)}}break}}};return p.addEventListener("keydown",m),()=>{p.removeEventListener("keydown",m)}});return()=>{f.forEach(p=>p())}},[o,t,e,n,r,i,s])}function nl(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 Id(t,e){const n=t==="horizontal",{x:r,y:i}=Si(e);return n?r:i}function u5(t,e,n,r,i){const o=n==="horizontal",s=wi(e,i);ee(s,`No resize handle element found for id "${e}"`);const a=s.getAttribute("data-panel-group-id");ee(a,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const u=Id(n,t),c=Od(a,i);ee(c,`No group element found for id "${a}"`);const f=c.getBoundingClientRect(),p=o?f.width:f.height;return(u-l)/p*100}function c5(t,e,n,r,i,o){if(Sd(t)){const s=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let l=0;switch(t.key){case"ArrowDown":l=s?0:a;break;case"ArrowLeft":l=s?-a:0;break;case"ArrowRight":l=s?a:0;break;case"ArrowUp":l=s?0:-a;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:u5(t,e,n,r,o)}function d5({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 s=n[o];ee(s,`Panel constraints not found for index ${o}`);const{defaultSize:a}=s;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const s=n[o];ee(s,`Panel constraints not found for index ${o}`);const{defaultSize:a}=s;if(a!=null)continue;const l=t.length-r,u=i/l;r++,e[o]=u,i-=u}return e}function Gt(t,e,n){e.forEach((r,i)=>{const o=t[i];ee(o,`Panel data not found for index ${i}`);const{callbacks:s,constraints:a,id:l}=o,{collapsedSize:u=0,collapsible:c}=a,f=n[l];if(f==null||r!==f){n[l]=r;const{onCollapse:p,onExpand:g,onResize:b}=s;b&&b(r,f),c&&(p||g)&&(g&&(f==null||it(f,u))&&!it(r,u)&&g(),p&&(f==null||!it(f,u))&&it(r,u)&&p())}})}function Er(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 f5({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const s=n[i];let a;return s==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=s.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function h5(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function rl(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 kd(t){return`react-resizable-panels:${t}`}function Nd(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 Rd(t,e){try{const n=kd(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function p5(t,e,n){var r,i;const o=(r=Rd(t,n))!==null&&r!==void 0?r:{},s=Nd(e);return(i=o[s])!==null&&i!==void 0?i:null}function g5(t,e,n,r,i){var o;const s=kd(t),a=Nd(e),l=(o=Rd(t,i))!==null&&o!==void 0?o:{};l[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(s,JSON.stringify(l))}catch(u){console.error(u)}}function il({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,s)=>o+s,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!Pe(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const s=n[o];ee(s!=null,`No layout data found for index ${o}`);const a=100/r*s;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const s=n[o];ee(s!=null,`No layout data found for index ${o}`);const a=dn({panelConstraints:e,panelIndex:o,size:s});s!=a&&(i+=s-a,n[o]=a)}if(!Pe(i,0))for(let o=0;o<e.length;o++){const s=n[o];ee(s!=null,`No layout data found for index ${o}`);const a=s+i,l=dn({panelConstraints:e,panelIndex:o,size:a});if(s!==l&&(i-=l-s,n[o]=l,Pe(i,0)))break}return n}const v5=100,zn={getItem:t=>(rl(zn),zn.getItem(t)),setItem:(t,e)=>{rl(zn),zn.setItem(t,e)}},ol={};function Ld({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:s=null,keyboardResizeBy:a=null,storage:l=zn,style:u,tagName:c="div",...f}){const p=Ds(o),g=Te(null),[b,h]=pn(null),[m,v]=pn([]),C=i5(),w=Te({}),P=Te(new Map),x=Te(0),D=Te({autoSaveId:t,direction:r,dragState:b,id:p,keyboardResizeBy:a,onLayout:s,storage:l}),_=Te({layout:m,panelDataArray:[],panelDataArrayChanged:!1});Te({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),yd(i,()=>({getId:()=>D.current.id,getLayout:()=>{const{layout:I}=_.current;return I},setLayout:I=>{const{onLayout:A}=D.current,{layout:M,panelDataArray:W}=_.current,U=il({layout:I,panelConstraints:W.map(K=>K.constraints)});nl(M,U)||(v(U),_.current.layout=U,A&&A(U),Gt(W,U,w.current))}}),[]),Dt(()=>{D.current.autoSaveId=t,D.current.direction=r,D.current.dragState=b,D.current.id=p,D.current.onLayout=s,D.current.storage=l}),l5({committedValuesRef:D,eagerValuesRef:_,groupId:p,layout:m,panelDataArray:_.current.panelDataArray,setLayout:v,panelGroupElement:g.current}),_t(()=>{const{panelDataArray:I}=_.current;if(t){if(m.length===0||m.length!==I.length)return;let A=ol[t];A==null&&(A=h5(g5,v5),ol[t]=A);const M=[...I],W=new Map(P.current);A(t,M,W,m,l)}},[t,m,l]),_t(()=>{});const S=$e(I=>{const{onLayout:A}=D.current,{layout:M,panelDataArray:W}=_.current;if(I.constraints.collapsible){const U=W.map(fe=>fe.constraints),{collapsedSize:K=0,panelSize:X,pivotIndices:te}=Ct(W,I,M);if(ee(X!=null,`Panel size not found for panel "${I.id}"`),!it(X,K)){P.current.set(I.id,X);const de=an(W,I)===W.length-1?X-K:K-X,oe=Hn({delta:de,initialLayout:M,panelConstraints:U,pivotIndices:te,prevLayout:M,trigger:"imperative-api"});Er(M,oe)||(v(oe),_.current.layout=oe,A&&A(oe),Gt(W,oe,w.current))}}},[]),R=$e((I,A)=>{const{onLayout:M}=D.current,{layout:W,panelDataArray:U}=_.current;if(I.constraints.collapsible){const K=U.map(ve=>ve.constraints),{collapsedSize:X=0,panelSize:te=0,minSize:fe=0,pivotIndices:de}=Ct(U,I,W),oe=A??fe;if(it(te,X)){const ve=P.current.get(I.id),re=ve!=null&&ve>=oe?ve:oe,lt=an(U,I)===U.length-1?te-re:re-te,me=Hn({delta:lt,initialLayout:W,panelConstraints:K,pivotIndices:de,prevLayout:W,trigger:"imperative-api"});Er(W,me)||(v(me),_.current.layout=me,M&&M(me),Gt(U,me,w.current))}}},[]),F=$e(I=>{const{layout:A,panelDataArray:M}=_.current,{panelSize:W}=Ct(M,I,A);return ee(W!=null,`Panel size not found for panel "${I.id}"`),W},[]),N=$e((I,A)=>{const{panelDataArray:M}=_.current,W=an(M,I);return f5({defaultSize:A,dragState:b,layout:m,panelData:M,panelIndex:W})},[b,m]),H=$e(I=>{const{layout:A,panelDataArray:M}=_.current,{collapsedSize:W=0,collapsible:U,panelSize:K}=Ct(M,I,A);return ee(K!=null,`Panel size not found for panel "${I.id}"`),U===!0&&it(K,W)},[]),E=$e(I=>{const{layout:A,panelDataArray:M}=_.current,{collapsedSize:W=0,collapsible:U,panelSize:K}=Ct(M,I,A);return ee(K!=null,`Panel size not found for panel "${I.id}"`),!U||Lt(K,W)>0},[]),O=$e(I=>{const{panelDataArray:A}=_.current;A.push(I),A.sort((M,W)=>{const U=M.order,K=W.order;return U==null&&K==null?0:U==null?-1:K==null?1:U-K}),_.current.panelDataArrayChanged=!0,C()},[C]);Dt(()=>{if(_.current.panelDataArrayChanged){_.current.panelDataArrayChanged=!1;const{autoSaveId:I,onLayout:A,storage:M}=D.current,{layout:W,panelDataArray:U}=_.current;let K=null;if(I){const te=p5(I,U,M);te&&(P.current=new Map(Object.entries(te.expandToSizes)),K=te.layout)}K==null&&(K=d5({panelDataArray:U}));const X=il({layout:K,panelConstraints:U.map(te=>te.constraints)});nl(W,X)||(v(X),_.current.layout=X,A&&A(X),Gt(U,X,w.current))}}),Dt(()=>{const I=_.current;return()=>{I.layout=[]}},[]);const z=$e(I=>{let A=!1;const M=g.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(A=!0),function(U){U.preventDefault();const K=g.current;if(!K)return()=>null;const{direction:X,dragState:te,id:fe,keyboardResizeBy:de,onLayout:oe}=D.current,{layout:ve,panelDataArray:re}=_.current,{initialLayout:Ge}=te??{},lt=Dd(fe,I,K);let me=c5(U,I,X,te,de,K);const Dn=X==="horizontal";Dn&&A&&(me=-me);const cr=re.map(Z=>Z.constraints),$=Hn({delta:me,initialLayout:Ge??ve,panelConstraints:cr,pivotIndices:lt,prevLayout:ve,trigger:Sd(U)?"keyboard":"mouse-or-touch"}),q=!Er(ve,$);(Cd(U)||wd(U))&&x.current!=me&&(x.current=me,!q&&me!==0?Dn?Ji(I,me<0?xd:$d):Ji(I,me<0?Td:Pd):Ji(I,0)),q&&(v($),_.current.layout=$,oe&&oe($),Gt(re,$,w.current))}},[]),G=$e((I,A)=>{const{onLayout:M}=D.current,{layout:W,panelDataArray:U}=_.current,K=U.map(ve=>ve.constraints),{panelSize:X,pivotIndices:te}=Ct(U,I,W);ee(X!=null,`Panel size not found for panel "${I.id}"`);const de=an(U,I)===U.length-1?X-A:A-X,oe=Hn({delta:de,initialLayout:W,panelConstraints:K,pivotIndices:te,prevLayout:W,trigger:"imperative-api"});Er(W,oe)||(v(oe),_.current.layout=oe,M&&M(oe),Gt(U,oe,w.current))},[]),V=$e((I,A)=>{const{layout:M,panelDataArray:W}=_.current,{collapsedSize:U=0,collapsible:K}=A,{collapsedSize:X=0,collapsible:te,maxSize:fe=100,minSize:de=0}=I.constraints,{panelSize:oe}=Ct(W,I,M);oe!=null&&(K&&te&&it(oe,U)?it(U,X)||G(I,X):oe<de?G(I,de):oe>fe&&G(I,fe))},[G]),L=$e((I,A)=>{const{direction:M}=D.current,{layout:W}=_.current;if(!g.current)return;const U=wi(I,g.current);ee(U,`Drag handle element not found for id "${I}"`);const K=Id(M,A);h({dragHandleId:I,dragHandleRect:U.getBoundingClientRect(),initialCursorPosition:K,initialLayout:W})},[]),Y=$e(()=>{h(null)},[]),j=$e(I=>{const{panelDataArray:A}=_.current,M=an(A,I);M>=0&&(A.splice(M,1),delete w.current[I.id],_.current.panelDataArrayChanged=!0,C())},[C]),B=Vg(()=>({collapsePanel:S,direction:r,dragState:b,expandPanel:R,getPanelSize:F,getPanelStyle:N,groupId:p,isPanelCollapsed:H,isPanelExpanded:E,reevaluatePanelConstraints:V,registerPanel:O,registerResizeHandle:z,resizePanel:G,startDragging:L,stopDragging:Y,unregisterPanel:j,panelGroupElement:g.current}),[S,b,r,R,F,N,p,H,E,V,O,z,G,L,Y,j]),k={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Cn(bi.Provider,{value:B},Cn(c,{...f,children:e,className:n,id:o,ref:g,style:{...k,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const Md=vd((t,e)=>Cn(Ld,{...t,forwardedRef:e}));Ld.displayName="PanelGroup";Md.displayName="forwardRef(PanelGroup)";function an(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function Ct(t,e,n){const r=an(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],s=n[r];return{...e.constraints,panelSize:s,pivotIndices:o}}function m5({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){_t(()=>{if(t||n==null||r==null)return;const i=wi(e,r);if(i==null)return;const o=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),n(s);break}case"F6":{s.preventDefault();const a=i.getAttribute("data-panel-group-id");ee(a,`No group element found for id "${a}"`);const l=Qn(a,r),u=_d(a,e,r);ee(u!==null,`No resize element found for id "${e}"`);const c=s.shiftKey?u>0?u-1:l.length-1:u+1<l.length?u+1:0;l[c].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function Ad({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:s,onFocus:a,style:l={},tabIndex:u=0,tagName:c="div",...f}){var p,g;const b=Te(null),h=Te({onDragging:s});_t(()=>{h.current.onDragging=s});const m=md(bi);if(m===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:v,groupId:C,registerResizeHandle:w,startDragging:P,stopDragging:x,panelGroupElement:D}=m,_=Ds(i),[S,R]=pn("inactive"),[F,N]=pn(!1),[H,E]=pn(null),O=Te({state:S});Dt(()=>{O.current.state=S}),_t(()=>{if(n)E(null);else{const L=w(_);E(()=>L)}},[n,_,w]);const z=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,G=(g=r==null?void 0:r.fine)!==null&&g!==void 0?g:5;return _t(()=>{if(n||H==null)return;const L=b.current;return ee(L,"Element ref not attached"),r5(_,L,v,{coarse:z,fine:G},(j,B,k)=>{if(B)switch(j){case"down":{R("drag"),ee(k,'Expected event to be defined for "down" action'),P(_,k);const{onDragging:I}=h.current;I&&I(!0);break}case"move":{const{state:I}=O.current;I!=="drag"&&R("hover"),ee(k,'Expected event to be defined for "move" action'),H(k);break}case"up":{R("hover"),x();const{onDragging:I}=h.current;I&&I(!1);break}}else R("inactive")})},[z,v,n,G,w,_,H,P,x]),m5({disabled:n,handleId:_,resizeHandler:H,panelGroupElement:D}),Cn(c,{...f,children:t,className:e,id:i,onBlur:()=>{N(!1),o==null||o()},onFocus:()=>{N(!0),a==null||a()},ref:b,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...l},tabIndex:u,"data-panel-group-direction":v,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":S==="drag"?"pointer":F?"keyboard":void 0,"data-resize-handle-state":S,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":_})}Ad.displayName="PanelResizeHandle";const y5=({children:t,isOpen:e})=>{const{isDesktop:n}=_n();return n?y.jsx("div",{className:Ve("c__right-panel",{open:e}),children:t}):y.jsx("div",{className:Ve("c__right-panel__mobile",{open:e}),children:t})},b5=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:s,enableResize:a=!1,rightPanelIsOpen:l=!1})=>{const[u,c]=d.useState(!1),{isDesktop:f}=_n(),p=d.useRef(null),[g,b]=d.useState(xr(300,f)),[h,m]=d.useState(xr(450,f)),v=()=>{c(!u)};d.useEffect(()=>{const P=()=>{const x=Math.round(xr(300,f)),D=Math.round(Math.min(xr(450,f),40));b(f?x:0),m(a?D:x)};return P(),window.addEventListener("resize",()=>{P()}),()=>{window.removeEventListener("resize",P)}},[f,a]);const C=f?!n:!0,w=f?!n:u;return y.jsxs("div",{className:"c__main-layout",children:[y.jsx("div",{className:"c__main-layout__header",children:y.jsx(pd,{onTogglePanel:v,isPanelOpen:u,rightIcon:o,leftIcon:t,languages:s})}),y.jsx("div",{className:"c__main-layout__content",children:y.jsxs(Md,{autoSaveId:"persistance",direction:"horizontal",children:[C&&y.jsxs(y.Fragment,{children:[y.jsx(Uo,{ref:p,order:0,defaultSize:g,minSize:g,maxSize:h,children:y.jsx(gd,{isOpen:w,children:r})}),f&&y.jsx(Ad,{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(y5,{isOpen:l,children:i})]})})]})})]})},xr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},S5=52,Ns=({size:t="sm"})=>y.jsx("div",{className:["c__spinner",t].join(" ")}),Kd=({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})]}),C5=({label:t,text:e,labelSide:n="right",children:r})=>y.jsxs("div",{className:Ve("c__with-label",{[n]:!0}),children:[y.jsx(Kd,{children:t,text:e}),r]});var sl=1,w5=.9,E5=.8,x5=.17,Qi=.1,eo=.999,$5=.9999,T5=.99,P5=/[\\\/_+.#"@\[\(\{&]/,_5=/[\\\/_+.#"@\[\(\{&]/g,D5=/[\s-]/,Fd=/[\s-]/g;function qo(t,e,n,r,i,o,s){if(o===e.length)return i===t.length?sl:T5;var a=`${i},${o}`;if(s[a]!==void 0)return s[a];for(var l=r.charAt(o),u=n.indexOf(l,i),c=0,f,p,g,b;u>=0;)f=qo(t,e,n,r,u+1,o+1,s),f>c&&(u===i?f*=sl:P5.test(t.charAt(u-1))?(f*=E5,g=t.slice(i,u-1).match(_5),g&&i>0&&(f*=Math.pow(eo,g.length))):D5.test(t.charAt(u-1))?(f*=w5,b=t.slice(i,u-1).match(Fd),b&&i>0&&(f*=Math.pow(eo,b.length))):(f*=x5,i>0&&(f*=Math.pow(eo,u-i))),t.charAt(u)!==e.charAt(o)&&(f*=$5)),(f<Qi&&n.charAt(u-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(u-1)!==r.charAt(o))&&(p=qo(t,e,n,r,u+1,o+2,s),p*Qi>f&&(f=p*Qi)),f>c&&(c=f),u=n.indexOf(l,u+1);return s[a]=c,c}function al(t){return t.toLowerCase().replace(Fd," ")}function O5(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,qo(t,e,al(t),al(e),0,0,{})}function yt(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 ll(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function jd(...t){return e=>{let n=!1;const r=t.map(i=>{const o=ll(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():ll(t[i],null)}}}}function zt(...t){return T.useCallback(jd(...t),t)}function I5(t,e){const n=T.createContext(e),r=o=>{const{children:s,...a}=o,l=T.useMemo(()=>a,Object.values(a));return y.jsx(n.Provider,{value:l,children:s})};r.displayName=t+"Provider";function i(o){const s=T.useContext(n);if(s)return s;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,i]}function k5(t,e=[]){let n=[];function r(o,s){const a=T.createContext(s),l=n.length;n=[...n,s];const u=f=>{var v;const{scope:p,children:g,...b}=f,h=((v=p==null?void 0:p[t])==null?void 0:v[l])||a,m=T.useMemo(()=>b,Object.values(b));return y.jsx(h.Provider,{value:m,children:g})};u.displayName=o+"Provider";function c(f,p){var h;const g=((h=p==null?void 0:p[t])==null?void 0:h[l])||a,b=T.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,c]}const i=()=>{const o=n.map(s=>T.createContext(s));return function(a){const l=(a==null?void 0:a[t])||o;return T.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[r,N5(i,...e)]}function N5(...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 s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...a,...f}},{});return T.useMemo(()=>({[`__scope${e.scopeName}`]:s}),[s])}};return n.scopeName=e.scopeName,n}var oi=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},R5=T.useId||(()=>{}),L5=0;function st(t){const[e,n]=T.useState(R5());return oi(()=>{n(r=>r??String(L5++))},[t]),e?`radix-${e}`:""}function Mt(t){const e=T.useRef(t);return T.useEffect(()=>{e.current=t}),T.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function M5({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=A5({defaultProp:e,onChange:n}),o=t!==void 0,s=o?t:r,a=Mt(n),l=T.useCallback(u=>{if(o){const f=typeof u=="function"?u(t):u;f!==t&&a(f)}else i(u)},[o,t,i,a]);return[s,l]}function A5({defaultProp:t,onChange:e}){const n=T.useState(t),[r]=n,i=T.useRef(r),o=Mt(e);return T.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Rs=T.forwardRef((t,e)=>{const{children:n,...r}=t,i=T.Children.toArray(n),o=i.find(F5);if(o){const s=o.props.children,a=i.map(l=>l===o?T.Children.count(s)>1?T.Children.only(null):T.isValidElement(s)?s.props.children:null:l);return y.jsx(Yo,{...r,ref:e,children:T.isValidElement(s)?T.cloneElement(s,void 0,a):null})}return y.jsx(Yo,{...r,ref:e,children:n})});Rs.displayName="Slot";var Yo=T.forwardRef((t,e)=>{const{children:n,...r}=t;if(T.isValidElement(n)){const i=H5(n),o=j5(r,n.props);return n.type!==T.Fragment&&(o.ref=e?jd(e,i):i),T.cloneElement(n,o)}return T.Children.count(n)>1?T.Children.only(null):null});Yo.displayName="SlotClone";var K5=({children:t})=>y.jsx(y.Fragment,{children:t});function F5(t){return T.isValidElement(t)&&t.type===K5}function j5(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function H5(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 z5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Se=z5.reduce((t,e)=>{const n=T.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?Rs:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function B5(t,e){t&&x0.flushSync(()=>t.dispatchEvent(e))}function V5(t,e=globalThis==null?void 0:globalThis.document){const n=Mt(t);T.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var W5="DismissableLayer",Zo="dismissableLayer.update",U5="dismissableLayer.pointerDownOutside",G5="dismissableLayer.focusOutside",ul,Hd=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zd=T.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=t,u=T.useContext(Hd),[c,f]=T.useState(null),p=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=T.useState({}),b=zt(e,_=>f(_)),h=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(m),C=c?h.indexOf(c):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,P=C>=v,x=Z5(_=>{const S=_.target,R=[...u.branches].some(F=>F.contains(S));!P||R||(i==null||i(_),s==null||s(_),_.defaultPrevented||a==null||a())},p),D=X5(_=>{const S=_.target;[...u.branches].some(F=>F.contains(S))||(o==null||o(_),s==null||s(_),_.defaultPrevented||a==null||a())},p);return V5(_=>{C===u.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},p),T.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ul=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),cl(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ul)}},[c,p,n,u]),T.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),cl())},[c,u]),T.useEffect(()=>{const _=()=>g({});return document.addEventListener(Zo,_),()=>document.removeEventListener(Zo,_)},[]),y.jsx(Se.div,{...l,ref:b,style:{pointerEvents:w?P?"auto":"none":void 0,...t.style},onFocusCapture:yt(t.onFocusCapture,D.onFocusCapture),onBlurCapture:yt(t.onBlurCapture,D.onBlurCapture),onPointerDownCapture:yt(t.onPointerDownCapture,x.onPointerDownCapture)})});zd.displayName=W5;var q5="DismissableLayerBranch",Y5=T.forwardRef((t,e)=>{const n=T.useContext(Hd),r=T.useRef(null),i=zt(e,r);return T.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y.jsx(Se.div,{...t,ref:i})});Y5.displayName=q5;function Z5(t,e=globalThis==null?void 0:globalThis.document){const n=Mt(t),r=T.useRef(!1),i=T.useRef(()=>{});return T.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Bd(U5,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function X5(t,e=globalThis==null?void 0:globalThis.document){const n=Mt(t),r=T.useRef(!1);return T.useEffect(()=>{const i=o=>{o.target&&!r.current&&Bd(G5,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 cl(){const t=new CustomEvent(Zo);document.dispatchEvent(t)}function Bd(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?B5(i,o):i.dispatchEvent(o)}var to="focusScope.autoFocusOnMount",no="focusScope.autoFocusOnUnmount",dl={bubbles:!1,cancelable:!0},J5="FocusScope",Vd=T.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=t,[a,l]=T.useState(null),u=Mt(i),c=Mt(o),f=T.useRef(null),p=zt(e,h=>l(h)),g=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let h=function(w){if(g.paused||!a)return;const P=w.target;a.contains(P)?f.current=P:dt(f.current,{select:!0})},m=function(w){if(g.paused||!a)return;const P=w.relatedTarget;P!==null&&(a.contains(P)||dt(f.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&dt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",m);const C=new MutationObserver(v);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",m),C.disconnect()}}},[r,a,g.paused]),T.useEffect(()=>{if(a){hl.add(g);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(to,dl);a.addEventListener(to,u),a.dispatchEvent(v),v.defaultPrevented||(Q5(iv(Wd(a)),{select:!0}),document.activeElement===h&&dt(a))}return()=>{a.removeEventListener(to,u),setTimeout(()=>{const v=new CustomEvent(no,dl);a.addEventListener(no,c),a.dispatchEvent(v),v.defaultPrevented||dt(h??document.body,{select:!0}),a.removeEventListener(no,c),hl.remove(g)},0)}}},[a,u,c,g]);const b=T.useCallback(h=>{if(!n&&!r||g.paused)return;const m=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(m&&v){const C=h.currentTarget,[w,P]=ev(C);w&&P?!h.shiftKey&&v===P?(h.preventDefault(),n&&dt(w,{select:!0})):h.shiftKey&&v===w&&(h.preventDefault(),n&&dt(P,{select:!0})):v===C&&h.preventDefault()}},[n,r,g.paused]);return y.jsx(Se.div,{tabIndex:-1,...s,ref:p,onKeyDown:b})});Vd.displayName=J5;function Q5(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(dt(r,{select:e}),document.activeElement!==n)return}function ev(t){const e=Wd(t),n=fl(e,t),r=fl(e.reverse(),t);return[n,r]}function Wd(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 fl(t,e){for(const n of t)if(!tv(n,{upTo:e}))return n}function tv(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 nv(t){return t instanceof HTMLInputElement&&"select"in t}function dt(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&nv(t)&&e&&t.select()}}var hl=rv();function rv(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=pl(t,e),t.unshift(e)},remove(e){var n;t=pl(t,e),(n=t[0])==null||n.resume()}}}function pl(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function iv(t){return t.filter(e=>e.tagName!=="A")}var ov="Portal",Ud=T.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=T.useState(!1);oi(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Ht.createPortal(y.jsx(Se.div,{...r,ref:e}),s):null});Ud.displayName=ov;function sv(t,e){return T.useReducer((n,r)=>e[n][r]??n,t)}var Ei=t=>{const{present:e,children:n}=t,r=av(e),i=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),o=zt(r.ref,lv(i));return typeof n=="function"||r.isPresent?T.cloneElement(i,{ref:o}):null};Ei.displayName="Presence";function av(t){const[e,n]=T.useState(),r=T.useRef({}),i=T.useRef(t),o=T.useRef("none"),s=t?"mounted":"unmounted",[a,l]=sv(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const u=$r(r.current);o.current=a==="mounted"?u:"none"},[a]),oi(()=>{const u=r.current,c=i.current;if(c!==t){const p=o.current,g=$r(u);t?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),oi(()=>{if(e){let u;const c=e.ownerDocument.defaultView??window,f=g=>{const h=$r(r.current).includes(g.animationName);if(g.target===e&&h&&(l("ANIMATION_END"),!i.current)){const m=e.style.animationFillMode;e.style.animationFillMode="forwards",u=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=m)})}},p=g=>{g.target===e&&(o.current=$r(r.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{c.clearTimeout(u),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:T.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function $r(t){return(t==null?void 0:t.animationName)||"none"}function lv(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 ro=0;function uv(){T.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??gl()),document.body.insertAdjacentElement("beforeend",t[1]??gl()),ro++,()=>{ro===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ro--}},[])}function gl(){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 Lr="right-scroll-bar-position",Mr="width-before-scroll-bar",cv="with-scroll-bars-hidden",dv="--removed-body-scroll-bar-size";function io(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function fv(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 hv=typeof window<"u"?T.useLayoutEffect:T.useEffect,vl=new WeakMap;function pv(t,e){var n=fv(null,function(r){return t.forEach(function(i){return io(i,r)})});return hv(function(){var r=vl.get(n);if(r){var i=new Set(r),o=new Set(t),s=n.current;i.forEach(function(a){o.has(a)||io(a,null)}),o.forEach(function(a){i.has(a)||io(a,s)})}vl.set(n,t)},[t]),n}function gv(t){return t}function vv(t,e){e===void 0&&(e=gv);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 s=e(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var c=s;s=[],c.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function mv(t){t===void 0&&(t={});var e=vv(null);return e.options=Ye({async:!0,ssr:!1},t),e}var Gd=function(t){var e=t.sideCar,n=vc(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return T.createElement(r,Ye({},n))};Gd.isSideCarExport=!0;function yv(t,e){return t.useMedium(e),Gd}var qd=mv(),oo=function(){},xi=T.forwardRef(function(t,e){var n=T.useRef(null),r=T.useState({onScrollCapture:oo,onWheelCapture:oo,onTouchMoveCapture:oo}),i=r[0],o=r[1],s=t.forwardProps,a=t.children,l=t.className,u=t.removeScrollBar,c=t.enabled,f=t.shards,p=t.sideCar,g=t.noIsolation,b=t.inert,h=t.allowPinchZoom,m=t.as,v=m===void 0?"div":m,C=t.gapMode,w=vc(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=p,x=pv([n,e]),D=Ye(Ye({},w),i);return T.createElement(T.Fragment,null,c&&T.createElement(P,{sideCar:qd,removeScrollBar:u,shards:f,noIsolation:g,inert:b,setCallbacks:o,allowPinchZoom:!!h,lockRef:n,gapMode:C}),s?T.cloneElement(T.Children.only(a),Ye(Ye({},D),{ref:x})):T.createElement(v,Ye({},D,{className:l,ref:x}),a))});xi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xi.classNames={fullWidth:Mr,zeroRight:Lr};var bv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sv(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=bv();return e&&t.setAttribute("nonce",e),t}function Cv(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function wv(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Ev=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Sv())&&(Cv(e,n),wv(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},xv=function(){var t=Ev();return function(e,n){T.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},Yd=function(){var t=xv(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},$v={left:0,top:0,right:0,gap:0},so=function(t){return parseInt(t||"",10)||0},Tv=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[so(n),so(r),so(i)]},Pv=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return $v;var e=Tv(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])}},_v=Yd(),vn="data-scroll-locked",Dv=function(t,e,n,r){var i=t.left,o=t.top,s=t.right,a=t.gap;return n===void 0&&(n="margin"),`
48
- .`.concat(cv,` {
47
+ */var ws;function Ng(){return ws||(ws=1,process.env.NODE_ENV!=="production"&&function(){function t(g,$){return g===$&&(g!==0||1/g===1/$)||g!==g&&$!==$}function e(g,$){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=$();if(!f){var b=$();o(p,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}b=l({inst:{value:p,getSnapshot:$}});var m=b[0].inst,C=b[1];return s(function(){m.value=p,m.getSnapshot=$,n(m)&&C({inst:m})},[g,p,$]),a(function(){return n(m)&&C({inst:m}),g(function(){n(m)&&C({inst:m})})},[g]),u(p),p}function n(g){var $=g.getSnapshot;g=g.value;try{var p=$();return!o(g,p)}catch{return!0}}function r(g,$){return $()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,u=i.useDebugValue,d=!1,f=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Do.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Do}var Cs;function Rg(){return Cs||(Cs=1,process.env.NODE_ENV==="production"?Vr.exports=Mg():Vr.exports=Ng()),Vr.exports}var Ca=Rg();const Dd=c.createContext(!1),Dr=c.createContext(null);function eo(t){if(c.useContext(Dr))return t.content;let{collection:n,document:r}=jg(t.createCollection);return c.createElement(c.Fragment,null,c.createElement(_g,null,c.createElement(Dr.Provider,{value:r},t.content)),c.createElement(Ag,{render:t.children,collection:n}))}function Ag({collection:t,render:e}){return e(t)}function Kg(t,e,n){let r=un(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?n():e(),[e,n]);return Ca.useSyncExternalStore(t,o)}const Fg=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:Kg;function jg(t){let[e]=c.useState(()=>new Ig((t==null?void 0:t())||new Sa)),n=c.useCallback(l=>e.subscribe(l),[e]),r=c.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Fg(n,r,i);return Lg(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Pl=c.createContext(null);function Hg(t,e,n,r,i,o){let l=c.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=c.useContext(Pl);if(a){let s=a.ownerDocument.nodesByProps.get(e);return s||(s=a.ownerDocument.createElement(t),s.setProps(e,n,r,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,s)),i?c.createElement(Pl.Provider,{value:s},i):null}return c.createElement(t,{ref:l},i)}function to(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{if(!c.useContext(Dd)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return Hg(t,i,o,"children"in i?i.children:null,null,a=>c.createElement(n,{node:a}))});return r.displayName=e.name,r}function zg(t){return Td({...t,addIdAndValue:!0})}const Es=c.createContext(null);function Ea(t){let e=c.useContext(Es),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=zg({...t,idScope:r,dependencies:n});return c.useContext(Dr)&&(i=c.createElement(Bg,null,i)),e=c.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),c.createElement(Es.Provider,{value:e},i)}function Bg({children:t}){let e=c.useContext(Dr),n=c.useMemo(()=>c.createElement(Dr.Provider,{value:null},c.createElement(Dd.Provider,{value:!0},t)),[t]);return un()?c.createElement(Pl.Provider,{value:e},n):Nt.createPortal(n,e)}const Id=c.createContext({}),Vg=wa(function(e,n){[e,n]=mt(e,n,Id);let{elementType:r="label",...i}=e;return c.createElement(r,{className:"react-aria-Label",...i,ref:n})}),Oe=typeof document<"u"?c.useLayoutEffect:()=>{};function Ug(t){const e=c.useRef(null);return Oe(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}let xs=new Map;function Wg(t,e){if(t===e)return t;let n=xs.get(t);if(n)return n.forEach(i=>i(e)),e;let r=xs.get(e);return r?(r.forEach(i=>i(t)),t):e}function Gg(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const $e=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},It=t=>t&&"window"in t&&t.window===t?t:$e(t).defaultView||window;function Ps(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Gg(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Te(o,l):i==="id"&&o&&l?e.id=Wg(o,l):e[i]=l!==void 0?l:o}}return e}function Ts(t){if(qg())t.focus({preventScroll:!0});else{let e=Yg(t);t.focus(),Xg(e)}}let Ur=null;function qg(){if(Ur==null){Ur=!1;try{document.createElement("div").focus({get preventScroll(){return Ur=!0,!0}})}catch{}}return Ur}function Yg(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Xg(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function Od(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function Zg(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function xa(t){let e=null;return()=>(e==null&&(e=t()),e)}const Jg=xa(function(){return Zg(/^Mac/i)}),Qg=xa(function(){return Od(/Chrome/i)}),_d=xa(function(){return Od(/Android/i)});let On=new Map,Tl=new Set;function Ds(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=On.get(r.target);i||(i=new Set,On.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=On.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),On.delete(r.target)),On.size===0)){for(let o of Tl)o();Tl.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Ds():document.addEventListener("DOMContentLoaded",Ds));function ev(t){requestAnimationFrame(()=>{On.size===0?t():Tl.add(t)})}function tv(t,e){Oe(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function nv(t){return t.mozInputSource===0&&t.isTrusted?!0:_d()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function rv(t,e){return e.get?e.get.call(t):e.value}function kd(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Ld(t,e){var n=kd(t,e,"get");return rv(t,n)}function iv(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Md(t,e,n){iv(t,e),e.set(t,n)}function ov(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function Oi(t,e,n){var r=kd(t,e,"set");return ov(t,r,n),n}let lv=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}};function Nd(t){let e=c.useRef({isFocused:!1,observer:null});Oe(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ug(r=>{t==null||t(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{e.current.isFocused=!1,i.disabled&&n(new lv("blur",l)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Rd(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=Nd(o),a=c.useCallback(s=>{const u=$e(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}let Qn=null,Dl=new Set,wr=new Map,Zt=!1,Il=!1;const av={Tab:!0,Escape:!0};function Pa(t,e){for(let n of Dl)n(t,e)}function sv(t){return!(t.metaKey||!Jg()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function _i(t){Zt=!0,sv(t)&&(Qn="keyboard",Pa("keyboard",t))}function Ae(t){Qn="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Zt=!0,Pa("pointer",t))}function Ad(t){nv(t)&&(Zt=!0,Qn="virtual")}function Kd(t){t.target===window||t.target===document||(!Zt&&!Il&&(Qn="virtual",Pa("virtual",t)),Zt=!1,Il=!1)}function Fd(){Zt=!1,Il=!0}function Ol(t){if(typeof window>"u"||wr.get(It(t)))return;const e=It(t),n=$e(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Zt=!0,r.apply(this,arguments)},n.addEventListener("keydown",_i,!0),n.addEventListener("keyup",_i,!0),n.addEventListener("click",Ad,!0),e.addEventListener("focus",Kd,!0),e.addEventListener("blur",Fd,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ae,!0),n.addEventListener("pointermove",Ae,!0),n.addEventListener("pointerup",Ae,!0)):(n.addEventListener("mousedown",Ae,!0),n.addEventListener("mousemove",Ae,!0),n.addEventListener("mouseup",Ae,!0)),e.addEventListener("beforeunload",()=>{jd(t)},{once:!0}),wr.set(e,{focus:r})}const jd=(t,e)=>{const n=It(t),r=$e(t);e&&r.removeEventListener("DOMContentLoaded",e),wr.has(n)&&(n.HTMLElement.prototype.focus=wr.get(n).focus,r.removeEventListener("keydown",_i,!0),r.removeEventListener("keyup",_i,!0),r.removeEventListener("click",Ad,!0),n.removeEventListener("focus",Kd,!0),n.removeEventListener("blur",Fd,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ae,!0),r.removeEventListener("pointermove",Ae,!0),r.removeEventListener("pointerup",Ae,!0)):(r.removeEventListener("mousedown",Ae,!0),r.removeEventListener("mousemove",Ae,!0),r.removeEventListener("mouseup",Ae,!0)),wr.delete(n))};function uv(t){const e=$e(t);let n;return e.readyState!=="loading"?Ol(t):(n=()=>{Ol(t)},e.addEventListener("DOMContentLoaded",n)),()=>jd(t,n)}typeof document<"u"&&uv();function Hd(){return Qn!=="pointer"}function zd(){return Qn}const cv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dv(t,e,n){var r;const i=typeof window<"u"?It(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?It(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?It(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?It(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||(n==null?void 0:n.target)instanceof i&&!cv.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof l&&(n==null?void 0:n.target.isContentEditable),!(t&&e==="keyboard"&&n instanceof a&&!av[n.key])}function fv(t,e,n){Ol(),c.useEffect(()=>{let r=(i,o)=>{dv(!!(n!=null&&n.isTextInput),i,o)&&t(Hd())};return Dl.add(r),()=>{Dl.delete(r)}},e)}function hv(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),l=c.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Nd(l),s=c.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:l}}}function Is(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function pv(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Is(t.onKeyDown),onKeyUp:Is(t.onKeyUp)}}}function kt(t){const e=$e(t);if(zd()==="virtual"){let n=e.activeElement;ev(()=>{e.activeElement===n&&t.isConnected&&Ts(t)})}else Ts(t)}function gv(t){const e=It(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:a}=o(t);i=l!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function vv(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Bd(t,e){return t.nodeName!=="#comment"&&gv(t)&&vv(t,e)&&(!t.parentElement||Bd(t.parentElement,t))}const Os=c.createContext(null),_l="react-aria-focus-scope-restore";let le=null;function Ta(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=c.useRef(null),l=c.useRef(null),a=c.useRef([]),{parentNode:s}=c.useContext(Os)||{},u=c.useMemo(()=>new Ll({scopeRef:a}),[a]);Oe(()=>{let v=s||he.root;if(he.getTreeNode(v.scopeRef)&&le&&!ki(le,v.scopeRef)){let g=he.getTreeNode(le);g&&(v=g)}v.addChild(u),he.addNode(u)},[u,s]),Oe(()=>{let v=he.getTreeNode(a);v&&(v.contain=!!n)},[n]),Oe(()=>{var v;let g=(v=o.current)===null||v===void 0?void 0:v.nextSibling,$=[],p=b=>b.stopPropagation();for(;g&&g!==l.current;)$.push(g),g.addEventListener(_l,p),g=g.nextSibling;return a.current=$,()=>{for(let b of $)b.removeEventListener(_l,p)}},[e]),Cv(a,r,n),$v(a,n),Ev(a,r,n),wv(a,i),c.useEffect(()=>{const v=$e(a.current?a.current[0]:void 0).activeElement;let g=null;if(Ve(v,a.current)){for(let $ of he.traverse())$.scopeRef&&Ve(v,$.scopeRef.current)&&(g=$);g===he.getTreeNode(a)&&(le=g.scopeRef)}},[a]),Oe(()=>()=>{var v,g,$;let p=($=(g=he.getTreeNode(a))===null||g===void 0||(v=g.parent)===null||v===void 0?void 0:v.scopeRef)!==null&&$!==void 0?$:null;(a===le||ki(a,le))&&(!p||he.getTreeNode(p))&&(le=p),he.removeTreeNode(a)},[a]);let d=c.useMemo(()=>mv(a),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return c.createElement(Os.Provider,{value:f},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function mv(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e,a=r||$e(n[0]).activeElement,s=n[0].previousElementSibling,u=Bt(n),d=Ye(u,{tabbable:i,accept:l},n);d.currentNode=Ve(a,n)?a:s;let f=d.nextNode();return!f&&o&&(d.currentNode=s,f=d.nextNode()),f&&ft(f,!0),f},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e,a=r||$e(n[0]).activeElement,s=n[n.length-1].nextElementSibling,u=Bt(n),d=Ye(u,{tabbable:i,accept:l},n);d.currentNode=Ve(a,n)?a:s;let f=d.previousNode();return!f&&o&&(d.currentNode=s,f=d.previousNode()),f&&ft(f,!0),f},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Bt(n),l=Ye(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&ft(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Bt(n),l=Ye(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&ft(a,!0),a}}}const Da=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],bv=Da.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Da.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const yv=Da.join(':not([hidden]):not([tabindex="-1"]),');function Bt(t){return t[0].parentElement}function pr(t){let e=he.getTreeNode(le);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function $v(t,e){let n=c.useRef(void 0),r=c.useRef(void 0);Oe(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=$e(i?i[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!pr(t)||u.isComposing)return;let d=o.activeElement,f=t.current;if(!f||!Ve(d,f))return;let v=Bt(f),g=Ye(v,{tabbable:!0},f);if(!d)return;g.currentNode=d;let $=u.shiftKey?g.previousNode():g.nextNode();$||(g.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,$=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),$&&ft($,!0)},a=u=>{(!le||ki(le,t))&&Ve(u.target,t.current)?(le=t,n.current=u.target):pr(t)&&!Ot(u.target,t)?n.current?n.current.focus():le&&le.current&&kl(le.current):pr(t)&&(n.current=u.target)},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=zd();if(!((d==="virtual"||d===null)&&_d()&&Qg())&&o.activeElement&&pr(t)&&!Ot(o.activeElement,t))if(le=t,o.body.contains(u.target)){var v;n.current=u.target,(v=n.current)===null||v===void 0||v.focus()}else le.current&&kl(le.current)})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",s,!1))}},[t,e]),Oe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Vd(t){return Ot(t)}function Ve(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function Ot(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of he.traverse(he.getTreeNode(e)))if(n&&Ve(t,n.current))return!0;return!1}function Sv(t){return Ot(t,le)}function ki(t,e){var n;let r=(n=he.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function ft(t,e=!1){if(t!=null&&!e)try{kt(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Ud(t,e=!0){let n=t[0].previousElementSibling,r=Bt(t),i=Ye(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Bt(t),i=Ye(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function kl(t,e=!0){ft(Ud(t,e))}function wv(t,e){const n=c.useRef(e);c.useEffect(()=>{if(n.current){le=t;const r=$e(t.current?t.current[0]:void 0);!Ve(r.activeElement,le.current)&&t.current&&kl(t.current)}n.current=!1},[t])}function Cv(t,e,n){Oe(()=>{if(e||n)return;let r=t.current;const i=$e(r?r[0]:void 0);let o=l=>{let a=l.target;Ve(a,t.current)?le=t:Vd(a)||(le=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function _s(t){let e=he.getTreeNode(le);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Ev(t,e,n){const r=c.useRef(typeof document<"u"?$e(t.current?t.current[0]:void 0).activeElement:null);Oe(()=>{let i=t.current;const o=$e(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!le||ki(le,t))&&Ve(o.activeElement,t.current)&&(le=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",l,!1))}},[t,n]),Oe(()=>{const i=$e(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!pr(t)||l.isComposing)return;let a=i.activeElement;if(!Ot(a,t)||!_s(t))return;let s=he.getTreeNode(t);if(!s)return;let u=s.nodeToRestore,d=Ye(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!u||!i.body.contains(u)||u===i.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!Ot(f,t))&&u){d.currentNode=u;do f=l.shiftKey?d.previousNode():d.nextNode();while(Ot(f,t));l.preventDefault(),l.stopPropagation(),f?ft(f,!0):Vd(u)?ft(u,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),Oe(()=>{const i=$e(t.current?t.current[0]:void 0);if(!e)return;let o=he.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=he.getTreeNode(t);if(!a)return;let s=a.nodeToRestore;if(e&&s&&(i.activeElement&&Ot(i.activeElement,t)||i.activeElement===i.body&&_s(t))){let u=he.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let d=u.getTreeNode(t);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){ks(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(t);d;){if(d.scopeRef&&d.scopeRef.current&&he.getTreeNode(d.scopeRef)){let f=Ud(d.scopeRef.current,!0);ks(f);return}d=d.parent}}})}}}},[t,e])}function ks(t){t.dispatchEvent(new CustomEvent(_l,{bubbles:!0,cancelable:!0}))&&ft(t)}function Ye(t,e,n){let r=e!=null&&e.tabbable?yv:bv,i=$e(t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var l;return!(e==null||(l=e.from)===null||l===void 0)&&l.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&Bd(o)&&(!n||Ve(o,n))&&(!(e!=null&&e.accept)||e.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(i.currentNode=e.from),i}class Ia{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Ll({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ve(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Ia;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Ll({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ll{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let he=new Ia;function cn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=c.useRef({isFocused:!1,isFocusVisible:e||Hd()}),[o,l]=c.useState(!1),[a,s]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=c.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=c.useCallback(g=>{i.current.isFocused=g,l(g),u()},[u]);fv(g=>{i.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=Rd({isDisabled:r,onFocusChange:d}),{focusWithinProps:v}=hv({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?v:f}}let xv=c.createContext(null);function Pv(t){let e=c.useContext(xv)||{};tv(e,t);let{ref:n,...r}=e;return r}function Tv(t,e){let{focusProps:n}=Rd(t),{keyboardProps:r}=pv(t),i=Ps(n,r),o=Pv(e),l=t.isDisabled?{}:o,a=c.useRef(t.autoFocus);return c.useEffect(()=>{a.current&&e.current&&kt(e.current),a.current=!1},[e]),{focusableProps:Ps({...i,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},l)}}function Dv(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=c.useState(!1);return Oe(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=Ye(t.current,{tabbable:!0});i(!!a.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}let Nn="default",Ml="",pi=new WeakMap;function Ls(t){if(Xi()){if(Nn==="default"){const e=He(t);Ml=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Nn="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(pi.set(t,t.style.userSelect),t.style.userSelect="none")}function Wr(t){if(Xi()){if(Nn!=="disabled")return;Nn="restoring",setTimeout(()=>{vg(()=>{if(Nn==="restoring"){const e=He(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Ml||""),Ml="",Nn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&pi.has(t)){let e=pi.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),pi.delete(t)}}const Oa=c.createContext({register:()=>{}});Oa.displayName="PressResponderContext";function Iv(t){let e=c.useContext(Oa);if(e){let{register:n,...r}=e;t=ae(r,t),n()}return bg(e,t.ref),t}var Gr=new WeakMap;let qr=class{continuePropagation(){Oi(this,Gr,!1)}get shouldStopPropagation(){return Ld(this,Gr)}constructor(e,n,r,i){Md(this,Gr,{writable:!0,value:void 0}),Oi(this,Gr,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,u=f-a.top):(s=a.width/2,u=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}};const Ms=Symbol("linkClicked");function no(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:l,isPressed:a,preventFocusOnPress:s,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...v}=Iv(t),[g,$]=c.useState(!1),p=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:m}=Sd(),C=ye((h,L)=>{let A=p.current;if(l||A.didFirePressStart)return!1;let P=!0;if(A.isTriggeringEvent=!0,r){let F=new qr("pressstart",L,h);r(F),P=F.shouldStopPropagation}return n&&n(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,$(!0),P}),S=ye((h,L,A=!0)=>{let P=p.current;if(!P.didFirePressStart)return!1;P.ignoreClickAfterPress=!0,P.didFirePressStart=!1,P.isTriggeringEvent=!0;let F=!0;if(i){let y=new qr("pressend",L,h);i(y),F=y.shouldStopPropagation}if(n&&n(!1),$(!1),e&&A&&!l){let y=new qr("press",L,h);e(y),F&&(F=y.shouldStopPropagation)}return P.isTriggeringEvent=!1,F}),D=ye((h,L)=>{let A=p.current;if(l)return!1;if(o){A.isTriggeringEvent=!0;let P=new qr("pressup",L,h);return o(P),A.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),x=ye(h=>{let L=p.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&S(lt(L.target,h),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,m(),d||Wr(L.target))}),T=ye(h=>{u&&x(h)}),I=c.useMemo(()=>{let h=p.current,L={onKeyDown(P){if(Io(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)){var F;Rs(P.target,P.key)&&P.preventDefault();let y=!0;if(!h.isPressed&&!P.repeat){h.target=P.currentTarget,h.isPressed=!0,y=C(P,"keyboard");let E=P.currentTarget,K=B=>{Io(B,E)&&!B.repeat&&E.contains(B.target)&&h.target&&D(lt(h.target,B),"keyboard")};b(He(P.currentTarget),"keyup",Un(K,A),!0)}y&&P.stopPropagation(),P.metaKey&&Yt()&&((F=h.metaKeyEvents)===null||F===void 0||F.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(P){if(!(P&&!P.currentTarget.contains(P.target))&&P&&P.button===0&&!h.isTriggeringEvent&&!Xt.isOpening){let F=!0;if(l&&P.preventDefault(),!h.ignoreClickAfterPress&&!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||El(P.nativeEvent))){!l&&!s&&zt(P.currentTarget);let y=C(P,"virtual"),E=D(P,"virtual"),K=S(P,"virtual");F=y&&E&&K}h.ignoreEmulatedMouseEvents=!1,h.ignoreClickAfterPress=!1,F&&P.stopPropagation()}}},A=P=>{var F;if(h.isPressed&&h.target&&Io(P,h.target)){var y;Rs(P.target,P.key)&&P.preventDefault();let K=P.target;S(lt(h.target,P),"keyboard",h.target.contains(K)),m(),P.key!=="Enter"&&_a(h.target)&&h.target.contains(K)&&!P[Ms]&&(P[Ms]=!0,Xt(h.target,P,!1)),h.isPressed=!1,(y=h.metaKeyEvents)===null||y===void 0||y.delete(P.key)}else if(P.key==="Meta"&&(!((F=h.metaKeyEvents)===null||F===void 0)&&F.size)){var E;let K=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let B of K.values())(E=h.target)===null||E===void 0||E.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){L.onPointerDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(wg(E.nativeEvent)){h.pointerType="virtual";return}_o(E.currentTarget)&&E.preventDefault(),h.pointerType=E.pointerType;let K=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=E.pointerId,h.target=E.currentTarget,!l&&!s&&zt(E.currentTarget),d||Ls(h.target),K=C(E,h.pointerType);let B=E.target;"releasePointerCapture"in B&&B.releasePointerCapture(E.pointerId),b(He(E.currentTarget),"pointerup",P,!1),b(He(E.currentTarget),"pointercancel",y,!1)}K&&E.stopPropagation()},L.onMouseDown=E=>{E.currentTarget.contains(E.target)&&E.button===0&&(_o(E.currentTarget)&&E.preventDefault(),E.stopPropagation())},L.onPointerUp=E=>{!E.currentTarget.contains(E.target)||h.pointerType==="virtual"||E.button===0&&D(E,h.pointerType||E.pointerType)},L.onPointerEnter=E=>{E.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,C(lt(h.target,E),h.pointerType))},L.onPointerLeave=E=>{E.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S(lt(h.target,E),h.pointerType,!1),T(E))};let P=E=>{E.pointerId===h.activePointerId&&h.isPressed&&E.button===0&&h.target&&(h.target.contains(E.target)&&h.pointerType!=null?S(lt(h.target,E),h.pointerType):h.isOverTarget&&h.pointerType!=null&&S(lt(h.target,E),h.pointerType,!1),h.isPressed=!1,h.isOverTarget=!1,h.activePointerId=null,h.pointerType=null,m(),d||Wr(h.target),"ontouchend"in h.target&&E.pointerType!=="mouse"&&b(h.target,"touchend",F,{once:!0}))},F=E=>{Wd(E.currentTarget)&&E.preventDefault()},y=E=>{x(E)};L.onDragStart=E=>{E.currentTarget.contains(E.target)&&x(E)}}else{L.onMouseDown=y=>{if(y.button!==0||!y.currentTarget.contains(y.target))return;if(_o(y.currentTarget)&&y.preventDefault(),h.ignoreEmulatedMouseEvents){y.stopPropagation();return}h.isPressed=!0,h.isOverTarget=!0,h.target=y.currentTarget,h.pointerType=El(y.nativeEvent)?"virtual":"mouse",!l&&!s&&zt(y.currentTarget),C(y,h.pointerType)&&y.stopPropagation(),b(He(y.currentTarget),"mouseup",P,!1)},L.onMouseEnter=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,E=C(y,h.pointerType)),E&&y.stopPropagation()},L.onMouseLeave=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,E=S(y,h.pointerType,!1),T(y)),E&&y.stopPropagation()},L.onMouseUp=y=>{y.currentTarget.contains(y.target)&&!h.ignoreEmulatedMouseEvents&&y.button===0&&D(y,h.pointerType||"mouse")};let P=y=>{if(y.button===0){if(h.isPressed=!1,m(),h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&Oo(y,h.target)&&h.pointerType!=null?S(lt(h.target,y),h.pointerType):h.target&&h.isOverTarget&&h.pointerType!=null&&S(lt(h.target,y),h.pointerType,!1),h.isOverTarget=!1}};L.onTouchStart=y=>{if(!y.currentTarget.contains(y.target))return;let E=Ov(y.nativeEvent);if(!E)return;h.activePointerId=E.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=y.currentTarget,h.pointerType="touch",!l&&!s&&zt(y.currentTarget),d||Ls(h.target),C(St(h.target,y),h.pointerType)&&y.stopPropagation(),b(Wn(y.currentTarget),"scroll",F,!0)},L.onTouchMove=y=>{if(!y.currentTarget.contains(y.target))return;if(!h.isPressed){y.stopPropagation();return}let E=Ns(y.nativeEvent,h.activePointerId),K=!0;E&&Oo(E,y.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,K=C(St(h.target,y),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,K=S(St(h.target,y),h.pointerType,!1),T(St(h.target,y))),K&&y.stopPropagation()},L.onTouchEnd=y=>{if(!y.currentTarget.contains(y.target))return;if(!h.isPressed){y.stopPropagation();return}let E=Ns(y.nativeEvent,h.activePointerId),K=!0;E&&Oo(E,y.currentTarget)&&h.pointerType!=null?(D(St(h.target,y),h.pointerType),K=S(St(h.target,y),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(K=S(St(h.target,y),h.pointerType,!1)),K&&y.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!d&&Wr(h.target),m()},L.onTouchCancel=y=>{y.currentTarget.contains(y.target)&&(y.stopPropagation(),h.isPressed&&x(St(h.target,y)))};let F=y=>{h.isPressed&&y.target.contains(h.target)&&x({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=y=>{y.currentTarget.contains(y.target)&&x(y)}}return L},[b,l,s,m,d,x,T,S,C,D]);return c.useEffect(()=>()=>{var h;d||Wr((h=p.current.target)!==null&&h!==void 0?h:void 0)},[d]),{isPressed:a||g,pressProps:ae(v,I)}}function _a(t){return t.tagName==="A"&&t.hasAttribute("href")}function Io(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Wn(i).HTMLInputElement&&!Gd(i,n)||i instanceof Wn(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&_a(i))&&n!=="Enter")}function Ov(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Ns(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function St(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function lt(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function _v(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function kv(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Oo(t,e){let n=e.getBoundingClientRect(),r=_v(t);return kv(n,r)}function _o(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function Wd(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!_a(t)}function Rs(t,e){return t instanceof HTMLInputElement?!Gd(t,e):Wd(t)}const Lv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Gd(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Lv.has(t.type)}function Mv({children:t}){let e=c.useMemo(()=>({register:()=>{}}),[]);return c.createElement(Oa.Provider,{value:e},t)}let Nv=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}};function qd(t){let e=c.useRef({isFocused:!1,observer:null});pe(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ye(r=>{t==null||t(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{e.current.isFocused=!1,i.disabled&&n(new Nv("blur",l)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Rv(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=qd(o),a=c.useCallback(s=>{const u=He(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),l(s))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?a:void 0,onBlur:!e&&(r||i)?o:void 0}}}let dn=null,Av=new Set,Cr=new Map,Jt=!1,Nl=!1;function ro(t,e){for(let n of Av)n(t,e)}function Kv(t){return!(t.metaKey||!Yt()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Li(t){Jt=!0,Kv(t)&&(dn="keyboard",ro("keyboard",t))}function Ke(t){dn="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Jt=!0,ro("pointer",t))}function Yd(t){El(t)&&(Jt=!0,dn="virtual")}function Xd(t){t.target===window||t.target===document||(!Jt&&!Nl&&(dn="virtual",ro("virtual",t)),Jt=!1,Nl=!1)}function Zd(){Jt=!1,Nl=!0}function As(t){if(typeof window>"u"||Cr.get(Wn(t)))return;const e=Wn(t),n=He(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Jt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Li,!0),n.addEventListener("keyup",Li,!0),n.addEventListener("click",Yd,!0),e.addEventListener("focus",Xd,!0),e.addEventListener("blur",Zd,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ke,!0),n.addEventListener("pointermove",Ke,!0),n.addEventListener("pointerup",Ke,!0)):(n.addEventListener("mousedown",Ke,!0),n.addEventListener("mousemove",Ke,!0),n.addEventListener("mouseup",Ke,!0)),e.addEventListener("beforeunload",()=>{Jd(t)},{once:!0}),Cr.set(e,{focus:r})}const Jd=(t,e)=>{const n=Wn(t),r=He(t);e&&r.removeEventListener("DOMContentLoaded",e),Cr.has(n)&&(n.HTMLElement.prototype.focus=Cr.get(n).focus,r.removeEventListener("keydown",Li,!0),r.removeEventListener("keyup",Li,!0),r.removeEventListener("click",Yd,!0),n.removeEventListener("focus",Xd,!0),n.removeEventListener("blur",Zd,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ke,!0),r.removeEventListener("pointermove",Ke,!0),r.removeEventListener("pointerup",Ke,!0)):(r.removeEventListener("mousedown",Ke,!0),r.removeEventListener("mousemove",Ke,!0),r.removeEventListener("mouseup",Ke,!0)),Cr.delete(n))};function Fv(t){const e=He(t);let n;return e.readyState!=="loading"?As(t):(n=()=>{As(t)},e.addEventListener("DOMContentLoaded",n)),()=>Jd(t,n)}typeof document<"u"&&Fv();function jv(){return dn!=="pointer"}function Ks(){return dn}function Qd(t){dn=t,ro(t,null)}function ef(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),l=c.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=qd(l),s=c.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:l}}}let Mi=!1,ko=0;function Rl(){Mi=!0,setTimeout(()=>{Mi=!1},50)}function Fs(t){t.pointerType==="touch"&&Rl()}function Hv(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Fs):document.addEventListener("touchend",Rl),ko++,()=>{ko--,!(ko>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Fs):document.removeEventListener("touchend",Rl))}}function Nr(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(Hv,[]);let{hoverProps:s,triggerHoverEnd:u}=c.useMemo(()=>{let d=(g,$)=>{if(a.pointerType=$,i||$==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let p=g.currentTarget;a.target=p,e&&e({type:"hoverstart",target:p,pointerType:$}),n&&n(!0),l(!0)},f=(g,$)=>{if(a.pointerType="",a.target=null,$==="touch"||!a.isHovered)return;a.isHovered=!1;let p=g.currentTarget;r&&r({type:"hoverend",target:p,pointerType:$}),n&&n(!1),l(!1)},v={};return typeof PointerEvent<"u"?(v.onPointerEnter=g=>{Mi&&g.pointerType==="mouse"||d(g,g.pointerType)},v.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,g.pointerType)}):(v.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},v.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Mi&&d(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},v.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,"mouse")}),{hoverProps:v,triggerHoverEnd:f}},[e,n,r,i,a]);return c.useEffect(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:s,isHovered:o}}function zv(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ye(s=>{n&&Yr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=ye(s=>{n&&n(s)});c.useEffect(()=>{let s=o.current;if(r)return;const u=e.current,d=He(u);if(typeof PointerEvent<"u"){let f=v=>{s.isPointerDown&&Yr(v,e)&&a(v),s.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("pointerup",f,!0)}}else{let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&Yr(g,e)&&a(g),s.isPointerDown=!1},v=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&Yr(g,e)&&a(g),s.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",v,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",v,!0)}}},[e,r,l,a])}function Yr(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current&&!e.current.contains(t.target)}function js(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function Bv(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:js(t.onKeyDown),onKeyUp:js(t.onKeyUp)}}}const Vv=500;function tf(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=Vv,accessibilityDescription:l}=t;const a=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Sd(),{pressProps:d}=no({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(n&&n({...v,type:"longpressstart"}),a.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...v,type:"longpress"}),a.current=void 0},o),v.pointerType==="touch")){let g=$=>{$.preventDefault()};s(v.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(v.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(v){a.current&&clearTimeout(a.current),r&&(v.pointerType==="mouse"||v.pointerType==="touch")&&r({...v,type:"longpressend"})}}),f=Sg(i&&!e?l:void 0);return{longPressProps:ae(d,f)}}const Uv=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Wv=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Gv(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Uv.has(n.script)}let e=t.split("-")[0];return Wv.has(e)}const qv=Symbol.for("react-aria.i18n.locale");function nf(){let t=typeof window<"u"&&window[qv]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Gv(t)?"rtl":"ltr"}}let Al=nf(),gr=new Set;function Hs(){Al=nf();for(let t of gr)t(Al)}function Yv(){let t=un(),[e,n]=c.useState(Al);return c.useEffect(()=>(gr.size===0&&window.addEventListener("languagechange",Hs),gr.add(n),()=>{gr.delete(n),gr.size===0&&window.removeEventListener("languagechange",Hs)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Xv=c.createContext(null);function er(){let t=Yv();return c.useContext(Xv)||t}var tt=function(){return tt=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},tt.apply(this,arguments)};function rf(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Zv(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}const Jv=Symbol.for("react-aria.i18n.locale"),Qv=Symbol.for("react-aria.i18n.strings");let vn;class io{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=e5(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Jv];if(vn===void 0){let i=window[Qv];if(!i)return null;vn={};for(let o in i)vn[o]=new io({[n]:i[o]},n)}let r=vn==null?void 0:vn[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function e5(t,e,n="en-US"){if(e[t])return e[t];let r=t5(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function t5(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const zs=new Map,Bs=new Map;class n5{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=zs.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),zs.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Bs.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Bs.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const Vs=new WeakMap;function r5(t){let e=Vs.get(t);return e||(e=new io(t),Vs.set(t,e)),e}function i5(t,e){return e&&io.getGlobalDictionaryForPackage(e)||r5(t)}function of(t,e){let{locale:n}=er(),r=i5(t,e);return c.useMemo(()=>new n5(n,r),[n,r])}let Lo=new Map;function ka(t){let{locale:e}=er(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Lo.has(n))return Lo.get(n);let r=new Intl.Collator(e,t);return Lo.set(n,r),r}function o5(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:v,target:g,rel:$,type:p="button"}=t,b;n==="button"?b={type:p,disabled:r}:b={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?v:void 0,target:n==="a"?g:void 0,type:n==="input"?p:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?$:void 0};let{pressProps:m,isPressed:C}=no({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,isDisabled:r,preventFocusOnPress:u,ref:e}),{focusableProps:S}=Tv(t,e);d&&(S.tabIndex=r?-1:S.tabIndex);let D=ae(S,m,Se(t,{labelable:!0}));return{isPressed:C,buttonProps:ae(b,D,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],onClick:x=>{f&&(f(x),console.warn("onClick is deprecated, please use onPress"))}})}}const lf=7e3;let Qe=null;function Us(t,e="assertive",n=lf){Qe?Qe.announce(t,e,n):(Qe=new l5,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Qe.announce(t,e,n):setTimeout(()=>{Qe!=null&&Qe.isAttached()&&(Qe==null||Qe.announce(t,e,n))},100))}class l5{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=lf){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function a5(t,e,n){let{validationBehavior:r,focus:i}=t;pe(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let s=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(u5(n.current))}});let o=ye(()=>{e.resetValidation()}),l=ye(s=>{var u;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!s.defaultPrevented&&n&&d&&c5(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),Qd("keyboard")}s.preventDefault()}),a=ye(()=>{e.commitValidation()});c.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let u=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),u==null||u.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),u==null||u.removeEventListener("reset",o)}},[n,l,a,o,r])}function s5(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function u5(t){return{isInvalid:!t.validity.valid,validationDetails:s5(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function c5(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function d5(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Be(e);let l=Be(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=Ji({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function f5(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=d5(t),a=Sr([!!e,!!n,r,i]),s=Sr([!!e,!!n,r,i]);return l=ae(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Ws={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function af(t={}){let{style:e,isFocusable:n}=t,[r,i]=c.useState(!1),{focusWithinProps:o}=ef({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=c.useMemo(()=>r?e:e?{...Ws,...e}:Ws,[r]);return{visuallyHiddenProps:{...o,style:l}}}function h5(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=af(t);return c.createElement(n,ae(o,l),e)}const La=new WeakMap;function p5(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function g5(t,e){let n=La.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${p5(e)}`}const pt=typeof document<"u"?c.useLayoutEffect:()=>{};function qe(t){const e=c.useRef(null);return pt(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function v5(t){let[e,n]=c.useState(t),r=c.useRef(null),i=qe(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});pt(()=>{r.current&&i()});let o=qe(l=>{r.current=l(e),i()});return[e,o]}let m5=!!(typeof window<"u"&&window.document&&window.document.createElement),Pt=new Map;function Qt(t){let[e,n]=c.useState(t),r=c.useRef(null),i=gd(e),o=c.useCallback(l=>{r.current=l},[]);return m5&&(Pt.has(i)&&!Pt.get(i).includes(o)?Pt.set(i,[...Pt.get(i),o]):Pt.set(i,[o])),pt(()=>{let l=i;return()=>{Pt.delete(l)}},[i]),c.useEffect(()=>{let l=r.current;l&&(r.current=null,n(l))}),i}function b5(t,e){if(t===e)return t;let n=Pt.get(t);if(n)return n.forEach(i=>i(e)),e;let r=Pt.get(e);return r?(r.forEach(i=>i(t)),t):e}function Gs(t=[]){let e=Qt(),[n,r]=v5(e),i=c.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return pt(i,[e,i,...t]),n}function Ma(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const nt=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Gn=t=>t&&"window"in t&&t.window===t?t:nt(t).defaultView||window;function Lt(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=Ma(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Te(o,l):i==="id"&&o&&l?e.id=b5(o,l):e[i]=l!==void 0?l:o}}return e}const y5=new Set(["id"]),$5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),S5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),w5=/^(data-.*)$/;function sf(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(y5.has(l)||n&&$5.has(l)||r&&S5.has(l)||i!=null&&i.has(l)||w5.test(l))&&(o[l]=t[l]);return o}function Vt(t){if(C5())t.focus({preventScroll:!0});else{let e=E5(t);t.focus(),x5(e)}}let Xr=null;function C5(){if(Xr==null){Xr=!1;try{document.createElement("div").focus({get preventScroll(){return Xr=!0,!0}})}catch{}}return Xr}function E5(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function x5(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function oo(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function Na(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function bt(t){let e=null;return()=>(e==null&&(e=t()),e)}const Mt=bt(function(){return Na(/^Mac/i)}),P5=bt(function(){return Na(/^iPhone/i)}),uf=bt(function(){return Na(/^iPad/i)||Mt()&&navigator.maxTouchPoints>1}),Ra=bt(function(){return P5()||uf()}),T5=bt(function(){return Mt()||Ra()}),cf=bt(function(){return oo(/AppleWebKit/i)&&!D5()}),D5=bt(function(){return oo(/Chrome/i)}),df=bt(function(){return oo(/Android/i)}),I5=bt(function(){return oo(/Firefox/i)}),O5=c.createContext({isNative:!0,open:k5,useHref:t=>t});function Aa(){return c.useContext(O5)}function en(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;I5()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(Mt()?o=!0:l=!0);let u=cf()&&Mt()&&!uf()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});en.isOpening=n,Vt(t),t.dispatchEvent(u),en.isOpening=!1}en.isOpening=!1;function _5(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function k5(t,e){_5(t,n=>en(n,e))}function L5(t){let e=Aa();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let _n=new Map,Kl=new Set;function qs(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=_n.get(r.target);i||(i=new Set,_n.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!t(r)||!r.target)return;let i=_n.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),_n.delete(r.target)),_n.size===0)){for(let o of Kl)o();Kl.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?qs():document.addEventListener("DOMContentLoaded",qs));function M5(t){requestAnimationFrame(()=>{_n.size===0?t():Kl.add(t)})}function ff(){let t=c.useRef(new Map),e=c.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...u)=>{t.current.delete(l),l(...u)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=c.useCallback((i,o,l,a)=>{var s;let u=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,u,a),t.current.delete(l)},[]),r=c.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function N5(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Qt(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function Ys(t,e){const n=c.useRef(!0),r=c.useRef(null);pt(()=>(n.current=!0,()=>{n.current=!1}),[]),pt(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function R5(t,e){pt(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Fl(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&e&&(r=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),r}function A5(t,e){const n=[];for(;t&&t!==document.documentElement;)Fl(t,e)&&n.push(t),t=t.parentElement;return n}let K5=0;const Mo=new Map;function F5(t){let[e,n]=c.useState();return pt(()=>{if(!t)return;let r=Mo.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${K5++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Mo.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Mo.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Zr(t,e,n,r){let i=qe(n),o=n==null;c.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o,i])}function hf(t,e){let n=Xs(t,e,"left"),r=Xs(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:v,scrollPaddingLeft:g}=getComputedStyle(t),$=l+parseInt(u,10),p=a+parseInt(s,10),b=$+t.clientWidth,m=p+t.clientHeight,C=parseInt(d,10)||0,S=parseInt(v,10)||0,D=parseInt(f,10)||0,x=parseInt(g,10)||0;n<=l+x?l=n-parseInt(u,10)-x:n+i>b-D&&(l+=n+i-b+D),r<=p+C?a=r-parseInt(s,10)-C:r+o>m-S&&(a+=r+o-m+S),t.scrollLeft=l,t.scrollTop=a}function Xs(t,e,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[r],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[r];break}e=e.offsetParent}return i}function Zs(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=A5(t);for(let u of s)hf(u,t)}else{var n;let{left:s,top:u}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(u-f)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function jl(t){return t.mozInputSource===0&&t.isTrusted?!0:df()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function j5(t){return!df()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}const H5="react-aria-clear-focus",z5="react-aria-focus",pf="react-aria-update-activedescendant";function kn(t){return Mt()?t.metaKey:t.ctrlKey}let Rn="default",Hl="",gi=new WeakMap;function Js(t){if(Ra()){if(Rn==="default"){const e=nt(t);Hl=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Rn="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(gi.set(t,t.style.userSelect),t.style.userSelect="none")}function Jr(t){if(Ra()){if(Rn!=="disabled")return;Rn="restoring",setTimeout(()=>{M5(()=>{if(Rn==="restoring"){const e=nt(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Hl||""),Hl="",Rn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&gi.has(t)){let e=gi.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),gi.delete(t)}}const gf=c.createContext({register:()=>{}});gf.displayName="PressResponderContext";function B5(t){let e=c.useContext(gf);if(e){let{register:n,...r}=e;t=Lt(r,t),n()}return R5(e,t.ref),t}var Qr=new WeakMap;class ei{continuePropagation(){Oi(this,Qr,!1)}get shouldStopPropagation(){return Ld(this,Qr)}constructor(e,n,r,i){Md(this,Qr,{writable:!0,value:void 0}),Oi(this,Qr,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,u=f-a.top):(s=a.width/2,u=a.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=u}}const Qs=Symbol("linkClicked");function vf(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:l,isPressed:a,preventFocusOnPress:s,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...v}=B5(t),[g,$]=c.useState(!1),p=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:m}=ff(),C=qe((h,L)=>{let A=p.current;if(l||A.didFirePressStart)return!1;let P=!0;if(A.isTriggeringEvent=!0,r){let F=new ei("pressstart",L,h);r(F),P=F.shouldStopPropagation}return n&&n(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,$(!0),P}),S=qe((h,L,A=!0)=>{let P=p.current;if(!P.didFirePressStart)return!1;P.ignoreClickAfterPress=!0,P.didFirePressStart=!1,P.isTriggeringEvent=!0;let F=!0;if(i){let y=new ei("pressend",L,h);i(y),F=y.shouldStopPropagation}if(n&&n(!1),$(!1),e&&A&&!l){let y=new ei("press",L,h);e(y),F&&(F=y.shouldStopPropagation)}return P.isTriggeringEvent=!1,F}),D=qe((h,L)=>{let A=p.current;if(l)return!1;if(o){A.isTriggeringEvent=!0;let P=new ei("pressup",L,h);return o(P),A.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),x=qe(h=>{let L=p.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&S(at(L.target,h),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,m(),d||Jr(L.target))}),T=qe(h=>{u&&x(h)}),I=c.useMemo(()=>{let h=p.current,L={onKeyDown(P){if(No(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)){var F;tu(P.target,P.key)&&P.preventDefault();let y=!0;if(!h.isPressed&&!P.repeat){h.target=P.currentTarget,h.isPressed=!0,y=C(P,"keyboard");let E=P.currentTarget,K=B=>{No(B,E)&&!B.repeat&&E.contains(B.target)&&h.target&&D(at(h.target,B),"keyboard")};b(nt(P.currentTarget),"keyup",Ma(K,A),!0)}y&&P.stopPropagation(),P.metaKey&&Mt()&&((F=h.metaKeyEvents)===null||F===void 0||F.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(P){if(!(P&&!P.currentTarget.contains(P.target))&&P&&P.button===0&&!h.isTriggeringEvent&&!en.isOpening){let F=!0;if(l&&P.preventDefault(),!h.ignoreClickAfterPress&&!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||jl(P.nativeEvent))){!l&&!s&&Vt(P.currentTarget);let y=C(P,"virtual"),E=D(P,"virtual"),K=S(P,"virtual");F=y&&E&&K}h.ignoreEmulatedMouseEvents=!1,h.ignoreClickAfterPress=!1,F&&P.stopPropagation()}}},A=P=>{var F;if(h.isPressed&&h.target&&No(P,h.target)){var y;tu(P.target,P.key)&&P.preventDefault();let K=P.target;S(at(h.target,P),"keyboard",h.target.contains(K)),m(),P.key!=="Enter"&&Ka(h.target)&&h.target.contains(K)&&!P[Qs]&&(P[Qs]=!0,en(h.target,P,!1)),h.isPressed=!1,(y=h.metaKeyEvents)===null||y===void 0||y.delete(P.key)}else if(P.key==="Meta"&&(!((F=h.metaKeyEvents)===null||F===void 0)&&F.size)){var E;let K=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let B of K.values())(E=h.target)===null||E===void 0||E.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){L.onPointerDown=E=>{if(E.button!==0||!E.currentTarget.contains(E.target))return;if(j5(E.nativeEvent)){h.pointerType="virtual";return}Ao(E.currentTarget)&&E.preventDefault(),h.pointerType=E.pointerType;let K=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=E.pointerId,h.target=E.currentTarget,!l&&!s&&Vt(E.currentTarget),d||Js(h.target),K=C(E,h.pointerType);let B=E.target;"releasePointerCapture"in B&&B.releasePointerCapture(E.pointerId),b(nt(E.currentTarget),"pointerup",P,!1),b(nt(E.currentTarget),"pointercancel",y,!1)}K&&E.stopPropagation()},L.onMouseDown=E=>{E.currentTarget.contains(E.target)&&E.button===0&&(Ao(E.currentTarget)&&E.preventDefault(),E.stopPropagation())},L.onPointerUp=E=>{!E.currentTarget.contains(E.target)||h.pointerType==="virtual"||E.button===0&&D(E,h.pointerType||E.pointerType)},L.onPointerEnter=E=>{E.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,C(at(h.target,E),h.pointerType))},L.onPointerLeave=E=>{E.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S(at(h.target,E),h.pointerType,!1),T(E))};let P=E=>{E.pointerId===h.activePointerId&&h.isPressed&&E.button===0&&h.target&&(h.target.contains(E.target)&&h.pointerType!=null?S(at(h.target,E),h.pointerType):h.isOverTarget&&h.pointerType!=null&&S(at(h.target,E),h.pointerType,!1),h.isPressed=!1,h.isOverTarget=!1,h.activePointerId=null,h.pointerType=null,m(),d||Jr(h.target),"ontouchend"in h.target&&E.pointerType!=="mouse"&&b(h.target,"touchend",F,{once:!0}))},F=E=>{mf(E.currentTarget)&&E.preventDefault()},y=E=>{x(E)};L.onDragStart=E=>{E.currentTarget.contains(E.target)&&x(E)}}else{L.onMouseDown=y=>{if(y.button!==0||!y.currentTarget.contains(y.target))return;if(Ao(y.currentTarget)&&y.preventDefault(),h.ignoreEmulatedMouseEvents){y.stopPropagation();return}h.isPressed=!0,h.isOverTarget=!0,h.target=y.currentTarget,h.pointerType=jl(y.nativeEvent)?"virtual":"mouse",!l&&!s&&Vt(y.currentTarget),C(y,h.pointerType)&&y.stopPropagation(),b(nt(y.currentTarget),"mouseup",P,!1)},L.onMouseEnter=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,E=C(y,h.pointerType)),E&&y.stopPropagation()},L.onMouseLeave=y=>{if(!y.currentTarget.contains(y.target))return;let E=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,E=S(y,h.pointerType,!1),T(y)),E&&y.stopPropagation()},L.onMouseUp=y=>{y.currentTarget.contains(y.target)&&!h.ignoreEmulatedMouseEvents&&y.button===0&&D(y,h.pointerType||"mouse")};let P=y=>{if(y.button===0){if(h.isPressed=!1,m(),h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&Ro(y,h.target)&&h.pointerType!=null?S(at(h.target,y),h.pointerType):h.target&&h.isOverTarget&&h.pointerType!=null&&S(at(h.target,y),h.pointerType,!1),h.isOverTarget=!1}};L.onTouchStart=y=>{if(!y.currentTarget.contains(y.target))return;let E=V5(y.nativeEvent);if(!E)return;h.activePointerId=E.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=y.currentTarget,h.pointerType="touch",!l&&!s&&Vt(y.currentTarget),d||Js(h.target),C(wt(h.target,y),h.pointerType)&&y.stopPropagation(),b(Gn(y.currentTarget),"scroll",F,!0)},L.onTouchMove=y=>{if(!y.currentTarget.contains(y.target))return;if(!h.isPressed){y.stopPropagation();return}let E=eu(y.nativeEvent,h.activePointerId),K=!0;E&&Ro(E,y.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,K=C(wt(h.target,y),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,K=S(wt(h.target,y),h.pointerType,!1),T(wt(h.target,y))),K&&y.stopPropagation()},L.onTouchEnd=y=>{if(!y.currentTarget.contains(y.target))return;if(!h.isPressed){y.stopPropagation();return}let E=eu(y.nativeEvent,h.activePointerId),K=!0;E&&Ro(E,y.currentTarget)&&h.pointerType!=null?(D(wt(h.target,y),h.pointerType),K=S(wt(h.target,y),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(K=S(wt(h.target,y),h.pointerType,!1)),K&&y.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!d&&Jr(h.target),m()},L.onTouchCancel=y=>{y.currentTarget.contains(y.target)&&(y.stopPropagation(),h.isPressed&&x(wt(h.target,y)))};let F=y=>{h.isPressed&&y.target.contains(h.target)&&x({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=y=>{y.currentTarget.contains(y.target)&&x(y)}}return L},[b,l,s,m,d,x,T,S,C,D]);return c.useEffect(()=>()=>{var h;d||Jr((h=p.current.target)!==null&&h!==void 0?h:void 0)},[d]),{isPressed:a||g,pressProps:Lt(v,I)}}function Ka(t){return t.tagName==="A"&&t.hasAttribute("href")}function No(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Gn(i).HTMLInputElement&&!bf(i,n)||i instanceof Gn(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Ka(i))&&n!=="Enter")}function V5(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function eu(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function wt(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function at(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function U5(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function W5(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ro(t,e){let n=e.getBoundingClientRect(),r=U5(t);return W5(n,r)}function Ao(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function mf(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Ka(t)}function tu(t,e){return t instanceof HTMLInputElement?!bf(t,e):mf(t)}const G5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bf(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":G5.has(t.type)}class q5{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function Y5(t){let e=c.useRef({isFocused:!1,observer:null});pt(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=qe(r=>{t==null||t(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{e.current.isFocused=!1,i.disabled&&n(new q5("blur",l)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let tr=null,X5=new Set,Er=new Map,tn=!1,zl=!1;function Fa(t,e){for(let n of X5)n(t,e)}function Z5(t){return!(t.metaKey||!Mt()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ni(t){tn=!0,Z5(t)&&(tr="keyboard",Fa("keyboard",t))}function Fe(t){tr="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(tn=!0,Fa("pointer",t))}function yf(t){jl(t)&&(tn=!0,tr="virtual")}function $f(t){t.target===window||t.target===document||(!tn&&!zl&&(tr="virtual",Fa("virtual",t)),tn=!1,zl=!1)}function Sf(){tn=!1,zl=!0}function nu(t){if(typeof window>"u"||Er.get(Gn(t)))return;const e=Gn(t),n=nt(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){tn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ni,!0),n.addEventListener("keyup",Ni,!0),n.addEventListener("click",yf,!0),e.addEventListener("focus",$f,!0),e.addEventListener("blur",Sf,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Fe,!0),n.addEventListener("pointermove",Fe,!0),n.addEventListener("pointerup",Fe,!0)):(n.addEventListener("mousedown",Fe,!0),n.addEventListener("mousemove",Fe,!0),n.addEventListener("mouseup",Fe,!0)),e.addEventListener("beforeunload",()=>{wf(t)},{once:!0}),Er.set(e,{focus:r})}const wf=(t,e)=>{const n=Gn(t),r=nt(t);e&&r.removeEventListener("DOMContentLoaded",e),Er.has(n)&&(n.HTMLElement.prototype.focus=Er.get(n).focus,r.removeEventListener("keydown",Ni,!0),r.removeEventListener("keyup",Ni,!0),r.removeEventListener("click",yf,!0),n.removeEventListener("focus",$f,!0),n.removeEventListener("blur",Sf,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Fe,!0),r.removeEventListener("pointermove",Fe,!0),r.removeEventListener("pointerup",Fe,!0)):(r.removeEventListener("mousedown",Fe,!0),r.removeEventListener("mousemove",Fe,!0),r.removeEventListener("mouseup",Fe,!0)),Er.delete(n))};function J5(t){const e=nt(t);let n;return e.readyState!=="loading"?nu(t):(n=()=>{nu(t)},e.addEventListener("DOMContentLoaded",n)),()=>wf(t,n)}typeof document<"u"&&J5();function ru(){return tr!=="pointer"}function iu(){return tr}function Q5(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),l=c.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Y5(l),s=c.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:l}}}let Ri=!1,Ko=0;function Bl(){Ri=!0,setTimeout(()=>{Ri=!1},50)}function ou(t){t.pointerType==="touch"&&Bl()}function em(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",ou):document.addEventListener("touchend",Bl),Ko++,()=>{Ko--,!(Ko>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",ou):document.removeEventListener("touchend",Bl))}}function tm(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(em,[]);let{hoverProps:s,triggerHoverEnd:u}=c.useMemo(()=>{let d=(g,$)=>{if(a.pointerType=$,i||$==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let p=g.currentTarget;a.target=p,e&&e({type:"hoverstart",target:p,pointerType:$}),n&&n(!0),l(!0)},f=(g,$)=>{if(a.pointerType="",a.target=null,$==="touch"||!a.isHovered)return;a.isHovered=!1;let p=g.currentTarget;r&&r({type:"hoverend",target:p,pointerType:$}),n&&n(!1),l(!1)},v={};return typeof PointerEvent<"u"?(v.onPointerEnter=g=>{Ri&&g.pointerType==="mouse"||d(g,g.pointerType)},v.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,g.pointerType)}):(v.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},v.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Ri&&d(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},v.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,"mouse")}),{hoverProps:v,triggerHoverEnd:f}},[e,n,r,i,a]);return c.useEffect(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:s,isHovered:o}}const nm=500;function rm(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=nm,accessibilityDescription:l}=t;const a=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=ff(),{pressProps:d}=vf({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(n&&n({...v,type:"longpressstart"}),a.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...v,type:"longpress"}),a.current=void 0},o),v.pointerType==="touch")){let g=$=>{$.preventDefault()};s(v.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(v.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(v){a.current&&clearTimeout(a.current),r&&(v.pointerType==="mouse"||v.pointerType==="touch")&&r({...v,type:"longpressend"})}}),f=F5(i&&!e?l:void 0);return{longPressProps:Lt(d,f)}}function im(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Qt(e);let l=Qt(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=N5({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function Vl(t){return T5()?t.altKey:t.ctrlKey}const om=1e3;function lm(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let a=am(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},om)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function am(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}const sm=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),um=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function cm(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return sm.has(n.script)}let e=t.split("-")[0];return um.has(e)}const dm=Symbol.for("react-aria.i18n.locale");function Cf(){let t=typeof window<"u"&&window[dm]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:cm(t)?"rtl":"ltr"}}let Ul=Cf(),vr=new Set;function lu(){Ul=Cf();for(let t of vr)t(Ul)}function fm(){let t=un(),[e,n]=c.useState(Ul);return c.useEffect(()=>(vr.size===0&&window.addEventListener("languagechange",lu),vr.add(n),()=>{vr.delete(n),vr.size===0&&window.removeEventListener("languagechange",lu)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const hm=c.createContext(null);function Ef(){let t=fm();return c.useContext(hm)||t}let Fo=new Map;function pm(t){let{locale:e}=Ef(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Fo.has(n))return Fo.get(n);let r=new Intl.Collator(e,t);return Fo.set(n,r),r}function gm(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,selectOnFocus:s=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:v,scrollRef:g=r,linkBehavior:$="action"}=t,{direction:p}=Ef(),b=Aa(),m=y=>{var E;if(y.altKey&&y.key==="Tab"&&y.preventDefault(),!(!((E=r.current)===null||E===void 0)&&E.contains(y.target)))return;const K=(R,Z)=>{if(R!=null){if(e.isLink(R)&&$==="selection"&&s&&!Vl(y)){var J;Nt.flushSync(()=>{e.setFocusedKey(R,Z)});let de=(J=g.current)===null||J===void 0?void 0:J.querySelector(`[data-key="${CSS.escape(R.toString())}"]`),ce=e.getItemProps(R);de&&b.open(de,y,ce.href,ce.routerOptions);return}if(e.setFocusedKey(R,Z),e.isLink(R)&&$==="override")return;y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&!Vl(y)&&e.replaceSelection(R)}};switch(y.key){case"ArrowDown":if(n.getKeyBelow){var B,H,O;let R=e.focusedKey!=null?(B=n.getKeyBelow)===null||B===void 0?void 0:B.call(n,e.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);R==null&&o&&(R=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R))}break;case"ArrowUp":if(n.getKeyAbove){var q,V,U;let R=e.focusedKey!=null?(q=n.getKeyAbove)===null||q===void 0?void 0:q.call(n,e.focusedKey):(V=n.getLastKey)===null||V===void 0?void 0:V.call(n);R==null&&o&&(R=(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R))}break;case"ArrowLeft":if(n.getKeyLeftOf){var N,M,z;let R=e.focusedKey!=null?(N=n.getKeyLeftOf)===null||N===void 0?void 0:N.call(n,e.focusedKey):null;R==null&&o&&(R=p==="rtl"?(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n,e.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R,p==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var j,W,G;let R=e.focusedKey!=null?(j=n.getKeyRightOf)===null||j===void 0?void 0:j.call(n,e.focusedKey):null;R==null&&o&&(R=p==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey):(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R,p==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&y.shiftKey)return;y.preventDefault();let R=n.getFirstKey(e.focusedKey,kn(y));e.setFocusedKey(R),R!=null&&(kn(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&y.shiftKey)return;y.preventDefault();let R=n.getLastKey(e.focusedKey,kn(y));e.setFocusedKey(R),R!=null&&(kn(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let R=n.getKeyPageBelow(e.focusedKey);R!=null&&(y.preventDefault(),K(R))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let R=n.getKeyPageAbove(e.focusedKey);R!=null&&(y.preventDefault(),K(R))}break;case"a":kn(y)&&e.selectionMode==="multiple"&&a!==!0&&(y.preventDefault(),e.selectAll());break;case"Escape":!l&&e.selectedKeys.size!==0&&(y.stopPropagation(),y.preventDefault(),e.clearSelection());break;case"Tab":if(!f){if(y.shiftKey)r.current.focus();else{let R=Ye(r.current,{tabbable:!0}),Z,J;do J=R.lastChild(),J&&(Z=J);while(J);Z&&!Z.contains(document.activeElement)&&Vt(Z)}break}}},C=c.useRef({top:0,left:0});Zr(g,"scroll",v?void 0:()=>{var y,E,K,B;C.current={top:(K=(y=g.current)===null||y===void 0?void 0:y.scrollTop)!==null&&K!==void 0?K:0,left:(B=(E=g.current)===null||E===void 0?void 0:E.scrollLeft)!==null&&B!==void 0?B:0}});let S=y=>{if(e.isFocused){y.currentTarget.contains(y.target)||e.setFocused(!1);return}if(y.currentTarget.contains(y.target)){if(e.setFocused(!0),e.focusedKey==null){var E,K;let O=V=>{V!=null&&(e.setFocusedKey(V),s&&e.replaceSelection(V))},q=y.relatedTarget;var B,H;q&&y.currentTarget.compareDocumentPosition(q)&Node.DOCUMENT_POSITION_FOLLOWING?O((B=e.lastSelectedKey)!==null&&B!==void 0?B:(E=n.getLastKey)===null||E===void 0?void 0:E.call(n)):O((H=e.firstSelectedKey)!==null&&H!==void 0?H:(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n))}else!v&&g.current&&(g.current.scrollTop=C.current.top,g.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&g.current){let O=g.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);O&&(O.contains(document.activeElement)||Vt(O),iu()==="keyboard"&&Zs(O,{containingElement:r.current}))}}},D=y=>{y.currentTarget.contains(y.relatedTarget)||e.setFocused(!1)},x=c.useRef(!1);Zr(r,z5,d?y=>{let{detail:E}=y;y.stopPropagation(),e.setFocused(!0),(E==null?void 0:E.focusStrategy)==="first"&&(x.current=!0)}:void 0);let T=qe(()=>{var y,E;let K=(E=(y=n.getFirstKey)===null||y===void 0?void 0:y.call(n))!==null&&E!==void 0?E:null;if(K==null){var B;(B=r.current)===null||B===void 0||B.dispatchEvent(new CustomEvent(pf,{cancelable:!0,bubbles:!0})),e.collection.size>0&&(x.current=!1)}else e.setFocusedKey(K),x.current=!1});Ys(()=>{x.current&&T()},[e.collection,T]);let I=qe(()=>{e.collection.size>0&&(x.current=!1)});Ys(()=>{I()},[e.focusedKey,I]),Zr(r,H5,d?y=>{y.stopPropagation(),e.setFocused(!1),e.setFocusedKey(null)}:void 0);const h=c.useRef(i);c.useEffect(()=>{if(h.current){var y,E;let H=null;var K;i==="first"&&(H=(K=(y=n.getFirstKey)===null||y===void 0?void 0:y.call(n))!==null&&K!==void 0?K:null);var B;i==="last"&&(H=(B=(E=n.getLastKey)===null||E===void 0?void 0:E.call(n))!==null&&B!==void 0?B:null);let O=e.selectedKeys;if(O.size){for(let q of O)if(e.canSelectItem(q)){H=q;break}}e.setFocused(!0),e.setFocusedKey(H),H==null&&!d&&r.current&&kt(r.current)}},[]);let L=c.useRef(e.focusedKey);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==L.current||h.current)&&g.current&&r.current){let y=iu(),E=r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!E)return;(y==="keyboard"||h.current)&&(hf(g.current,E),y!=="virtual"&&Zs(E,{containingElement:r.current}))}!d&&e.isFocused&&e.focusedKey==null&&L.current!=null&&r.current&&kt(r.current),L.current=e.focusedKey,h.current=!1}),Zr(r,"react-aria-focus-scope-restore",y=>{y.preventDefault(),e.setFocused(!0)});let A={onKeyDown:m,onFocus:S,onBlur:D,onMouseDown(y){g.current===y.target&&y.preventDefault()}},{typeSelectProps:P}=lm({keyboardDelegate:n,selectionManager:e});u||(A=Lt(P,A));let F;return d?F=-1:F=e.focusedKey==null?0:-1,{collectionProps:{...A,tabIndex:F}}}function vm(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,v=Aa();e=Qt(e);let g=O=>{if(O.pointerType==="keyboard"&&Vl(O))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let q=n.getItemProps(r);v.open(i.current,O,q.href,q.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):O&&O.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||O&&(kn(O)||O.pointerType==="touch"||O.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!l)a?a():document.activeElement!==i.current&&i.current&&kt(i.current);else{var q;let V=new CustomEvent(pf,{cancelable:!0,bubbles:!0});(q=i.current)===null||q===void 0||q.dispatchEvent(V)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let $={};!l&&!s?$={tabIndex:r===n.focusedKey?0:-1,onFocus(O){O.target===i.current&&n.setFocusedKey(r)}}:s&&($.onMouseDown=O=>{O.preventDefault()});let p=n.isLink(r)&&f==="override",b=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!p,C=(u||b)&&!s,S=C&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),D=C&&m&&n.selectionBehavior==="replace",x=S||D,T=c.useRef(null),I=x&&m,h=c.useRef(!1),L=c.useRef(!1),A=O=>{if(u&&u(),b&&i.current){let q=n.getItemProps(r);v.open(i.current,O,q.href,q.routerOptions)}},P={};o?(P.onPressStart=O=>{T.current=O.pointerType,h.current=I,O.pointerType==="keyboard"&&(!x||su())&&g(O)},d?(P.onPressUp=S?void 0:O=>{O.pointerType==="mouse"&&m&&g(O)},P.onPress=S?A:O=>{O.pointerType!=="keyboard"&&O.pointerType!=="mouse"&&m&&g(O)}):P.onPress=O=>{if(S||D&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!au())return;A(O)}else O.pointerType!=="keyboard"&&m&&g(O)}):(P.onPressStart=O=>{T.current=O.pointerType,h.current=I,L.current=S,m&&(O.pointerType==="mouse"&&!S||O.pointerType==="keyboard"&&(!C||su()))&&g(O)},P.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&x&&au()||O.pointerType==="mouse"&&L.current)&&(x?A(O):m&&g(O))}),$["data-key"]=r,P.preventFocusOnPress=l;let{pressProps:F,isPressed:y}=vf(P),E=D?O=>{T.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),A(O))}:void 0,{longPressProps:K}=rm({isDisabled:!I,onLongPress(O){O.pointerType==="touch"&&(g(O),n.setSelectionBehavior("toggle"))}}),B=O=>{T.current==="touch"&&h.current&&O.preventDefault()},H=n.isLink(r)?O=>{en.isOpening||O.preventDefault()}:void 0;return{itemProps:Lt($,m||S?F:{},I?K:{},{onDoubleClick:E,onDragStartCapture:B,onClick:H,id:e}),isPressed:y,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:x}}function au(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function su(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}let uu=class{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?n.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},mm=class{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Fl(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Fl(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new uu(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new uu(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function bm(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=pm({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,u=c.useMemo(()=>o||new mm({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=gm({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:d}}function ym(t,e,n){let r=sf(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=bm({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=Q5({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Qt(t.id);La.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:u,fieldProps:d}=im({...t,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:Lt(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Lt(d,l)})}}function $m(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}const cu=new WeakMap;function Sm(t){let e=cu.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r($m(o,t)):n++};return r(t),cu.set(t,n),n}function wm(t,e,n){var r,i;let{key:o}=t,l=La.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var u;let d=(u=t.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(o);var f;let v=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var g;let $=(g=t.shouldFocusOnHover)!==null&&g!==void 0?g:l==null?void 0:l.shouldFocusOnHover;var p;let b=(p=t.shouldUseVirtualFocus)!==null&&p!==void 0?p:l==null?void 0:l.shouldUseVirtualFocus;var m;let C=(m=t.isVirtualized)!==null&&m!==void 0?m:l==null?void 0:l.isVirtualized,S=Gs(),D=Gs(),x={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};Mt()&&cf()||(x["aria-label"]=t["aria-label"],x["aria-labelledby"]=S,x["aria-describedby"]=D);let T=e.collection.getItem(o);if(C){let H=Number(T==null?void 0:T.index);x["aria-posinset"]=Number.isNaN(H)?void 0:H+1,x["aria-setsize"]=Sm(e.collection)}let I=l!=null&&l.onAction?()=>{var H;return l==null||(H=l.onAction)===null||H===void 0?void 0:H.call(l,o)}:void 0,h=g5(e,o),{itemProps:L,isPressed:A,isFocused:P,hasAction:F,allowsSelection:y}=vm({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&$,isVirtualized:C,shouldUseVirtualFocus:b,isDisabled:s,onAction:I||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?Ma(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,I):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:h}),{hoverProps:E}=tm({isDisabled:s||!$,onHoverStart(){ru()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),K=sf(T==null?void 0:T.props);delete K.id;let B=L5(T==null?void 0:T.props);return{optionProps:{...x,...Lt(K,L,E,B),id:h},labelProps:{id:S},descriptionProps:{id:D},isFocused:P,isFocusVisible:P&&ru(),isSelected:d,isDisabled:s,isPressed:A,allowsSelection:y,hasAction:F}}function Cm(t){let{heading:e,"aria-label":n}=t,r=Qt();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const rt={top:"top",bottom:"top",left:"left",right:"left"},Ai={top:"bottom",bottom:"top",left:"right",right:"left"},Em={top:"left",left:"top"},Wl={top:"height",left:"width"},xf={width:"totalWidth",height:"totalHeight"},ti={};let ge=typeof document<"u"?window.visualViewport:null;function du(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let u=((s=ge==null?void 0:ge.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let $=document.documentElement;r=$.clientWidth,i=$.clientHeight;var d;e=(d=ge==null?void 0:ge.width)!==null&&d!==void 0?d:r;var f;n=(f=ge==null?void 0:ge.height)!==null&&f!==void 0?f:i,a.top=$.scrollTop||t.scrollTop,a.left=$.scrollLeft||t.scrollLeft,ge&&(o=ge.offsetTop,l=ge.offsetLeft)}else({width:e,height:n,top:o,left:l}=jn(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(bd()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u){a.top=0,a.left=0;var v;o=(v=ge==null?void 0:ge.pageTop)!==null&&v!==void 0?v:0;var g;l=(g=ge==null?void 0:ge.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function xm(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function fu(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,u=r[Wl[t]],d=r.scroll[rt[t]]+o,f=u+r.scroll[rt[t]]-o,v=e-s+l[t]-r[rt[t]],g=e-s+n+l[t]-r[rt[t]];return v<d?d-v:g>f?Math.max(f-g,d-v):0}function Pm(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function hu(t){if(ti[t])return ti[t];let[e,n]=t.split(" "),r=rt[e]||"right",i=Em[r];rt[n]||(n="center");let o=Wl[r],l=Wl[i];return ti[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},ti[t]}function jo(t,e,n,r,i,o,l,a,s,u){let{placement:d,crossPlacement:f,axis:v,crossAxis:g,size:$,crossSize:p}=r,b={};var m;b[g]=(m=t[g])!==null&&m!==void 0?m:0;var C,S,D,x;f==="center"?b[g]+=(((C=t[p])!==null&&C!==void 0?C:0)-((S=n[p])!==null&&S!==void 0?S:0))/2:f!==g&&(b[g]+=((D=t[p])!==null&&D!==void 0?D:0)-((x=n[p])!==null&&x!==void 0?x:0)),b[g]+=o;const T=t[g]-n[p]+s+u,I=t[g]+t[p]-s-u;if(b[g]=xl(b[g],T,I),d===v){const h=a?l[$]:e[xf[$]];b[Ai[v]]=Math.floor(h-t[v]+i)}else b[v]=Math.floor(t[v]+t[$]+i);return b}function Tm(t,e,n,r,i,o,l,a){const s=r?n.height:e[xf.height];var u;let d=t.top!=null?n.top+t.top:n.top+(s-((u=t.bottom)!==null&&u!==void 0?u:0)-l);var f,v,g,$,p,b;let m=a!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((v=i.top)!==null&&v!==void 0?v:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,d+l-(e.top+(($=e.scroll.top)!==null&&$!==void 0?$:0))-(((p=i.top)!==null&&p!==void 0?p:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+o));return Math.min(e.height-o*2,m)}function pu(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var u,d;if(l===a)return Math.max(0,n[a]-t[a]-((u=t.scroll[a])!==null&&u!==void 0?u:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[Ai[a]]-i);var f;return Math.max(0,t[s]+t[a]+t.scroll[a]-e[a]-n[a]-n[s]-((f=r[a])!==null&&f!==void 0?f:0)-r[Ai[a]]-i)}function Dm(t,e,n,r,i,o,l,a,s,u,d,f,v,g,$,p){let b=hu(t),{size:m,crossAxis:C,crossSize:S,placement:D,crossPlacement:x}=b,T=jo(e,a,n,b,d,f,u,v,$,p),I=d,h=pu(a,u,e,i,o+d,b);if(l&&r[m]>h){let z=hu(`${Ai[D]} ${x}`),j=jo(e,a,n,z,d,f,u,v,$,p);pu(a,u,e,i,o+d,z)>h&&(b=z,T=j,I=d)}let L="bottom";b.axis==="top"?b.placement==="top"?L="top":b.placement==="bottom"&&(L="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?L="bottom":b.crossPlacement==="bottom"&&(L="top"));let A=fu(C,T[C],n[S],a,s,o,u);T[C]+=A;let P=Tm(T,a,u,v,i,o,n.height,L);g&&g<P&&(P=g),n.height=Math.min(n.height,P),T=jo(e,a,n,b,I,f,u,v,$,p),A=fu(C,T[C],n[S],a,s,o,u),T[C]+=A;let F={},y=e[C]+.5*e[S]-T[C]-i[rt[C]];const E=$/2+p;var K,B,H,O;const q=rt[C]==="left"?((K=i.left)!==null&&K!==void 0?K:0)+((B=i.right)!==null&&B!==void 0?B:0):((H=i.top)!==null&&H!==void 0?H:0)+((O=i.bottom)!==null&&O!==void 0?O:0),V=n[S]-q-$/2-p,U=e[C]+$/2-(T[C]+i[rt[C]]),N=e[C]+e[S]-$/2-(T[C]+i[rt[C]]),M=xl(y,U,N);return F[C]=xl(M,E,V),{position:T,maxHeight:P,arrowOffsetLeft:F.left,arrowOffsetTop:F.top,placement:b.placement}}function Im(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:v=0}=t,g=r instanceof HTMLElement?Om(r):document.documentElement,$=g===document.documentElement;const p=window.getComputedStyle(g).position;let b=!!p&&p!=="static",m=$?jn(n):gu(n,g);if(!$){let{marginTop:F,marginLeft:y}=window.getComputedStyle(n);m.top+=parseInt(F,10)||0,m.left+=parseInt(y,10)||0}let C=jn(r),S=Pm(r);var D,x;C.width+=((D=S.left)!==null&&D!==void 0?D:0)+((x=S.right)!==null&&x!==void 0?x:0);var T,I;C.height+=((T=S.top)!==null&&T!==void 0?T:0)+((I=S.bottom)!==null&&I!==void 0?I:0);let h=xm(i),L=du(a),A=du(g),P=a.tagName==="BODY"?jn(g):gu(g,a);return g.tagName==="HTML"&&a.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),Dm(e,m,C,h,S,o,l,L,A,P,s,u,b,d,f,v)}function jn(t){let{top:e,left:n,width:r,height:i}=t.getBoundingClientRect(),{scrollTop:o,scrollLeft:l,clientTop:a,clientLeft:s}=document.documentElement;return{top:e+o-a,left:n+l-s,width:r,height:i}}function gu(t,e){let n=window.getComputedStyle(t),r;if(n.position==="fixed"){let{top:i,left:o,width:l,height:a}=t.getBoundingClientRect();r={top:i,left:o,width:l,height:a}}else{r=jn(t);let i=jn(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Om(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!vu(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!vu(e);)e=e.parentElement;return e||document.documentElement}function vu(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Pf=new WeakMap;function _m(t){let{triggerRef:e,isOpen:n,onClose:r}=t;c.useEffect(()=>{if(!n||r===null)return;let i=o=>{let l=o.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let a=r||Pf.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let fe=typeof document<"u"?window.visualViewport:null;function km(t){let{direction:e}=er(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:v=!0,isOpen:g=!0,onClose:$,maxHeight:p,arrowBoundaryOffset:b=0}=t,[m,C]=c.useState(null),S=[v,l,i.current,r.current,o.current,a,s,u,d,f,g,e,p,b,n],D=c.useRef(fe==null?void 0:fe.scale);c.useEffect(()=>{g&&(D.current=fe==null?void 0:fe.scale)},[g]);let x=c.useCallback(()=>{if(v===!1||!g||!i.current||!r.current||!u||(fe==null?void 0:fe.scale)!==D.current)return;let A=null;if(o.current&&o.current.contains(document.activeElement)){var P;let O=(P=document.activeElement)===null||P===void 0?void 0:P.getBoundingClientRect(),q=o.current.getBoundingClientRect();var F;if(A={type:"top",offset:((F=O==null?void 0:O.top)!==null&&F!==void 0?F:0)-q.top},A.offset>q.height/2){A.type="bottom";var y;A.offset=((y=O==null?void 0:O.bottom)!==null&&y!==void 0?y:0)-q.bottom}}let E=i.current;if(!p&&i.current){var K;E.style.top="0px",E.style.bottom="";var B;E.style.maxHeight=((B=(K=window.visualViewport)===null||K===void 0?void 0:K.height)!==null&&B!==void 0?B:window.innerHeight)+"px"}let H=Im({placement:Mm(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:u,offset:d,crossOffset:f,maxHeight:p,arrowSize:n,arrowBoundaryOffset:b});if(H.position){if(E.style.top="",E.style.bottom="",E.style.left="",E.style.right="",Object.keys(H.position).forEach(O=>E.style[O]=H.position[O]+"px"),E.style.maxHeight=H.maxHeight!=null?H.maxHeight+"px":"",A&&document.activeElement&&o.current){let O=document.activeElement.getBoundingClientRect(),q=o.current.getBoundingClientRect(),V=O[A.type]-q[A.type];o.current.scrollTop+=V-A.offset}C(H)}},S);pe(x,S),Lm(x),Cl({ref:i,onResize:x}),Cl({ref:r,onResize:x});let T=c.useRef(!1);pe(()=>{let A,P=()=>{T.current=!0,clearTimeout(A),A=setTimeout(()=>{T.current=!1},500),x()},F=()=>{T.current&&P()};return fe==null||fe.addEventListener("resize",P),fe==null||fe.addEventListener("scroll",F),()=>{fe==null||fe.removeEventListener("resize",P),fe==null||fe.removeEventListener("scroll",F)}},[x]);let I=c.useCallback(()=>{T.current||$==null||$()},[$,T]);_m({triggerRef:r,isOpen:g,onClose:$&&I});var h,L;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(h=m==null?void 0:m.maxHeight)!==null&&h!==void 0?h:"100vh"}},placement:(L=m==null?void 0:m.placement)!==null&&L!==void 0?L:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:x}}function Lm(t){pe(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Mm(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const st=[];function Nm(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;c.useEffect(()=>(i&&st.push(e),()=>{let $=st.indexOf(e);$>=0&&st.splice($,1)}),[i,e]);let s=()=>{st[st.length-1]===e&&n&&n()},u=$=>{(!a||a($.target))&&st[st.length-1]===e&&($.stopPropagation(),$.preventDefault())},d=$=>{(!a||a($.target))&&(st[st.length-1]===e&&($.stopPropagation(),$.preventDefault()),s())},f=$=>{$.key==="Escape"&&!l&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),s())};zv({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:v}=ef({isDisabled:!r,onBlurWithin:$=>{!$.relatedTarget||Sv($.relatedTarget)||(!a||a($.relatedTarget))&&(n==null||n())}}),g=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:f,...v},underlayProps:{onPointerDown:g}}}function Rm(t,e,n){let{type:r}=t,{isOpen:i}=e;c.useEffect(()=>{n&&n.current&&Pf.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=Be();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Ho=typeof document<"u"&&window.visualViewport,Am=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ni=0,zo;function Km(t={}){let{isDisabled:e}=t;pe(()=>{if(!e)return ni++,ni===1&&(Xi()?zo=jm():zo=Fm()),()=>{ni--,ni===0&&zo()}},[e])}function Fm(){return Un(An(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),An(document.documentElement,"overflow","hidden"))}function jm(){let t,e,n=u=>{t=wd(u.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=An(t,"overscrollBehavior","contain"))},r=u=>{if(!t||t===document.documentElement||t===document.body){u.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&u.preventDefault()},i=()=>{e&&e()},o=u=>{let d=u.target;Hm(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Ho&&(Ho.height<window.innerHeight?requestAnimationFrame(()=>{mu(d)}):Ho.addEventListener("resize",()=>mu(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=Un(ar(window,"scroll",u),An(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),An(document.documentElement,"overflow","hidden"),An(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Un(ar(document,"touchstart",n,{passive:!1,capture:!0}),ar(document,"touchmove",r,{passive:!1,capture:!0}),ar(document,"touchend",i,{passive:!1,capture:!0}),ar(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function An(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function ar(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function mu(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=wd(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function Hm(t){return t instanceof HTMLInputElement&&!Am.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}var Tf={};Tf={dismiss:"تجاهل"};var Df={};Df={dismiss:"Отхвърляне"};var If={};If={dismiss:"Odstranit"};var Of={};Of={dismiss:"Luk"};var _f={};_f={dismiss:"Schließen"};var kf={};kf={dismiss:"Απόρριψη"};var Lf={};Lf={dismiss:"Dismiss"};var Mf={};Mf={dismiss:"Descartar"};var Nf={};Nf={dismiss:"Lõpeta"};var Rf={};Rf={dismiss:"Hylkää"};var Af={};Af={dismiss:"Rejeter"};var Kf={};Kf={dismiss:"התעלם"};var Ff={};Ff={dismiss:"Odbaci"};var jf={};jf={dismiss:"Elutasítás"};var Hf={};Hf={dismiss:"Ignora"};var zf={};zf={dismiss:"閉じる"};var Bf={};Bf={dismiss:"무시"};var Vf={};Vf={dismiss:"Atmesti"};var Uf={};Uf={dismiss:"Nerādīt"};var Wf={};Wf={dismiss:"Lukk"};var Gf={};Gf={dismiss:"Negeren"};var qf={};qf={dismiss:"Zignoruj"};var Yf={};Yf={dismiss:"Descartar"};var Xf={};Xf={dismiss:"Dispensar"};var Zf={};Zf={dismiss:"Revocare"};var Jf={};Jf={dismiss:"Пропустить"};var Qf={};Qf={dismiss:"Zrušiť"};var e0={};e0={dismiss:"Opusti"};var t0={};t0={dismiss:"Odbaci"};var n0={};n0={dismiss:"Avvisa"};var r0={};r0={dismiss:"Kapat"};var i0={};i0={dismiss:"Скасувати"};var o0={};o0={dismiss:"取消"};var l0={};l0={dismiss:"關閉"};var a0={};a0={"ar-AE":Tf,"bg-BG":Df,"cs-CZ":If,"da-DK":Of,"de-DE":_f,"el-GR":kf,"en-US":Lf,"es-ES":Mf,"et-EE":Nf,"fi-FI":Rf,"fr-FR":Af,"he-IL":Kf,"hr-HR":Ff,"hu-HU":jf,"it-IT":Hf,"ja-JP":zf,"ko-KR":Bf,"lt-LT":Vf,"lv-LV":Uf,"nb-NO":Wf,"nl-NL":Gf,"pl-PL":qf,"pt-BR":Yf,"pt-PT":Xf,"ro-RO":Zf,"ru-RU":Jf,"sk-SK":Qf,"sl-SI":e0,"sr-SP":t0,"sv-SE":n0,"tr-TR":r0,"uk-UA":i0,"zh-CN":o0,"zh-TW":l0};function zm(t){return t&&t.__esModule?t.default:t}function bu(t){let{onDismiss:e,...n}=t,r=of(zm(a0),"@react-aria/overlays"),i=Ji(n,r.format("dismiss")),o=()=>{e&&e()};return c.createElement(h5,null,c.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let sr=new WeakMap,Me=[];function Bm(t,e=document.body){let n=new Set(t),r=new Set,i=s=>{for(let v of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(v);let u=v=>{if(n.has(v)||v.parentElement&&r.has(v.parentElement)&&v.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(v.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(s);if(f===NodeFilter.FILTER_ACCEPT&&o(s),f!==NodeFilter.FILTER_REJECT){let v=d.nextNode();for(;v!=null;)o(v),v=d.nextNode()}},o=s=>{var u;let d=(u=sr.get(s))!==null&&u!==void 0?u:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),sr.set(s,d+1))};Me.length&&Me[Me.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let u of s)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});l.observe(e,{childList:!0,subtree:!0});let a={observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return Me.push(a),()=>{l.disconnect();for(let s of r){let u=sr.get(s);u!=null&&(u===1?(s.removeAttribute("aria-hidden"),sr.delete(s)):sr.set(s,u-1))}a===Me[Me.length-1]?(Me.pop(),Me.length&&Me[Me.length-1].observe()):Me.splice(Me.indexOf(a),1)}}function Vm(t,e){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l,...a}=t,{overlayProps:s,underlayProps:u}=Nm({isOpen:e.isOpen&&!a["data-react-aria-top-layer"],onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l},r),{overlayProps:d,arrowProps:f,placement:v}=km({...a,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:i?e.close:null});return Km({isDisabled:i||!e.isOpen}),pe(()=>{if(e.isOpen&&!i&&r.current)return Bm([r.current])},[i,e.isOpen,r]),{popoverProps:ae(s,d),arrowProps:f,underlayProps:u,placement:v}}const Um=c.createContext({});function Wm(){var t;return(t=c.useContext(Um))!==null&&t!==void 0?t:{}}const Gm=c.createContext(null);function qm(t){let e=un(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=c.useState(!1),l=c.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=Wm();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=c.createElement(Ta,{restoreFocus:!0,contain:i&&!r},s)),s=c.createElement(Gm.Provider,{value:l},c.createElement(Mv,null,s)),Nt.createPortal(s,n)}function Gl(t){return cg()?t.altKey:t.ctrlKey}const Ym=1e3;function s0(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let a=Xm(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=a,e.getKeyForSearch!=null){let s=e.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Ym)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Xm(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function u0(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,selectOnFocus:s=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:v,scrollRef:g=r,linkBehavior:$="action"}=t,{direction:p}=er(),b=Zi(),m=y=>{var E;if(y.altKey&&y.key==="Tab"&&y.preventDefault(),!(!((E=r.current)===null||E===void 0)&&E.contains(y.target)))return;const K=(R,Z)=>{if(R!=null){if(e.isLink(R)&&$==="selection"&&s&&!Gl(y)){var J;Nt.flushSync(()=>{e.setFocusedKey(R,Z)});let de=(J=g.current)===null||J===void 0?void 0:J.querySelector(`[data-key="${CSS.escape(R.toString())}"]`),ce=e.getItemProps(R);de&&b.open(de,y,ce.href,ce.routerOptions);return}if(e.setFocusedKey(R,Z),e.isLink(R)&&$==="override")return;y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&!Gl(y)&&e.replaceSelection(R)}};switch(y.key){case"ArrowDown":if(n.getKeyBelow){var B,H,O;let R=e.focusedKey!=null?(B=n.getKeyBelow)===null||B===void 0?void 0:B.call(n,e.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);R==null&&o&&(R=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R))}break;case"ArrowUp":if(n.getKeyAbove){var q,V,U;let R=e.focusedKey!=null?(q=n.getKeyAbove)===null||q===void 0?void 0:q.call(n,e.focusedKey):(V=n.getLastKey)===null||V===void 0?void 0:V.call(n);R==null&&o&&(R=(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R))}break;case"ArrowLeft":if(n.getKeyLeftOf){var N,M,z;let R=e.focusedKey!=null?(N=n.getKeyLeftOf)===null||N===void 0?void 0:N.call(n,e.focusedKey):null;R==null&&o&&(R=p==="rtl"?(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n,e.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R,p==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var j,W,G;let R=e.focusedKey!=null?(j=n.getKeyRightOf)===null||j===void 0?void 0:j.call(n,e.focusedKey):null;R==null&&o&&(R=p==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey):(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n,e.focusedKey)),R!=null&&(y.preventDefault(),K(R,p==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&y.shiftKey)return;y.preventDefault();let R=n.getFirstKey(e.focusedKey,In(y));e.setFocusedKey(R),R!=null&&(In(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&y.shiftKey)return;y.preventDefault();let R=n.getLastKey(e.focusedKey,In(y));e.setFocusedKey(R),R!=null&&(In(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(R):s&&e.replaceSelection(R))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let R=n.getKeyPageBelow(e.focusedKey);R!=null&&(y.preventDefault(),K(R))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let R=n.getKeyPageAbove(e.focusedKey);R!=null&&(y.preventDefault(),K(R))}break;case"a":In(y)&&e.selectionMode==="multiple"&&a!==!0&&(y.preventDefault(),e.selectAll());break;case"Escape":!l&&e.selectedKeys.size!==0&&(y.stopPropagation(),y.preventDefault(),e.clearSelection());break;case"Tab":if(!f){if(y.shiftKey)r.current.focus();else{let R=Ye(r.current,{tabbable:!0}),Z,J;do J=R.lastChild(),J&&(Z=J);while(J);Z&&!Z.contains(document.activeElement)&&zt(Z)}break}}},C=c.useRef({top:0,left:0});Br(g,"scroll",v?void 0:()=>{var y,E,K,B;C.current={top:(K=(y=g.current)===null||y===void 0?void 0:y.scrollTop)!==null&&K!==void 0?K:0,left:(B=(E=g.current)===null||E===void 0?void 0:E.scrollLeft)!==null&&B!==void 0?B:0}});let S=y=>{if(e.isFocused){y.currentTarget.contains(y.target)||e.setFocused(!1);return}if(y.currentTarget.contains(y.target)){if(e.setFocused(!0),e.focusedKey==null){var E,K;let O=V=>{V!=null&&(e.setFocusedKey(V),s&&e.replaceSelection(V))},q=y.relatedTarget;var B,H;q&&y.currentTarget.compareDocumentPosition(q)&Node.DOCUMENT_POSITION_FOLLOWING?O((B=e.lastSelectedKey)!==null&&B!==void 0?B:(E=n.getLastKey)===null||E===void 0?void 0:E.call(n)):O((H=e.firstSelectedKey)!==null&&H!==void 0?H:(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n))}else!v&&g.current&&(g.current.scrollTop=C.current.top,g.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&g.current){let O=g.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);O&&(O.contains(document.activeElement)||zt(O),Ks()==="keyboard"&&ys(O,{containingElement:r.current}))}}},D=y=>{y.currentTarget.contains(y.relatedTarget)||e.setFocused(!1)},x=c.useRef(!1);Br(r,xg,d?y=>{let{detail:E}=y;y.stopPropagation(),e.setFocused(!0),(E==null?void 0:E.focusStrategy)==="first"&&(x.current=!0)}:void 0);let T=ye(()=>{var y,E;let K=(E=(y=n.getFirstKey)===null||y===void 0?void 0:y.call(n))!==null&&E!==void 0?E:null;if(K==null){var B;(B=r.current)===null||B===void 0||B.dispatchEvent(new CustomEvent(Ed,{cancelable:!0,bubbles:!0})),e.collection.size>0&&(x.current=!1)}else e.setFocusedKey(K),x.current=!1});ms(()=>{x.current&&T()},[e.collection,T]);let I=ye(()=>{e.collection.size>0&&(x.current=!1)});ms(()=>{I()},[e.focusedKey,I]),Br(r,Eg,d?y=>{y.stopPropagation(),e.setFocused(!1),e.setFocusedKey(null)}:void 0);const h=c.useRef(i);c.useEffect(()=>{if(h.current){var y,E;let H=null;var K;i==="first"&&(H=(K=(y=n.getFirstKey)===null||y===void 0?void 0:y.call(n))!==null&&K!==void 0?K:null);var B;i==="last"&&(H=(B=(E=n.getLastKey)===null||E===void 0?void 0:E.call(n))!==null&&B!==void 0?B:null);let O=e.selectedKeys;if(O.size){for(let q of O)if(e.canSelectItem(q)){H=q;break}}e.setFocused(!0),e.setFocusedKey(H),H==null&&!d&&r.current&&kt(r.current)}},[]);let L=c.useRef(e.focusedKey);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==L.current||h.current)&&g.current&&r.current){let y=Ks(),E=r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!E)return;(y==="keyboard"||h.current)&&(Cd(g.current,E),y!=="virtual"&&ys(E,{containingElement:r.current}))}!d&&e.isFocused&&e.focusedKey==null&&L.current!=null&&r.current&&kt(r.current),L.current=e.focusedKey,h.current=!1}),Br(r,"react-aria-focus-scope-restore",y=>{y.preventDefault(),e.setFocused(!0)});let A={onKeyDown:m,onFocus:S,onBlur:D,onMouseDown(y){g.current===y.target&&y.preventDefault()}},{typeSelectProps:P}=s0({keyboardDelegate:n,selectionManager:e});u||(A=ae(P,A));let F;return d?F=-1:F=e.focusedKey==null?0:-1,{collectionProps:{...A,tabIndex:F}}}function c0(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,v=Zi();e=Be(e);let g=O=>{if(O.pointerType==="keyboard"&&Gl(O))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let q=n.getItemProps(r);v.open(i.current,O,q.href,q.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):O&&O.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||O&&(In(O)||O.pointerType==="touch"||O.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!l)a?a():document.activeElement!==i.current&&i.current&&kt(i.current);else{var q;let V=new CustomEvent(Ed,{cancelable:!0,bubbles:!0});(q=i.current)===null||q===void 0||q.dispatchEvent(V)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let $={};!l&&!s?$={tabIndex:r===n.focusedKey?0:-1,onFocus(O){O.target===i.current&&n.setFocusedKey(r)}}:s&&($.onMouseDown=O=>{O.preventDefault()});let p=n.isLink(r)&&f==="override",b=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!p,C=(u||b)&&!s,S=C&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),D=C&&m&&n.selectionBehavior==="replace",x=S||D,T=c.useRef(null),I=x&&m,h=c.useRef(!1),L=c.useRef(!1),A=O=>{if(u&&u(),b&&i.current){let q=n.getItemProps(r);v.open(i.current,O,q.href,q.routerOptions)}},P={};o?(P.onPressStart=O=>{T.current=O.pointerType,h.current=I,O.pointerType==="keyboard"&&(!x||$u())&&g(O)},d?(P.onPressUp=S?void 0:O=>{O.pointerType==="mouse"&&m&&g(O)},P.onPress=S?A:O=>{O.pointerType!=="keyboard"&&O.pointerType!=="mouse"&&m&&g(O)}):P.onPress=O=>{if(S||D&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!yu())return;A(O)}else O.pointerType!=="keyboard"&&m&&g(O)}):(P.onPressStart=O=>{T.current=O.pointerType,h.current=I,L.current=S,m&&(O.pointerType==="mouse"&&!S||O.pointerType==="keyboard"&&(!C||$u()))&&g(O)},P.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&x&&yu()||O.pointerType==="mouse"&&L.current)&&(x?A(O):m&&g(O))}),$["data-key"]=r,P.preventFocusOnPress=l;let{pressProps:F,isPressed:y}=no(P),E=D?O=>{T.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),A(O))}:void 0,{longPressProps:K}=tf({isDisabled:!I,onLongPress(O){O.pointerType==="touch"&&(g(O),n.setSelectionBehavior("toggle"))}}),B=O=>{T.current==="touch"&&h.current&&O.preventDefault()},H=n.isLink(r)?O=>{Xt.isOpening||O.preventDefault()}:void 0;return{itemProps:ae($,m||S?F:{},I?K:{},{onDoubleClick:E,onDragStartCapture:B,onClick:H,id:e}),isPressed:y,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:x}}function yu(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function $u(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Su{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?n.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var n,r;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var n,r,i,o;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class ja{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(e,n,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Pr(n))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(n&&!Pr(n))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Su(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Su(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Zm(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=ka({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,u=c.useMemo(()=>o||new ja({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=u0({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:d}}function d0(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Jm(t){return Qm(t)}function Qm(t,e){for(let n of t)return n}function Bo(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...wu(t,e),e],i=[...wu(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function wu(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const Cu=new WeakMap;function e1(t){let e=Cu.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(d0(o,t)):n++};return r(t),Cu.set(t,n),n}var f0={};f0={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var h0={};h0={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var p0={};p0={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var g0={};g0={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var v0={};v0={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var m0={};m0={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var b0={};b0={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var y0={};y0={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var $0={};$0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var S0={};S0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var w0={};w0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var C0={};C0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var E0={};E0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var x0={};x0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var P0={};P0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var T0={};T0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var D0={};D0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var I0={};I0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var O0={};O0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var _0={};_0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var k0={};k0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var L0={};L0={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var M0={};M0={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var N0={};N0={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var R0={};R0={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var A0={};A0={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var K0={};K0={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var F0={};F0={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var j0={};j0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var H0={};H0={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var z0={};z0={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var B0={};B0={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var V0={};V0={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var U0={};U0={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var W0={};W0={"ar-AE":f0,"bg-BG":h0,"cs-CZ":p0,"da-DK":g0,"de-DE":v0,"el-GR":m0,"en-US":b0,"es-ES":y0,"et-EE":$0,"fi-FI":S0,"fr-FR":w0,"he-IL":C0,"hr-HR":E0,"hu-HU":x0,"it-IT":P0,"ja-JP":T0,"ko-KR":D0,"lt-LT":I0,"lv-LV":O0,"nb-NO":_0,"nl-NL":k0,"pl-PL":L0,"pt-BR":M0,"pt-PT":N0,"ro-RO":R0,"ru-RU":A0,"sk-SK":K0,"sl-SI":F0,"sr-SP":j0,"sv-SE":H0,"tr-TR":z0,"uk-UA":B0,"zh-CN":V0,"zh-TW":U0};function t1(t){return t&&t.__esModule?t.default:t}function n1(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=Be(),{triggerProps:a,overlayProps:s}=Rm({type:r},e,n),u=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},d=of(t1(W0),"@react-aria/menu"),{longPressProps:f}=tf({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),v={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&e.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&e.toggle()}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?v:f,id:l,onKeyDown:u},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const G0=new WeakMap;function r1(t,e,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=Se(t,{labelable:!0}),{listProps:s}=Zm({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return G0.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:ae(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:u=>{var d;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,u))}})}}function i1(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:v,onHoverStart:g,onHoverChange:$,onHoverEnd:p,onKeyDown:b,onKeyUp:m,onFocus:C,onFocusChange:S,onBlur:D,selectionManager:x=e.selectionManager}=t,T=!!a,I=T&&t["aria-expanded"]==="true";var h;let L=(h=t.isDisabled)!==null&&h!==void 0?h:x.isDisabled(i);var A;let P=(A=t.isSelected)!==null&&A!==void 0?A:x.isSelected(i),F=G0.get(e),y=e.collection.getItem(i),E=t.onClose||F.onClose,K=Zi(),B=re=>{var Je;if(!T){if(!(y==null||(Je=y.props)===null||Je===void 0)&&Je.onAction?y.props.onAction():t.onAction&&t.onAction(i),F.onAction){let yt=F.onAction;yt(i)}re.target instanceof HTMLAnchorElement&&y&&K.open(re.target,re,y.props.href,y.props.routerOptions)}},H="menuitem";T||(x.selectionMode==="single"?H="menuitemradio":x.selectionMode==="multiple"&&(H="menuitemcheckbox"));let O=Sr(),q=Sr(),V=Sr(),U={id:r,"aria-disabled":L||void 0,role:H,"aria-label":t["aria-label"],"aria-labelledby":O,"aria-describedby":[q,V].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};x.selectionMode!=="none"&&!T&&(U["aria-checked"]=P),l&&(U["aria-posinset"]=y==null?void 0:y.index,U["aria-setsize"]=e1(e.collection));let N=re=>{re.pointerType==="keyboard"&&B(re),s==null||s(re)},M=()=>{!T&&E&&(o??(x.selectionMode!=="multiple"||x.isLink(i)))&&E()},z=re=>{re.pointerType==="mouse"&&(B(re),M()),u==null||u(re)},j=re=>{re.pointerType!=="keyboard"&&re.pointerType!=="mouse"&&(B(re),M()),d==null||d(re)},{itemProps:W,isFocused:G}=c0({id:r,selectionManager:x,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:F.shouldUseVirtualFocus}),{pressProps:R,isPressed:Z}=no({onPressStart:N,onPress:j,onPressUp:z,onPressChange:f,onPressEnd:v,isDisabled:L}),{hoverProps:J}=Nr({isDisabled:L,onHoverStart(re){!jv()&&!(I&&a==="dialog")&&(x.setFocused(!0),x.setFocusedKey(i)),g==null||g(re)},onHoverChange:$,onHoverEnd:p}),{keyboardProps:de}=Bv({onKeyDown:re=>{if(re.repeat){re.continuePropagation();return}switch(re.key){case" ":!L&&x.selectionMode==="none"&&!T&&o!==!1&&E&&E();break;case"Enter":!L&&o!==!1&&!T&&E&&E();break;default:T||re.continuePropagation(),b==null||b(re);break}},onKeyUp:m}),{focusProps:ce}=Rv({onBlur:D,onFocus:C,onFocusChange:S}),oe=Se(y==null?void 0:y.props);delete oe.id;let me=$d(y==null?void 0:y.props);return{menuItemProps:{...U,...ae(oe,me,T?{onFocus:W.onFocus,"data-key":W["data-key"]}:W,R,J,de,ce),tabIndex:W.tabIndex!=null&&I?-1:W.tabIndex},labelProps:{id:O},descriptionProps:{id:q},keyboardShortcutProps:{id:V},isFocused:G,isSelected:P,isPressed:Z,isDisabled:L}}function o1(t){let{heading:e,"aria-label":n}=t,r=Be();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const q0=new WeakMap;function l1(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=ka({usage:"search",sensitivity:"base"}),u=c.useMemo(()=>r||new ja(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s]),{menuTriggerProps:d,menuProps:f}=n1({isDisabled:i,type:"listbox"},e,n),v=h=>{switch(h.key){case"ArrowLeft":{var L,A;h.preventDefault();let y=e.selectedKey!=null?(L=u.getKeyAbove)===null||L===void 0?void 0:L.call(u,e.selectedKey):(A=u.getFirstKey)===null||A===void 0?void 0:A.call(u);y&&e.setSelectedKey(y);break}case"ArrowRight":{var P,F;h.preventDefault();let y=e.selectedKey!=null?(P=u.getKeyBelow)===null||P===void 0?void 0:P.call(u,e.selectedKey):(F=u.getFirstKey)===null||F===void 0?void 0:F.call(u);y&&e.setSelectedKey(y);break}}},{typeSelectProps:g}=s0({keyboardDelegate:u,selectionManager:e.selectionManager,onTypeSelect(h){e.setSelectedKey(h)}}),{isInvalid:$,validationErrors:p,validationDetails:b}=e.displayValidation,{labelProps:m,fieldProps:C,descriptionProps:S,errorMessageProps:D}=f5({...t,labelElementType:"span",isInvalid:$,errorMessage:t.errorMessage||p});g.onKeyDown=g.onKeyDownCapture,delete g.onKeyDownCapture;let x=Se(t,{labelable:!0}),T=ae(g,d,C),I=Be();return q0.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...m,onClick:()=>{if(!t.isDisabled){var h;(h=n.current)===null||h===void 0||h.focus(),Qd("keyboard")}}},triggerProps:ae(x,{...T,isDisabled:i,onKeyDown:Un(T.onKeyDown,v,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[I,T["aria-labelledby"],T["aria-label"]&&!T["aria-labelledby"]?T.id:null].filter(Boolean).join(" "),onFocus(h){e.isFocused||(t.onFocus&&t.onFocus(h),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(h){e.isOpen||(t.onBlur&&t.onBlur(h),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:I},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:h=>{h.currentTarget.contains(h.relatedTarget)||(t.onBlur&&t.onBlur(h),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[C["aria-labelledby"],T["aria-label"]&&!C["aria-labelledby"]?T.id:null].filter(Boolean).join(" ")},descriptionProps:S,errorMessageProps:D,isInvalid:$,validationErrors:p,validationDetails:b}}function a1(t,e,n){let r=q0.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:u}=af();Cg(t.selectRef,e.selectedKey,e.setSelectedKey),a5({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:l,required:a==="native"&&s,name:o,value:(d=e.selectedKey)!==null&&d!==void 0?d:"",onChange:f=>e.setSelectedKey(f.target.value)}}}function s1(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=c.useRef(null),{containerProps:a,selectProps:s}=a1({...t,selectRef:l},e,n);var u;return e.collection.size<=300?c.createElement("div",{...a,"data-testid":"hidden-select-container"},c.createElement("label",null,r,c.createElement("select",{...s,ref:l},c.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return c.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?c.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(u=e.selectedKey)!==null&&u!==void 0?u:""}):null}function u1(t){let e=Se(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const Y0=new WeakMap;function Ki(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${Y0.get(t)}-${n}-${e}`):""}function c1(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,u=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=c0({selectionManager:l,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),v=Ki(e,r,"tab"),g=Ki(e,r,"tabpanel"),{tabIndex:$}=d,p=e.collection.getItem(r),b=Se(p==null?void 0:p.props,{labelable:!0});delete b.id;let m=$d(p==null?void 0:p.props);return{tabProps:ae(b,m,d,{id:v,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?g:void 0,tabIndex:u?void 0:$,role:"tab"}),isSelected:s,isDisabled:u,isPressed:f}}function d1(t,e,n){let r=Dv(n)?void 0:0;var i;const o=Ki(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=Ji({...t,id:o,"aria-labelledby":Ki(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:ae(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class f1{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do e=this.collection.getKeyAfter(e),e==null&&(e=this.collection.getFirstKey());while(this.isDisabled(e));return e}getPreviousKey(e){do e=this.collection.getKeyBefore(e),e==null&&(e=this.collection.getLastKey());while(this.isDisabled(e));return e}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function h1(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=er(),u=c.useMemo(()=>new f1(o,s,r,a),[o,a,r,s]),{collectionProps:d}=u0({ref:n,selectionManager:l,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Be();Y0.set(e,f);let v=Ji({...t,id:f});return{tabListProps:{...ae(d,v),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const p1=c.createContext(null),g1=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),X0=c.createContext({}),v1=wa(function(e,n){[e,n]=mt(e,n,X0),e=m1(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=o5(e,n),{focusProps:a,isFocused:s,isFocusVisible:u}=cn(e),{hoverProps:d,isHovered:f}=Nr({...e,isDisabled:e.isDisabled||i}),v={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:i??!1},g=_e({...e,values:v,defaultClassName:"react-aria-Button"}),$=Be(o.id),p=Be(),b=o["aria-labelledby"];i&&(b?b=`${b} ${p}`:o["aria-label"]&&(b=`${$} ${p}`));let m=c.useRef(i);return c.useEffect(()=>{let C={"aria-labelledby":b||$};(!m.current&&s&&i||m.current&&s&&!i)&&Us(C,"assertive"),m.current=i},[i,s,b,$]),c.createElement("button",{...Se(e,{propNames:g1}),...ae(o,a,d),...g,type:o.type==="submit"&&i?"button":o.type,id:$,ref:n,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":v.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},c.createElement(p1.Provider,{value:{id:p}},g.children))});function m1(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const Ha=c.createContext({}),b1=c.createContext(null),Z0={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},J0={...Z0,customError:!0,valid:!1},ur={isInvalid:!1,validationDetails:Z0,validationErrors:[]},y1=c.createContext({}),Eu="__formValidationState"+Date.now();function $1(t){if(t[Eu]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Eu];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return S1(t)}function S1(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:J0}:null,u=c.useMemo(()=>{if(!l||i==null)return null;let A=w1(l,i);return xu(A)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=c.useContext(y1),f=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(A=>ql(d[A])):ql(d[r]):[],[d,r]),[v,g]=c.useState(d),[$,p]=c.useState(!1);d!==v&&(g(d),p(!1));let b=c.useMemo(()=>xu($?[]:f),[$,f]),m=c.useRef(ur),[C,S]=c.useState(ur),D=c.useRef(ur),x=()=>{if(!T)return;I(!1);let A=u||o||m.current;Vo(A,D.current)||(D.current=A,S(A))},[T,I]=c.useState(!1);return c.useEffect(x),{realtimeValidation:s||b||u||o||ur,displayValidation:a==="native"?s||b||C:s||b||u||o||C,updateValidation(A){a==="aria"&&!Vo(C,A)?S(A):m.current=A},resetValidation(){let A=ur;Vo(A,D.current)||(D.current=A,S(A)),a==="native"&&I(!1),p(!0)},commitValidation(){a==="native"&&I(!0),p(!0)}}}function ql(t){return t?Array.isArray(t)?t:[t]:[]}function w1(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return ql(n)}return[]}function xu(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:J0}:null}function Vo(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function Q0(t){let[e,n]=Mr(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),i=c.useCallback(()=>{n(!1)},[n]),o=c.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}class C1{build(e,n){return this.context=n,Pu(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(c.isValidElement(n)&&n.type===c.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];c.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let a=this.getFullNode({element:l,index:o},{});for(let s of a)o++,yield s}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let a=(l=o.key)!==null&&l!==void 0?l:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(c.isValidElement(e.element)&&e.element.type===c.Fragment){let b=[];c.Children.forEach(e.element.props.children,C=>{b.push(C)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const C of b)yield*this.getFullNode({element:C,index:m++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let b=this.cache.get(e.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=e.index,b.parentKey=i?i.key:null,yield b;return}l=n.renderer(e.value)}if(c.isValidElement(l)){let b=l.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let D=l.type;throw new Error(`Unknown element <${D}> in collection.`)}let m=b.getCollectionNode(l.props,this.context);var a;let C=(a=e.index)!==null&&a!==void 0?a:0,S=m.next();for(;!S.done&&S.value;){let D=S.value;e.index=C;var s;let x=(s=D.key)!==null&&s!==void 0?s:null;x==null&&(x=D.element?null:this.getKey(l,e,n,r));let I=[...this.getFullNode({...D,key:x,index:C,wrapper:E1(e.wrapper,D.wrapper)},this.getChildState(n,D),r?`${r}${l.key}`:l.key,i)];for(let h of I){var u,d;h.value=(d=(u=D.value)!==null&&u!==void 0?u:e.value)!==null&&d!==void 0?d:null,h.value&&this.cache.set(h.value,h);var f;if(e.type&&h.type!==e.type)throw new Error(`Unsupported type <${Uo(h.type)}> in <${Uo((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Uo(e.type)}> is supported.`);C++,yield h}S=m.next(I)}return}if(e.key==null||e.type==null)return;let v=this;var g,$;let p={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:($=e.textValue)!==null&&$!==void 0?$:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Pu(function*(){if(!e.hasChildNodes||!e.childNodes)return;let b=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${p.key}${m.key}`);let C=v.getFullNode({...m,index:b},v.getChildState(n,m),p.key,p);for(let S of C)b++,yield S}})};yield p}constructor(){this.cache=new WeakMap}}function Pu(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function E1(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Uo(t){return t[0].toUpperCase()+t.slice(1)}function e2(t,e,n){let r=c.useMemo(()=>new C1,[]),{children:i,items:o,collection:l}=t;return c.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function x1(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function P1(t){return T1(t)}function T1(t,e){for(let n of t)return n}function Wo(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Tu(t,e),e],i=[...Tu(t,n),n],o=r.slice(0,i.length).findIndex((l,a)=>l!==i[a]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function Tu(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}function D1(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=p=>{var b;return(b=p.id)!==null&&b!==void 0?b:p.key},getChildren:i=p=>p.children}=t,[o,l]=c.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[u,d]=c.useState(new Set(n||[]));function f(p=[],b,m){return p==null&&(p=[]),{items:p.map(C=>{let S={key:r(C),parentKey:m,value:C,children:null};return S.children=f(i(C),b,S.key).items,b.set(S.key,S),S}),nodeMap:b}}function v(p,b,m,C){let S=C.get(b);if(!S)return{items:p,nodeMap:C};let D=new Map(C),x=m(S);for(x==null?$(S,D):g(x,D);S&&S.parentKey;){let I=D.get(S.parentKey),h={key:I.key,parentKey:I.parentKey,value:I.value,children:null},L=I.children;x==null&&L&&(L=L.filter(A=>A!==S));var T;h.children=(T=L==null?void 0:L.map(A=>A===S?x:A))!==null&&T!==void 0?T:null,D.set(h.key,h),x=h,S=I}return x==null&&(p=p.filter(I=>I!==S)),{items:p.map(I=>I===S?x:I),nodeMap:D}}function g(p,b){if(b.set(p.key,p),p.children)for(let m of p.children)g(m,b)}function $(p,b){if(b.delete(p.key),p.children)for(let m of p.children)$(m,b)}return{items:a,selectedKeys:u,setSelectedKeys:d,getItem(p){return s.get(p)},insert(p,b,...m){l(({items:C,nodeMap:S})=>{let{items:D,nodeMap:x}=f(m,S,p);return p==null?{items:[...C.slice(0,b),...D,...C.slice(b)],nodeMap:x}:v(C,p,T=>({key:T.key,parentKey:T.parentKey,value:T.value,children:[...T.children.slice(0,b),...D,...T.children.slice(b)]}),x)})},insertBefore(p,...b){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),D=(C?C.children:a).indexOf(m);var x;this.insert((x=C==null?void 0:C.key)!==null&&x!==void 0?x:null,D,...b)},insertAfter(p,...b){let m=s.get(p);if(!m)return;let C=s.get(m.parentKey),D=(C?C.children:a).indexOf(m);var x;this.insert((x=C==null?void 0:C.key)!==null&&x!==void 0?x:null,D+1,...b)},prepend(p,...b){this.insert(p,0,...b)},append(p,...b){if(p==null)this.insert(null,a.length,...b);else{let m=s.get(p);if(!m)return;this.insert(p,m.children.length,...b)}},remove(...p){if(p.length===0)return;let b=a,m=s,C;for(let D of p)C=v(b,D,()=>null,m),m=C.nodeMap,b=C.items;l(C);let S=new Set(u);for(let D of u)C.nodeMap.has(D)||S.delete(D);d(S)},removeSelectedItems(){this.remove(...u)},move(p,b,m){l(({items:C,nodeMap:S})=>{let D=S.get(p);if(!D)return{items:C,nodeMap:S};let{items:x,nodeMap:T}=v(C,p,()=>null,S);const I={...D,parentKey:b};return b==null?(T.set(I.key,I),{items:[...x.slice(0,m),I,...x.slice(m)],nodeMap:T}):v(x,b,h=>({key:h.key,parentKey:h.parentKey,value:h.value,children:[...h.children.slice(0,m),I,...h.children.slice(m)]}),T)})},update(p,b){l(({items:m,nodeMap:C})=>v(m,p,S=>{let D={key:S.key,parentKey:S.parentKey,value:b,children:null},x=f(i(b),C,D.key);return D.children=x.items,D},C))}}}class Du{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of e)n(l);let r=null,i=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}let ct=class t2 extends Set{constructor(e,n,r){super(e),e instanceof t2?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function I1(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function n2(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>Iu(t.selectedKeys),[t.selectedKeys]),v=c.useMemo(()=>Iu(t.defaultSelectedKeys,new ct),[t.defaultSelectedKeys]),[g,$]=Mr(f,v,t.onSelectionChange),p=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[b,m]=c.useState(i);i==="replace"&&b==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let C=c.useRef(i);return c.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:b,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,D="first"){s.current=S,u.current=D,d(S)},selectedKeys:g,setSelectedKeys(S){(r||!I1(S,g))&&$(S)},disabledKeys:p,disabledBehavior:o}}function Iu(t,e){return t?t==="all"?"all":new ct(t):e}let r2=class{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Wo(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Wo(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new ct([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new ct(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Wo(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new ct(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new ct([n],n,n):new ct;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new ct;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=P1(x1(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ct)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}};function i2(t){let{filter:e,layoutDelegate:n}=t,r=n2(t),i=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=c.useCallback(d=>e?new Du(e(d)):new Du(d),[e]),l=c.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=e2(t,o,l),s=c.useMemo(()=>new r2(a,r,{layoutDelegate:n}),[a,r,n]);const u=c.useRef(null);return c.useEffect(()=>{if(r.focusedKey!=null&&!a.getItem(r.focusedKey)&&u.current){const m=u.current.getItem(r.focusedKey),C=[...u.current.getKeys()].map(h=>{const L=u.current.getItem(h);return(L==null?void 0:L.type)==="item"?L:null}).filter(h=>h!==null),S=[...a.getKeys()].map(h=>{const L=a.getItem(h);return(L==null?void 0:L.type)==="item"?L:null}).filter(h=>h!==null);var d,f;const D=((d=C==null?void 0:C.length)!==null&&d!==void 0?d:0)-((f=S==null?void 0:S.length)!==null&&f!==void 0?f:0);var v,g,$;let x=Math.min(D>1?Math.max(((v=m==null?void 0:m.index)!==null&&v!==void 0?v:0)-D+1,0):(g=m==null?void 0:m.index)!==null&&g!==void 0?g:0,(($=S==null?void 0:S.length)!==null&&$!==void 0?$:0)-1),T=null,I=!1;for(;x>=0;){if(!s.isDisabled(S[x].key)){T=S[x];break}if(x<S.length-1&&!I)x++;else{I=!0;var p,b;x>((p=m==null?void 0:m.index)!==null&&p!==void 0?p:0)&&(x=(b=m==null?void 0:m.index)!==null&&b!==void 0?b:0),x--}}r.setFocusedKey(T?T.key:null)}u.current=a},[a,s,r,r.focusedKey]),{collection:a,disabledKeys:i,selectionManager:s}}function o2(t){var e;let[n,r]=Mr(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=i2({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{if(u==="all")return;var d;let f=(d=u.values().next().value)!==null&&d!==void 0?d:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),s=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function O1(t){let e=Q0(t),[n,r]=c.useState(null),i=o2({...t,onSelectionChange:s=>{t.onSelectionChange!=null&&t.onSelectionChange(s),e.close(),o.commitValidation()}}),o=$1({...t,value:i.selectedKey}),[l,a]=c.useState(!1);return{...o,...i,...e,focusStrategy:n,open(s=null){i.collection.size!==0&&(r(s),e.open())},toggle(s=null){i.collection.size!==0&&(r(s),e.toggle())},isFocused:l,setFocused:a}}function _1(t){var e,n;let r=o2({...t,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Ou(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,a=c.useRef(l);return c.useEffect(()=>{let s=l;(i.isEmpty||s==null||!o.getItem(s))&&(s=Ou(o,r.disabledKeys),s!=null&&i.setSelectedKeys([s])),(s!=null&&i.focusedKey==null||!i.isFocused&&s!==a.current)&&i.setFocusedKey(s),a.current=s}),{...r,isDisabled:t.isDisabled||!1}}function Ou(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}class k1{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}constructor(e,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of e)r(a);let i=null,o=0;for(let[a,s]of this.keyMap)i?(i.nextKey=a,s.prevKey=i.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),i=s,i.nextKey=void 0;var l;this.lastKey=(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null}}function L1(t){let{onExpandedChange:e}=t,[n,r]=Mr(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=n2(t),o=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=e2(t,c.useCallback(s=>new k1(s,{expandedKeys:n}),[n]),null);return c.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(M1(n,s))},setExpandedKeys:r,selectionManager:new r2(l,i)}}function M1(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const N1=c.createContext(null),l2=c.createContext(null),a2=c.createContext(null),s2={CollectionRoot({collection:t,renderDropIndicator:e}){return _u(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return _u(t,e,n)}};function _u(t,e,n){return Td({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){var i;let o=r.render(r);if(!n||r.type!=="item")return o;let l=r.key,a=t.getKeyAfter(l);return c.createElement(c.Fragment,null,n({type:"item",key:l,dropPosition:"before"}),o,(a==null||((i=t.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:l,dropPosition:"after"}))}})}const fn=c.createContext(s2);function u2(t){return c.useMemo(()=>t!=null?new Set([t]):null,[t])}const lo=c.createContext({}),c2=c.createContext(null),R1=c.forwardRef(function(e,n){let{render:r}=c.useContext(c2);return c.createElement(c.Fragment,null,r(e,n))});function d2(t,e){var n;let r=t==null?void 0:t.renderDropIndicator,i=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),o=c.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):c.createElement(R1,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function A1(t,e,n){var r,i;let o=t.focusedKey,l=null;if(!(e==null||(r=e.isVirtualDragging)===null||r===void 0)&&r.call(e)&&(n==null||(i=n.target)===null||i===void 0?void 0:i.type)==="item"){l=n.target.key;var a;n.target.dropPosition==="after"&&(l=(a=n.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return c.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const f2=c.createContext({}),za=c.createContext({}),K1=to("separator",function(e,n){[e,n]=mt(e,n,za);let{elementType:r,orientation:i,style:o,className:l}=e,a=r||"hr";a==="hr"&&i==="vertical"&&(a="div");let{separatorProps:s}=u1({elementType:r,orientation:i});return c.createElement(a,{...Se(e),...s,style:o,className:l??"react-aria-Separator",ref:n,slot:e.slot||void 0})}),Ba=c.createContext(null),Rr=c.createContext(null),F1=c.forwardRef(function(e,n){[e,n]=mt(e,n,Ba);let r=c.useContext(Rr);return r?c.createElement(h2,{state:r,props:e,listBoxRef:n}):c.createElement(eo,{content:c.createElement(Ea,e)},i=>c.createElement(j1,{props:e,listBoxRef:n,collection:i}))});function j1({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=c.useContext(fn),{filterFn:i,collectionProps:o,collectionRef:l}=c.useContext(l2)||{};e=vt(c.useMemo(()=>ma(e,l!==void 0?l:null),[l,e]));let a=c.useMemo(()=>i?n.filter(i):n,[n,i]),s=i2({...t,collection:a,layoutDelegate:r});return c.createElement(h2,{state:s,props:{...t,...o},listBoxRef:e})}function h2({state:t,props:e,listBoxRef:n}){let{dragAndDropHooks:r,layout:i="stack",orientation:o="vertical"}=e,{collection:l,selectionManager:a}=t,s=!!(r!=null&&r.useDraggableCollectionState),u=!!(r!=null&&r.useDroppableCollectionState),{direction:d}=er(),{disabledBehavior:f,disabledKeys:v}=a,g=ka({usage:"search",sensitivity:"base"}),{isVirtualized:$,layoutDelegate:p,dropTargetDelegate:b,CollectionRoot:m}=c.useContext(fn),C=c.useMemo(()=>e.keyboardDelegate||new ja({collection:l,collator:g,ref:n,disabledKeys:v,disabledBehavior:f,layout:i,orientation:o,direction:d,layoutDelegate:p}),[l,g,n,f,v,o,d,e.keyboardDelegate,i,p]),{listBoxProps:S}=ym({...e,shouldSelectOnPressUp:s||e.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:$},t,n),D=c.useRef(s),x=c.useRef(u);c.useEffect(()=>{D.current!==s&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),x.current!==u&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[s,u]);let T,I,h,L=!1,A=null,P=c.useRef(null);if(s&&r){T=r.useDraggableCollectionState({collection:l,selectionManager:a,preview:r.renderDragPreview?P:void 0}),r.useDraggableCollection({},T,n);let O=r.DragPreview;A=r.renderDragPreview?c.createElement(O,{ref:P},r.renderDragPreview):null}if(u&&r){I=r.useDroppableCollectionState({collection:l,selectionManager:a});let O=r.dropTargetDelegate||b||new r.ListDropTargetDelegate(l,n,{orientation:o,layout:i,direction:d});h=r.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:O},I,n),L=I.isDropTarget({type:"root"})}let{focusProps:F,isFocused:y,isFocusVisible:E}=cn(),K={isDropTarget:L,isEmpty:t.collection.size===0,isFocused:y,isFocusVisible:E,layout:e.layout||"stack",state:t},B=_e({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:K}),H=null;return t.collection.size===0&&e.renderEmptyState&&(H=c.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(K))),c.createElement(Ta,null,c.createElement("div",{...Se(e),...ae(S,F,h==null?void 0:h.collectionProps),...B,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":L||void 0,"data-empty":t.collection.size===0||void 0,"data-focused":y||void 0,"data-focus-visible":E||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},c.createElement(Rt,{values:[[Ba,e],[Rr,t],[lo,{dragAndDropHooks:r,dragState:T,dropState:I}],[za,{elementType:"div"}],[c2,{render:B1}],[a2,{name:"ListBoxSection",render:H1}]]},c.createElement(m,{collection:l,scrollRef:n,persistedKeys:A1(a,r,I),renderDropIndicator:d2(r,I)})),H,A))}function H1(t,e,n,r="react-aria-ListBoxSection"){let i=c.useContext(Rr),{dragAndDropHooks:o,dropState:l}=c.useContext(lo),{CollectionBranch:a}=c.useContext(fn),[s,u]=ya();var d;let{headingProps:f,groupProps:v}=Cm({heading:u,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),g=_e({defaultClassName:r,className:t.className,style:t.style,values:{}});return c.createElement("section",{...Se(t),...v,...g,ref:e},c.createElement(f2.Provider,{value:{...f,ref:s}},c.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:d2(o,l)})))}const z1=to("item",function(e,n,r){let i=vt(n),o=c.useContext(Rr),{dragAndDropHooks:l,dragState:a,dropState:s}=c.useContext(lo),{optionProps:u,labelProps:d,descriptionProps:f,...v}=wm({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:g,isHovered:$}=Nr({isDisabled:!v.allowsSelection&&!v.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),p=null;a&&l&&(p=l.useDraggableItem({key:r.key},a));let b=null;s&&l&&(b=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(r.key),C=_e({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...v,isHovered:$,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:b==null?void 0:b.isDropTarget}});c.useEffect(()=>{r.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let S=e.href?"a":"div";return c.createElement(S,{...ae(u,g,p==null?void 0:p.dragProps,b==null?void 0:b.dropProps),...C,ref:i,"data-allows-dragging":!!a||void 0,"data-selected":v.isSelected||void 0,"data-disabled":v.isDisabled||void 0,"data-hovered":$||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},c.createElement(Rt,{values:[[Ha,{slots:{label:d,description:f}}]]},C.children))});function B1(t,e){e=vt(e);let{dragAndDropHooks:n,dropState:r}=c.useContext(lo),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:c.createElement(U1,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function V1(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=_e({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return c.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const U1=c.forwardRef(V1),W1=c.createContext({placement:"bottom"}),p2=c.createContext(null),g2=c.forwardRef(function(e,n){[e,n]=mt(e,n,p2);let r=c.useContext(v2),i=Q0(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=Tg(n,o.isOpen)||e.isExiting||!1;if(kg()){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),c.createElement(c.Fragment,null,s)}return o&&!o.isOpen&&!l?null:c.createElement(G1,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l})});function G1({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=c.useRef(null),[o,l]=c.useState(0);pe(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var a;let{popoverProps:s,underlayProps:u,arrowProps:d,placement:f}=Vm({...r,offset:(a=r.offset)!==null&&a!==void 0?a:8,arrowSize:o},t),v=r.popoverRef,g=Pg(v,!!f)||r.isEntering||!1,$=_e({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:f,isEntering:g,isExiting:e}}),p={...s.style,...$.style};return c.createElement(qm,{...r,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&c.createElement("div",{"data-testid":"underlay",...u,style:{position:"fixed",inset:0}}),c.createElement("div",{...ae(Se(r),s),...$,ref:v,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":f,"data-entering":g||void 0,"data-exiting":e||void 0},!r.isNonModal&&c.createElement(bu,{onDismiss:t.close}),c.createElement(W1.Provider,{value:{...d,placement:f,ref:i}},$.children),c.createElement(bu,{onDismiss:t.close})))}const q1=c.createContext({});class Ge extends Set{constructor(e,n,r){super(e),e instanceof Ge?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Y1(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function X1(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>ku(t.selectedKeys),[t.selectedKeys]),v=c.useMemo(()=>ku(t.defaultSelectedKeys,new Ge),[t.defaultSelectedKeys]),[g,$]=Mr(f,v,t.onSelectionChange),p=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[b,m]=c.useState(i);i==="replace"&&b==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let C=c.useRef(i);return c.useEffect(()=>{i!==C.current&&(m(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:b,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,D="first"){s.current=S,u.current=D,d(S)},selectedKeys:g,setSelectedKeys(S){(r||!Y1(S,g))&&$(S)},disabledKeys:p,disabledBehavior:o}}function ku(t,e){return t?t==="all"?"all":new Ge(t):e}class Z1{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Bo(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&Bo(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Ge([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new Ge(l,a,n);var o;for(let s of this.getKeyRange(a,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?Bo(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new Ge(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new Ge([n],n,n):new Ge;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new Ge;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=Jm(d0(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Ge)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}const J1=c.createContext(null),Va=c.createContext(null),Q1=c.createContext(null),Fi=c.createContext(null),eb=c.createContext(null),tb=c.forwardRef(function(e,n){return[e,n]=mt(e,n,J1),c.createElement(eo,{content:c.createElement(Ea,e)},r=>r.size>0&&c.createElement(nb,{props:e,collection:r,menuRef:n}))});function nb({props:t,collection:e,menuRef:n}){let{filterFn:r,collectionProps:i,collectionRef:o}=c.useContext(l2)||{};n=vt(c.useMemo(()=>ma(n,o!==void 0?o:null),[o,n]));let l=c.useMemo(()=>r?e.filter(r):e,[e,r]),a=L1({...t,collection:l,children:void 0}),s=c.useContext(Q1),{isVirtualized:u,CollectionRoot:d}=c.useContext(fn),{menuProps:f}=r1({...t,...i,isVirtualized:u,onClose:t.onClose||(s==null?void 0:s.close)},a,n),v=_e({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{}});return c.createElement(Ta,null,c.createElement("div",{...Se(t),...f,...v,ref:n,slot:t.slot||void 0,onScroll:t.onScroll},c.createElement(Rt,{values:[[Va,a],[za,{elementType:"div"}],[a2,{name:"MenuSection",render:ib}],[eb,{parentMenuRef:n}],[Yl,null],[Fi,a.selectionManager]]},c.createElement(d,{collection:a.collection,persistedKeys:u2(a.selectionManager.focusedKey),scrollRef:n}))))}class rb extends Z1{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,n){return this.parent.setFocusedKey(e,n)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,n){super(e.collection,n),this.parent=e}}function ib(t,e,n,r="react-aria-MenuSection"){var i,o;let l=c.useContext(Va),{CollectionBranch:a}=c.useContext(fn),[s,u]=ya();var d;let{headingProps:f,groupProps:v}=o1({heading:u,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),g=_e({defaultClassName:r,className:(i=n.props)===null||i===void 0?void 0:i.className,style:(o=n.props)===null||o===void 0?void 0:o.style,values:{}}),$=c.useContext(Fi),p=X1(t),b=t.selectionMode!=null?new rb($,p):$;return c.createElement("section",{...Se(t),...v,...g,ref:e},c.createElement(Rt,{values:[[f2,{...f,ref:s}],[Fi,b]]},c.createElement(a,{collection:l.collection,parent:n})))}const Yl=c.createContext(null),Lu=to("item",function(e,n,r){var i;[e,n]=mt(e,n,Yl);let o=(i=Qi(Yl))===null||i===void 0?void 0:i.id,l=c.useContext(Va),a=vt(n),s=c.useContext(Fi),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:v,...g}=i1({...e,id:o,key:r.key,selectionManager:s},l,a),{isFocusVisible:$,focusProps:p}=cn(),{hoverProps:b,isHovered:m}=Nr({isDisabled:g.isDisabled}),C=_e({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:m,isFocusVisible:$,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div";return c.createElement(S,{...ae(u,p,b),...C,ref:a,"data-disabled":g.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":$||void 0,"data-pressed":g.isPressed||void 0,"data-selected":g.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},c.createElement(Rt,{values:[[Ha,{slots:{label:d,description:f}}],[q1,v]]},C.children))}),v2=c.createContext(null),m2=c.createContext(null),b2=c.createContext(null),ob=c.forwardRef(function(e,n){[e,n]=mt(e,n,m2);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=c.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,l]);return c.createElement(eo,{content:a},s=>c.createElement(lb,{props:e,collection:s,selectRef:n}))});function lb({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=Qi(N1)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=O1({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:u}=cn({within:!0}),d=c.useRef(null),[f,v]=ya(),{labelProps:g,triggerProps:$,valueProps:p,menuProps:b,descriptionProps:m,errorMessageProps:C,...S}=l1({...Dg(t),label:v,validationBehavior:l},a,d),[D,x]=c.useState(null),T=c.useCallback(()=>{d.current&&x(d.current.offsetWidth+"px")},[d]);Cl({ref:d,onResize:T});let I=c.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:S.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,S.isInvalid,t.isRequired]),h=_e({...t,values:I,defaultClassName:"react-aria-Select"}),L=Se(t);delete L.id;let A=c.useRef(null);return c.createElement(Rt,{values:[[m2,t],[b2,a],[ab,p],[Id,{...g,ref:f,elementType:"span"}],[X0,{...$,ref:d,isPressed:a.isOpen}],[v2,a],[p2,{trigger:"Select",triggerRef:d,scrollRef:A,placement:"bottom start",style:{"--trigger-width":D}}],[Ba,{...b,ref:A}],[Rr,a],[Ha,{slots:{description:m,errorMessage:C}}],[b1,S]]},c.createElement("div",{...L,...h,...u,ref:e,slot:t.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":a.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":S.isInvalid||void 0,"data-required":t.isRequired||void 0}),c.createElement(s1,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:v,name:t.name,isDisabled:t.isDisabled}))}const ab=c.createContext(null),ao=c.createContext(null),qn=c.createContext(null),sb=c.forwardRef(function(e,n){[e,n]=mt(e,n,ao);let{children:r,orientation:i="horizontal"}=e;return r=c.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),c.createElement(eo,{content:r},o=>c.createElement(ub,{props:e,collection:o,tabsRef:n}))});function ub({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=_1({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=cn({within:!0}),s=c.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),u=_e({...t,defaultClassName:"react-aria-Tabs",values:s});return c.createElement("div",{...Se(t),...o,...u,ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":a||void 0,"data-disabled":i.isDisabled||void 0},c.createElement(Rt,{values:[[ao,t],[qn,i]]},u.children))}const cb=c.forwardRef(function(e,n){return c.useContext(qn)?c.createElement(db,{props:e,forwardedRef:n}):c.createElement(Ea,e)});function db({props:t,forwardedRef:e}){let n=c.useContext(qn),{CollectionRoot:r}=c.useContext(fn),{orientation:i="horizontal",keyboardActivation:o="automatic"}=Qi(ao),l=vt(e),{tabListProps:a}=h1({...t,orientation:i,keyboardActivation:o},n,l),s=_e({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=Se(t);return delete u.id,c.createElement("div",{...u,...a,ref:l,...s,"data-orientation":i||void 0},c.createElement(r,{collection:n.collection,persistedKeys:u2(n.selectionManager.focusedKey)}))}const fb=to("item",(t,e,n)=>{let r=c.useContext(qn),i=vt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=c1({key:n.key,...t},r,i),{focusProps:u,isFocused:d,isFocusVisible:f}=cn(),{hoverProps:v,isHovered:g}=Nr({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),$=_e({...t,id:void 0,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:g}}),p=n.props.href?"a":"div";return c.createElement(p,{...ae(o,u,v,$),ref:i,"data-selected":l||void 0,"data-disabled":a||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0})}),hb=wa(function(e,n){const r=c.useContext(qn);let i=vt(n),{tabPanelProps:o}=d1(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=cn(),u=r.selectedKey===e.id,d=_e({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!u,state:r}});if(!u&&!e.shouldForceMount)return null;let f=Se(e);delete f.id;let v=u?ae(f,o,l,d):d;return c.createElement("div",{...v,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:u?void 0:"true","data-inert":u?void 0:"true"},c.createElement(Rt,{values:[[ao,null],[qn,null]]},c.createElement(fn.Provider,{value:s2},d.children)))}),Ar=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=c.useId(),u=f=>{n==null||n(f)},d=c.useRef(null);return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),w.jsx(g2,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:u,children:w.jsxs(tb,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&w.jsx(Lu,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:w.jsxs(c.Fragment,{children:[w.jsxs(Lu,{className:"c__dropdown-menu-item","aria-label":f.label,onAction:()=>{var v;f.value&&(o==null||o(f.value)),(v=f.callback)==null||v.call(f),u(!1)},isDisabled:f.isDisabled,children:[f.icon,w.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&w.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&w.jsx(K1,{})]},f.label))]})})]})},Yn=()=>{const[t,e]=c.useState(!1);return{isOpen:t,setIsOpen:e}},Mu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206v2H5v11h11v-5h2v6a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h6Zm11-3v8h-2V6.413l-7.793%207.794-1.414-1.414L17.585%205H13V3h8Z'%20/%3e%3c/svg%3e",pb="data:image/svg+xml,%3csvg%20width='109'%20height='60'%20viewBox='0%200%20109%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3crect%20width='33'%20height='12'%20fill='url(%23paint0_linear_5795_13250)'%20/%3e%3cg%20clip-path='url(%23clip0_5795_13250)'%3e%3cg%20clip-path='url(%23clip1_5795_13250)'%3e%3cpath%20d='M8.475%206.8999C7.8%207.3499%207.2%207.8749%206.75%208.4749V8.3999C7.05%208.0249%207.275%207.6499%207.5%207.2749C7.8%207.1249%208.025%206.8999%208.25%206.6749C8.625%206.2999%209%205.9249%209.525%205.6999C9.75%205.6249%209.9%205.6249%2010.125%205.6999C10.05%205.7749%209.975%205.7749%209.825%205.8499H9.75V5.7749C9.525%205.9999%209.225%206.1499%209%206.4499C8.925%206.5999%208.85%206.8999%208.475%206.8999C8.55%206.8999%208.475%206.9749%208.475%206.8999ZM9.675%2010.3499C9.675%2010.2749%209.6%2010.3499%209.525%2010.3499L9.45%2010.4249L9.375%2010.4999L9.225%2010.6499C9.225%2010.6499%209.3%2010.7249%209.375%2010.6499L9.45%2010.5749C9.525%2010.5749%209.6%2010.4999%209.6%2010.4249C9.675%2010.4249%209.675%2010.4249%209.675%2010.3499ZM8.475%207.1249C8.55%207.1249%208.625%207.1249%208.625%207.0499C8.625%206.9749%208.7%206.9749%208.7%206.9749V6.8999C8.55%206.9749%208.475%207.0499%208.475%207.1249ZM10.275%208.5499C10.35%208.4749%2010.425%208.4749%2010.5%208.4749C11.025%208.3999%2011.55%208.2499%2012.075%208.0249C11.475%207.6499%2010.8%207.3499%2010.125%207.2749H10.2C10.125%207.1999%209.975%207.1999%209.825%207.1249H9.9C9.75%207.0499%209.525%207.0499%209.375%206.9749C9.45%206.9749%209.525%206.8249%209.525%206.7499H9.45C9.15%206.8999%209%207.1249%208.85%207.4249C9%207.4999%209.225%207.4249%209.375%207.4999H9.15C9.075%207.4999%209%207.5749%209%207.6499H9.075C9%207.6499%209%207.7249%208.925%207.7249C9%207.7999%209.075%207.7249%209.225%207.7249C9.225%207.7999%209.3%207.7999%209.3%207.7999C9.225%207.7999%209.15%207.8749%209.075%208.0249C9%208.1749%208.925%208.1749%208.85%208.2499V8.3249C8.625%208.4749%208.4%208.6999%208.175%208.9249V8.9999C8.1%209.0749%208.025%209.0749%208.025%209.1499V9.2249C8.325%209.1499%208.475%208.9249%208.775%208.8499L9.225%208.6249C9.375%208.6249%209.45%208.5499%209.6%208.5499V8.6249H9.75C9.75%208.6999%209.6%208.6249%209.675%208.6999C9.75%208.7749%209.9%208.7749%209.975%208.6999C10.125%208.5499%2010.2%208.5499%2010.275%208.5499ZM9.3%209.7499C9%209.8999%208.625%209.8999%208.4%2010.0499C8.4%2010.0499%208.4%2010.1249%208.325%2010.1249C8.325%2010.1249%208.25%2010.1249%208.25%2010.1999C8.175%2010.1999%208.175%2010.2749%208.1%2010.3499L8.025%2010.4249C8.025%2010.4249%208.025%2010.4999%208.1%2010.4249L8.175%2010.3499C8.175%2010.3499%208.1%2010.4249%208.1%2010.4999V10.7249L8.025%2010.7999C8.025%2010.7999%208.025%2010.8749%207.95%2010.8749L7.875%2010.9499L8.025%2010.7999L8.1%2010.7249H8.25C8.25%2010.7249%208.25%2010.6499%208.325%2010.6499C8.4%2010.5749%208.475%2010.4999%208.55%2010.4999H8.625C8.7%2010.4249%208.85%2010.4249%208.925%2010.3499C9%2010.2749%209.075%2010.1999%209.15%2010.1999C9.3%2010.0499%209.525%209.9749%209.75%209.8249C9.675%209.8249%209.6%209.7499%209.525%209.7499C9.525%209.8249%209.375%209.7499%209.3%209.7499ZM22.5%206.5249C22.425%206.6749%2022.2%206.6749%2022.05%206.7499C21.9%206.8999%2022.05%207.0499%2022.125%207.1249C22.2%207.3499%2021.975%207.4999%2021.825%207.4999C21.9%207.5749%2021.975%207.5749%2021.975%207.5749C21.975%207.7249%2022.125%207.7249%2022.05%207.8749C21.975%208.0249%2021.675%208.0999%2021.825%208.2499C21.9%208.3999%2021.9%208.6249%2021.825%208.7749C21.75%208.9249%2021.6%209.0749%2021.45%209.1499C21.3%209.2249%2021.15%209.2249%2021%209.1499C20.925%209.1499%2020.925%209.0749%2020.85%209.0749C20.475%208.9999%2020.1%208.9249%2019.725%208.9249C19.65%208.9249%2019.5%208.9999%2019.425%208.9999C19.35%209.0749%2019.2%209.1499%2019.125%209.2249L19.05%209.2999C18.975%209.3749%2018.9%209.4499%2018.9%209.5249C18.825%209.6749%2018.75%209.8249%2018.75%209.9749C18.6%2010.3499%2018.6%2010.7249%2018.75%2011.0249C18.75%2011.0249%2019.5%2011.2499%2020.025%2011.4749C20.175%2011.5499%2020.4%2011.6249%2020.55%2011.7749L21.825%2012.5249H9.9L11.1%2011.7749C11.55%2011.4749%2012.075%2011.2499%2012.6%2011.0249C12.975%2010.8749%2013.425%2010.6499%2013.725%2010.3499C13.875%2010.1999%2013.95%2010.0499%2014.1%209.9749C14.325%209.6749%2014.55%209.4499%2014.85%209.2249L15.075%208.9999C15.075%208.9999%2015.075%208.9249%2015.15%208.9249C15%208.9999%2015%209.0749%2014.85%209.0749C14.85%209.0749%2014.775%209.0749%2014.85%208.9999C14.925%208.9249%2015%208.8499%2015.075%208.8499V8.7749C14.775%208.7749%2014.55%208.9249%2014.325%209.1499H14.175C13.8%209.2999%2013.575%209.5249%2013.275%209.6749V9.5999C13.125%209.6749%2012.975%209.7499%2012.9%209.7499C12.75%209.7499%2012.525%209.8249%2012.3%209.7499C12%209.7499%2011.775%209.8249%2011.475%209.8999C11.325%209.9749%2011.175%209.9749%2011.025%2010.0499V10.1249L10.875%2010.2749C10.725%2010.3499%2010.65%2010.4249%2010.5%2010.5749L10.125%2010.9499H10.05L10.125%2010.8749L10.2%2010.7999C10.2%2010.7249%2010.275%2010.7249%2010.275%2010.6499C10.425%2010.5749%2010.5%2010.4249%2010.65%2010.3499C10.65%2010.3499%2010.65%2010.2749%2010.725%2010.2749L10.65%2010.3499C10.575%2010.4249%2010.575%2010.4999%2010.5%2010.4999V10.4249V10.3499L10.65%2010.1999C10.725%2010.1249%2010.8%2010.1249%2010.875%2010.0499H10.95C10.8%2010.1249%2010.725%2010.1249%2010.575%2010.1999H10.5H10.425C10.425%2010.1249%2010.5%2010.1249%2010.575%2010.0499H10.65C11.4%209.4499%2012.375%209.5999%2013.2%209.2999C13.275%209.2249%2013.35%209.2249%2013.425%209.1499C13.5%209.0749%2013.65%208.9999%2013.8%208.9249C13.95%208.7749%2014.1%208.6249%2014.175%208.3999V8.3249C13.875%208.6249%2013.575%208.8499%2013.2%209.0749C12.75%209.2249%2012.225%209.3749%2011.7%209.3749C11.7%209.2999%2011.775%209.2999%2011.775%209.2999C11.775%209.2249%2011.85%209.2249%2011.85%209.1499H11.925C11.925%209.1499%2011.925%209.0749%2012%209.0749H12.075C12%208.9999%2011.85%209.1499%2011.775%209.0749C11.85%208.9999%2011.775%208.9249%2011.85%208.9249H11.925C11.925%208.9249%2011.925%208.8499%2012%208.8499C12.375%208.6249%2012.675%208.4749%2012.975%208.3249C12.9%208.3249%2012.9%208.3999%2012.825%208.3249C12.9%208.3249%2012.825%208.2499%2012.9%208.2499C13.125%208.1749%2013.35%208.0249%2013.575%207.9499C13.5%207.9499%2013.425%208.0249%2013.35%207.9499C13.425%207.9499%2013.425%207.8749%2013.5%207.8749V7.7999C13.5%207.7249%2013.575%207.7999%2013.65%207.7249H13.575C13.65%207.6499%2013.725%207.5749%2013.875%207.5749C13.875%207.4999%2013.8%207.5749%2013.8%207.4999H13.875H13.5C13.425%207.4999%2013.5%207.4249%2013.5%207.4249C13.575%207.2749%2013.65%207.0499%2013.725%206.8999H13.65C13.425%207.1249%2013.05%207.2749%2012.75%207.3499H12.6C12.45%207.4249%2012.3%207.4249%2012.225%207.3499C12.15%207.2749%2012.075%207.1999%2012%207.1999C11.85%207.1249%2011.625%206.9749%2011.4%206.8999C10.875%206.7499%2010.275%206.5999%209.675%206.6749C9.9%206.5999%2010.2%206.5249%2010.5%206.4499C10.875%206.2999%2011.25%206.2249%2011.625%206.2249H11.4C11.1%206.2249%2010.725%206.2999%2010.425%206.3749C10.2%206.4499%209.975%206.5249%209.75%206.5249C9.6%206.5999%209.525%206.6749%209.375%206.6749V6.5999C9.6%206.2999%209.9%206.0749%2010.2%205.9999C10.575%205.9249%2011.025%205.9999%2011.4%206.0749C11.7%206.0749%2012%206.1499%2012.225%206.2249C12.3%206.2249%2012.375%206.3749%2012.45%206.4499C12.6%206.5249%2012.75%206.4499%2012.825%206.5249V6.3749C12.9%206.2999%2013.05%206.3749%2013.125%206.3749C13.275%206.2249%2012.975%206.0749%2012.9%205.9249V5.8499C13.05%205.9999%2013.275%206.1499%2013.425%206.2999C13.5%206.3749%2013.8%206.4499%2013.8%206.2999C13.65%206.0749%2013.5%205.8499%2013.275%205.6249V5.4749C13.2%205.4749%2013.2%205.4749%2013.2%205.3999C13.125%205.3249%2013.125%205.2499%2013.125%205.1749C13.05%205.0249%2013.125%204.8749%2013.05%204.7999C12.975%204.6499%2012.975%204.5749%2012.975%204.4249C12.9%204.0499%2012.825%203.6749%2012.75%203.3749C12.675%202.9249%2012.975%202.6249%2013.2%202.2499C13.35%201.9499%2013.575%201.7249%2013.8%201.4999C13.875%201.1999%2014.025%200.974902%2014.25%200.749902C14.475%200.524902%2014.7%200.374902%2014.925%200.299902C15.15%200.224902%2015.3%200.149902%2015.525%200.0749024L17.4%20-0.225098H18.75L20.1%20-9.76473e-05C20.175%20-9.76473e-05%2020.25%20-9.76324e-05%2020.25%200.0749024C20.325%200.149902%2020.475%200.224902%2020.55%200.224902C20.7%200.299902%2020.85%200.449902%2021%200.599902C21.075%200.674902%2021.15%200.824902%2021.075%200.899902C21%200.974902%2021%201.1999%2020.925%201.1999C20.775%201.2749%2020.625%201.2749%2020.475%201.2749C20.4%201.2749%2020.325%201.2749%2020.175%201.1999C20.55%201.3499%2020.85%201.4999%2021.075%201.7999C21.075%201.8749%2021.225%201.8749%2021.3%201.8749V1.9499C21.225%202.0249%2021.225%202.0249%2021.225%202.0999H21.3C21.375%202.0249%2021.375%201.7999%2021.525%201.8749C21.675%201.9499%2021.675%202.0999%2021.6%202.1749C21.525%202.2499%2021.45%202.3249%2021.3%202.3999V2.5499C21.375%202.6249%2021.375%202.6999%2021.45%202.8499C21.525%202.9999%2021.525%203.2249%2021.6%203.3749C21.675%203.7499%2021.75%204.0499%2021.75%204.4249C21.75%204.5749%2021.675%204.7999%2021.75%204.9499L21.975%205.3999C22.05%205.5499%2022.125%205.6249%2022.2%205.7749C22.35%205.9999%2022.65%206.2249%2022.5%206.5249ZM10.8%2010.4249C10.725%2010.4249%2010.725%2010.4999%2010.725%2010.4999C10.725%2010.4999%2010.8%2010.4999%2010.8%2010.4249ZM10.125%208.9249C10.125%208.9999%2010.2%208.9249%2010.2%208.9249C10.35%208.8499%2010.575%208.9249%2010.65%208.7749C10.575%208.6999%2010.5%208.7749%2010.5%208.6999C10.425%208.6999%2010.35%208.6999%2010.35%208.7749C10.275%208.8499%2010.125%208.8499%2010.125%208.9249Z'%20fill='white'%20/%3e%3cpath%20d='M20.925%204.3501C21%204.3501%2021.15%204.3501%2021.15%204.4251C21.075%204.5751%2020.85%204.6501%2020.7%204.8001H20.625C20.55%204.8751%2020.55%204.9501%2020.55%204.9501H20.325C20.4%205.0251%2020.55%205.1001%2020.7%205.1001L20.775%205.1751H20.925V5.2501C20.85%205.3251%2020.775%205.3251%2020.625%205.3251C20.775%205.4001%2021%205.4001%2021.15%205.3251C21.3%205.2501%2021.15%205.0251%2021.225%204.9501C21.15%204.9501%2021.225%204.8751%2021.15%204.8751C21.225%204.8001%2021.225%204.7251%2021.3%204.7251C21.375%204.7251%2021.375%204.7251%2021.45%204.6501C21.45%204.5751%2021.375%204.5751%2021.375%204.5001C21.525%204.4251%2021.6%204.2751%2021.6%204.1251C21.6%204.0501%2021.375%204.0501%2021.3%203.9751H20.925C20.775%203.9751%2020.7%204.0501%2020.55%204.0501L20.1%204.2751C20.25%204.2001%2020.4%204.2001%2020.625%204.1251C20.625%204.3501%2020.775%204.3501%2020.925%204.3501Z'%20fill='%237C7C7C'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M5.355%2025.5762C6.1866%2025.5762%206.9048%2025.2864%207.4088%2024.8076V23.2704H5.166V21.7458H9.198V25.4502C8.379%2026.5464%207.0056%2027.252%205.355%2027.252C2.4948%2027.252%200.5418%2025.11%200.5418%2022.59C0.5418%2020.07%202.4444%2017.928%205.229%2017.928C6.8292%2017.928%208.1396%2018.6462%208.946%2019.7172L7.5348%2020.8134C7.0308%2020.0952%206.237%2019.6038%205.229%2019.6038C3.5658%2019.6038%202.3814%2020.9016%202.3814%2022.59C2.3814%2024.2784%203.6288%2025.5762%205.355%2025.5762ZM15.2175%2017.928C17.9895%2017.928%2019.8921%2020.07%2019.8921%2022.59C19.8921%2025.11%2017.9895%2027.252%2015.2175%2027.252C12.4329%2027.252%2010.5303%2025.11%2010.5303%2022.59C10.5303%2020.07%2012.4329%2017.928%2015.2175%2017.928ZM15.2175%2025.5762C16.8681%2025.5762%2018.0525%2024.2784%2018.0525%2022.59C18.0525%2020.9016%2016.8681%2019.6038%2015.2175%2019.6038C13.5543%2019.6038%2012.3699%2020.9016%2012.3699%2022.59C12.3699%2024.2784%2013.5543%2025.5762%2015.2175%2025.5762ZM26.8084%2023.6988V18.18H28.5976V23.5476C28.5976%2025.866%2027.2368%2027.252%2025.0192%2027.252C22.8142%2027.252%2021.4534%2025.866%2021.4534%2023.5476V18.18H23.2426V23.6988C23.2426%2024.8832%2023.9104%2025.5762%2025.0318%2025.5762C26.128%2025.5762%2026.8084%2024.8832%2026.8084%2023.6988ZM29.7114%2018.18H31.614L34.2222%2025.0722L36.8304%2018.18H38.733L35.394%2027H33.0504L29.7114%2018.18ZM40.095%2027V18.18H45.2358V19.6668H41.8842V21.7584H44.7318V23.2452H41.8842V25.5132H45.2358V27H40.095ZM47.3149%2027V18.18H50.0113C51.9517%2018.18%2053.1487%2019.1754%2053.1487%2020.8134C53.1487%2021.8844%2052.6321%2022.6782%2051.7249%2023.094L54.4843%2027H52.3801L50.0239%2023.4342H49.1041V27H47.3149ZM50.1121%2019.6668H49.1041V21.9474H50.1121C50.8681%2021.9474%2051.3091%2021.5064%2051.3091%2020.7882C51.3091%2020.1204%2050.8681%2019.6668%2050.1121%2019.6668ZM55.6176%2027V18.18H57.9108L61.8546%2024.5556V18.18H63.6438V27H61.3506L57.4068%2020.6244V27H55.6176ZM66.1105%2027V18.18H71.2513V19.6668H67.8997V21.7584H70.7473V23.2452H67.8997V25.5132H71.2513V27H66.1105ZM73.3304%2027V18.18H75.5606L77.7152%2021.8844L79.8698%2018.18H82.1V27H80.3108V20.6748L78.3452%2023.976H77.0852L75.1196%2020.6748V27H73.3304ZM84.5617%2027V18.18H89.7025V19.6668H86.3509V21.7584H89.1985V23.2452H86.3509V25.5132H89.7025V27H84.5617ZM91.7816%2027V18.18H94.0748L98.0186%2024.5556V18.18H99.8078V27H97.5146L93.5708%2020.6244V27H91.7816ZM101.367%2019.8054V18.18H108.6V19.8054H105.878V27H104.089V19.8054H101.367Z'%20fill='%23161616'%20/%3e%3cg%20clip-path='url(%23clip2_5795_13250)'%3e%3cg%20clip-path='url(%23clip3_5795_13250)'%3e%3cg%20clip-path='url(%23clip4_5795_13250)'%3e%3cg%20clip-path='url(%23clip5_5795_13250)'%3e%3cg%20clip-path='url(%23clip6_5795_13250)'%3e%3cpath%20d='M30.775%2056.45C31.15%2055.5%2030.7%2055.125%2030.15%2055.125C29.225%2055.125%2028.175%2056.75%2028.175%2058.05C28.175%2058.675%2028.475%2059%2028.925%2059C29.45%2059%2030%2058.5%2030.475%2057.625H30.225C29.925%2058%2029.575%2058.275%2029.25%2058.275C28.925%2058.275%2028.75%2058.075%2028.75%2057.625C28.7558%2057.4396%2028.781%2057.2552%2028.825%2057.075L30.775%2056.45ZM29.775%2055.675C30.05%2055.675%2030.275%2055.875%2030.15%2056.325L28.95%2056.65C29.15%2056.1%2029.5%2055.65%2029.8%2055.65L29.775%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M30.15%2054.6999L31.275%2053.6749V53.5249H30.525L29.85%2054.6999H30.175H30.15Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip7_5795_13250)'%3e%3cpath%20d='M25.975%2055.675H26.625L25.575%2058.525C25.5421%2058.576%2025.5242%2058.6352%2025.5232%2058.6959C25.5222%2058.7565%2025.5382%2058.8163%2025.5694%2058.8683C25.6007%2058.9204%2025.6458%2058.9626%2025.6998%2058.9903C25.7538%2059.018%2025.8145%2059.03%2025.875%2059.025C26.625%2059.025%2027.475%2058.375%2027.825%2057.475H27.65C27.3359%2057.9021%2026.8865%2058.2105%2026.375%2058.35L27.3%2055.675H28.3L28.425%2055.275H27.475L27.8%2054.25H27.45L26.775%2055.275L25.975%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip8_5795_13250)'%3e%3cpath%20d='M25.3%2055.5249C25.375%2055.2749%2025.2%2055.1249%2025.05%2055.1249C24.5%2055.1249%2023.8%2055.6499%2023.55%2056.3749H23.725C23.9026%2056.0881%2024.1778%2055.875%2024.5%2055.7749L23.425%2058.5999C23.4034%2058.6422%2023.3932%2058.6894%2023.3952%2058.7368C23.3973%2058.7843%2023.4116%2058.8304%2023.4368%2058.8707C23.4619%2058.911%2023.4971%2058.9441%2023.5389%2058.9667C23.5806%2058.9893%2023.6275%2059.0008%2023.675%2058.9999C24.225%2058.9999%2024.85%2058.4999%2025.125%2057.7499H24.9C24.7378%2058.0509%2024.471%2058.2821%2024.15%2058.3999L25.3%2055.5249ZM25.4%2054.4499C25.4591%2054.4499%2025.5176%2054.4383%2025.5722%2054.4156C25.6268%2054.393%2025.6764%2054.3599%2025.7182%2054.3181C25.76%2054.2763%2025.7932%2054.2267%2025.8158%2054.1721C25.8384%2054.1175%2025.85%2054.059%2025.85%2053.9999C25.8534%2053.9387%2025.8443%2053.8775%2025.8232%2053.82C25.8021%2053.7625%2025.7695%2053.7099%2025.7274%2053.6654C25.6853%2053.6209%2025.6345%2053.5855%2025.5782%2053.5614C25.5219%2053.5372%2025.4613%2053.5248%2025.4%2053.5249C25.2807%2053.5249%2025.1662%2053.5723%2025.0818%2053.6567C24.9974%2053.7411%2024.95%2053.8556%2024.95%2053.9749C24.95%2054.0943%2024.9974%2054.2087%2025.0818%2054.2931C25.1662%2054.3775%2025.2807%2054.4249%2025.4%2054.4249'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip9_5795_13250)'%3e%3cpath%20d='M20.125%2055.8999C20.3%2055.8999%2020.375%2056.1499%2020.125%2056.7499L19.375%2058.4499C19.2%2058.7749%2019.375%2058.9999%2019.675%2058.9999C19.7577%2059.0148%2019.843%2058.997%2019.9129%2058.9504C19.9828%2058.9038%2020.0319%2058.8319%2020.05%2058.7499L20.8%2056.7499C21.15%2056.3249%2021.8%2055.8749%2022.05%2055.8749C22.3%2055.8749%2022.25%2056.0249%2022.125%2056.2749L20.975%2058.5249C20.9497%2058.5734%2020.9371%2058.6276%2020.9383%2058.6823C20.9395%2058.737%2020.9545%2058.7906%2020.9819%2058.838C21.0094%2058.8854%2021.0483%2058.925%2021.0952%2058.9533C21.142%2058.9816%2021.1953%2058.9976%2021.25%2058.9999C21.825%2058.9999%2022.5%2058.4999%2022.75%2057.7499H22.6C22.4209%2058.051%2022.1355%2058.274%2021.8%2058.3749L22.8%2056.3749C22.9222%2056.1611%2022.9908%2055.9209%2023%2055.6749C23.0079%2055.6007%2022.9991%2055.5257%2022.9742%2055.4554C22.9494%2055.3851%2022.9091%2055.3212%2022.8564%2055.2685C22.8036%2055.2158%2022.7398%2055.1755%2022.6695%2055.1507C22.5991%2055.1258%2022.5242%2055.117%2022.45%2055.1249C21.95%2055.1249%2021.55%2055.6749%2020.95%2056.3749V55.8249C20.95%2055.4749%2020.825%2055.1249%2020.5%2055.1249C20.1%2055.1249%2019.75%2055.7499%2019.475%2056.3499H19.65C19.825%2056.0749%2019.975%2055.8999%2020.15%2055.8999'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip10_5795_13250)'%3e%3cpath%20d='M19.375%2056C19.5%2055.525%2019.425%2055.125%2019.075%2055.125C18.625%2055.125%2018.5%2055.425%2018.075%2056.375V55.825C18.05%2055.45%2017.925%2055.125%2017.575%2055.125C17.2%2055.125%2016.85%2055.75%2016.55%2056.375H16.75C16.925%2056.05%2017.125%2055.875%2017.25%2055.875C17.425%2055.875%2017.5%2056.125%2017.25%2056.725L16.5%2058.425C16.325%2058.75%2016.5%2058.95%2016.8%2058.95C16.8827%2058.9649%2016.968%2058.9472%2017.0379%2058.9006C17.1078%2058.8539%2017.1569%2058.7821%2017.175%2058.7L17.925%2056.7C18.1317%2056.4415%2018.3486%2056.1913%2018.575%2055.95H19.375V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip11_5795_13250)'%3e%3cpath%20d='M16.175%2056.45C16.55%2055.5%2016.1%2055.125%2015.55%2055.125C14.625%2055.125%2013.575%2056.75%2013.575%2058.05C13.575%2058.675%2013.875%2059%2014.325%2059C14.85%2059%2015.4%2058.5%2015.875%2057.625H15.625C15.325%2058%2014.975%2058.275%2014.65%2058.275C14.325%2058.275%2014.15%2058.075%2014.15%2057.625C14.1559%2057.4396%2014.181%2057.2552%2014.225%2057.075L16.175%2056.45ZM15.175%2055.675C15.45%2055.675%2015.675%2055.875%2015.55%2056.325L14.35%2056.65C14.55%2056.1%2014.9%2055.65%2015.2%2055.65L15.175%2055.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip12_5795_13250)'%3e%3cpath%20d='M11.35%2055.675H12L10.95%2058.525C10.9171%2058.576%2010.8992%2058.6352%2010.8982%2058.6959C10.8972%2058.7565%2010.9132%2058.8163%2010.9444%2058.8683C10.9757%2058.9204%2011.0208%2058.9626%2011.0748%2058.9903C11.1288%2059.018%2011.1895%2059.03%2011.25%2059.025C12%2059.025%2012.85%2058.375%2013.2%2057.475H13.025C12.7109%2057.9021%2012.2615%2058.2105%2011.75%2058.35L12.675%2055.675H13.675L13.8%2055.275H12.85L13.175%2054.25H12.825L12.15%2055.275L11.35%2055.375V55.675Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip13_5795_13250)'%3e%3cpath%20d='M9.84996%2058.2252C9.69996%2058.2252%209.59996%2057.9752%209.84996%2057.3752L10.875%2054.9752L10.575%2054.9502L10.25%2055.2752H10.175C8.74996%2055.2752%207.22496%2057.1002%207.22496%2058.5002C7.22137%2058.5701%207.23249%2058.64%207.25761%2058.7053C7.28272%2058.7706%207.32126%2058.8299%207.37075%2058.8794C7.42024%2058.9289%207.47956%2058.9674%207.54488%2058.9926C7.6102%2059.0177%207.68007%2059.0288%207.74996%2059.0252C8.17496%2059.0252%208.57496%2058.4252%209.04996%2057.7752L9.02496%2058.0252C8.94996%2058.6752%209.17496%2059.0252%209.52496%2059.0252C9.89996%2059.0252%2010.275%2058.4252%2010.525%2057.8002H10.35C10.175%2058.0752%209.97496%2058.2502%209.84996%2058.2502V58.2252ZM9.19996%2057.4002C8.87496%2057.8002%208.34996%2058.2752%208.12496%2058.2752C7.99996%2058.2752%207.89996%2058.1502%207.89996%2057.8752C7.89996%2057.0002%208.89996%2055.8252%209.39996%2055.8252C9.51862%2055.822%209.63696%2055.8389%209.74996%2055.8752L9.19996%2057.4002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip14_5795_13250)'%3e%3cpath%20d='M7.85004%2056C7.97504%2055.525%207.90004%2055.125%207.55004%2055.125C7.10004%2055.125%206.97504%2055.425%206.55004%2056.375V55.825C6.52504%2055.45%206.40004%2055.125%206.05004%2055.125C5.67504%2055.125%205.32504%2055.75%205.02504%2056.375H5.22504C5.40004%2056.05%205.60004%2055.875%205.72504%2055.875C5.90004%2055.875%205.97504%2056.125%205.72504%2056.725L4.97504%2058.425C4.80004%2058.75%204.97504%2058.95%205.27504%2058.95C5.35775%2058.9649%205.443%2058.9472%205.51292%2058.9006C5.58284%2058.8539%205.63198%2058.7821%205.65004%2058.7L6.40004%2056.7C6.60676%2056.4415%206.82359%2056.1913%207.05004%2055.95H7.85004V56Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip15_5795_13250)'%3e%3cpath%20d='M2.79998%2058.8499L2.87498%2058.6249C1.92498%2058.4499%201.79998%2058.4499%202.19998%2057.4249L2.54998%2056.4499H3.29998C3.77498%2056.4499%203.77498%2056.6749%203.69998%2057.1999H3.94998L4.59998%2055.4749H4.34998C4.09998%2055.8749%203.89998%2056.1999%203.39998%2056.1999H2.64998L3.14998%2054.7999C3.34998%2054.2999%203.42498%2054.1999%204.07498%2054.1999H4.24998C4.89998%2054.1999%204.99998%2054.3749%204.99998%2055.0749H5.24998L5.47498%2053.8999H1.82498L1.74998%2054.1249C2.49998%2054.2749%202.57498%2054.3499%202.24998%2055.3249L1.42498%2057.3999C1.04998%2058.3749%200.924976%2058.4499%200.0499756%2058.5999L-0.0250244%2058.8249L2.79998%2058.8499Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip16_5795_13250)'%3e%3cg%20clip-path='url(%23clip17_5795_13250)'%3e%3cpath%20d='M21.925%2048.2C22.3%2047.25%2021.85%2046.875%2021.3%2046.875C20.375%2046.875%2019.325%2048.5%2019.325%2049.8C19.325%2050.425%2019.625%2050.75%2020.075%2050.75C20.6%2050.75%2021.15%2050.25%2021.625%2049.375H21.375C21.075%2049.75%2020.725%2050.025%2020.4%2050.025C20.075%2050.025%2019.9%2049.825%2019.9%2049.375C19.9059%2049.1896%2019.931%2049.0052%2019.975%2048.825L21.925%2048.2ZM20.925%2047.425C21.2%2047.425%2021.425%2047.625%2021.3%2048.075L20.1%2048.4C20.3%2047.85%2020.65%2047.4%2020.95%2047.4L20.925%2047.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.3%2046.4499L22.425%2045.4249V45.2749H21.675L21%2046.4499H21.325H21.3Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip18_5795_13250)'%3e%3cpath%20d='M17.125%2047.425H17.775L16.725%2050.275C16.6921%2050.326%2016.6742%2050.3852%2016.6732%2050.4459C16.6722%2050.5065%2016.6882%2050.5663%2016.7195%2050.6183C16.7507%2050.6704%2016.7959%2050.7126%2016.8499%2050.7403C16.9039%2050.768%2016.9645%2050.78%2017.025%2050.775C17.775%2050.775%2018.625%2050.125%2018.975%2049.225H18.8C18.4859%2049.6521%2018.0365%2049.9605%2017.525%2050.1L18.45%2047.425H19.45L19.575%2047.025H18.625L18.95%2046H18.6L17.925%2047.025L17.125%2047.125V47.425Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip19_5795_13250)'%3e%3cpath%20d='M16.45%2047.25C16.525%2047%2016.35%2046.85%2016.2%2046.85C15.65%2046.85%2014.95%2047.375%2014.7%2048.1H14.875C15.0526%2047.8132%2015.3278%2047.6001%2015.65%2047.5L14.575%2050.325C14.5534%2050.3673%2014.5431%2050.4145%2014.5452%2050.4619C14.5472%2050.5094%2014.5615%2050.5555%2014.5867%2050.5958C14.6119%2050.6361%2014.6471%2050.6692%2014.6888%2050.6918C14.7306%2050.7144%2014.7775%2050.7259%2014.825%2050.725C15.375%2050.725%2016%2050.225%2016.275%2049.475H16.05C15.8878%2049.776%2015.621%2050.0072%2015.3%2050.125L16.45%2047.25ZM16.55%2046.175C16.6091%2046.175%2016.6676%2046.1634%2016.7222%2046.1407C16.7768%2046.1181%2016.8264%2046.085%2016.8682%2046.0432C16.91%2046.0014%2016.9431%2045.9518%2016.9657%2045.8972C16.9884%2045.8426%2017%2045.7841%2017%2045.725C17.0034%2045.6638%2016.9943%2045.6026%2016.9732%2045.5451C16.9521%2045.4876%2016.9195%2045.435%2016.8774%2045.3905C16.8352%2045.346%2016.7845%2045.3106%2016.7282%2045.2865C16.6719%2045.2623%2016.6113%2045.2499%2016.55%2045.25C16.4306%2045.25%2016.3162%2045.2974%2016.2318%2045.3818C16.1474%2045.4662%2016.1%2045.5807%2016.1%2045.7C16.1%2045.8193%2016.1474%2045.9338%2016.2318%2046.0182C16.3162%2046.1026%2016.4306%2046.15%2016.55%2046.15'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip20_5795_13250)'%3e%3cpath%20d='M13.075%2050.1249L14.875%2045.3499L14.8%2045.2749L13.55%2045.4249V45.5749L13.8%2045.7499C14.025%2045.9249%2013.95%2046.0749%2013.75%2046.5999L12.4%2050.2499C12.3685%2050.2991%2012.3509%2050.3559%2012.349%2050.4142C12.3471%2050.4726%2012.3609%2050.5304%2012.389%2050.5815C12.4172%2050.6327%2012.4586%2050.6753%2012.5089%2050.705C12.5592%2050.7346%2012.6166%2050.7501%2012.675%2050.7499C13.25%2050.7499%2013.85%2050.2249%2014.125%2049.4999H13.95C13.7377%2049.8015%2013.4291%2050.0219%2013.075%2050.1249Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip21_5795_13250)'%3e%3cpath%20d='M11.35%2049.9752C11.2%2049.9752%2011.1%2049.7252%2011.35%2049.1252L12.375%2046.7252L12.075%2046.7002L11.75%2047.0252H11.675C10.25%2047.0252%208.72496%2048.8502%208.72496%2050.2502C8.72137%2050.3201%208.73249%2050.39%208.75761%2050.4553C8.78272%2050.5206%208.82126%2050.5799%208.87075%2050.6294C8.92024%2050.6789%208.97956%2050.7174%209.04488%2050.7426C9.1102%2050.7677%209.18007%2050.7788%209.24996%2050.7752C9.67496%2050.7752%2010.075%2050.1752%2010.55%2049.5252L10.525%2049.7752C10.45%2050.4252%2010.675%2050.7752%2011.025%2050.7752C11.4%2050.7752%2011.775%2050.1752%2012.025%2049.5502H11.85C11.675%2049.8252%2011.475%2050.0002%2011.35%2050.0002V49.9752ZM10.7%2049.1502C10.375%2049.5502%209.84996%2050.0252%209.62496%2050.0252C9.49996%2050.0252%209.39996%2049.9002%209.39996%2049.6252C9.39996%2048.7502%2010.4%2047.5752%2010.9%2047.5752C11.0186%2047.572%2011.137%2047.5889%2011.25%2047.6252L10.7%2049.1502Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip22_5795_13250)'%3e%3cpath%20d='M9.15%2047.0002H8.075C7.91845%2046.8999%207.73591%2046.8477%207.55%2046.8502C7.11669%2046.8501%206.70075%2047.0205%206.39202%2047.3246C6.0833%2047.6286%205.90657%2048.0419%205.9%2048.4752C5.88969%2048.5836%205.90095%2048.693%205.93314%2048.797C5.96532%2048.9011%206.01779%2048.9977%206.08751%2049.0814C6.15724%2049.1651%206.24284%2049.2341%206.33938%2049.2845C6.43592%2049.335%206.54149%2049.3658%206.65%2049.3752C6.175%2049.5752%205.9%2049.8252%205.9%2050.1002C5.9%2050.1772%205.92093%2050.2528%205.96057%2050.3188C6.0002%2050.3849%206.05703%2050.4389%206.125%2050.4752C5.05%2050.8002%204.625%2051.1752%204.625%2051.6502C4.625%2052.1502%205.275%2052.3502%206.025%2052.3502C7.35%2052.3502%208.425%2051.6752%208.425%2051.0752C8.425%2050.6252%208.025%2050.4502%207.35%2050.2502C6.8%2050.0752%206.55%2050.0502%206.55%2049.8502C6.56644%2049.752%206.60704%2049.6595%206.66814%2049.581C6.72924%2049.5024%206.80892%2049.4403%206.9%2049.4002C7.31131%2049.369%207.69601%2049.1848%207.97828%2048.884C8.26056%2048.5832%208.41993%2048.1876%208.425%2047.7752C8.42962%2047.6483%208.41272%2047.5215%208.375%2047.4002H9L9.15%2047.0002ZM7.1%2050.9002C7.625%2051.0752%207.85%2051.1502%207.85%2051.3002C7.85%2051.6502%207.35%2051.9252%206.45%2051.9252C5.775%2051.9252%205.45%2051.7752%205.45%2051.4252C5.45%2051.0502%205.8%2050.8002%206.325%2050.6002C6.56712%2050.7189%206.81783%2050.8191%207.075%2050.9002H7.1ZM6.9%2049.1002C6.65%2049.1002%206.575%2048.9002%206.575%2048.6752C6.575%2047.9752%206.925%2047.1252%207.45%2047.1252C7.7%2047.1252%207.775%2047.3252%207.775%2047.5252C7.775%2048.2502%207.425%2049.1002%206.9%2049.1002Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip23_5795_13250)'%3e%3cpath%20d='M3.575%2048.2252C4.05%2048.2252%204.075%2048.4252%203.975%2048.9252H4.25L4.875%2047.2252H4.625C4.375%2047.6252%204.2%2047.9502%203.675%2047.9502H2.65L3.15%2046.5502C3.325%2046.0502%203.4%2045.9502%204.075%2045.9502H4.5C5.15%2045.9502%205.25%2046.1252%205.25%2046.8252H5.5L5.725%2045.6502H1.825L1.75%2045.8752C2.5%2046.0252%202.575%2046.1002%202.25%2047.0752L1.45%2049.1752C1.075%2050.1502%200.95%2050.2252%200.05%2050.3752L0%2050.6252H4.35L5.15%2049.3752H4.85C4.35%2049.8752%203.85%2050.3252%202.85%2050.3252C1.675%2050.3252%201.775%2050.2502%202.175%2049.1752L2.525%2048.2252H3.575ZM4.15%2045.2752L5.25%2044.4752V44.3252H4.5L3.85%2045.3002H4.15V45.2752Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip24_5795_13250)'%3e%3cg%20clip-path='url(%23clip25_5795_13250)'%3e%3cpath%20d='M21.8%2039.95C22.175%2039%2021.725%2038.625%2021.175%2038.625C20.25%2038.625%2019.2%2040.25%2019.2%2041.55C19.2%2042.175%2019.5%2042.5%2019.95%2042.5C20.475%2042.5%2021.025%2042%2021.5%2041.125H21.25C20.95%2041.5%2020.6%2041.775%2020.275%2041.775C19.95%2041.775%2019.775%2041.575%2019.775%2041.125C19.7809%2040.9396%2019.806%2040.7552%2019.85%2040.575L21.8%2039.95ZM20.8%2039.175C21.075%2039.175%2021.3%2039.375%2021.175%2039.825L19.975%2040.15C20.175%2039.6%2020.525%2039.15%2020.825%2039.15L20.8%2039.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cpath%20d='M21.175%2038.1999L22.3%2037.1749V37.0249H21.55L20.875%2038.1999H21.2H21.175Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip26_5795_13250)'%3e%3cpath%20d='M16.975%2039.1501H17.625L16.575%2042.0001C16.5421%2042.0511%2016.5242%2042.1103%2016.5232%2042.171C16.5222%2042.2316%2016.5382%2042.2914%2016.5694%2042.3434C16.6007%2042.3955%2016.6458%2042.4377%2016.6998%2042.4654C16.7538%2042.4931%2016.8145%2042.5051%2016.875%2042.5001C17.625%2042.5001%2018.475%2041.8501%2018.825%2040.9501H18.65C18.3359%2041.3772%2017.8865%2041.6856%2017.375%2041.8251L18.3%2039.1501H19.3L19.425%2038.7501H18.475L18.8%2037.7251H18.45L17.775%2038.7501L16.975%2038.8501V39.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip27_5795_13250)'%3e%3cpath%20d='M16.65%2039.5C16.775%2039.025%2016.7%2038.625%2016.35%2038.625C15.9%2038.625%2015.775%2038.925%2015.35%2039.875V39.325C15.325%2038.95%2015.2%2038.625%2014.85%2038.625C14.475%2038.625%2014.125%2039.25%2013.825%2039.875H14.025C14.2%2039.55%2014.4%2039.375%2014.525%2039.375C14.7%2039.375%2014.775%2039.625%2014.525%2040.225L13.775%2041.925C13.6%2042.25%2013.775%2042.45%2014.075%2042.45C14.1577%2042.4649%2014.243%2042.4472%2014.3129%2042.4006C14.3828%2042.3539%2014.432%2042.2821%2014.45%2042.2L15.2%2040.2C15.4067%2039.9415%2015.6236%2039.6913%2015.85%2039.45H16.65V39.5Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip28_5795_13250)'%3e%3cpath%20d='M13.45%2039.9251C13.825%2038.9751%2013.375%2038.6001%2012.825%2038.6001C11.9%2038.6001%2010.85%2040.2251%2010.85%2041.5251C10.85%2042.1501%2011.15%2042.4751%2011.6%2042.4751C12.125%2042.4751%2012.675%2041.9751%2013.15%2041.1001H12.9C12.6%2041.4751%2012.25%2041.7501%2011.925%2041.7501C11.6%2041.7501%2011.425%2041.5501%2011.425%2041.1001C11.4308%2040.9147%2011.456%2040.7303%2011.5%2040.5501L13.45%2039.9251ZM12.45%2039.1501C12.725%2039.1501%2012.95%2039.3501%2012.825%2039.8001L11.625%2040.1251C11.825%2039.5751%2012.175%2039.1251%2012.475%2039.1251L12.45%2039.1501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip29_5795_13250)'%3e%3cpath%20d='M10.2%2038.6249C9.69998%2038.6249%209.19998%2039.1749%208.74998%2039.8249L9.74998%2037.0999L9.69998%2037.0249L8.44998%2037.1749V37.2749L8.69998%2037.4749C8.92498%2037.6499%208.84998%2037.7999%208.64998%2038.3249L7.54998%2041.2249C7.46796%2041.4023%207.40106%2041.5863%207.34998%2041.7749C7.34998%2042.1249%207.79998%2042.4499%208.22498%2042.4499C9.17498%2042.4499%2010.725%2040.7249%2010.725%2039.3999C10.725%2038.8249%2010.6%2038.5999%2010.2%2038.5999V38.6249ZM8.54998%2041.8999C8.34998%2041.8999%208.07498%2041.7249%208.07498%2041.5749C8.12768%2041.3868%208.19454%2041.2029%208.27498%2041.0249L8.59998%2040.1999C8.92498%2039.7749%209.44998%2039.3499%209.74998%2039.3499C9.92498%2039.3499%2010.05%2039.4499%2010.05%2039.7249C10.05%2040.4999%209.32498%2041.8999%208.54998%2041.8999Z'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip30_5795_13250)'%3e%3cpath%20d='M7.05003%2039C7.12503%2038.75%206.95003%2038.6%206.80003%2038.6C6.25003%2038.6%205.55003%2039.125%205.30003%2039.85H5.47503C5.65263%2039.5632%205.92784%2039.3501%206.25003%2039.25L5.17503%2042.075C5.15343%2042.1173%205.14316%2042.1645%205.14522%2042.2119C5.14727%2042.2594%205.16158%2042.3055%205.18676%2042.3458C5.21193%2042.3861%205.24711%2042.4192%205.28887%2042.4418C5.33063%2042.4644%205.37754%2042.4759%205.42503%2042.475C5.97503%2042.475%206.60003%2041.975%206.87503%2041.225H6.65003C6.4878%2041.526%206.22102%2041.7572%205.90003%2041.875L7.05003%2039ZM7.15003%2037.925C7.20913%2037.925%207.26764%2037.9134%207.32224%2037.8907C7.37684%2037.8681%207.42645%2037.835%207.46823%2037.7932C7.51002%2037.7514%207.54316%2037.7018%207.56578%2037.6472C7.58839%2037.5926%207.60003%2037.5341%207.60003%2037.475C7.60344%2037.4138%207.59432%2037.3526%207.57323%2037.2951C7.55214%2037.2376%207.51954%2037.185%207.47741%2037.1405C7.43528%2037.096%207.38451%2037.0606%207.32822%2037.0365C7.27193%2037.0123%207.21129%2036.9999%207.15003%2037C7.03069%2037%206.91623%2037.0474%206.83184%2037.1318C6.74744%2037.2162%206.70003%2037.3307%206.70003%2037.45C6.70003%2037.5693%206.74744%2037.6838%206.83184%2037.7682C6.91623%2037.8526%207.03069%2037.9%207.15003%2037.9'%20fill='%23161616'%20/%3e%3c/g%3e%3cg%20clip-path='url(%23clip31_5795_13250)'%3e%3cpath%20d='M4.4%2037.3501H1.825L1.75%2037.5751C2.5%2037.7251%202.575%2037.8001%202.25%2038.7751L1.45%2040.9001C1.075%2041.8751%200.95%2041.9501%200.075%2042.1001L0%2042.3501H3.925L4.8%2040.8501H4.5C4%2041.3501%203.45%2042.0501%202.575%2042.0501C1.9%2042.0501%201.825%2041.9251%202.175%2040.9251L2.95%2038.8001C3.3%2037.8251%203.45%2037.7501%204.325%2037.6001L4.4%2037.3501Z'%20fill='%23161616'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5795_13250'%20x1='0'%20y1='6'%20x2='33'%20y2='6'%20gradientUnits='userSpaceOnUse'%20%3e%3cstop%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23000091'%20/%3e%3cstop%20offset='0.5'%20stop-color='%23E1000F'%20/%3e%3cstop%20offset='1'%20stop-color='%23E1000F'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_5795_13250'%3e%3crect%20width='33'%20height='12'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_5795_13250'%3e%3crect%20width='33'%20height='13.5'%20fill='white'%20transform='translate(0%20-0.75)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2_5795_13250'%3e%3crect%20width='108.88'%20height='26.5'%20fill='white'%20transform='translate(0%2033)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3_5795_13250'%3e%3crect%20width='63'%20height='45'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip4_5795_13250'%3e%3crect%20width='31.5'%20height='22.5'%20fill='white'%20transform='translate(0%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip5_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(28.175%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip6_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(28.175%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip7_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(25.55%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip8_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(23.4%2053.5249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip9_5795_13250'%3e%3crect%20width='3.7'%20height='3.875'%20fill='white'%20transform='translate(19.3%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip10_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(16.425%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip11_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(13.575%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip12_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(10.925%2054.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip13_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(7.22498%2054.9502)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip14_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(4.90002%2055.125)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip15_5795_13250'%3e%3crect%20width='5.475'%20height='4.95'%20fill='white'%20transform='translate(0%2053.8999)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip16_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.325%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip17_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.325%2046.875)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip18_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.7%2046)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip19_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(14.55%2045.25)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip20_5795_13250'%3e%3crect%20width='2.525'%20height='5.475'%20fill='white'%20transform='translate(12.35%2045.2749)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip21_5795_13250'%3e%3crect%20width='3.675'%20height='4.05'%20fill='white'%20transform='translate(8.72498%2046.7002)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip22_5795_13250'%3e%3crect%20width='4.5'%20height='5.5'%20fill='white'%20transform='translate(4.65002%2046.8501)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip23_5795_13250'%3e%3crect%20width='5.75'%20height='6.275'%20fill='white'%20transform='translate(0%2044.3252)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip24_5795_13250'%3e%3crect%20width='3.1'%20height='5.45'%20fill='white'%20transform='translate(19.2%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip25_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(19.2%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip26_5795_13250'%3e%3crect%20width='2.875'%20height='4.75'%20fill='white'%20transform='translate(16.55%2037.7251)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip27_5795_13250'%3e%3crect%20width='3'%20height='3.875'%20fill='white'%20transform='translate(13.7%2038.625)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip28_5795_13250'%3e%3crect%20width='2.75'%20height='3.875'%20fill='white'%20transform='translate(10.85%2038.6001)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip29_5795_13250'%3e%3crect%20width='3.4'%20height='5.45'%20fill='white'%20transform='translate(7.34998%2037.0249)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip30_5795_13250'%3e%3crect%20width='2.45'%20height='5.475'%20fill='white'%20transform='translate(5.15002%2037)'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip31_5795_13250'%3e%3crect%20width='4.8'%20height='4.975'%20fill='white'%20transform='translate(0%2037.3501)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",gb=()=>{const{t}=se.useCunningham();return w.jsxs("footer",{className:"c__footer",children:[w.jsx("div",{className:"c__footer__stripe"}),w.jsxs("div",{className:"c__footer__content",children:[w.jsxs("div",{className:"c__footer__content__top",children:[w.jsx("div",{children:w.jsx("div",{className:"c__footer__content__top__logo",children:w.jsx("img",{className:"c__footer__logo",alt:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:pb})})}),w.jsx("div",{className:"c__footer__content__top__links",children:[{label:"legifrance.gouv.fr",href:"https://legifrance.gouv.fr/"},{label:"info.gouv.fr",href:"https://info.gouv.fr/"},{label:"service-public.fr",href:"https://service-public.fr/"},{label:"data.gouv.fr",href:"https://data.gouv.fr/"}].map(({label:e,href:n})=>w.jsxs("a",{href:n,target:"_blank",children:[w.jsx("span",{children:e}),w.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:Mu})]},e))})]}),w.jsx("div",{className:"c__footer__content__middle",children:[{label:t("components.footer.links.legal"),href:"/legal-notice"},{label:t("components.footer.links.personal_data"),href:"/personal-data-cookies"},{label:t("components.footer.links.accessibility"),href:"/accessibility"}].map(({label:e,href:n})=>w.jsx("a",{href:n,children:w.jsx("span",{children:e})},e))}),w.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",w.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[w.jsx("span",{children:t("components.footer.license")}),w.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:Mu})]})]})]})]})},vb=t=>w.jsx(ob,{...t,className:"c__filter",children:w.jsx(mb,{...t})}),mb=t=>{const e=c.useContext(b2),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return w.jsxs(w.Fragment,{children:[w.jsxs(v1,{className:Te("c__filter__button",{"c__filter__button--active":!!n}),children:[w.jsx(Vg,{className:"c__filter__label",children:n?w.jsxs(w.Fragment,{children:[t.label," : ",n.label]}):w.jsx(w.Fragment,{children:t.label})}),w.jsx("span",{"aria-hidden":"true",className:Te("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),w.jsx(g2,{className:"c__dropdown-menu",children:w.jsx(F1,{children:t.options.map(r=>w.jsx(z1,{id:r.value,className:"c__dropdown-menu-item",children:r.render?r.render():r.label},r.value))})})]})},bb=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>w.jsx("div",{className:"c__hero",children:w.jsxs("div",{className:"c__hero__display",children:[w.jsxs("div",{className:"c__hero__display__captions",children:[t,w.jsx("h2",{children:r}),w.jsx("span",{children:i}),e||w.jsx(hd,{})]}),w.jsx("img",{src:n,alt:""})]})}),yb=({children:t})=>w.jsx("div",{className:"c__home-gutter",children:t}),y2=(t,e,n=void 0)=>{const r=Array.isArray(e)?e:e.replace(/(\[(\d)\])/g,".$2").replace(/^\./,"").split(".");if(!r.length||r[0]===void 0)return t;const i=r[0];return typeof t!="object"||t===null||!(i in t)||t[i]===void 0?n:y2(t[i],r.slice(1),n)},$b={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},Sb={homepageLinkTitle:{withoutService:"Retour à l'accueil",withService:"Retour à l'accueil - {serviceName}"},license:"Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous {license}",licenseEtalab:"licence etalab-2.0",links:{a11y:{perfect:"Accessibilité : conforme",partial:"Accessibilité : partiellement conforme",bad:"Accessibilité : non conforme"},privacy:"Données personnelles",sitemap:"Plan du site",terms:"Mentions légales"}},wb={label:"Les services de La Suite numérique"},Cb={homepageLinkTitle:"Accueil - {serviceName}"},Eb={newWindow:"{title} - nouvelle fenêtre"},xb={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},$2={email:$b,footer:Sb,gaufre:wb,header:Cb,links:Eb,proconnect:xb},Pb=c.createContext($2);function Tb(){const t=c.useContext(Pb)||$2;return{t:function(e,n={}){const r=y2(t,e);if(!r)return console.warn(`Translation for key "${e}" not found`),e;if(n){const i=[];if(Object.keys(n).forEach(l=>{typeof n[l]!="string"&&i.push(l)}),!i.length)return r.replace(/{(\w+)}/g,(l,a)=>n[a]);const o=r.split(/{(.*?)}/);return w.jsx(w.Fragment,{children:o.map((l,a)=>l in n?w.jsx(c.Fragment,{children:n[l]},a):l)})}return r}}}const Db={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},Ib=({variant:t})=>{const{t:e}=Tb(),n=t?Db[t]:"";return w.jsx("button",{type:"button",className:`lasuite-gaufre-btn ${n} lasuite-gaufre-btn--vanilla js-lasuite-gaufre-btn`,title:e("gaufre.label"),children:e("gaufre.label")})},Ob=()=>w.jsxs(w.Fragment,{children:[w.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),w.jsx(Ib,{variant:"small"})]}),S2=({languages:t})=>{const{isOpen:e,setIsOpen:n}=Yn();return w.jsx(Ar,{options:t,isOpen:e,onOpenChange:n,children:w.jsxs(se.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[w.jsx("span",{className:"material-icons",children:"translate"}),w.jsx("span",{className:"c__language-picker__label",children:"Français"}),w.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},w2=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=se.useCunningham();return w.jsxs("div",{className:"c__header",children:[w.jsx("div",{className:"c__header__toggle-menu",children:w.jsx(se.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:w.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),w.jsx("div",{className:"c__header__left",children:t}),w.jsxs("div",{className:"c__header__right",children:[n&&w.jsx("div",{className:"c__header__right__language-picker",children:w.jsx(S2,{languages:n})}),e]})]})},Xl={themes:{default:{theme:{colors:{"primary-text":"#000091","primary-050":"#F5F5FE","primary-100":"#ECECFE","primary-150":"#F4F4FD","primary-200":"#E3E3FD","primary-300":"#CACAFB","primary-400":"#8585F6","primary-500":"#6A6AF4","primary-600":"#313178","primary-700":"#272747","primary-800":"#000091","primary-900":"#21213F","secondary-text":"#fff","secondary-100":"#fee9ea","secondary-200":"#fedfdf","secondary-300":"#fdbfbf","secondary-400":"#e1020f","secondary-500":"#c91a1f","secondary-600":"#5e2b2b","secondary-700":"#3b2424","secondary-800":"#341f1f","secondary-900":"#2b1919","greyscale-text":"#303C4B","greyscale-000":"#fff","greyscale-050":"#F6F6F6","greyscale-100":"#eee","greyscale-200":"#E5E5E5","greyscale-250":"#ddd","greyscale-300":"#CECECE","greyscale-350":"#ddd","greyscale-400":"#929292","greyscale-500":"#7C7C7C","greyscale-600":"#666666","greyscale-700":"#3A3A3A","greyscale-750":"#353535","greyscale-800":"#2A2A2A","greyscale-900":"#242424","greyscale-950":"#1E1E1E","greyscale-1000":"#161616","success-text":"#1f8d49","success-100":"#dffee6","success-200":"#b8fec9","success-300":"#88fdaa","success-400":"#3bea7e","success-500":"#1f8d49","success-600":"#18753c","success-700":"#204129","success-800":"#1e2e22","success-900":"#19281d","info-text":"#0078f3","info-100":"#E8EDFF","info-200":"#DDE5FF","info-300":"#BCCDFF","info-400":"#518FFF","info-500":"#0078F3","info-600":"#0063CB","info-700":"#273961","info-800":"#222A3F","info-900":"#1D2437","warning-text":"#d64d00","warning-100":"#fff4f3","warning-200":"#ffe9e6","warning-300":"#ffded9","warning-400":"#ffbeb4","warning-500":"#d64d00","warning-600":"#b34000","warning-700":"#5e2c21","warning-800":"#3e241e","warning-900":"#361e19","danger-text":"#FFF","danger-050":"#FFF4F4","danger-100":"#FFE9E9","danger-200":"#FFDDDD","danger-300":"#FFBDBD","danger-400":"#FF5655","danger-500":"#F60700","danger-600":"#CE0500","danger-700":"#642626","danger-800":"#412121","danger-900":"#391C1C","blue-500":"#417DC4","brown-500":"#BD987A","cyan-500":"#009099","gold-500":"#C3992A","green-500":"#00A95F","olive-500":"#68A532","orange-500":"#E4794A","purple-500":"#A558A0","red-500":"#E1000F","yellow-500":"#B7A73F","rose-500":"#E18B76"},font:{sizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",ml:"0.938rem",xl:"1.25rem",t:"0.6875rem",s:"0.75rem",h1:"2rem",h2:"1.75rem",h3:"1.5rem",h4:"1.375rem",h5:"1.25rem",h6:"1.125rem","xl-alt":"5rem","lg-alt":"4.5rem","md-alt":"4rem","sm-alt":"3.5rem","xs-alt":"3rem"},weights:{thin:100,extrabold:800,black:900},families:{accent:"Marianne",base:"Marianne"}},spacings:{0:"0",none:"0",auto:"auto",bx:"2.2rem",full:"100%","4xs":"0.125rem","3xs":"0.25rem","2xs":"0.375rem",xs:"0.5rem",sm:"0.75rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem",xxl:"3rem",xxxl:"3.5rem","4xl":"4rem","5xl":"4.5rem","6xl":"6rem","7xl":"7.5rem"},breakpoints:{xxs:"320px",xs:"480px",mobile:"768px",tablet:"1024px"}},components:{modal:{"width-small":"342px"},tooltip:{padding:"4px 8px","background-color":"var(--c--theme--colors--greyscale-1000)"},button:{"medium-height":"40px","medium-text-height":"40px","border-radius":"4px","small-height":"26px",primary:{"background--color":"var(--c--theme--colors--primary-text)","background--color-hover":"#1212ff","background--color-active":"#2323ff","background--color-disabled":"var(--c--theme--colors--greyscale-100)",color:"#fff","color-hover":"#fff","color-active":"#fff","color-focus-visible":"#fff",disabled:"var(--c--theme--colors--greyscale-500)"},"primary-text":{"background--color":"var(--c--theme--colors--primary-text)","background--color-hover":"var(--c--theme--colors--greyscale-100)","background--color-active":"var(--c--theme--colors--primary-100)","background--color-focus-visible":"#fff","background--color-disabled":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-800)","color-hover":"var(--c--theme--colors--primary-800)",disabled:"var(--c--theme--colors--greyscale-400)"},secondary:{"background--color-hover":"#F6F6F6","background--color-active":"#EDEDED","background--color-focus-visible":"var(--c--theme--colors--greyscale-000)","background--disabled":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-800)","border--color":"var(--c--theme--colors--greyscale-300)","border--color-hover":"var(--c--theme--colors--greyscale-300)","border--color-disabled":"var(--c--theme--colors--greyscale-300)",disabled:"var(--c--theme--colors--greyscale-400)"},tertiary:{"background--color":"var(--c--theme--colors--primary-100)","background--color-focus-visible":"var(--c--theme--colors--primary-100)","background--color-hover":"var(--c--theme--colors--primary-300)","background--color-active":"var(--c--theme--colors--primary-300)","background--disabled":"var(--c--theme--colors--primary-050)",color:"var(--c--theme--colors--primary-800)",disabled:"var(--c--theme--colors--primary-300)"},"tertiary-text":{"background--color-hover":"var(--c--theme--colors--greyscale-100)","color-hover":"var(--c--theme--colors--primary-text)",color:"var(--c--theme--colors--primary-600)"},danger:{"color-hover":"white","background--color":"var(--c--theme--colors--danger-600)","background--color-hover":"#FF2725","background--color-focus-visible":"var(--c--theme--colors--danger-600)","background--color-disabled":"var(--c--theme--colors--greyscale-100)","color-disabled":"var(--c--theme--colors--greyscale-400)"}},datagrid:{"header--color":"ref(theme.colors.greyscale-600)","header--size":"12px","header--weight":"500","body--background-color-hover":"ref(theme.colors.greyscale-100)"},"forms-checkbox":{"border-radius":"4px","border-color":"var(--c--theme--colors--primary-800)","background-color--hover":"var(--c--theme--colors--greyscale-100)","border--color-disabled":"var(--c--theme--colors--greyscale-200)","border--color":"var(--c--theme--colors--primary-800)","background--disabled":"var(--c--theme--colors--greyscale-200)","background--enable":"var(--c--theme--colors--primary-800)","check--disabled":"var(--c--theme--colors--greyscale-300)","check--enable":"var(--c--theme--colors--greyscale-000)",color:"var(--c--theme--colors--primary-text)","label--color":"var(--c--theme--colors--greyscale-1000)","label--size":"var(--c--theme--font--sizes--sm)","label--weight":"500","text--color":"var(--c--theme--colors--greyscale-600)","text--size":"var(--c--theme--font--sizes--s)","text--weight":"400","text--color-disabled":"var(--c--theme--colors--greyscale-300)"},"forms-labelledbox":{"label-color--small":"ref(theme.colors.greyscale-950)","label-color--small--disabled":"ref(theme.colors.greyscale-300)","label-color--big":"ref(theme.colors.greyscale-950)","label-color--big--disabled":"ref(theme.colors.greyscale-300)"},"forms-radio":{"border-color":"var(--c--theme--colors--primary-800)","background-color":"var(--c--theme--colors--greyscale-000)","accent-color":"var(--c--theme--colors--primary-800)","accent-color-disabled":"var(--c--theme--colors--greyscale-300)"},"forms-switch":{"border--color-disabled":"var(--c--theme--colors--greyscale-300)","border--color":"var(--c--theme--colors--primary-800)","handle-background-color":"white","handle-background-color--disabled":"var(--c--theme--colors--greyscale-000)","rail-background-color--disabled":"var(--c--theme--colors--greyscale-000)","accent-color":"var(--c--theme--colors--primary-800)"},"forms-textarea":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-input":{"label-color--focus":"ref(theme.colors.greyscale-1000)","border-radius":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","value-color--disabled":"ref(theme.colors.greyscale-300)","font-size":"14px"},"forms-select":{"label-color--focus":"ref(theme.colors.greyscale-1000)","item-font-size":"14px","border-radius":"4px","border-radius-hover":"4px","border-color":"ref(theme.colors.greyscale-400)","box-shadow--color--hover":"ref(theme.colors.greyscale-400)","box-shadow--color--focus":"ref(theme.colors.primary-800)","value-color":"ref(theme.colors.greyscale-950)","font-size":"14px"}}}}},nr=()=>{const[t,e]=c.useState(window.innerWidth),n=parseInt(Xl.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(Xl.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};c.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]);const o=t<=n,l=t<=r,a=t>r;return{isMobile:o,isTablet:l,isDesktop:a}},C2=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=nr();return n?w.jsx("div",{className:"c__left-panel",children:t}):w.jsx("div",{className:Te("c__left-panel__mobile",{open:e}),children:t})},{createElement:Xn,createContext:_b,createRef:n6,forwardRef:E2,useCallback:De,useContext:x2,useEffect:Wt,useImperativeHandle:P2,useLayoutEffect:kb,useMemo:Lb,useRef:Ie,useState:Hn}=k,Nu=k[`useId${Math.random()}`.slice(0,5)],Mb=kb,so=_b(null);so.displayName="PanelGroupContext";const Gt=Mb,Nb=typeof Nu=="function"?Nu:()=>null;let Rb=0;function Ua(t=null){const e=Nb(),n=Ie(t||e||null);return n.current===null&&(n.current=""+Rb++),t??n.current}function T2({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:u,onExpand:d,onResize:f,order:v,style:g,tagName:$="div",...p}){const b=x2(so);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:C,getPanelSize:S,getPanelStyle:D,groupId:x,isPanelCollapsed:T,reevaluatePanelConstraints:I,registerPanel:h,resizePanel:L,unregisterPanel:A}=b,P=Ua(l),F=Ie({callbacks:{onCollapse:u,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:P,idIsFromProps:l!==void 0,order:v});Ie({didLogMissingDefaultSizeWarning:!1}),Gt(()=>{const{callbacks:E,constraints:K}=F.current,B={...K};F.current.id=P,F.current.idIsFromProps=l!==void 0,F.current.order=v,E.onCollapse=u,E.onExpand=d,E.onResize=f,K.collapsedSize=n,K.collapsible=r,K.defaultSize=i,K.maxSize=a,K.minSize=s,(B.collapsedSize!==K.collapsedSize||B.collapsible!==K.collapsible||B.maxSize!==K.maxSize||B.minSize!==K.minSize)&&I(F.current,B)}),Gt(()=>{const E=F.current;return h(E),()=>{A(E)}},[v,P,h,A]),P2(o,()=>({collapse:()=>{m(F.current)},expand:E=>{C(F.current,E)},getId(){return P},getSize(){return S(F.current)},isCollapsed(){return T(F.current)},isExpanded(){return!T(F.current)},resize:E=>{L(F.current,E)}}),[m,C,S,T,P,L]);const y=D(F.current,i);return Xn($,{...p,children:t,className:e,id:l,style:{...y,...g},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":x,"data-panel-id":P,"data-panel-size":parseFloat(""+y.flexGrow).toFixed(1)})}const Zl=E2((t,e)=>Xn(T2,{...t,forwardedRef:e}));T2.displayName="Panel";Zl.displayName="forwardRef(Panel)";let Jl=null,Ut=null;function Ab(t,e){if(e){const n=(e&k2)!==0,r=(e&L2)!==0,i=(e&M2)!==0,o=(e&N2)!==0;if(n)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Kb(){Ut!==null&&(document.head.removeChild(Ut),Jl=null,Ut=null)}function Go(t,e){const n=Ab(t,e);Jl!==n&&(Jl=n,Ut===null&&(Ut=document.createElement("style"),document.head.appendChild(Ut)),Ut.innerHTML=`*{cursor: ${n}!important;}`)}function D2(t){return t.type==="keydown"}function I2(t){return t.type.startsWith("pointer")}function O2(t){return t.type.startsWith("mouse")}function uo(t){if(I2(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(O2(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Fb(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function jb(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Hb(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:Ku(t),b:Ku(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;te(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Au(Ru(n.a)),b:Au(Ru(n.b))};if(i.a===i.b){const o=r.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const zb=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Bb(t){var e;const n=getComputedStyle((e=_2(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Vb(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Bb(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||zb.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Ru(t){let e=t.length;for(;e--;){const n=t[e];if(te(n,"Missing node"),Vb(n))return n}return null}function Au(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Ku(t){const e=[];for(;t;)e.push(t),t=_2(t);return e}function _2(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const k2=1,L2=2,M2=4,N2=8,Ub=Fb()==="coarse";let Xe=[],zn=!1,Dt=new Map,co=new Map;const Ir=new Set;function Wb(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=Dt.get(l))!==null&&o!==void 0?o:0;return Dt.set(l,s+1),Ir.add(a),ji(),function(){var d;co.delete(t),Ir.delete(a);const f=(d=Dt.get(l))!==null&&d!==void 0?d:1;if(Dt.set(l,f-1),ji(),f===1&&Dt.delete(l),Xe.includes(a)){const v=Xe.indexOf(a);v>=0&&Xe.splice(v,1),Ga(),i("up",!0,null)}}}function Fu(t){const{target:e}=t,{x:n,y:r}=uo(t);zn=!0,Wa({target:e,x:n,y:r}),ji(),Xe.length>0&&(Hi("down",t),t.preventDefault(),t.stopPropagation())}function cr(t){const{x:e,y:n}=uo(t);if(zn&&t.buttons===0&&(zn=!1,Hi("up",t)),!zn){const{target:r}=t;Wa({target:r,x:e,y:n})}Hi("move",t),Ga(),Xe.length>0&&t.preventDefault()}function mn(t){const{target:e}=t,{x:n,y:r}=uo(t);co.clear(),zn=!1,Xe.length>0&&t.preventDefault(),Hi("up",t),Wa({target:e,x:n,y:r}),Ga(),ji()}function Wa({target:t,x:e,y:n}){Xe.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Ir.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:u,right:d,top:f}=a,v=Ub?l.coarse:l.fine;if(e>=u-v&&e<=d+v&&n>=f-v&&n<=s+v){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&Hb(r,o)>0){let $=r,p=!1;for(;$&&!$.contains(o);){if(jb($.getBoundingClientRect(),a)){p=!0;break}$=$.parentElement}if(p)return}Xe.push(i)}})}function qo(t,e){co.set(t,e)}function Ga(){let t=!1,e=!1;Xe.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;co.forEach(r=>{n|=r}),t&&e?Go("intersection",n):t?Go("horizontal",n):e?Go("vertical",n):Kb()}function ji(){Dt.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",mn),n.removeEventListener("pointerdown",Fu),n.removeEventListener("pointerleave",cr),n.removeEventListener("pointermove",cr)}),window.removeEventListener("pointerup",mn),window.removeEventListener("pointercancel",mn),Ir.size>0&&(zn?(Xe.length>0&&Dt.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",mn),n.addEventListener("pointerleave",cr),n.addEventListener("pointermove",cr))}),window.addEventListener("pointerup",mn),window.addEventListener("pointercancel",mn)):Dt.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",Fu,{capture:!0}),n.addEventListener("pointermove",cr))}))}function Hi(t,e){Ir.forEach(n=>{const{setResizeHandlerState:r}=n,i=Xe.includes(n);r(t,i,e)})}function Gb(){const[t,e]=Hn(0);return De(()=>e(n=>n+1),[])}function te(t,e){if(!t)throw console.error(e),Error(e)}const qa=10;function nn(t,e,n=qa){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function dt(t,e,n=qa){return nn(t,e,n)===0}function ke(t,e,n){return nn(t,e,n)===0}function qb(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const i=t[r],o=e[r];if(!ke(i,o,n))return!1}return!0}function Kn({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];te(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(nn(n,a)<0)if(o){const s=(i+a)/2;nn(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(qa)),n}function mr({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(ke(t,0))return e;const l=[...e],[a,s]=r;te(a!=null,"Invalid first pivot index"),te(s!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const f=t<0?s:a,v=n[f];te(v,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:$,minSize:p=0}=v;if($){const b=e[f];if(te(b!=null,`Previous layout not found for panel index ${f}`),ke(b,g)){const m=p-b;nn(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,v=n[f];te(v,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:$,minSize:p=0}=v;if($){const b=e[f];if(te(b!=null,`Previous layout not found for panel index ${f}`),ke(b,p)){const m=b-g;nn(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let v=t<0?s:a,g=0;for(;;){const p=e[v];te(p!=null,`Previous layout not found for panel index ${v}`);const m=Kn({panelConstraints:n,panelIndex:v,size:100})-p;if(g+=m,v+=f,v<0||v>=n.length)break}const $=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-$:$}{let v=t<0?a:s;for(;v>=0&&v<n.length;){const g=Math.abs(t)-Math.abs(u),$=e[v];te($!=null,`Previous layout not found for panel index ${v}`);const p=$-g,b=Kn({panelConstraints:n,panelIndex:v,size:p});if(!ke($,b)&&(u+=$-b,l[v]=b,u.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?v--:v++}}if(qb(i,l))return i;{const f=t<0?s:a,v=e[f];te(v!=null,`Previous layout not found for panel index ${f}`);const g=v+u,$=Kn({panelConstraints:n,panelIndex:f,size:g});if(l[f]=$,!ke($,g)){let p=g-$,m=t<0?s:a;for(;m>=0&&m<n.length;){const C=l[m];te(C!=null,`Previous layout not found for panel index ${m}`);const S=C+p,D=Kn({panelConstraints:n,panelIndex:m,size:S});if(ke(C,D)||(p-=D-C,l[m]=D),ke(p,0))break;t>0?m--:m++}}}const d=l.reduce((f,v)=>v+f,0);return ke(d,100)?l:i}function Yb({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];te(a!=null,"No pivot index found"),e.forEach((f,v)=>{const{constraints:g}=f,{maxSize:$=100,minSize:p=0}=g;v===a?(r=p,i=$):(o+=p,l+=$)});const s=Math.min(i,100-o),u=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:u,valueNow:d}}function Or(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function R2(t,e,n=document){const i=Or(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function A2(t,e,n){const r=R2(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function K2(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function fo(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function Xb(t,e,n,r=document){var i,o,l,a;const s=fo(e,r),u=Or(t,r),d=s?u.indexOf(s):-1,f=(i=(o=n[d])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,v=(l=(a=n[d+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[f,v]}function Zb({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){Ie({didWarnAboutMissingResizeHandle:!1}),Gt(()=>{if(!o)return;const a=Or(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:u,valueMin:d,valueNow:f}=Yb({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),v=a[s];if(v!=null){const g=i[s];te(g,`No panel data found for index "${s}"`),v.setAttribute("aria-controls",g.id),v.setAttribute("aria-valuemax",""+Math.round(u)),v.setAttribute("aria-valuemin",""+Math.round(d)),v.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,u)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Wt(()=>{if(!o)return;const a=e.current;te(a,"Eager values not found");const{panelDataArray:s}=a,u=K2(n,o);te(u!=null,`No group found for id "${n}"`);const d=Or(n,o);te(d,`No resize handles found for group id "${n}"`);const f=d.map(v=>{const g=v.getAttribute("data-panel-resize-handle-id");te(g,"Resize handle element has no handle id attribute");const[$,p]=Xb(n,g,s,o);if($==null||p==null)return()=>{};const b=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const C=s.findIndex(S=>S.id===$);if(C>=0){const S=s[C];te(S,`No panel data found for index ${C}`);const D=r[C],{collapsedSize:x=0,collapsible:T,minSize:I=0}=S.constraints;if(D!=null&&T){const h=mr({delta:ke(D,x)?I-x:x-D,initialLayout:r,panelConstraints:s.map(L=>L.constraints),pivotIndices:A2(n,g,o),prevLayout:r,trigger:"keyboard"});r!==h&&l(h)}}break}}};return v.addEventListener("keydown",b),()=>{v.removeEventListener("keydown",b)}});return()=>{f.forEach(v=>v())}},[o,t,e,n,r,i,l])}function ju(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function F2(t,e){const n=t==="horizontal",{x:r,y:i}=uo(e);return n?r:i}function Jb(t,e,n,r,i){const o=n==="horizontal",l=fo(e,i);te(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");te(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const u=F2(n,t),d=K2(a,i);te(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),v=o?f.width:f.height;return(u-s)/v*100}function Qb(t,e,n,r,i,o){if(D2(t)){const l=n==="horizontal";let a=0;t.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(t.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:Jb(t,e,n,r,o)}function ey({panelDataArray:t}){const e=Array(t.length),n=t.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<t.length;o++){const l=n[o];te(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<t.length;o++){const l=n[o];te(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,u=i/s;r++,e[o]=u,i-=u}return e}function bn(t,e,n){e.forEach((r,i)=>{const o=t[i];te(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:u=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:v,onExpand:g,onResize:$}=l;$&&$(r,f),d&&(v||g)&&(g&&(f==null||dt(f,u))&&!dt(r,u)&&g(),v&&(f==null||!dt(f,u))&&dt(r,u)&&v())}})}function ri(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function ty({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:i,precision:o=3}){const l=n[i];let a;return l==null?a=t!=null?t.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function ny(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function Hu(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function j2(t){return`react-resizable-panels:${t}`}function H2(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function z2(t,e){try{const n=j2(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function ry(t,e,n){var r,i;const o=(r=z2(t,n))!==null&&r!==void 0?r:{},l=H2(e);return(i=o[l])!==null&&i!==void 0?i:null}function iy(t,e,n,r,i){var o;const l=j2(t),a=H2(e),s=(o=z2(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(u){console.error(u)}}function zu({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((o,l)=>o+l,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(o=>`${o}%`).join(", ")}`);if(!ke(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=100/r*l;n[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=Kn({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!ke(i,0))for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=l+i,s=Kn({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,ke(i,0)))break}return n}const oy=100,br={getItem:t=>(Hu(br),br.getItem(t)),setItem:(t,e)=>{Hu(br),br.setItem(t,e)}},Bu={};function B2({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=br,style:u,tagName:d="div",...f}){const v=Ua(o),g=Ie(null),[$,p]=Hn(null),[b,m]=Hn([]),C=Gb(),S=Ie({}),D=Ie(new Map),x=Ie(0),T=Ie({autoSaveId:t,direction:r,dragState:$,id:v,keyboardResizeBy:a,onLayout:l,storage:s}),I=Ie({layout:b,panelDataArray:[],panelDataArrayChanged:!1});Ie({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),P2(i,()=>({getId:()=>T.current.id,getLayout:()=>{const{layout:M}=I.current;return M},setLayout:M=>{const{onLayout:z}=T.current,{layout:j,panelDataArray:W}=I.current,G=zu({layout:M,panelConstraints:W.map(R=>R.constraints)});ju(j,G)||(m(G),I.current.layout=G,z&&z(G),bn(W,G,S.current))}}),[]),Gt(()=>{T.current.autoSaveId=t,T.current.direction=r,T.current.dragState=$,T.current.id=v,T.current.onLayout=l,T.current.storage=s}),Zb({committedValuesRef:T,eagerValuesRef:I,groupId:v,layout:b,panelDataArray:I.current.panelDataArray,setLayout:m,panelGroupElement:g.current}),Wt(()=>{const{panelDataArray:M}=I.current;if(t){if(b.length===0||b.length!==M.length)return;let z=Bu[t];z==null&&(z=ny(iy,oy),Bu[t]=z);const j=[...M],W=new Map(D.current);z(t,j,W,b,s)}},[t,b,s]),Wt(()=>{});const h=De(M=>{const{onLayout:z}=T.current,{layout:j,panelDataArray:W}=I.current;if(M.constraints.collapsible){const G=W.map(de=>de.constraints),{collapsedSize:R=0,panelSize:Z,pivotIndices:J}=Kt(W,M,j);if(te(Z!=null,`Panel size not found for panel "${M.id}"`),!dt(Z,R)){D.current.set(M.id,Z);const ce=Ln(W,M)===W.length-1?Z-R:R-Z,oe=mr({delta:ce,initialLayout:j,panelConstraints:G,pivotIndices:J,prevLayout:j,trigger:"imperative-api"});ri(j,oe)||(m(oe),I.current.layout=oe,z&&z(oe),bn(W,oe,S.current))}}},[]),L=De((M,z)=>{const{onLayout:j}=T.current,{layout:W,panelDataArray:G}=I.current;if(M.constraints.collapsible){const R=G.map(me=>me.constraints),{collapsedSize:Z=0,panelSize:J=0,minSize:de=0,pivotIndices:ce}=Kt(G,M,W),oe=z??de;if(dt(J,Z)){const me=D.current.get(M.id),re=me!=null&&me>=oe?me:oe,yt=Ln(G,M)===G.length-1?J-re:re-J,be=mr({delta:yt,initialLayout:W,panelConstraints:R,pivotIndices:ce,prevLayout:W,trigger:"imperative-api"});ri(W,be)||(m(be),I.current.layout=be,j&&j(be),bn(G,be,S.current))}}},[]),A=De(M=>{const{layout:z,panelDataArray:j}=I.current,{panelSize:W}=Kt(j,M,z);return te(W!=null,`Panel size not found for panel "${M.id}"`),W},[]),P=De((M,z)=>{const{panelDataArray:j}=I.current,W=Ln(j,M);return ty({defaultSize:z,dragState:$,layout:b,panelData:j,panelIndex:W})},[$,b]),F=De(M=>{const{layout:z,panelDataArray:j}=I.current,{collapsedSize:W=0,collapsible:G,panelSize:R}=Kt(j,M,z);return te(R!=null,`Panel size not found for panel "${M.id}"`),G===!0&&dt(R,W)},[]),y=De(M=>{const{layout:z,panelDataArray:j}=I.current,{collapsedSize:W=0,collapsible:G,panelSize:R}=Kt(j,M,z);return te(R!=null,`Panel size not found for panel "${M.id}"`),!G||nn(R,W)>0},[]),E=De(M=>{const{panelDataArray:z}=I.current;z.push(M),z.sort((j,W)=>{const G=j.order,R=W.order;return G==null&&R==null?0:G==null?-1:R==null?1:G-R}),I.current.panelDataArrayChanged=!0,C()},[C]);Gt(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:M,onLayout:z,storage:j}=T.current,{layout:W,panelDataArray:G}=I.current;let R=null;if(M){const J=ry(M,G,j);J&&(D.current=new Map(Object.entries(J.expandToSizes)),R=J.layout)}R==null&&(R=ey({panelDataArray:G}));const Z=zu({layout:R,panelConstraints:G.map(J=>J.constraints)});ju(W,Z)||(m(Z),I.current.layout=Z,z&&z(Z),bn(G,Z,S.current))}}),Gt(()=>{const M=I.current;return()=>{M.layout=[]}},[]);const K=De(M=>{let z=!1;const j=g.current;return j&&window.getComputedStyle(j,null).getPropertyValue("direction")==="rtl"&&(z=!0),function(G){G.preventDefault();const R=g.current;if(!R)return()=>null;const{direction:Z,dragState:J,id:de,keyboardResizeBy:ce,onLayout:oe}=T.current,{layout:me,panelDataArray:re}=I.current,{initialLayout:Je}=J??{},yt=A2(de,M,R);let be=Qb(G,M,Z,J,ce,R);const rr=Z==="horizontal";rr&&z&&(be=-be);const Fr=re.map(X=>X.constraints),_=mr({delta:be,initialLayout:Je??me,panelConstraints:Fr,pivotIndices:yt,prevLayout:me,trigger:D2(G)?"keyboard":"mouse-or-touch"}),Y=!ri(me,_);(I2(G)||O2(G))&&x.current!=be&&(x.current=be,!Y&&be!==0?rr?qo(M,be<0?k2:L2):qo(M,be<0?M2:N2):qo(M,0)),Y&&(m(_),I.current.layout=_,oe&&oe(_),bn(re,_,S.current))}},[]),B=De((M,z)=>{const{onLayout:j}=T.current,{layout:W,panelDataArray:G}=I.current,R=G.map(me=>me.constraints),{panelSize:Z,pivotIndices:J}=Kt(G,M,W);te(Z!=null,`Panel size not found for panel "${M.id}"`);const ce=Ln(G,M)===G.length-1?Z-z:z-Z,oe=mr({delta:ce,initialLayout:W,panelConstraints:R,pivotIndices:J,prevLayout:W,trigger:"imperative-api"});ri(W,oe)||(m(oe),I.current.layout=oe,j&&j(oe),bn(G,oe,S.current))},[]),H=De((M,z)=>{const{layout:j,panelDataArray:W}=I.current,{collapsedSize:G=0,collapsible:R}=z,{collapsedSize:Z=0,collapsible:J,maxSize:de=100,minSize:ce=0}=M.constraints,{panelSize:oe}=Kt(W,M,j);oe!=null&&(R&&J&&dt(oe,G)?dt(G,Z)||B(M,Z):oe<ce?B(M,ce):oe>de&&B(M,de))},[B]),O=De((M,z)=>{const{direction:j}=T.current,{layout:W}=I.current;if(!g.current)return;const G=fo(M,g.current);te(G,`Drag handle element not found for id "${M}"`);const R=F2(j,z);p({dragHandleId:M,dragHandleRect:G.getBoundingClientRect(),initialCursorPosition:R,initialLayout:W})},[]),q=De(()=>{p(null)},[]),V=De(M=>{const{panelDataArray:z}=I.current,j=Ln(z,M);j>=0&&(z.splice(j,1),delete S.current[M.id],I.current.panelDataArrayChanged=!0,C())},[C]),U=Lb(()=>({collapsePanel:h,direction:r,dragState:$,expandPanel:L,getPanelSize:A,getPanelStyle:P,groupId:v,isPanelCollapsed:F,isPanelExpanded:y,reevaluatePanelConstraints:H,registerPanel:E,registerResizeHandle:K,resizePanel:B,startDragging:O,stopDragging:q,unregisterPanel:V,panelGroupElement:g.current}),[h,$,r,L,A,P,v,F,y,H,E,K,B,O,q,V]),N={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Xn(so.Provider,{value:U},Xn(d,{...f,children:e,className:n,id:o,ref:g,style:{...N,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":v}))}const V2=E2((t,e)=>Xn(B2,{...t,forwardedRef:e}));B2.displayName="PanelGroup";V2.displayName="forwardRef(PanelGroup)";function Ln(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function Kt(t,e,n){const r=Ln(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function ly({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Wt(()=>{if(t||n==null||r==null)return;const i=fo(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),n(l);break}case"F6":{l.preventDefault();const a=i.getAttribute("data-panel-group-id");te(a,`No group element found for id "${a}"`);const s=Or(a,r),u=R2(a,e,r);te(u!==null,`No resize element found for id "${e}"`);const d=l.shiftKey?u>0?u-1:s.length-1:u+1<s.length?u+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function U2({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:u=0,tagName:d="div",...f}){var v,g;const $=Ie(null),p=Ie({onDragging:l});Wt(()=>{p.current.onDragging=l});const b=x2(so);if(b===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:C,registerResizeHandle:S,startDragging:D,stopDragging:x,panelGroupElement:T}=b,I=Ua(i),[h,L]=Hn("inactive"),[A,P]=Hn(!1),[F,y]=Hn(null),E=Ie({state:h});Gt(()=>{E.current.state=h}),Wt(()=>{if(n)y(null);else{const O=S(I);y(()=>O)}},[n,I,S]);const K=(v=r==null?void 0:r.coarse)!==null&&v!==void 0?v:15,B=(g=r==null?void 0:r.fine)!==null&&g!==void 0?g:5;return Wt(()=>{if(n||F==null)return;const O=$.current;return te(O,"Element ref not attached"),Wb(I,O,m,{coarse:K,fine:B},(V,U,N)=>{if(U)switch(V){case"down":{L("drag"),te(N,'Expected event to be defined for "down" action'),D(I,N);const{onDragging:M}=p.current;M&&M(!0);break}case"move":{const{state:M}=E.current;M!=="drag"&&L("hover"),te(N,'Expected event to be defined for "move" action'),F(N);break}case"up":{L("hover"),x();const{onDragging:M}=p.current;M&&M(!1);break}}else L("inactive")})},[K,m,n,B,S,I,F,D,x]),ly({disabled:n,handleId:I,resizeHandler:F,panelGroupElement:T}),Xn(d,{...f,children:t,className:e,id:i,onBlur:()=>{P(!1),o==null||o()},onFocus:()=>{P(!0),a==null||a()},ref:$,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:u,"data-panel-group-direction":m,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":h==="drag"?"pointer":A?"keyboard":void 0,"data-resize-handle-state":h,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":I})}U2.displayName="PanelResizeHandle";const ay=({children:t,isOpen:e})=>{const{isDesktop:n}=nr();return n?w.jsx("div",{className:Te("c__right-panel",{open:e}),children:t}):w.jsx("div",{className:Te("c__right-panel__mobile",{open:e}),children:t})},sy=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1})=>{const[u,d]=c.useState(!1),{isDesktop:f}=nr(),v=c.useRef(null),[g,$]=c.useState(ii(300,f)),[p,b]=c.useState(ii(450,f)),m=()=>{d(!u)};c.useEffect(()=>{const D=()=>{const x=Math.round(ii(300,f)),T=Math.round(Math.min(ii(450,f),40));$(f?x:0),b(a?T:x)};return D(),window.addEventListener("resize",()=>{D()}),()=>{window.removeEventListener("resize",D)}},[f,a]);const C=f?!n:!0,S=f?!n:u;return w.jsxs("div",{className:"c__main-layout",children:[w.jsx("div",{className:"c__main-layout__header",children:w.jsx(w2,{onTogglePanel:m,isPanelOpen:u,rightIcon:o,leftIcon:t,languages:l})}),w.jsx("div",{className:"c__main-layout__content",children:w.jsxs(V2,{autoSaveId:"persistance",direction:"horizontal",children:[C&&w.jsxs(w.Fragment,{children:[w.jsx(Zl,{ref:v,order:0,defaultSize:g,minSize:g,maxSize:p,children:w.jsx(C2,{isOpen:S,children:r})}),f&&w.jsx(U2,{className:"bg-greyscale-200",style:{width:"1px"}})]}),w.jsx(Zl,{order:1,children:w.jsxs("div",{className:"c__main-layout__content__center",children:[w.jsx("div",{className:"c__main-layout__content__center__children",children:e}),w.jsx(ay,{isOpen:s,children:i})]})})]})})]})},ii=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},uy=52,Ya=({size:t="sm"})=>w.jsx("div",{className:["c__spinner",t].join(" ")}),W2=({children:t,text:e,...n})=>w.jsxs("div",{className:"suite__label__container",children:[w.jsx("label",{...n,children:t}),e&&w.jsx("span",{className:"suite__label__container__description",children:e})]}),cy=({label:t,text:e,labelSide:n="right",children:r})=>w.jsxs("div",{className:Te("c__with-label",{[n]:!0}),children:[w.jsx(W2,{children:t,text:e}),r]});var Vu=1,dy=.9,fy=.8,hy=.17,Yo=.1,Xo=.999,py=.9999,gy=.99,vy=/[\\\/_+.#"@\[\(\{&]/,my=/[\\\/_+.#"@\[\(\{&]/g,by=/[\s-]/,G2=/[\s-]/g;function Ql(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Vu:gy;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),u=n.indexOf(s,i),d=0,f,v,g,$;u>=0;)f=Ql(t,e,n,r,u+1,o+1,l),f>d&&(u===i?f*=Vu:vy.test(t.charAt(u-1))?(f*=fy,g=t.slice(i,u-1).match(my),g&&i>0&&(f*=Math.pow(Xo,g.length))):by.test(t.charAt(u-1))?(f*=dy,$=t.slice(i,u-1).match(G2),$&&i>0&&(f*=Math.pow(Xo,$.length))):(f*=hy,i>0&&(f*=Math.pow(Xo,u-i))),t.charAt(u)!==e.charAt(o)&&(f*=py)),(f<Yo&&n.charAt(u-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(u-1)!==r.charAt(o))&&(v=Ql(t,e,n,r,u+1,o+2,l),v*Yo>f&&(f=v*Yo)),f>d&&(d=f),u=n.indexOf(s,u+1);return l[a]=d,d}function Uu(t){return t.toLowerCase().replace(G2," ")}function yy(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Ql(t,e,Uu(t),Uu(e),0,0,{})}function _t(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t==null||t(i),n===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function Wu(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function q2(...t){return e=>{let n=!1;const r=t.map(i=>{const o=Wu(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Wu(t[i],null)}}}}function hn(...t){return k.useCallback(q2(...t),t)}function $y(t,e){const n=k.createContext(e),r=o=>{const{children:l,...a}=o,s=k.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=k.useContext(n);if(l)return l;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return[r,i]}function Sy(t,e=[]){let n=[];function r(o,l){const a=k.createContext(l),s=n.length;n=[...n,l];const u=f=>{var m;const{scope:v,children:g,...$}=f,p=((m=v==null?void 0:v[t])==null?void 0:m[s])||a,b=k.useMemo(()=>$,Object.values($));return w.jsx(p.Provider,{value:b,children:g})};u.displayName=o+"Provider";function d(f,v){var p;const g=((p=v==null?void 0:v[t])==null?void 0:p[s])||a,$=k.useContext(g);if($)return $;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}const i=()=>{const o=n.map(l=>k.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return k.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,wy(i,...e)]}function wy(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((a,{useScope:s,scopeName:u})=>{const f=s(o)[`__scope${u}`];return{...a,...f}},{});return k.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var zi=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},Cy=k.useId||(()=>{}),Ey=0;function ht(t){const[e,n]=k.useState(Cy());return zi(()=>{n(r=>r??String(Ey++))},[t]),e?`radix-${e}`:""}function rn(t){const e=k.useRef(t);return k.useEffect(()=>{e.current=t}),k.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function xy({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=Py({defaultProp:e,onChange:n}),o=t!==void 0,l=o?t:r,a=rn(n),s=k.useCallback(u=>{if(o){const f=typeof u=="function"?u(t):u;f!==t&&a(f)}else i(u)},[o,t,i,a]);return[l,s]}function Py({defaultProp:t,onChange:e}){const n=k.useState(t),[r]=n,i=k.useRef(r),o=rn(e);return k.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Xa=k.forwardRef((t,e)=>{const{children:n,...r}=t,i=k.Children.toArray(n),o=i.find(Dy);if(o){const l=o.props.children,a=i.map(s=>s===o?k.Children.count(l)>1?k.Children.only(null):k.isValidElement(l)?l.props.children:null:s);return w.jsx(ea,{...r,ref:e,children:k.isValidElement(l)?k.cloneElement(l,void 0,a):null})}return w.jsx(ea,{...r,ref:e,children:n})});Xa.displayName="Slot";var ea=k.forwardRef((t,e)=>{const{children:n,...r}=t;if(k.isValidElement(n)){const i=Oy(n),o=Iy(r,n.props);return n.type!==k.Fragment&&(o.ref=e?q2(e,i):i),k.cloneElement(n,o)}return k.Children.count(n)>1?k.Children.only(null):null});ea.displayName="SlotClone";var Ty=({children:t})=>w.jsx(w.Fragment,{children:t});function Dy(t){return k.isValidElement(t)&&t.type===Ty}function Iy(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function Oy(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var _y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],we=_y.reduce((t,e)=>{const n=k.forwardRef((r,i)=>{const{asChild:o,...l}=r,a=o?Xa:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(a,{...l,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function ky(t,e){t&&_p.flushSync(()=>t.dispatchEvent(e))}function Ly(t,e=globalThis==null?void 0:globalThis.document){const n=rn(t);k.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var My="DismissableLayer",ta="dismissableLayer.update",Ny="dismissableLayer.pointerDownOutside",Ry="dismissableLayer.focusOutside",Gu,Y2=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),X2=k.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,u=k.useContext(Y2),[d,f]=k.useState(null),v=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=k.useState({}),$=hn(e,I=>f(I)),p=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(b),C=d?p.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,D=C>=m,x=Fy(I=>{const h=I.target,L=[...u.branches].some(A=>A.contains(h));!D||L||(i==null||i(I),l==null||l(I),I.defaultPrevented||a==null||a())},v),T=jy(I=>{const h=I.target;[...u.branches].some(A=>A.contains(h))||(o==null||o(I),l==null||l(I),I.defaultPrevented||a==null||a())},v);return Ly(I=>{C===u.layers.size-1&&(r==null||r(I),!I.defaultPrevented&&a&&(I.preventDefault(),a()))},v),k.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gu=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),qu(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Gu)}},[d,v,n,u]),k.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),qu())},[d,u]),k.useEffect(()=>{const I=()=>g({});return document.addEventListener(ta,I),()=>document.removeEventListener(ta,I)},[]),w.jsx(we.div,{...s,ref:$,style:{pointerEvents:S?D?"auto":"none":void 0,...t.style},onFocusCapture:_t(t.onFocusCapture,T.onFocusCapture),onBlurCapture:_t(t.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_t(t.onPointerDownCapture,x.onPointerDownCapture)})});X2.displayName=My;var Ay="DismissableLayerBranch",Ky=k.forwardRef((t,e)=>{const n=k.useContext(Y2),r=k.useRef(null),i=hn(e,r);return k.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),w.jsx(we.div,{...t,ref:i})});Ky.displayName=Ay;function Fy(t,e=globalThis==null?void 0:globalThis.document){const n=rn(t),r=k.useRef(!1),i=k.useRef(()=>{});return k.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){Z2(Ny,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",o),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function jy(t,e=globalThis==null?void 0:globalThis.document){const n=rn(t),r=k.useRef(!1);return k.useEffect(()=>{const i=o=>{o.target&&!r.current&&Z2(Ry,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qu(){const t=new CustomEvent(ta);document.dispatchEvent(t)}function Z2(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?ky(i,o):i.dispatchEvent(o)}var Zo="focusScope.autoFocusOnMount",Jo="focusScope.autoFocusOnUnmount",Yu={bubbles:!1,cancelable:!0},Hy="FocusScope",J2=k.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=k.useState(null),u=rn(i),d=rn(o),f=k.useRef(null),v=hn(e,p=>s(p)),g=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(r){let p=function(S){if(g.paused||!a)return;const D=S.target;a.contains(D)?f.current=D:Ct(f.current,{select:!0})},b=function(S){if(g.paused||!a)return;const D=S.relatedTarget;D!==null&&(a.contains(D)||Ct(f.current,{select:!0}))},m=function(S){if(document.activeElement===document.body)for(const x of S)x.removedNodes.length>0&&Ct(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const C=new MutationObserver(m);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),C.disconnect()}}},[r,a,g.paused]),k.useEffect(()=>{if(a){Zu.add(g);const p=document.activeElement;if(!a.contains(p)){const m=new CustomEvent(Zo,Yu);a.addEventListener(Zo,u),a.dispatchEvent(m),m.defaultPrevented||(zy(Gy(Q2(a)),{select:!0}),document.activeElement===p&&Ct(a))}return()=>{a.removeEventListener(Zo,u),setTimeout(()=>{const m=new CustomEvent(Jo,Yu);a.addEventListener(Jo,d),a.dispatchEvent(m),m.defaultPrevented||Ct(p??document.body,{select:!0}),a.removeEventListener(Jo,d),Zu.remove(g)},0)}}},[a,u,d,g]);const $=k.useCallback(p=>{if(!n&&!r||g.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,m=document.activeElement;if(b&&m){const C=p.currentTarget,[S,D]=By(C);S&&D?!p.shiftKey&&m===D?(p.preventDefault(),n&&Ct(S,{select:!0})):p.shiftKey&&m===S&&(p.preventDefault(),n&&Ct(D,{select:!0})):m===C&&p.preventDefault()}},[n,r,g.paused]);return w.jsx(we.div,{tabIndex:-1,...l,ref:v,onKeyDown:$})});J2.displayName=Hy;function zy(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Ct(r,{select:e}),document.activeElement!==n)return}function By(t){const e=Q2(t),n=Xu(e,t),r=Xu(e.reverse(),t);return[n,r]}function Q2(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Xu(t,e){for(const n of t)if(!Vy(n,{upTo:e}))return n}function Vy(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Uy(t){return t instanceof HTMLInputElement&&"select"in t}function Ct(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&Uy(t)&&e&&t.select()}}var Zu=Wy();function Wy(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Ju(t,e),t.unshift(e)},remove(e){var n;t=Ju(t,e),(n=t[0])==null||n.resume()}}}function Ju(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function Gy(t){return t.filter(e=>e.tagName!=="A")}var qy="Portal",eh=k.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=k.useState(!1);zi(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Nt.createPortal(w.jsx(we.div,{...r,ref:e}),l):null});eh.displayName=qy;function Yy(t,e){return k.useReducer((n,r)=>e[n][r]??n,t)}var ho=t=>{const{present:e,children:n}=t,r=Xy(e),i=typeof n=="function"?n({present:r.isPresent}):k.Children.only(n),o=hn(r.ref,Zy(i));return typeof n=="function"||r.isPresent?k.cloneElement(i,{ref:o}):null};ho.displayName="Presence";function Xy(t){const[e,n]=k.useState(),r=k.useRef({}),i=k.useRef(t),o=k.useRef("none"),l=t?"mounted":"unmounted",[a,s]=Yy(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const u=oi(r.current);o.current=a==="mounted"?u:"none"},[a]),zi(()=>{const u=r.current,d=i.current;if(d!==t){const v=o.current,g=oi(u);t?s("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&v!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),zi(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,f=g=>{const p=oi(r.current).includes(g.animationName);if(g.target===e&&p&&(s("ANIMATION_END"),!i.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},v=g=>{g.target===e&&(o.current=oi(r.current))};return e.addEventListener("animationstart",v),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",v),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:k.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function oi(t){return(t==null?void 0:t.animationName)||"none"}function Zy(t){var r,i;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var Qo=0;function Jy(){k.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Qu()),document.body.insertAdjacentElement("beforeend",t[1]??Qu()),Qo++,()=>{Qo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Qo--}},[])}function Qu(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var vi="right-scroll-bar-position",mi="width-before-scroll-bar",Qy="with-scroll-bars-hidden",e9="--removed-body-scroll-bar-size";function el(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function t9(t,e){var n=c.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var n9=typeof window<"u"?k.useLayoutEffect:k.useEffect,ec=new WeakMap;function r9(t,e){var n=t9(null,function(r){return t.forEach(function(i){return el(i,r)})});return n9(function(){var r=ec.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||el(a,null)}),o.forEach(function(a){i.has(a)||el(a,l)})}ec.set(n,t)},[t]),n}function i9(t){return t}function o9(t,e){e===void 0&&(e=i9);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var l=e(o,r);return n.push(l),function(){n=n.filter(function(a){return a!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var a=n;n=[],a.forEach(o),l=n}var s=function(){var d=l;l=[],d.forEach(o)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return i}function l9(t){t===void 0&&(t={});var e=o9(null);return e.options=tt({async:!0,ssr:!1},t),e}var th=function(t){var e=t.sideCar,n=rf(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return k.createElement(r,tt({},n))};th.isSideCarExport=!0;function a9(t,e){return t.useMedium(e),th}var nh=l9(),tl=function(){},po=k.forwardRef(function(t,e){var n=k.useRef(null),r=k.useState({onScrollCapture:tl,onWheelCapture:tl,onTouchMoveCapture:tl}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,v=t.sideCar,g=t.noIsolation,$=t.inert,p=t.allowPinchZoom,b=t.as,m=b===void 0?"div":b,C=t.gapMode,S=rf(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=v,x=r9([n,e]),T=tt(tt({},S),i);return k.createElement(k.Fragment,null,d&&k.createElement(D,{sideCar:nh,removeScrollBar:u,shards:f,noIsolation:g,inert:$,setCallbacks:o,allowPinchZoom:!!p,lockRef:n,gapMode:C}),l?k.cloneElement(k.Children.only(a),tt(tt({},T),{ref:x})):k.createElement(m,tt({},T,{className:s,ref:x}),a))});po.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};po.classNames={fullWidth:mi,zeroRight:vi};var s9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function u9(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=s9();return e&&t.setAttribute("nonce",e),t}function c9(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function d9(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var f9=function(){var t=0,e=null;return{add:function(n){t==0&&(e=u9())&&(c9(e,n),d9(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},h9=function(){var t=f9();return function(e,n){k.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},rh=function(){var t=h9(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},p9={left:0,top:0,right:0,gap:0},nl=function(t){return parseInt(t||"",10)||0},g9=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[nl(n),nl(r),nl(i)]},v9=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return p9;var e=g9(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},m9=rh(),Bn="data-scroll-locked",b9=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
48
+ .`.concat(Qy,` {
49
49
  overflow: hidden `).concat(r,`;
50
50
  padding-right: `).concat(a,"px ").concat(r,`;
51
51
  }
52
- body[`).concat(vn,`] {
52
+ body[`).concat(Bn,`] {
53
53
  overflow: hidden `).concat(r,`;
54
54
  overscroll-behavior: contain;
55
55
  `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
56
56
  padding-left: `.concat(i,`px;
57
57
  padding-top: `).concat(o,`px;
58
- padding-right: `).concat(s,`px;
58
+ padding-right: `).concat(l,`px;
59
59
  margin-left:0;
60
60
  margin-top:0;
61
61
  margin-right: `).concat(a,"px ").concat(r,`;
62
62
  `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
63
63
  }
64
64
 
65
- .`).concat(Lr,` {
65
+ .`).concat(vi,` {
66
66
  right: `).concat(a,"px ").concat(r,`;
67
67
  }
68
68
 
69
- .`).concat(Mr,` {
69
+ .`).concat(mi,` {
70
70
  margin-right: `).concat(a,"px ").concat(r,`;
71
71
  }
72
72
 
73
- .`).concat(Lr," .").concat(Lr,` {
73
+ .`).concat(vi," .").concat(vi,` {
74
74
  right: 0 `).concat(r,`;
75
75
  }
76
76
 
77
- .`).concat(Mr," .").concat(Mr,` {
77
+ .`).concat(mi," .").concat(mi,` {
78
78
  margin-right: 0 `).concat(r,`;
79
79
  }
80
80
 
81
- body[`).concat(vn,`] {
82
- `).concat(dv,": ").concat(a,`px;
81
+ body[`).concat(Bn,`] {
82
+ `).concat(e9,": ").concat(a,`px;
83
83
  }
84
- `)},ml=function(){var t=parseInt(document.body.getAttribute(vn)||"0",10);return isFinite(t)?t:0},Ov=function(){T.useEffect(function(){return document.body.setAttribute(vn,(ml()+1).toString()),function(){var t=ml()-1;t<=0?document.body.removeAttribute(vn):document.body.setAttribute(vn,t.toString())}},[])},Iv=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;Ov();var o=T.useMemo(function(){return Pv(i)},[i]);return T.createElement(_v,{styles:Dv(o,!e,i,n?"":"!important")})},Xo=!1;if(typeof window<"u")try{var Tr=Object.defineProperty({},"passive",{get:function(){return Xo=!0,!0}});window.addEventListener("test",Tr,Tr),window.removeEventListener("test",Tr,Tr)}catch{Xo=!1}var qt=Xo?{passive:!1}:!1,kv=function(t){return t.tagName==="TEXTAREA"},Zd=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!kv(t)&&n[e]==="visible")},Nv=function(t){return Zd(t,"overflowY")},Rv=function(t){return Zd(t,"overflowX")},yl=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Xd(t,r);if(i){var o=Jd(t,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Lv=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},Mv=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},Xd=function(t,e){return t==="v"?Nv(e):Rv(e)},Jd=function(t,e){return t==="v"?Lv(e):Mv(e)},Av=function(t,e){return t==="h"&&e==="rtl"?-1:1},Kv=function(t,e,n,r,i){var o=Av(t,window.getComputedStyle(e).direction),s=o*r,a=n.target,l=e.contains(a),u=!1,c=s>0,f=0,p=0;do{var g=Jd(t,a),b=g[0],h=g[1],m=g[2],v=h-m-o*b;(b||v)&&Xd(t,a)&&(f+=v,p+=b),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(c&&Math.abs(f)<1||!c&&Math.abs(p)<1)&&(u=!0),u},Pr=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},bl=function(t){return[t.deltaX,t.deltaY]},Sl=function(t){return t&&"current"in t?t.current:t},Fv=function(t,e){return t[0]===e[0]&&t[1]===e[1]},jv=function(t){return`
84
+ `)},tc=function(){var t=parseInt(document.body.getAttribute(Bn)||"0",10);return isFinite(t)?t:0},y9=function(){k.useEffect(function(){return document.body.setAttribute(Bn,(tc()+1).toString()),function(){var t=tc()-1;t<=0?document.body.removeAttribute(Bn):document.body.setAttribute(Bn,t.toString())}},[])},$9=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;y9();var o=k.useMemo(function(){return v9(i)},[i]);return k.createElement(m9,{styles:b9(o,!e,i,n?"":"!important")})},na=!1;if(typeof window<"u")try{var li=Object.defineProperty({},"passive",{get:function(){return na=!0,!0}});window.addEventListener("test",li,li),window.removeEventListener("test",li,li)}catch{na=!1}var yn=na?{passive:!1}:!1,S9=function(t){return t.tagName==="TEXTAREA"},ih=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!S9(t)&&n[e]==="visible")},w9=function(t){return ih(t,"overflowY")},C9=function(t){return ih(t,"overflowX")},nc=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=oh(t,r);if(i){var o=lh(t,r),l=o[1],a=o[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},E9=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},x9=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},oh=function(t,e){return t==="v"?w9(e):C9(e)},lh=function(t,e){return t==="v"?E9(e):x9(e)},P9=function(t,e){return t==="h"&&e==="rtl"?-1:1},T9=function(t,e,n,r,i){var o=P9(t,window.getComputedStyle(e).direction),l=o*r,a=n.target,s=e.contains(a),u=!1,d=l>0,f=0,v=0;do{var g=lh(t,a),$=g[0],p=g[1],b=g[2],m=p-b-o*$;($||m)&&oh(t,a)&&(f+=m,v+=$),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!s&&a!==document.body||s&&(e.contains(a)||e===a));return(d&&Math.abs(f)<1||!d&&Math.abs(v)<1)&&(u=!0),u},ai=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},rc=function(t){return[t.deltaX,t.deltaY]},ic=function(t){return t&&"current"in t?t.current:t},D9=function(t,e){return t[0]===e[0]&&t[1]===e[1]},I9=function(t){return`
85
85
  .block-interactivity-`.concat(t,` {pointer-events: none;}
86
86
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
87
- `)},Hv=0,Yt=[];function zv(t){var e=T.useRef([]),n=T.useRef([0,0]),r=T.useRef(),i=T.useState(Hv++)[0],o=T.useState(Yd)[0],s=T.useRef(t);T.useEffect(function(){s.current=t},[t]),T.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var h=Hh([t.lockRef.current],(t.shards||[]).map(Sl),!0).filter(Boolean);return h.forEach(function(m){return m.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=T.useCallback(function(h,m){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var v=Pr(h),C=n.current,w="deltaX"in h?h.deltaX:C[0]-v[0],P="deltaY"in h?h.deltaY:C[1]-v[1],x,D=h.target,_=Math.abs(w)>Math.abs(P)?"h":"v";if("touches"in h&&_==="h"&&D.type==="range")return!1;var S=yl(_,D);if(!S)return!0;if(S?x=_:(x=_==="v"?"h":"v",S=yl(_,D)),!S)return!1;if(!r.current&&"changedTouches"in h&&(w||P)&&(r.current=x),!x)return!0;var R=r.current||x;return Kv(R,m,h,R==="h"?w:P)},[]),l=T.useCallback(function(h){var m=h;if(!(!Yt.length||Yt[Yt.length-1]!==o)){var v="deltaY"in m?bl(m):Pr(m),C=e.current.filter(function(x){return x.name===m.type&&(x.target===m.target||m.target===x.shadowParent)&&Fv(x.delta,v)})[0];if(C&&C.should){m.cancelable&&m.preventDefault();return}if(!C){var w=(s.current.shards||[]).map(Sl).filter(Boolean).filter(function(x){return x.contains(m.target)}),P=w.length>0?a(m,w[0]):!s.current.noIsolation;P&&m.cancelable&&m.preventDefault()}}},[]),u=T.useCallback(function(h,m,v,C){var w={name:h,delta:m,target:v,should:C,shadowParent:Bv(v)};e.current.push(w),setTimeout(function(){e.current=e.current.filter(function(P){return P!==w})},1)},[]),c=T.useCallback(function(h){n.current=Pr(h),r.current=void 0},[]),f=T.useCallback(function(h){u(h.type,bl(h),h.target,a(h,t.lockRef.current))},[]),p=T.useCallback(function(h){u(h.type,Pr(h),h.target,a(h,t.lockRef.current))},[]);T.useEffect(function(){return Yt.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,qt),document.addEventListener("touchmove",l,qt),document.addEventListener("touchstart",c,qt),function(){Yt=Yt.filter(function(h){return h!==o}),document.removeEventListener("wheel",l,qt),document.removeEventListener("touchmove",l,qt),document.removeEventListener("touchstart",c,qt)}},[]);var g=t.removeScrollBar,b=t.inert;return T.createElement(T.Fragment,null,b?T.createElement(o,{styles:jv(i)}):null,g?T.createElement(Iv,{gapMode:t.gapMode}):null)}function Bv(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const Vv=yv(qd,zv);var Qd=T.forwardRef(function(t,e){return T.createElement(xi,Ye({},t,{ref:e,sideCar:Vv}))});Qd.classNames=xi.classNames;var Wv=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Zt=new WeakMap,_r=new WeakMap,Dr={},ao=0,ef=function(t){return t&&(t.host||ef(t.parentNode))},Uv=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=ef(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})},Gv=function(t,e,n,r){var i=Uv(e,Array.isArray(t)?t:[t]);Dr[n]||(Dr[n]=new WeakMap);var o=Dr[n],s=[],a=new Set,l=new Set(i),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(a.has(p))c(p);else try{var g=p.getAttribute(r),b=g!==null&&g!=="false",h=(Zt.get(p)||0)+1,m=(o.get(p)||0)+1;Zt.set(p,h),o.set(p,m),s.push(p),h===1&&b&&_r.set(p,!0),m===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return c(e),a.clear(),ao++,function(){s.forEach(function(f){var p=Zt.get(f)-1,g=o.get(f)-1;Zt.set(f,p),o.set(f,g),p||(_r.has(f)||f.removeAttribute(r),_r.delete(f)),g||f.removeAttribute(n)}),ao--,ao||(Zt=new WeakMap,Zt=new WeakMap,_r=new WeakMap,Dr={})}},qv=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=Wv(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Gv(r,i,n,"aria-hidden")):function(){return null}},Ls="Dialog",[tf,c7]=k5(Ls),[Yv,Ue]=tf(Ls),nf=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=t,a=T.useRef(null),l=T.useRef(null),[u=!1,c]=M5({prop:r,defaultProp:i,onChange:o});return y.jsx(Yv,{scope:e,triggerRef:a,contentRef:l,contentId:st(),titleId:st(),descriptionId:st(),open:u,onOpenChange:c,onOpenToggle:T.useCallback(()=>c(f=>!f),[c]),modal:s,children:n})};nf.displayName=Ls;var rf="DialogTrigger",Zv=T.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ue(rf,n),o=zt(e,i.triggerRef);return y.jsx(Se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ks(i.open),...r,ref:o,onClick:yt(t.onClick,i.onOpenToggle)})});Zv.displayName=rf;var Ms="DialogPortal",[Xv,of]=tf(Ms,{forceMount:void 0}),sf=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,o=Ue(Ms,e);return y.jsx(Xv,{scope:e,forceMount:n,children:T.Children.map(r,s=>y.jsx(Ei,{present:n||o.open,children:y.jsx(Ud,{asChild:!0,container:i,children:s})}))})};sf.displayName=Ms;var si="DialogOverlay",af=T.forwardRef((t,e)=>{const n=of(si,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Ue(si,t.__scopeDialog);return o.modal?y.jsx(Ei,{present:r||o.open,children:y.jsx(Jv,{...i,ref:e})}):null});af.displayName=si;var Jv=T.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ue(si,n);return y.jsx(Qd,{as:Rs,allowPinchZoom:!0,shards:[i.contentRef],children:y.jsx(Se.div,{"data-state":Ks(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),At="DialogContent",lf=T.forwardRef((t,e)=>{const n=of(At,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Ue(At,t.__scopeDialog);return y.jsx(Ei,{present:r||o.open,children:o.modal?y.jsx(Qv,{...i,ref:e}):y.jsx(em,{...i,ref:e})})});lf.displayName=At;var Qv=T.forwardRef((t,e)=>{const n=Ue(At,t.__scopeDialog),r=T.useRef(null),i=zt(e,n.contentRef,r);return T.useEffect(()=>{const o=r.current;if(o)return qv(o)},[]),y.jsx(uf,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yt(t.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:yt(t.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:yt(t.onFocusOutside,o=>o.preventDefault())})}),em=T.forwardRef((t,e)=>{const n=Ue(At,t.__scopeDialog),r=T.useRef(!1),i=T.useRef(!1);return y.jsx(uf,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=t.onCloseAutoFocus)==null||s.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 l,u;(l=t.onInteractOutside)==null||l.call(t,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),uf=T.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=t,a=Ue(At,n),l=T.useRef(null),u=zt(e,l);return uv(),y.jsxs(y.Fragment,{children:[y.jsx(Vd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:y.jsx(zd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ks(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(im,{titleId:a.titleId}),y.jsx(sm,{contentRef:l,descriptionId:a.descriptionId})]})]})}),As="DialogTitle",tm=T.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ue(As,n);return y.jsx(Se.h2,{id:i.titleId,...r,ref:e})});tm.displayName=As;var cf="DialogDescription",nm=T.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ue(cf,n);return y.jsx(Se.p,{id:i.descriptionId,...r,ref:e})});nm.displayName=cf;var df="DialogClose",rm=T.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ue(df,n);return y.jsx(Se.button,{type:"button",...r,ref:e,onClick:yt(t.onClick,()=>i.onOpenChange(!1))})});rm.displayName=df;function Ks(t){return t?"open":"closed"}var ff="DialogTitleWarning",[d7,hf]=I5(ff,{contentName:At,titleName:As,docsSlug:"dialog"}),im=({titleId:t})=>{const e=hf(ff),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
87
+ `)},O9=0,$n=[];function _9(t){var e=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),i=k.useState(O9++)[0],o=k.useState(rh)[0],l=k.useRef(t);k.useEffect(function(){l.current=t},[t]),k.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var p=Zv([t.lockRef.current],(t.shards||[]).map(ic),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=k.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!l.current.allowPinchZoom;var m=ai(p),C=n.current,S="deltaX"in p?p.deltaX:C[0]-m[0],D="deltaY"in p?p.deltaY:C[1]-m[1],x,T=p.target,I=Math.abs(S)>Math.abs(D)?"h":"v";if("touches"in p&&I==="h"&&T.type==="range")return!1;var h=nc(I,T);if(!h)return!0;if(h?x=I:(x=I==="v"?"h":"v",h=nc(I,T)),!h)return!1;if(!r.current&&"changedTouches"in p&&(S||D)&&(r.current=x),!x)return!0;var L=r.current||x;return T9(L,b,p,L==="h"?S:D)},[]),s=k.useCallback(function(p){var b=p;if(!(!$n.length||$n[$n.length-1]!==o)){var m="deltaY"in b?rc(b):ai(b),C=e.current.filter(function(x){return x.name===b.type&&(x.target===b.target||b.target===x.shadowParent)&&D9(x.delta,m)})[0];if(C&&C.should){b.cancelable&&b.preventDefault();return}if(!C){var S=(l.current.shards||[]).map(ic).filter(Boolean).filter(function(x){return x.contains(b.target)}),D=S.length>0?a(b,S[0]):!l.current.noIsolation;D&&b.cancelable&&b.preventDefault()}}},[]),u=k.useCallback(function(p,b,m,C){var S={name:p,delta:b,target:m,should:C,shadowParent:k9(m)};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(D){return D!==S})},1)},[]),d=k.useCallback(function(p){n.current=ai(p),r.current=void 0},[]),f=k.useCallback(function(p){u(p.type,rc(p),p.target,a(p,t.lockRef.current))},[]),v=k.useCallback(function(p){u(p.type,ai(p),p.target,a(p,t.lockRef.current))},[]);k.useEffect(function(){return $n.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",s,yn),document.addEventListener("touchmove",s,yn),document.addEventListener("touchstart",d,yn),function(){$n=$n.filter(function(p){return p!==o}),document.removeEventListener("wheel",s,yn),document.removeEventListener("touchmove",s,yn),document.removeEventListener("touchstart",d,yn)}},[]);var g=t.removeScrollBar,$=t.inert;return k.createElement(k.Fragment,null,$?k.createElement(o,{styles:I9(i)}):null,g?k.createElement($9,{gapMode:t.gapMode}):null)}function k9(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const L9=a9(nh,_9);var ah=k.forwardRef(function(t,e){return k.createElement(po,tt({},t,{ref:e,sideCar:L9}))});ah.classNames=po.classNames;var M9=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Sn=new WeakMap,si=new WeakMap,ui={},rl=0,sh=function(t){return t&&(t.host||sh(t.parentNode))},N9=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=sh(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},R9=function(t,e,n,r){var i=N9(e,Array.isArray(t)?t:[t]);ui[n]||(ui[n]=new WeakMap);var o=ui[n],l=[],a=new Set,s=new Set(i),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};i.forEach(u);var d=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(v){if(a.has(v))d(v);else try{var g=v.getAttribute(r),$=g!==null&&g!=="false",p=(Sn.get(v)||0)+1,b=(o.get(v)||0)+1;Sn.set(v,p),o.set(v,b),l.push(v),p===1&&$&&si.set(v,!0),b===1&&v.setAttribute(n,"true"),$||v.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",v,m)}})};return d(e),a.clear(),rl++,function(){l.forEach(function(f){var v=Sn.get(f)-1,g=o.get(f)-1;Sn.set(f,v),o.set(f,g),v||(si.has(f)||f.removeAttribute(r),si.delete(f)),g||f.removeAttribute(n)}),rl--,rl||(Sn=new WeakMap,Sn=new WeakMap,si=new WeakMap,ui={})}},A9=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=M9(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),R9(r,i,n,"aria-hidden")):function(){return null}},Za="Dialog",[uh,r6]=Sy(Za),[K9,Ze]=uh(Za),ch=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,a=k.useRef(null),s=k.useRef(null),[u=!1,d]=xy({prop:r,defaultProp:i,onChange:o});return w.jsx(K9,{scope:e,triggerRef:a,contentRef:s,contentId:ht(),titleId:ht(),descriptionId:ht(),open:u,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(f=>!f),[d]),modal:l,children:n})};ch.displayName=Za;var dh="DialogTrigger",F9=k.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ze(dh,n),o=hn(e,i.triggerRef);return w.jsx(we.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":es(i.open),...r,ref:o,onClick:_t(t.onClick,i.onOpenToggle)})});F9.displayName=dh;var Ja="DialogPortal",[j9,fh]=uh(Ja,{forceMount:void 0}),hh=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,o=Ze(Ja,e);return w.jsx(j9,{scope:e,forceMount:n,children:k.Children.map(r,l=>w.jsx(ho,{present:n||o.open,children:w.jsx(eh,{asChild:!0,container:i,children:l})}))})};hh.displayName=Ja;var Bi="DialogOverlay",ph=k.forwardRef((t,e)=>{const n=fh(Bi,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Ze(Bi,t.__scopeDialog);return o.modal?w.jsx(ho,{present:r||o.open,children:w.jsx(H9,{...i,ref:e})}):null});ph.displayName=Bi;var H9=k.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ze(Bi,n);return w.jsx(ah,{as:Xa,allowPinchZoom:!0,shards:[i.contentRef],children:w.jsx(we.div,{"data-state":es(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),on="DialogContent",gh=k.forwardRef((t,e)=>{const n=fh(on,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Ze(on,t.__scopeDialog);return w.jsx(ho,{present:r||o.open,children:o.modal?w.jsx(z9,{...i,ref:e}):w.jsx(B9,{...i,ref:e})})});gh.displayName=on;var z9=k.forwardRef((t,e)=>{const n=Ze(on,t.__scopeDialog),r=k.useRef(null),i=hn(e,n.contentRef,r);return k.useEffect(()=>{const o=r.current;if(o)return A9(o)},[]),w.jsx(vh,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_t(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:_t(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&o.preventDefault()}),onFocusOutside:_t(t.onFocusOutside,o=>o.preventDefault())})}),B9=k.forwardRef((t,e)=>{const n=Ze(on,t.__scopeDialog),r=k.useRef(!1),i=k.useRef(!1);return w.jsx(vh,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,a;(l=t.onCloseAutoFocus)==null||l.call(t,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var s,u;(s=t.onInteractOutside)==null||s.call(t,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),vh=k.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=t,a=Ze(on,n),s=k.useRef(null),u=hn(e,s);return Jy(),w.jsxs(w.Fragment,{children:[w.jsx(J2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:w.jsx(X2,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":es(a.open),...l,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(G9,{titleId:a.titleId}),w.jsx(Y9,{contentRef:s,descriptionId:a.descriptionId})]})]})}),Qa="DialogTitle",V9=k.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ze(Qa,n);return w.jsx(we.h2,{id:i.titleId,...r,ref:e})});V9.displayName=Qa;var mh="DialogDescription",U9=k.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ze(mh,n);return w.jsx(we.p,{id:i.descriptionId,...r,ref:e})});U9.displayName=mh;var bh="DialogClose",W9=k.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ze(bh,n);return w.jsx(we.button,{type:"button",...r,ref:e,onClick:_t(t.onClick,()=>i.onOpenChange(!1))})});W9.displayName=bh;function es(t){return t?"open":"closed"}var yh="DialogTitleWarning",[i6,$h]=$y(yh,{contentName:on,titleName:Qa,docsSlug:"dialog"}),G9=({titleId:t})=>{const e=$h(yh),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
88
88
 
89
89
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
90
90
 
91
- For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return T.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},om="DialogDescriptionWarning",sm=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hf(om).contentName}}.`;return T.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},am=nf,lm=sf,um=af,cm=lf,Mn='[cmdk-group=""]',lo='[cmdk-group-items=""]',dm='[cmdk-group-heading=""]',Fs='[cmdk-item=""]',Cl=`${Fs}:not([aria-disabled="true"])`,Jo="cmdk-item-select",wt="data-value",fm=(t,e,n)=>O5(t,e,n),pf=T.createContext(void 0),ur=()=>T.useContext(pf),gf=T.createContext(void 0),js=()=>T.useContext(gf),vf=T.createContext(void 0),mf=T.forwardRef((t,e)=>{let n=ln(()=>{var k,I;return{search:"",value:(I=(k=t.value)!=null?k:t.defaultValue)!=null?I:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=ln(()=>new Set),i=ln(()=>new Map),o=ln(()=>new Map),s=ln(()=>new Set),a=yf(t),{label:l,children:u,value:c,onValueChange:f,filter:p,shouldFilter:g,loop:b,disablePointerSelection:h=!1,vimBindings:m=!0,...v}=t,C=st(),w=st(),P=st(),x=T.useRef(null),D=Em();Kt(()=>{if(c!==void 0){let k=c.trim();n.current.value=k,_.emit()}},[c]),Kt(()=>{D(6,E)},[]);let _=T.useMemo(()=>({subscribe:k=>(s.current.add(k),()=>s.current.delete(k)),snapshot:()=>n.current,setState:(k,I,A)=>{var M,W,U;if(!Object.is(n.current[k],I)){if(n.current[k]=I,k==="search")H(),F(),D(1,N);else if(k==="value"&&(A||D(5,E),((M=a.current)==null?void 0:M.value)!==void 0)){let K=I??"";(U=(W=a.current).onValueChange)==null||U.call(W,K);return}_.emit()}},emit:()=>{s.current.forEach(k=>k())}}),[]),S=T.useMemo(()=>({value:(k,I,A)=>{var M;I!==((M=o.current.get(k))==null?void 0:M.value)&&(o.current.set(k,{value:I,keywords:A}),n.current.filtered.items.set(k,R(I,A)),D(2,()=>{F(),_.emit()}))},item:(k,I)=>(r.current.add(k),I&&(i.current.has(I)?i.current.get(I).add(k):i.current.set(I,new Set([k]))),D(3,()=>{H(),F(),n.current.value||N(),_.emit()}),()=>{o.current.delete(k),r.current.delete(k),n.current.filtered.items.delete(k);let A=O();D(4,()=>{H(),(A==null?void 0:A.getAttribute("id"))===k&&N(),_.emit()})}),group:k=>(i.current.has(k)||i.current.set(k,new Set),()=>{o.current.delete(k),i.current.delete(k)}),filter:()=>a.current.shouldFilter,label:l||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:C,inputId:P,labelId:w,listInnerRef:x}),[]);function R(k,I){var A,M;let W=(M=(A=a.current)==null?void 0:A.filter)!=null?M:fm;return k?W(k,n.current.search,I):0}function F(){if(!n.current.search||a.current.shouldFilter===!1)return;let k=n.current.filtered.items,I=[];n.current.filtered.groups.forEach(M=>{let W=i.current.get(M),U=0;W.forEach(K=>{let X=k.get(K);U=Math.max(X,U)}),I.push([M,U])});let A=x.current;z().sort((M,W)=>{var U,K;let X=M.getAttribute("id"),te=W.getAttribute("id");return((U=k.get(te))!=null?U:0)-((K=k.get(X))!=null?K:0)}).forEach(M=>{let W=M.closest(lo);W?W.appendChild(M.parentElement===W?M:M.closest(`${lo} > *`)):A.appendChild(M.parentElement===A?M:M.closest(`${lo} > *`))}),I.sort((M,W)=>W[1]-M[1]).forEach(M=>{var W;let U=(W=x.current)==null?void 0:W.querySelector(`${Mn}[${wt}="${encodeURIComponent(M[0])}"]`);U==null||U.parentElement.appendChild(U)})}function N(){let k=z().find(A=>A.getAttribute("aria-disabled")!=="true"),I=k==null?void 0:k.getAttribute(wt);_.setState("value",I||void 0)}function H(){var k,I,A,M;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let W=0;for(let U of r.current){let K=(I=(k=o.current.get(U))==null?void 0:k.value)!=null?I:"",X=(M=(A=o.current.get(U))==null?void 0:A.keywords)!=null?M:[],te=R(K,X);n.current.filtered.items.set(U,te),te>0&&W++}for(let[U,K]of i.current)for(let X of K)if(n.current.filtered.items.get(X)>0){n.current.filtered.groups.add(U);break}n.current.filtered.count=W}function E(){var k,I,A;let M=O();M&&(((k=M.parentElement)==null?void 0:k.firstChild)===M&&((A=(I=M.closest(Mn))==null?void 0:I.querySelector(dm))==null||A.scrollIntoView({block:"nearest"})),M.scrollIntoView({block:"nearest"}))}function O(){var k;return(k=x.current)==null?void 0:k.querySelector(`${Fs}[aria-selected="true"]`)}function z(){var k;return Array.from(((k=x.current)==null?void 0:k.querySelectorAll(Cl))||[])}function G(k){let I=z()[k];I&&_.setState("value",I.getAttribute(wt))}function V(k){var I;let A=O(),M=z(),W=M.findIndex(K=>K===A),U=M[W+k];(I=a.current)!=null&&I.loop&&(U=W+k<0?M[M.length-1]:W+k===M.length?M[0]:M[W+k]),U&&_.setState("value",U.getAttribute(wt))}function L(k){let I=O(),A=I==null?void 0:I.closest(Mn),M;for(;A&&!M;)A=k>0?Cm(A,Mn):wm(A,Mn),M=A==null?void 0:A.querySelector(Cl);M?_.setState("value",M.getAttribute(wt)):V(k)}let Y=()=>G(z().length-1),j=k=>{k.preventDefault(),k.metaKey?Y():k.altKey?L(1):V(1)},B=k=>{k.preventDefault(),k.metaKey?G(0):k.altKey?L(-1):V(-1)};return T.createElement(Se.div,{ref:e,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:k=>{var I;if((I=v.onKeyDown)==null||I.call(v,k),!k.defaultPrevented)switch(k.key){case"n":case"j":{m&&k.ctrlKey&&j(k);break}case"ArrowDown":{j(k);break}case"p":case"k":{m&&k.ctrlKey&&B(k);break}case"ArrowUp":{B(k);break}case"Home":{k.preventDefault(),G(0);break}case"End":{k.preventDefault(),Y();break}case"Enter":if(!k.nativeEvent.isComposing&&k.keyCode!==229){k.preventDefault();let A=O();if(A){let M=new Event(Jo);A.dispatchEvent(M)}}}}},T.createElement("label",{"cmdk-label":"",htmlFor:S.inputId,id:S.labelId,style:$m},l),$i(t,k=>T.createElement(gf.Provider,{value:_},T.createElement(pf.Provider,{value:S},k))))}),hm=T.forwardRef((t,e)=>{var n,r;let i=st(),o=T.useRef(null),s=T.useContext(vf),a=ur(),l=yf(t),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;Kt(()=>{if(!u)return a.item(i,s==null?void 0:s.id)},[u]);let c=bf(i,o,[t.value,t.children,o],t.keywords),f=js(),p=Ft(D=>D.value&&D.value===c.current),g=Ft(D=>u||a.filter()===!1?!0:D.search?D.filtered.items.get(i)>0:!0);T.useEffect(()=>{let D=o.current;if(!(!D||t.disabled))return D.addEventListener(Jo,b),()=>D.removeEventListener(Jo,b)},[g,t.onSelect,t.disabled]);function b(){var D,_;h(),(_=(D=l.current).onSelect)==null||_.call(D,c.current)}function h(){f.setState("value",c.current,!0)}if(!g)return null;let{disabled:m,value:v,onSelect:C,forceMount:w,keywords:P,...x}=t;return T.createElement(Se.div,{ref:tr([o,e]),...x,id:i,"cmdk-item":"",role:"option","aria-disabled":!!m,"aria-selected":!!p,"data-disabled":!!m,"data-selected":!!p,onPointerMove:m||a.getDisablePointerSelection()?void 0:h,onClick:m?void 0:b},t.children)}),pm=T.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,s=st(),a=T.useRef(null),l=T.useRef(null),u=st(),c=ur(),f=Ft(g=>i||c.filter()===!1?!0:g.search?g.filtered.groups.has(s):!0);Kt(()=>c.group(s),[]),bf(s,a,[t.value,t.heading,l]);let p=T.useMemo(()=>({id:s,forceMount:i}),[i]);return T.createElement(Se.div,{ref:tr([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&T.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),$i(t,g=>T.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},T.createElement(vf.Provider,{value:p},g))))}),gm=T.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=T.useRef(null),o=Ft(s=>!s.search);return!n&&!o?null:T.createElement(Se.div,{ref:tr([i,e]),...r,"cmdk-separator":"",role:"separator"})}),vm=T.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=js(),s=Ft(c=>c.search),a=Ft(c=>c.value),l=ur(),u=T.useMemo(()=>{var c;let f=(c=l.listInnerRef.current)==null?void 0:c.querySelector(`${Fs}[${wt}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return T.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),T.createElement(Se.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":u,id:l.inputId,type:"text",value:i?t.value:s,onChange:c=>{i||o.setState("search",c.target.value),n==null||n(c.target.value)}})}),mm=T.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=T.useRef(null),s=T.useRef(null),a=ur();return T.useEffect(()=>{if(s.current&&o.current){let l=s.current,u=o.current,c,f=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let p=l.offsetHeight;u.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(l),()=>{cancelAnimationFrame(c),f.unobserve(l)}}},[]),T.createElement(Se.div,{ref:tr([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},$i(t,l=>T.createElement("div",{ref:tr([s,a.listInnerRef]),"cmdk-list-sizer":""},l)))}),ym=T.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:s,...a}=t;return T.createElement(am,{open:n,onOpenChange:r},T.createElement(lm,{container:s},T.createElement(um,{"cmdk-overlay":"",className:i}),T.createElement(cm,{"aria-label":t.label,"cmdk-dialog":"",className:o},T.createElement(mf,{ref:e,...a}))))}),bm=T.forwardRef((t,e)=>Ft(n=>n.filtered.count===0)?T.createElement(Se.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),Sm=T.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return T.createElement(Se.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},$i(t,s=>T.createElement("div",{"aria-hidden":!0},s)))}),er=Object.assign(mf,{List:mm,Item:hm,Input:vm,Group:pm,Separator:gm,Dialog:ym,Empty:bm,Loading:Sm});function Cm(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function wm(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function yf(t){let e=T.useRef(t);return Kt(()=>{e.current=t}),e}var Kt=typeof window>"u"?T.useEffect:T.useLayoutEffect;function ln(t){let e=T.useRef();return e.current===void 0&&(e.current=t()),e}function tr(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Ft(t){let e=js(),n=()=>t(e.snapshot());return ms.useSyncExternalStore(e.subscribe,n,n)}function bf(t,e,n,r=[]){let i=T.useRef(),o=ur();return Kt(()=>{var s;let a=(()=>{var u;for(let c of n){if(typeof c=="string")return c.trim();if(typeof c=="object"&&"current"in c)return c.current?(u=c.current.textContent)==null?void 0:u.trim():i.current}})(),l=r.map(u=>u.trim());o.value(t,a,l),(s=e.current)==null||s.setAttribute(wt,a),i.current=a}),i}var Em=()=>{let[t,e]=T.useState(),n=ln(()=>new Map);return Kt(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function xm(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&&T.isValidElement(e)?T.cloneElement(xm(e),{ref:e.ref},n(e.props.children)):n(e)}var $m={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Qo=({withPadding:t=!0})=>y.jsx("div",{className:Ve("c__horizontal-separator",{"with-padding":t})}),Sf=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:s}=ae.useCunningham();return i?y.jsxs(y.Fragment,{children:[i,o&&y.jsx(Qo,{})]}):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(Ns,{size:"md"})}),y.jsx(er.Input,{autoFocus:!0,"aria-label":s("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&y.jsx(Qo,{withPadding:!0})]})},Tm=t=>{let e=!1;return d.Children.forEach(t,n=>{e=e||!!n}),e},Cf=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:s,children:a})=>{const l=d.useRef(null);return y.jsx(y.Fragment,{children:y.jsx("div",{className:"quick-search-container",children:y.jsxs(er,{label:o,shouldFilter:!1,ref:l,children:[i&&y.jsx(Sf,{loading:r,withSeparator:Tm(a),inputValue:n,onFilter:t,placeholder:s,children:e}),y.jsx(er.List,{children:y.jsx("div",{children:a})})]})})})},Ar=({children:t,onSelect:e,id:n})=>y.jsx(er.Item,{value:n,onSelect:e,children:t}),wf=({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(er.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,s)=>y.jsx(Ar,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${s}`)),t.elements.map((o,s)=>y.jsx(Ar,{id:`${t.groupName}-element-${s}`,onSelect:()=>{e==null||e(o)},children:n==null?void 0:n(o)},`${t.groupName}-element-${s}`)),(i=t.endActions)==null?void 0:i.map((o,s)=>y.jsx(Ar,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${s}`)),t.emptyString&&t.elements.length===0&&y.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},Ti=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=_n();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:Ve("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},Pm=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:y.jsx("div",{className:Ve("c__tabs",{"c__tabs__full-width":n}),children:y.jsxs(Cg,{defaultSelectedKey:e,children:[y.jsx(Eg,{"aria-label":"History of Ancient Rome",children:t.map(r=>y.jsxs($g,{id:r.id,children:[r.icon&&y.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>y.jsx(Tg,{id:r.id,children:r.content},r.id))]})}),Ef=d.createContext(null);function Oe(){const t=d.useContext(Ef);if(t===null)throw new Error("No Tree Api Provided");return t}const xf=d.createContext(null);function _m(){const t=d.useContext(xf);if(t===null)throw new Error("Provide a NodesContext");return t}const $f=d.createContext(null);function Dm(){const t=d.useContext($f);if(t===null)throw new Error("Provide a DnDContext");return t}const Tf=d.createContext(0);function Pf(){d.useContext(Tf)}function Kr(t,e,n){return Math.max(Math.min(t,n),e)}function _f(t){return t&&t.isLeaf}function Df(t){return t&&t.isInternal&&!t.isOpen}function Of(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const If=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},kf=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function Om(){}function Hs(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=Hs(n,e);if(r)return r}return null}function ai(t,e){if(e(t),t.children)for(let n of t.children)ai(n,e)}function Nf(t){const e=Lf(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=Im(e,r);break}n==null||n.focus()}function Rf(t){const e=Lf(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=km(e,r);break}n==null||n.focus()}function Im(t,e){return e+1<t.length?t[e+1]:t[0]}function km(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function Lf(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 Bn(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function Mf(t){return t===null?null:Et(t)}function Et(t){return typeof t=="string"?t:t.id}function Nm(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Af(t,...e){if(t)return t(...e)}function Kf(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function Ff(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 jf(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const Rm=Object.freeze(Object.defineProperty({__proto__:null,access:Bn,bound:Kr,dfs:Hs,focusNextElement:Nf,focusPrevElement:Rf,getInsertIndex:Ff,getInsertParentId:jf,identify:Et,identifyNull:Mf,indexOf:kf,isClosed:Df,isDescendant:If,isItem:_f,isOpenWithEmptyChildren:Of,mergeRefs:Nm,noop:Om,safeRun:Af,waitFor:Kf,walk:ai},Symbol.toStringTag,{value:"Module"})),Lm={display:"flex",alignItems:"center",zIndex:1},Mm={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},Am={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},Km=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({},Lm),i),children:[y.jsx("div",{style:Object.assign({},Am)}),y.jsx("div",{style:Object.assign({},Mm)})]})});function Fm({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 jm(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(zm,Object.assign({},t)):y.jsx(Hm,Object.assign({},t))]})}function Hm(t){return y.jsx(y.Fragment,{children:y.jsx("span",{children:t.node.data.name})})}function zm({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 uo(t){return{type:"EDIT",id:t}}function Bm(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function Xt(t){return{type:"FOCUS",id:t}}function Vm(){return{type:"TREE_BLUR"}}function Wm(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 li{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===nr}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 li(Object.assign({},this))}edit(){return this.tree.edit(this)}}const nr="__REACT_ARBORIST_INTERNAL_ROOT__";function wl(t){var e;function n(o,s,a){const l=t.accessId(o),u=new li({tree:t,data:o,level:s,parent:a,id:l,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),c=t.accessChildren(o);return c&&(u.children=c.map(f=>n(f,s+1,u))),u}const r=new li({tree:t,id:nr,data:{id:nr},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 es={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 El(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 Um(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:El(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:El(t.unfiltered,e)}):t}const wn=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}}},je={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:Et(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(Et)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(Et)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:Et(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:Et(t)})};function Gm(t=wn().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 En={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 qm(t=wn().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 wn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const Ym={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},Zm=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},Xm=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function Hf({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return y.jsxs(Jm,{isDragging:i,children:[y.jsx(Qm,{offset:t,children:y.jsx(t1,{id:n,dragIds:r})}),y.jsx(e1,{mouse:e,count:r.length})]})}const Jm=d.memo(function(e){return e.isDragging?y.jsx("div",{style:Ym,children:e.children}):null});function Qm(t){return y.jsx("div",{className:"row preview",style:Zm(t.offset),children:t.children})}function e1(t){const{count:e,mouse:n}=t;return e>1?y.jsx("div",{className:"selected-count",style:Xm(n),children:e}):null}const t1=d.memo(function(e){const n=Oe(),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 ts(){return ts=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},ts.apply(null,arguments)}function xl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ns(t,e){return ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ns(t,e)}function n1(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ns(t,e)}var $l=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function r1(t,e){return!!(t===e||$l(t)&&$l(e))}function i1(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!r1(t[n],e[n]))return!1;return!0}function co(t,e){e===void 0&&(e=i1);var n,r=[],i,o=!1;function s(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&e(a,r)||(i=t.apply(this,a),o=!0,n=this,r=a),i}return s}var o1=typeof performance=="object"&&typeof performance.now=="function",Tl=o1?function(){return performance.now()}:function(){return Date.now()};function Pl(t){cancelAnimationFrame(t.id)}function s1(t,e){var n=Tl();function r(){Tl()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var fo=-1;function _l(t){if(t===void 0&&(t=!1),fo===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),fo=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return fo}var Jt=null;function Dl(t){if(t===void 0&&(t=!1),Jt===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Jt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Jt="negative":Jt="positive-ascending"),document.body.removeChild(e),Jt}return Jt}process.env.NODE_ENV;var a1=150,l1=function(e,n){return e},Fr=null,jr=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Fr=new WeakSet,jr=new WeakSet);function u1(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,s=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,l=t.initInstanceProps,u=t.shouldResetStyleCacheOnItemSizeChange,c=t.validateProps;return e=function(f){n1(p,f);function p(b){var h;return h=f.call(this,b)||this,h._instanceProps=l(h.props,xl(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:xl(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=co(function(m,v,C,w){return h.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:v,visibleStartIndex:C,visibleStopIndex:w})}),h._callOnScroll=void 0,h._callOnScroll=co(function(m,v,C){return h.props.onScroll({scrollDirection:m,scrollOffset:v,scrollUpdateWasRequested:C})}),h._getItemStyle=void 0,h._getItemStyle=function(m){var v=h.props,C=v.direction,w=v.itemSize,P=v.layout,x=h._getItemStyleCache(u&&w,u&&P,u&&C),D;if(x.hasOwnProperty(m))D=x[m];else{var _=n(h.props,m,h._instanceProps),S=i(h.props,m,h._instanceProps),R=C==="horizontal"||P==="horizontal",F=C==="rtl",N=R?_:0;x[m]=D={position:"absolute",left:F?void 0:N,right:F?N:void 0,top:R?0:_,height:R?"100%":S,width:R?S:"100%"}}return D},h._getItemStyleCache=void 0,h._getItemStyleCache=co(function(m,v,C){return{}}),h._onScrollHorizontal=function(m){var v=m.currentTarget,C=v.clientWidth,w=v.scrollLeft,P=v.scrollWidth;h.setState(function(x){if(x.scrollOffset===w)return null;var D=h.props.direction,_=w;if(D==="rtl")switch(Dl()){case"negative":_=-w;break;case"positive-descending":_=P-C-w;break}return _=Math.max(0,Math.min(_,P-C)),{isScrolling:!0,scrollDirection:x.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(m){var v=m.currentTarget,C=v.clientHeight,w=v.scrollHeight,P=v.scrollTop;h.setState(function(x){if(x.scrollOffset===P)return null;var D=Math.max(0,Math.min(P,w-C));return{isScrolling:!0,scrollDirection:x.scrollOffset<D?"forward":"backward",scrollOffset:D,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(m){var v=h.props.outerRef;h._outerRef=m,typeof v=="function"?v(m):v!=null&&typeof v=="object"&&v.hasOwnProperty("current")&&(v.current=m)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&Pl(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=s1(h._resetIsScrolling,a1)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}p.getDerivedStateFromProps=function(h,m){return c1(h,m),c(h),null};var g=p.prototype;return g.scrollTo=function(h){h=Math.max(0,h),this.setState(function(m){return m.scrollOffset===h?null:{scrollDirection:m.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(h,m){m===void 0&&(m="auto");var v=this.props,C=v.itemCount,w=v.layout,P=this.state.scrollOffset;h=Math.max(0,Math.min(h,C-1));var x=0;if(this._outerRef){var D=this._outerRef;w==="vertical"?x=D.scrollWidth>D.clientWidth?_l():0:x=D.scrollHeight>D.clientHeight?_l():0}this.scrollTo(o(this.props,h,m,P,this._instanceProps,x))},g.componentDidMount=function(){var h=this.props,m=h.direction,v=h.initialScrollOffset,C=h.layout;if(typeof v=="number"&&this._outerRef!=null){var w=this._outerRef;m==="horizontal"||C==="horizontal"?w.scrollLeft=v:w.scrollTop=v}this._callPropsCallbacks()},g.componentDidUpdate=function(){var h=this.props,m=h.direction,v=h.layout,C=this.state,w=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var x=this._outerRef;if(m==="horizontal"||v==="horizontal")if(m==="rtl")switch(Dl()){case"negative":x.scrollLeft=-w;break;case"positive-ascending":x.scrollLeft=w;break;default:var D=x.clientWidth,_=x.scrollWidth;x.scrollLeft=_-D-w;break}else x.scrollLeft=w;else x.scrollTop=w}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Pl(this._resetIsScrollingTimeoutId)},g.render=function(){var h=this.props,m=h.children,v=h.className,C=h.direction,w=h.height,P=h.innerRef,x=h.innerElementType,D=h.innerTagName,_=h.itemCount,S=h.itemData,R=h.itemKey,F=R===void 0?l1:R,N=h.layout,H=h.outerElementType,E=h.outerTagName,O=h.style,z=h.useIsScrolling,G=h.width,V=this.state.isScrolling,L=C==="horizontal"||N==="horizontal",Y=L?this._onScrollHorizontal:this._onScrollVertical,j=this._getRangeToRender(),B=j[0],k=j[1],I=[];if(_>0)for(var A=B;A<=k;A++)I.push(d.createElement(m,{data:S,key:F(A,S),index:A,isScrolling:z?V:void 0,style:this._getItemStyle(A)}));var M=r(this.props,this._instanceProps);return d.createElement(H||E||"div",{className:v,onScroll:Y,ref:this._outerRefSetter,style:ts({position:"relative",height:w,width:G,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},O)},d.createElement(x||D||"div",{children:I,ref:P,style:{height:L?"100%":M,pointerEvents:V?"none":void 0,width:L?M:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var m=this._getRangeToRender(),v=m[0],C=m[1],w=m[2],P=m[3];this._callOnItemsRendered(v,C,w,P)}}if(typeof this.props.onScroll=="function"){var x=this.state,D=x.scrollDirection,_=x.scrollOffset,S=x.scrollUpdateWasRequested;this._callOnScroll(D,_,S)}},g._getRangeToRender=function(){var h=this.props,m=h.itemCount,v=h.overscanCount,C=this.state,w=C.isScrolling,P=C.scrollDirection,x=C.scrollOffset;if(m===0)return[0,0,0,0];var D=s(this.props,x,this._instanceProps),_=a(this.props,D,x,this._instanceProps),S=!w||P==="backward"?Math.max(1,v):1,R=!w||P==="forward"?Math.max(1,v):1;return[Math.max(0,D-S),Math.max(0,Math.min(m-1,_+R)),D,_]},p}(d.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var c1=function(e,n){var r=e.children,i=e.direction,o=e.height,s=e.layout,a=e.innerTagName,l=e.outerTagName,u=e.width,c=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||l!=null)&&jr&&!jr.has(c)&&(jr.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||s==="horizontal";switch(i){case"horizontal":case"vertical":Fr&&!Fr.has(c)&&(Fr.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(f&&typeof u!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(u===null?"null":typeof u)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},d1=u1({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,s){var a=e.direction,l=e.height,u=e.itemCount,c=e.itemSize,f=e.layout,p=e.width,g=a==="horizontal"||f==="horizontal",b=g?p:l,h=Math.max(0,u*c-b),m=Math.min(h,n*c),v=Math.max(0,n*c-b+c+s);switch(r==="smart"&&(i>=v-b&&i<=m+b?r="auto":r="center"),r){case"start":return m;case"end":return v;case"center":{var C=Math.round(v+(m-v)/2);return C<Math.ceil(b/2)?0:C>h+Math.floor(b/2)?h:C}case"auto":default:return i>=v&&i<=m?i:i<v?v:m}},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,s=e.itemCount,a=e.itemSize,l=e.layout,u=e.width,c=i==="horizontal"||l==="horizontal",f=n*a,p=c?u:o,g=Math.ceil((p+r-f)/a);return Math.max(0,Math.min(s-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 f1(){var t,e;const n=Oe(),i=Dm().cursor;if(!i||i.type!=="line")return null;const o=n.indent,s=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,l=n.renderCursor;return y.jsx(l,{top:s,left:a,indent:o})}var h1=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 p1=d.forwardRef(function(e,n){const{children:r}=e,i=h1(e,["children"]),o=Oe();return y.jsxs("div",Object.assign({ref:n},i,{onClick:s=>{s.currentTarget===s.target&&o.deselectAll()},children:[y.jsx(g1,{}),r]}))}),g1=()=>{const t=Oe();return y.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:y.jsx(f1,{})})};var v1=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 m1=d.forwardRef(function(e,n){var r,i,o,s,{style:a}=e,l=v1(e,["style"]);const u=Oe(),c=(i=(r=u.props.padding)!==null&&r!==void 0?r:u.props.paddingTop)!==null&&i!==void 0?i:0,f=(s=(o=u.props.padding)!==null&&o!==void 0?o:u.props.paddingBottom)!==null&&s!==void 0?s:0;return y.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+c+f}px`})},l))});var zf=d.createContext({dragDropManager:void 0}),Me;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Me||(Me={}));function J(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){var o;if(e===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(e.replace(/%s/g,function(){return r[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var zs="dnd-core/INIT_COORDS",Pi="dnd-core/BEGIN_DRAG",Bs="dnd-core/PUBLISH_DRAG_SOURCE",_i="dnd-core/HOVER",Di="dnd-core/DROP",Oi="dnd-core/END_DRAG";function Ol(t,e){return{type:zs,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Hr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hr=function(n){return typeof n}:Hr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hr(t)}function y1(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n},t)}function b1(t,e){return t.filter(function(n){return n!==e})}function Bf(t){return Hr(t)==="object"}function S1(t,e){var n=new Map,r=function(s){n.set(s,n.has(s)?n.get(s)+1:1)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o,s){o===1&&i.push(s)}),i}function C1(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var w1={type:zs,payload:{clientOffset:null,sourceClientOffset:null}};function E1(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,s=r.clientOffset,a=r.getSourceClientOffset,l=t.getMonitor(),u=t.getRegistry();t.dispatch(Ol(s)),x1(n,l,u);var c=P1(n,l);if(c===null){t.dispatch(w1);return}var f=null;if(s){if(!a)throw new Error("getSourceClientOffset must be defined");$1(a),f=a(c)}t.dispatch(Ol(s,f));var p=u.getSource(c),g=p.beginDrag(l,c);if(g!=null){T1(g),u.pinSource(c);var b=u.getSourceType(c);return{type:Pi,payload:{itemType:b,item:g,sourceId:c,clientOffset:s||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function x1(t,e,n){J(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){J(n.getSource(r),"Expected sourceIds to be registered.")})}function $1(t){J(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function T1(t){J(Bf(t),"Item must be an object.")}function P1(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 _1(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:Bs}}}function rs(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function D1(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;O1(n);var o=n.slice(0),s=t.getMonitor(),a=t.getRegistry();I1(o,s,a);var l=s.getItemType();return k1(o,a,l),N1(o,s,a),{type:_i,payload:{targetIds:o,clientOffset:i||null}}}}function O1(t){J(Array.isArray(t),"Expected targetIds to be an array.")}function I1(t,e,n){J(e.isDragging(),"Cannot call hover while not dragging."),J(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];J(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);J(o,"Expected targetIds to be registered.")}}function k1(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);rs(o,n)||t.splice(r,1)}}function N1(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function Il(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 kl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Il(Object(n),!0).forEach(function(r){R1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function R1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L1(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();M1(r);var o=F1(r);o.forEach(function(s,a){var l=A1(s,a,i,r),u={type:Di,payload:{dropResult:kl(kl({},n),l)}};t.dispatch(u)})}}function M1(t){J(t.isDragging(),"Cannot call drop while not dragging."),J(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function A1(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return K1(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function K1(t){J(typeof t>"u"||Bf(t),"Drop result must either be an object or undefined.")}function F1(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function j1(t){return function(){var n=t.getMonitor(),r=t.getRegistry();H1(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:Oi}}}function H1(t){J(t.isDragging(),"Cannot call endDrag while not dragging.")}function z1(t){return{beginDrag:E1(t),publishDragSource:_1(t),hover:D1(t),drop:L1(t),endDrag:j1(t)}}function B1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function V1(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 W1(t,e,n){return V1(t.prototype,e),t}function An(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var U1=function(){function t(e,n){var r=this;B1(this,t),An(this,"store",void 0),An(this,"monitor",void 0),An(this,"backend",void 0),An(this,"isSetUp",!1),An(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 W1(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(s){return function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];var c=s.apply(n,l);typeof c<"u"&&r(c)}}var o=z1(this);return Object.keys(o).reduce(function(s,a){var l=o[a];return s[a]=i(l),s},{})}},{key:"dispatch",value:function(n){this.store.dispatch(n)}}]),t}();function ke(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 Nl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ho=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rl={INIT:"@@redux/INIT"+ho(),REPLACE:"@@redux/REPLACE"+ho(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ho()}};function G1(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 q1(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(X1(t))return"date";if(Z1(t))return"error";var n=Y1(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 Y1(t){return typeof t.constructor=="function"?t.constructor.name:null}function Z1(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function X1(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Qt(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=q1(t)),e}function Vf(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"?ke(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"?ke(1):"Expected the enhancer to be a function. Instead, received: '"+Qt(n)+"'");return n(Vf)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?ke(2):"Expected the root reducer to be a function. Instead, received: '"+Qt(t)+"'");var i=t,o=e,s=[],a=s,l=!1;function u(){a===s&&(a=s.slice())}function c(){if(l)throw new Error(process.env.NODE_ENV==="production"?ke(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(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?ke(4):"Expected the listener to be a function. Instead, received: '"+Qt(h)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?ke(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 m=!0;return u(),a.push(h),function(){if(m){if(l)throw new Error(process.env.NODE_ENV==="production"?ke(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");m=!1,u();var C=a.indexOf(h);a.splice(C,1),s=null}}}function p(h){if(!G1(h))throw new Error(process.env.NODE_ENV==="production"?ke(7):"Actions must be plain objects. Instead, the actual type was: '"+Qt(h)+"'. 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 h.type>"u")throw new Error(process.env.NODE_ENV==="production"?ke(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?ke(9):"Reducers may not dispatch actions.");try{l=!0,o=i(o,h)}finally{l=!1}for(var m=s=a,v=0;v<m.length;v++){var C=m[v];C()}return h}function g(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?ke(10):"Expected the nextReducer to be a function. Instead, received: '"+Qt(h));i=h,p({type:Rl.REPLACE})}function b(){var h,m=f;return h={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?ke(11):"Expected the observer to be an object. Instead, received: '"+Qt(C)+"'");function w(){C.next&&C.next(c())}w();var P=m(w);return{unsubscribe:P}}},h[Nl]=function(){return this},h}return p({type:Rl.INIT}),r={dispatch:p,subscribe:f,getState:c,replaceReducer:g},r[Nl]=b,r}var J1=function(e,n){return e===n};function Q1(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function ey(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:J1;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 Ll(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 Ml(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ll(Object(n),!0).forEach(function(r){ty(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Al={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ny(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Al,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case zs:case Pi:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case _i:return Q1(t.clientOffset,n.clientOffset)?t:Ml(Ml({},t),{},{clientOffset:n.clientOffset});case Oi:case Di:return Al;default:return t}}var Vs="dnd-core/ADD_SOURCE",Ws="dnd-core/ADD_TARGET",Us="dnd-core/REMOVE_SOURCE",Ii="dnd-core/REMOVE_TARGET";function ry(t){return{type:Vs,payload:{sourceId:t}}}function iy(t){return{type:Ws,payload:{targetId:t}}}function oy(t){return{type:Us,payload:{sourceId:t}}}function sy(t){return{type:Ii,payload:{targetId:t}}}function Kl(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 Ne(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kl(Object(n),!0).forEach(function(r){ay(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kl(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 ly={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function uy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ly,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Pi:return Ne(Ne({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Bs:return Ne(Ne({},t),{},{isSourcePublic:!0});case _i:return Ne(Ne({},t),{},{targetIds:n.targetIds});case Ii:return t.targetIds.indexOf(n.targetId)===-1?t:Ne(Ne({},t),{},{targetIds:b1(t.targetIds,n.targetId)});case Di:return Ne(Ne({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Oi:return Ne(Ne({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function cy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Vs:case Ws:return t+1;case Us:case Ii:return t-1;default:return t}}var ui=[],Gs=[];ui.__IS_NONE__=!0;Gs.__IS_ALL__=!0;function dy(t,e){if(t===ui)return!1;if(t===Gs||typeof e>"u")return!0;var n=C1(e,t);return n.length>0}function fy(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case _i:break;case Vs:case Ws:case Ii:case Us:return ui;case Pi:case Bs:case Oi:case Di:default:return Gs}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,s=S1(r,o),a=s.length>0||!ey(r,o);if(!a)return ui;var l=o[o.length-1],u=r[r.length-1];return l!==u&&(l&&s.push(l),u&&s.push(u)),s}function hy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function Fl(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 jl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fl(Object(n),!0).forEach(function(r){py(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function py(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:fy(t.dirtyHandlerIds,{type:e.type,payload:jl(jl({},e.payload),{},{prevTargetIds:y1(t,"dragOperation.targetIds",[])})}),dragOffset:ny(t.dragOffset,e),refCount:cy(t.refCount,e),dragOperation:uy(t.dragOperation,e),stateId:hy(t.stateId)}}function vy(t,e){return{x:t.x+e.x,y:t.y+e.y}}function Wf(t,e){return{x:t.x-e.x,y:t.y-e.y}}function my(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:Wf(vy(e,r),n)}function yy(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:Wf(e,n)}function by(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sy(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 Cy(t,e,n){return Sy(t.prototype,e),t}function Hl(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){by(this,t),Hl(this,"store",void 0),Hl(this,"registry",void 0),this.store=e,this.registry=n}return Cy(t,[{key:"subscribeToStateChange",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;J(typeof n=="function","listener must be a function."),J(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,a=function(){var u=r.store.getState(),c=u.stateId;try{var f=c===s||c===s+1&&!dy(u.dirtyHandlerIds,o);f||n()}finally{s=c}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;J(typeof n=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var 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 J(r,"Expected to find a valid source. sourceId=".concat(n)),this.isDragging()?!1:r.canDrag(this,n)}},{key:"canDropOnTarget",value:function(n){if(!n)return!1;var r=this.registry.getTarget(n);if(J(r,"Expected to find a valid target. targetId=".concat(n)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(n),o=this.getItemType();return rs(i,o)&&r.canDrop(this,n)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n,!0);if(J(r,"Expected to find a valid source. sourceId=".concat(n)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(n),o=this.getItemType();return i!==o?!1:r.isDragging(this,n)}},{key:"isOverTarget",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!n)return!1;var i=r.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(n),s=this.getItemType();if(s&&!rs(o,s))return!1;var a=this.getTargetIds();if(!a.length)return!1;var l=a.indexOf(n);return i?l===a.length-1:l>-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 my(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return yy(this.store.getState().dragOffset)}}]),t}(),Ey=0;function xy(){return Ey++}function zr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zr=function(n){return typeof n}:zr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zr(t)}function $y(t){J(typeof t.canDrag=="function","Expected canDrag to be a function."),J(typeof t.beginDrag=="function","Expected beginDrag to be a function."),J(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Ty(t){J(typeof t.canDrop=="function","Expected canDrop to be a function."),J(typeof t.hover=="function","Expected hover to be a function."),J(typeof t.drop=="function","Expected beginDrag to be a function.")}function is(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return is(n,!1)});return}J(typeof t=="string"||zr(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 zl=typeof global<"u"?global:self,Uf=zl.MutationObserver||zl.WebKitMutationObserver;function Gf(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function Py(t){let e=1;const n=new Uf(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const _y=typeof Uf=="function"?Py:Gf;class Dy{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=_y(this.flush),this.requestErrorThrow=Gf(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Oy{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 Iy{create(e){const n=this.freeTasks,r=n.length?n.pop():new Oy(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const qf=new Dy,ky=new Iy(qf.registerPendingError);function Ny(t){qf.enqueueTask(ky.create(t))}function Ry(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ly(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 My(t,e,n){return Ly(t.prototype,e),t}function en(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ay(t,e){return Hy(t)||jy(t,e)||Fy(t,e)||Ky()}function Ky(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fy(t,e){if(t){if(typeof t=="string")return Bl(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 Bl(t,e)}}function Bl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jy(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Hy(t){if(Array.isArray(t))return t}function zy(t){var e=xy().toString();switch(t){case Me.SOURCE:return"S".concat(e);case Me.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function Vl(t){switch(t[0]){case"S":return Me.SOURCE;case"T":return Me.TARGET;default:J(!1,"Cannot parse handler ID: ".concat(t))}}function Wl(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done,s=Ay(i.value,2),a=s[1];if(a===e)return!0;r=!!o}while(!r);return!1}var By=function(){function t(e){Ry(this,t),en(this,"types",new Map),en(this,"dragSources",new Map),en(this,"dropTargets",new Map),en(this,"pinnedSourceId",null),en(this,"pinnedSource",null),en(this,"store",void 0),this.store=e}return My(t,[{key:"addSource",value:function(n,r){is(n),$y(r);var i=this.addHandler(Me.SOURCE,n,r);return this.store.dispatch(ry(i)),i}},{key:"addTarget",value:function(n,r){is(n,!0),Ty(r);var i=this.addHandler(Me.TARGET,n,r);return this.store.dispatch(iy(i)),i}},{key:"containsHandler",value:function(n){return Wl(this.dragSources,n)||Wl(this.dropTargets,n)}},{key:"getSource",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;J(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 J(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}},{key:"getSourceType",value:function(n){return J(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}},{key:"getTargetType",value:function(n){return J(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}},{key:"isSourceId",value:function(n){var r=Vl(n);return r===Me.SOURCE}},{key:"isTargetId",value:function(n){var r=Vl(n);return r===Me.TARGET}},{key:"removeSource",value:function(n){var r=this;J(this.getSource(n),"Expected an existing source."),this.store.dispatch(oy(n)),Ny(function(){r.dragSources.delete(n),r.types.delete(n)})}},{key:"removeTarget",value:function(n){J(this.getTarget(n),"Expected an existing target."),this.store.dispatch(sy(n)),this.dropTargets.delete(n),this.types.delete(n)}},{key:"pinSource",value:function(n){var r=this.getSource(n);J(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}},{key:"unpinSource",value:function(){J(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(n,r,i){var o=zy(n);return this.types.set(o,r),n===Me.SOURCE?this.dragSources.set(o,i):n===Me.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function Vy(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=Wy(r),o=new wy(i,new By(i)),s=new U1(i,o),a=t(s,e,n);return s.receiveBackend(a),s}function Wy(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Vf(gy,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var Uy=["children"];function Gy(t,e){return Xy(t)||Zy(t,e)||Yy(t,e)||qy()}function qy(){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 Yy(t,e){if(t){if(typeof t=="string")return Ul(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 Ul(t,e)}}function Ul(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 Zy(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Xy(t){if(Array.isArray(t))return t}function Jy(t,e){if(t==null)return{};var n=Qy(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 Qy(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 Gl=0,Br=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),eb=d.memo(function(e){var n=e.children,r=Jy(e,Uy),i=tb(r),o=Gy(i,2),s=o[0],a=o[1];return d.useEffect(function(){if(a){var l=Yf();return++Gl,function(){--Gl===0&&(l[Br]=null)}}},[]),y.jsx(zf.Provider,Object.assign({value:s},{children:n}),void 0)});function tb(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=nb(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function nb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yf(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Br]||(i[Br]={dragDropManager:Vy(t,e,n,r)}),i[Br]}function Yf(){return typeof global<"u"?global:window}function rb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ib(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 ob(t,e,n){return ib(t.prototype,e),t}function ql(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var po=!1,go=!1,sb=function(){function t(e){rb(this,t),ql(this,"internalMonitor",void 0),ql(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return ob(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){J(!po,"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 po=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{po=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;J(!go,"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 go=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{go=!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 ab(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lb(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 ub(t,e,n){return lb(t.prototype,e),t}function Yl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vo=!1,cb=function(){function t(e){ab(this,t),Yl(this,"internalMonitor",void 0),Yl(this,"targetId",null),this.internalMonitor=e.getMonitor()}return ub(t,[{key:"receiveHandlerId",value:function(n){this.targetId=n}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;J(!vo,"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 vo=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{vo=!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 db(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 fb(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;db(i);var o=n?function(s){return t(s,n)}:t;return hb(i,o)}}function Zf(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=fb(r);e[n]=function(){return i}}}),e}function Zl(t,e){typeof t=="function"?t(e):t.current=e}function hb(t,e){var n=t.ref;return J(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?d.cloneElement(t,{ref:function(i){Zl(n,i),Zl(e,i)}}):d.cloneElement(t,{ref:e})}function Vr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vr=function(n){return typeof n}:Vr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vr(t)}function os(t){return t!==null&&Vr(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ss(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),s=Object.keys(e);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),l=0;l<o.length;l++){var u=o[l];if(!a(u))return!1;var c=t[u],f=e[u];if(i=void 0,i===!1||i===void 0&&c!==f)return!1}return!0}function pb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vb(t,e,n){return gb(t.prototype,e),t}function 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 mb=function(){function t(e){var n=this;pb(this,t),we(this,"hooks",Zf({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,os(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,os(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),we(this,"handlerId",null),we(this,"dragSourceRef",null),we(this,"dragSourceNode",void 0),we(this,"dragSourceOptionsInternal",null),we(this,"dragSourceUnsubscribe",void 0),we(this,"dragPreviewRef",null),we(this,"dragPreviewNode",void 0),we(this,"dragPreviewOptionsInternal",null),we(this,"dragPreviewUnsubscribe",void 0),we(this,"lastConnectedHandlerId",null),we(this,"lastConnectedDragSource",null),we(this,"lastConnectedDragSourceOptions",null),we(this,"lastConnectedDragPreview",null),we(this,"lastConnectedDragPreviewOptions",null),we(this,"backend",void 0),this.backend=e}return vb(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!ss(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!ss(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 yb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bb(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 Sb(t,e,n){return bb(t.prototype,e),t}function qe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cb=function(){function t(e){var n=this;yb(this,t),qe(this,"hooks",Zf({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,os(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),qe(this,"handlerId",null),qe(this,"dropTargetRef",null),qe(this,"dropTargetNode",void 0),qe(this,"dropTargetOptionsInternal",null),qe(this,"unsubscribeDropTarget",void 0),qe(this,"lastConnectedHandlerId",null),qe(this,"lastConnectedDropTarget",null),qe(this,"lastConnectedDropTargetOptions",null),qe(this,"backend",void 0),this.backend=e}return Sb(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!ss(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 wb(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function Eb(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var jt=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Wr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wr=function(n){return typeof n}:Wr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wr(t)}function xb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $b(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 Tb(t,e,n){return $b(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 Pb=function(){function t(e,n,r){xb(this,t),mo(this,"spec",void 0),mo(this,"monitor",void 0),mo(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return Tb(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Wr(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,s=i.isDragging;return s?s(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 _b(t,e,n){var r=d.useMemo(function(){return new Pb(t,e,n)},[e,n]);return d.useEffect(function(){r.spec=t},[t]),r}function Bt(){var t=d.useContext(zf),e=t.dragDropManager;return J(e!=null,"Expected drag drop context"),e}function Db(t){return d.useMemo(function(){var e=t.type;return J(e!=null,"spec.type must be defined"),e},[t])}function Ob(t,e){return Rb(t)||Nb(t,e)||kb(t,e)||Ib()}function Ib(){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 kb(t,e){if(t){if(typeof t=="string")return Xl(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 Xl(t,e)}}function Xl(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 Nb(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Rb(t){if(Array.isArray(t))return t}function Lb(t,e,n){var r=Bt(),i=_b(t,e,n),o=Db(t);jt(function(){if(o!=null){var a=Eb(o,i,r),l=Ob(a,2),u=l[0],c=l[1];return e.receiveHandlerId(u),n.receiveHandlerId(u),c}},[r,e,n,i,o])}function Mb(t){return jb(t)||Fb(t)||Kb(t)||Ab()}function Ab(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
95
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kb(t,e){if(t){if(typeof t=="string")return as(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 as(t,e)}}function Fb(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jb(t){if(Array.isArray(t))return as(t)}function as(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 Xf(t,e){var n=Mb(e||[]);return e==null&&typeof t!="function"&&n.push(t),d.useMemo(function(){return typeof t=="function"?t():t},n)}function Hb(){var t=Bt();return d.useMemo(function(){return new sb(t)},[t])}function zb(t,e){var n=Bt(),r=d.useMemo(function(){return new mb(n.getBackend())},[n]);return jt(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),jt(function(){return r.dragPreviewOptions=e||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,e]),r}var yo,Jl;function Bb(){return Jl||(Jl=1,yo=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 s=o[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}),yo}var Vb=Bb();const Wb=$0(Vb);function Ub(t,e){return Zb(t)||Yb(t,e)||qb(t,e)||Gb()}function Gb(){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 qb(t,e){if(t){if(typeof t=="string")return Ql(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 Ql(t,e)}}function Ql(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 Yb(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Zb(t){if(Array.isArray(t))return t}function Jf(t,e,n){var r=d.useState(function(){return e(t)}),i=Ub(r,2),o=i[0],s=i[1],a=d.useCallback(function(){var l=e(t);Wb(o,l)||(s(l),n&&n())},[o,t,n]);return jt(a),[o,a]}function Xb(t,e){return t9(t)||e9(t,e)||Qb(t,e)||Jb()}function Jb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
97
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qb(t,e){if(t){if(typeof t=="string")return eu(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 eu(t,e)}}function eu(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 e9(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function t9(t){if(Array.isArray(t))return t}function n9(t,e,n){var r=Jf(t,e,n),i=Xb(r,2),o=i[0],s=i[1];return jt(function(){var l=t.getHandlerId();if(l!=null)return t.subscribeToStateChange(s,{handlerIds:[l]})},[t,s]),o}function Qf(t,e,n){return n9(e,t||function(){return{}},function(){return n.reconnect()})}function r9(t){return d.useMemo(function(){return t.hooks.dragSource()},[t])}function i9(t){return d.useMemo(function(){return t.hooks.dragPreview()},[t])}function o9(t,e){var n=Xf(t,e);J(!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=Hb(),i=zb(n.options,n.previewOptions);return Lb(n,r,i),[Qf(n.collect,r,i),r9(i),i9(i)]}function s9(t){var e=t.accept;return d.useMemo(function(){return J(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function a9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l9(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 u9(t,e,n){return l9(t.prototype,e),t}function tu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c9=function(){function t(e,n){a9(this,t),tu(this,"spec",void 0),tu(this,"monitor",void 0),this.spec=e,this.monitor=n}return u9(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 d9(t,e){var n=d.useMemo(function(){return new c9(t,e)},[e]);return d.useEffect(function(){n.spec=t},[t]),n}function f9(t,e){return v9(t)||g9(t,e)||p9(t,e)||h9()}function h9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
98
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p9(t,e){if(t){if(typeof t=="string")return nu(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 nu(t,e)}}function nu(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,s,a;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function v9(t){if(Array.isArray(t))return t}function m9(t,e,n){var r=Bt(),i=d9(t,e),o=s9(t);jt(function(){var a=wb(o,i,r),l=f9(a,2),u=l[0],c=l[1];return e.receiveHandlerId(u),n.receiveHandlerId(u),c},[r,e,i,n,o.map(function(s){return s.toString()}).join("|")])}function y9(){var t=Bt();return d.useMemo(function(){return new cb(t)},[t])}function b9(t){var e=Bt(),n=d.useMemo(function(){return new Cb(e.getBackend())},[e]);return jt(function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}},[t]),n}function S9(t){return d.useMemo(function(){return t.hooks.dropTarget()},[t])}function e0(t,e){var n=Xf(t,e),r=y9(),i=b9(n.options);return m9(n,r,i),[Qf(n.collect,r,i),S9(i)]}function C9(t,e){return $9(t)||x9(t,e)||E9(t,e)||w9()}function w9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
99
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E9(t,e){if(t){if(typeof t=="string")return ru(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 ru(t,e)}}function ru(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 x9(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function $9(t){if(Array.isArray(t))return t}function T9(t){var e=Bt(),n=e.getMonitor(),r=Jf(n,t),i=C9(r,2),o=i[0],s=i[1];return d.useEffect(function(){return n.subscribeToOffsetChange(s)}),d.useEffect(function(){return n.subscribeToStateChange(s)}),o}function t0(t){var e=null,n=function(){return e==null&&(e=t()),e};return n}function P9(t,e){return t.filter(function(n){return n!==e})}function _9(t,e){var n=new Set,r=function(s){return n.add(s)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o){return i.push(o)}),i}function D9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O9(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 I9(t,e,n){return O9(t.prototype,e),t}function iu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k9=function(){function t(e){D9(this,t),iu(this,"entered",[]),iu(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return I9(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=_9(this.entered.filter(o),[n]),i===0&&this.entered.length>0}},{key:"leave",value:function(n){var r=this.entered.length;return this.entered=P9(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),N9=t0(function(){return/firefox/i.test(navigator.userAgent)}),n0=t0(function(){return!!window.safari});function R9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L9(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 L9(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 ou=function(){function t(e,n){R9(this,t),Kn(this,"xs",void 0),Kn(this,"ys",void 0),Kn(this,"c1s",void 0),Kn(this,"c2s",void 0),Kn(this,"c3s",void 0);for(var r=e.length,i=[],o=0;o<r;o++)i.push(o);i.sort(function(S,R){return e[S]<e[R]?-1:1});for(var s=[],a=[],l,u,c=0;c<r-1;c++)l=e[c+1]-e[c],u=n[c+1]-n[c],s.push(l),a.push(u/l);for(var f=[a[0]],p=0;p<s.length-1;p++){var g=a[p],b=a[p+1];if(g*b<=0)f.push(0);else{l=s[p];var h=s[p+1],m=l+h;f.push(3*m/((m+h)/g+(m+l)/b))}}f.push(a[a.length-1]);for(var v=[],C=[],w,P=0;P<f.length-1;P++){w=a[P];var x=f[P],D=1/s[P],_=x+f[P+1]-w-w;v.push((w-x-_)*D),C.push(_*D*D)}this.xs=e,this.ys=n,this.c1s=f,this.c2s=v,this.c3s=C}return M9(t,[{key:"interpolate",value:function(n){var r=this.xs,i=this.ys,o=this.c1s,s=this.c2s,a=this.c3s,l=r.length-1;if(n===r[l])return i[l];for(var u=0,c=a.length-1,f;u<=c;){f=Math.floor(.5*(u+c));var p=r[f];if(p<n)u=f+1;else if(p>n)c=f-1;else return i[f]}l=Math.max(0,c);var g=n-r[l],b=g*g;return i[l]+o[l]*g+s[l]*b+a[l]*g*b}}]),t}(),A9=1;function r0(t){var e=t.nodeType===A9?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top,i=n.left;return{x:i,y:r}}function Or(t){return{x:t.clientX,y:t.clientY}}function K9(t){var e;return t.nodeName==="IMG"&&(N9()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function F9(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return n0()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function j9(t,e,n,r,i){var o=K9(e),s=o?t:e,a=r0(s),l={x:n.x-a.x,y:n.y-a.y},u=t.offsetWidth,c=t.offsetHeight,f=r.anchorX,p=r.anchorY,g=F9(o,e,u,c),b=g.dragPreviewWidth,h=g.dragPreviewHeight,m=function(){var _=new ou([0,.5,1],[l.y,l.y/c*h,l.y+h-c]),S=_.interpolate(p);return n0()&&o&&(S+=(window.devicePixelRatio-1)*h),S},v=function(){var _=new ou([0,.5,1],[l.x,l.x/u*b,l.x+b-u]);return _.interpolate(f)},C=i.offsetX,w=i.offsetY,P=C===0||C,x=w===0||w;return{x:P?C:v(),y:x?w:m()}}var i0="__NATIVE_FILE__",o0="__NATIVE_URL__",s0="__NATIVE_TEXT__",a0="__NATIVE_HTML__";const su=Object.freeze(Object.defineProperty({__proto__:null,FILE:i0,HTML:a0,TEXT:s0,URL:o0},Symbol.toStringTag,{value:"Module"}));function bo(t,e,n){var r=e.reduce(function(i,o){return i||t.getData(o)},"");return r??n}var tn;function Ir(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ls=(tn={},Ir(tn,i0,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),Ir(tn,a0,{exposeProperties:{html:function(e,n){return bo(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),Ir(tn,o0,{exposeProperties:{urls:function(e,n){return bo(e,n,"").split(`
100
- `)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Ir(tn,s0,{exposeProperties:{text:function(e,n){return bo(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),tn);function H9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z9(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 B9(t,e,n){return z9(t.prototype,e),t}function au(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var V9=function(){function t(e){H9(this,t),au(this,"item",void 0),au(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return B9(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 W9(t,e){var n=new V9(ls[t]);return n.loadDataTransfer(e),n}function So(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(ls).filter(function(n){var r=ls[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function U9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G9(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 q9(t,e,n){return G9(t.prototype,e),t}function Co(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Y9=function(){function t(e,n){U9(this,t),Co(this,"ownerDocument",null),Co(this,"globalContext",void 0),Co(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return q9(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 lu(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 uu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lu(Object(n),!0).forEach(function(r){ne(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Z9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X9(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 J9(t,e,n){return X9(t.prototype,e),t}function ne(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Q9=function(){function t(e,n,r){var i=this;Z9(this,t),ne(this,"options",void 0),ne(this,"actions",void 0),ne(this,"monitor",void 0),ne(this,"registry",void 0),ne(this,"enterLeaveCounter",void 0),ne(this,"sourcePreviewNodes",new Map),ne(this,"sourcePreviewNodeOptions",new Map),ne(this,"sourceNodes",new Map),ne(this,"sourceNodeOptions",new Map),ne(this,"dragStartSourceIds",null),ne(this,"dropTargetIds",[]),ne(this,"dragEnterTargetIds",[]),ne(this,"currentNativeSource",null),ne(this,"currentNativeHandle",null),ne(this,"currentDragSourceNode",null),ne(this,"altKeyPressed",!1),ne(this,"mouseMoveTimeoutTimer",null),ne(this,"asyncEndDragFrameId",null),ne(this,"dragOverTargetIds",null),ne(this,"lastClientOffset",null),ne(this,"hoverRafId",null),ne(this,"getSourceClientOffset",function(o){var s=i.sourceNodes.get(o);return s&&r0(s)||null}),ne(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),ne(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),ne(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),ne(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var s=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=Or(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var l=o.dataTransfer,u=So(l);if(i.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){var c=i.monitor.getSourceId(),f=i.sourceNodes.get(c),p=i.sourcePreviewNodes.get(c)||f;if(p){var g=i.getCurrentSourcePreviewNodeOptions(),b=g.anchorX,h=g.anchorY,m=g.offsetX,v=g.offsetY,C={anchorX:b,anchorY:h},w={offsetX:m,offsetY:v},P=j9(f,p,a,C,w);l.setDragImage(p,P.x,P.y)}}try{l==null||l.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var x=i.getCurrentSourcePreviewNodeOptions(),D=x.captureDraggingState;D?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(u)i.beginDragNativeItem(u);else{if(l&&!l.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),ne(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var s=i.enterLeaveCounter.enter(o.target);if(!(!s||i.monitor.isDragging())){var a=o.dataTransfer,l=So(a);l&&i.beginDragNativeItem(l,a)}}),ne(this,"handleTopDragEnter",function(o){var s=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,s.length>0&&i.actions.hover(s,{clientOffset:Or(o)});var a=s.some(function(l){return i.monitor.canDropOnTarget(l)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),ne(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),ne(this,"handleTopDragOver",function(o){var s=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=Or(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(s||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var a=(s||[]).some(function(l){return i.monitor.canDropOnTarget(l)});a?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),ne(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var s=i.enterLeaveCounter.leave(o.target);s&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),ne(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var s;o.preventDefault(),(s=i.currentNativeSource)===null||s===void 0||s.loadDataTransfer(o.dataTransfer)}else So(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),ne(this,"handleTopDrop",function(o){var s=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(s,{clientOffset:Or(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleSelectStart",function(o){var s=o.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(o.preventDefault(),s.dragDrop()))}),this.options=new Y9(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new k9(this.isNodeInDocument)}return J9(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 s=function(u){return o.handleDragStart(u,n)},a=function(u){return o.handleSelectStart(u)};return r.setAttribute("draggable","true"),r.addEventListener("dragstart",s),r.addEventListener("selectstart",a),function(){o.sourceNodes.delete(n),o.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",s),r.removeEventListener("selectstart",a),r.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(n,r){var i=this,o=function(u){return i.handleDragEnter(u,n)},s=function(u){return i.handleDragOver(u,n)},a=function(u){return i.handleDrop(u,n)};return r.addEventListener("dragenter",o),r.addEventListener("dragover",s),r.addEventListener("drop",a),function(){r.removeEventListener("dragenter",o),r.removeEventListener("dragover",s),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 uu({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 uu({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(su).some(function(r){return su[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=W9(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}(),kr;function e4(){return kr||(kr=new Image,kr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),kr}var t4=function(e,n,r){return new Q9(e,n,r)};function n4(t){const e=Oe(),n=e.selectedIds,[r,i,o]=o9(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const s=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(En.dragStart(t.id,s)),{id:t.id,dragIds:s}},end:()=>{e.hideCursor(),e.dispatch(En.dragEnd())}}),[n,t]);return d.useEffect(()=>{o(e4())},[o]),i}function r4(t,e){const n=t.getBoundingClientRect(),r=e.x-Math.round(n.x),i=e.y-Math.round(n.y),o=n.height,s=i<o/2,a=!s,l=o/4,u=i>l&&i<o-l;return{x:r,inTopHalf:s,inBottomHalf:a,inMiddle:u,atTop:!u&&s,atBottom:!u&&a}}function i4(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 Nr(t,e){return{parentId:t||null,index:e}}function nn(t,e){return{type:"line",index:t,level:e}}function o4(t){return{type:"highlight",id:t}}function wo(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=kf(r)+1;return{parentId:i,index:o}}function l0(t){var e;const n=r4(t.element,t.offset),r=t.indent,i=Math.round(Math.max(0,n.x-r)/r),{node:o,nextNode:s,prevNode:a}=t,[l,u]=i4(o,a,s,n);if(o&&o.isInternal&&n.inMiddle)return{drop:Nr(o.id,null),cursor:o4(o.id)};if(!l)return{drop:Nr((e=u==null?void 0:u.parent)===null||e===void 0?void 0:e.id,0),cursor:nn(0,0)};if(_f(l)){const c=Kr(i,(u==null?void 0:u.level)||0,l.level);return{drop:wo(l,c),cursor:nn(l.rowIndex+1,c)}}if(Df(l)){const c=Kr(i,(u==null?void 0:u.level)||0,l.level);return{drop:wo(l,c),cursor:nn(l.rowIndex+1,c)}}if(Of(l)){const c=Kr(i,0,l.level+1);return c>l.level?{drop:Nr(l.id,0),cursor:nn(l.rowIndex+1,c)}:{drop:wo(l,c),cursor:nn(l.rowIndex+1,c)}}return{drop:Nr(l==null?void 0:l.id,0),cursor:nn(l.rowIndex+1,l.level+1)}}function s4(t,e){const n=Oe(),[r,i]=e0(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,s)=>{const a=s.getClientOffset();if(!t.current||!a)return;const{cursor:l,drop:u}=l0({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});u&&n.dispatch(En.hovering(u.parentId,u.index)),s.canDrop()?l&&n.showCursor(l):n.hideCursor()},drop:(o,s)=>{if(!s.canDrop())return null;let{parentId:a,index:l,dragIds:u}=n.state.dnd;Af(n.props.onMove,{dragIds:u,parentId:a===nr?null:a,index:l===null?0:l,dragNodes:n.dragNodes,parentNode:n.get(a)}),n.open(a)}}),[e,t.current,n.props]);return i}function a4(t){const e=Oe(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return d.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const l4=d.memo(function({index:e,style:n}){Pf(),_m();const r=Oe(),i=a4(e),o=d.useRef(null),s=n4(i),a=s4(o,i),l=d.useCallback(h=>{o.current=h,a(h)},[a]),u=r.indent*i.level,c=d.useMemo(()=>({paddingLeft:u}),[u]),f=d.useMemo(()=>{var h,m;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((m=(h=r.props.padding)!==null&&h!==void 0?h:r.props.paddingTop)!==null&&m!==void 0?m:0)})},[n,r.props.padding,r.props.paddingTop]),p={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:r.props.rowClassName};d.useEffect(()=>{var h;!i.isEditing&&i.isFocused&&((h=o.current)===null||h===void 0||h.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const g=r.renderNode,b=r.renderRow;return y.jsx(b,{node:i,innerRef:l,attrs:p,children:y.jsx(g,{node:i,tree:r,style:c,dragHandle:s})})});let Eo="",cu=null;function u0(){Pf();const t=Oe();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 s=o.nextSibling,a=o.parent;t.focus(s||a,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),Nf(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),Rf(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(cu),Eo+=e.key,cu=setTimeout(()=>{Eo=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(Eo):!1});r&&t.focus(r.id)},children:y.jsx(d1,{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:p1,innerElementType:m1,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:l4})})}function du(t){return t.isFiltered?c4(t.root,t.isMatch.bind(t)):u4(t.root)}function u4(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(c0),e}function c4(t,e){const n={},r=[];function i(s){if(!s.isRoot&&e(s)){n[s.id]=!0;let l=s.parent;for(;l;)n[l.id]=!0,l=l.parent}if(s.children)for(let l of s.children)i(l)}function o(s){var a;s.level>=0&&n[s.id]&&r.push(s),s.isOpen&&((a=s.children)===null||a===void 0||a.forEach(o))}return i(t),o(t),r.forEach(c0),r}function c0(t,e){t.rowIndex=e}const fu=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var xo=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};const{safeRun:pe,identify:nt,identifyNull:He}=Rm;class mn{constructor(e,n,r,i){this.store=e,this.props=n,this.list=r,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=wl(this),this.visibleNodes=du(this),this.idToIndex=fu(this.visibleNodes)}update(e){this.props=e,this.root=wl(this),this.visibleNodes=du(this),this.idToIndex=fu(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=Bn(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=Bn(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 s=Math.min(i,o),a=Math.max(i,o);return this.visibleNodes.slice(s,a+1)}indexOf(e){const n=Mf(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 xo(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?jf(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:Ff(this),s=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield pe(this.props.onCreate,{type:s,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 xo(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(nt),i=r.map(o=>this.get(o)).filter(o=>!!o);yield pe(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=nt(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(uo(n)),new Promise(r=>{mn.editPromise=r})}submit(e,n){return xo(this,void 0,void 0,function*(){if(!e)return;const r=nt(e);yield pe(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(uo(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(uo(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(He(e));n&&pe(this.props.onActivate,n)}resolveEdit(e){const n=mn.editPromise;n&&n(e),mn.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&e.push(r)}return e}focus(e,n={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(Xt(nt(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&pe(this.props.onFocus,this.focusedNode)))}pageUp(){var e,n;const r=this.visibleStartIndex,o=this.visibleStopIndex-r;let s=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;s>r?s=r:s=Math.max(r-o,0),this.focus(this.at(s))}pageDown(){var e,n;const r=this.visibleStartIndex,i=this.visibleStopIndex,o=i-r;let s=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;s<i?s=i:s=Math.min(s+o,this.visibleNodes.length-1),this.focus(this.at(s))}select(e,n={}){if(!e)return;const r=n.focus!==!1,i=nt(e);r&&this.dispatch(Xt(i)),this.dispatch(je.only(i)),this.dispatch(je.anchor(i)),this.dispatch(je.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&pe(this.props.onFocus,this.focusedNode),pe(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=nt(e);this.dispatch(je.remove(n)),pe(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(He(e));n&&(this.dispatch(Xt(n.id)),this.dispatch(je.add(n.id)),this.dispatch(je.anchor(n.id)),this.dispatch(je.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&pe(this.props.onFocus,this.focusedNode),pe(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=nt(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(Xt(n)),this.dispatch(je.remove(this.nodesBetween(r,i))),this.dispatch(je.add(this.nodesBetween(r,He(n)))),this.dispatch(je.mostRecent(n)),this.scrollTo(n),this.focusedNode&&pe(this.props.onFocus,this.focusedNode),pe(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),pe(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(Xt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&pe(this.props.onFocus,this.focusedNode),pe(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(nt)),i=He(e.anchor),o=He(e.mostRecent);this.dispatch(je.set({ids:r,anchor:i,mostRecent:o})),pe(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&&If(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(En.cursor({type:"none"}))}showCursor(e){this.dispatch(En.cursor(e))}open(e){const n=He(e);n&&(this.isOpen(n)||(this.dispatch(es.open(n,this.isFiltered)),pe(this.props.onToggle,n)))}close(e){const n=He(e);n&&this.isOpen(n)&&(this.dispatch(es.close(n,this.isFiltered)),pe(this.props.onToggle,n))}toggle(e){const n=He(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=He(e);if(!n)return;const r=Hs(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(){ai(this.root,e=>{e.isInternal&&e.open()})}closeAll(){ai(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=nt(e);return this.openParents(r),Kf(()=>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===nr)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!Bn(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!Bn(e,n)}isDragging(e){const n=He(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=He(e);if(!n)return!1;const{destinationParentId:r,destinationIndex:i}=this.state.nodes.drag;return n===r&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(Xt(e.id))}onBlur(){this.dispatch(Vm())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||u0}get renderRow(){return this.props.renderRow||Fm}get renderNode(){return this.props.children||jm}get renderDragPreview(){return this.props.renderDragPreview||Hf}get renderCursor(){return this.props.renderCursor||Km}}function Ee(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 d4=typeof Symbol=="function"&&Symbol.observable||"@@observable",hu=d4,$o=()=>Math.random().toString(36).substring(7).split("").join("."),f4={INIT:`@@redux/INIT${$o()}`,REPLACE:`@@redux/REPLACE${$o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${$o()}`},Ot=f4;function d0(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 h4(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(v4(t))return"date";if(g4(t))return"error";const n=p4(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 p4(t){return typeof t.constructor=="function"?t.constructor.name:null}function g4(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function v4(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function ft(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=h4(t)),e}function f0(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ee(2):`Expected the root reducer to be a function. Instead, received: '${ft(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ee(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"?Ee(1):`Expected the enhancer to be a function. Instead, received: '${ft(n)}'`);return n(f0)(t,e)}let r=t,i=e,o=new Map,s=o,a=0,l=!1;function u(){s===o&&(s=new Map,o.forEach((m,v)=>{s.set(v,m)}))}function c(){if(l)throw new Error(process.env.NODE_ENV==="production"?Ee(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(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?Ee(4):`Expected the listener to be a function. Instead, received: '${ft(m)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?Ee(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 v=!0;u();const C=a++;return s.set(C,m),function(){if(v){if(l)throw new Error(process.env.NODE_ENV==="production"?Ee(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,u(),s.delete(C),o=null}}}function p(m){if(!d0(m))throw new Error(process.env.NODE_ENV==="production"?Ee(7):`Actions must be plain objects. Instead, the actual type was: '${ft(m)}'. 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 m.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ee(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof m.type!="string")throw new Error(process.env.NODE_ENV==="production"?Ee(17):`Action "type" property must be a string. Instead, the actual type was: '${ft(m.type)}'. Value was: '${m.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?Ee(9):"Reducers may not dispatch actions.");try{l=!0,i=r(i,m)}finally{l=!1}return(o=s).forEach(C=>{C()}),m}function g(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?Ee(10):`Expected the nextReducer to be a function. Instead, received: '${ft(m)}`);r=m,p({type:Ot.REPLACE})}function b(){const m=f;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?Ee(11):`Expected the observer to be an object. Instead, received: '${ft(v)}'`);function C(){const P=v;P.next&&P.next(c())}return C(),{unsubscribe:m(C)}},[hu](){return this}}}return p({type:Ot.INIT}),{dispatch:p,subscribe:f,getState:c,replaceReducer:g,[hu]:b}}function pu(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function m4(t,e,n,r){const i=Object.keys(e),o=n&&n.type===Ot.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!d0(t))return`The ${o} has unexpected type of "${ft(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const s=Object.keys(t).filter(a=>!e.hasOwnProperty(a)&&!r[a]);if(s.forEach(a=>{r[a]=!0}),!(n&&n.type===Ot.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function y4(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Ot.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Ee(12):`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Ot.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Ee(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Ot.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function gu(t){const e=Object.keys(t),n={};for(let s=0;s<e.length;s++){const a=e[s];process.env.NODE_ENV!=="production"&&typeof t[a]>"u"&&pu(`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{y4(n)}catch(s){o=s}return function(a={},l){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=m4(a,n,l,i);f&&pu(f)}let u=!1;const c={};for(let f=0;f<r.length;f++){const p=r[f],g=n[p],b=a[p],h=g(b,l);if(typeof h>"u"){const m=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?Ee(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}c[p]=h,u=u||h!==b}return u=u||r.length!==Object.keys(a).length,u?c:a}}function b4(t=wn().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 S4=gu({nodes:gu({focus:Wm,edit:Bm,open:Um,selection:Gm,drag:b4}),dnd:qm}),C4=wn();function w4({treeProps:t,imperativeHandle:e,children:n}){const r=d.useRef(null),i=d.useRef(null),o=d.useRef(f0(S4,wn(t))),s=ms.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>C4),a=d.useMemo(()=>new mn(o.current,t,r,i),[]),l=d.useRef(0);return d.useMemo(()=>{l.current+=1,a.update(t)},[...Object.values(t),s.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(es.clear(!0))},[a.props.searchTerm]),y.jsx(Ef.Provider,{value:a,children:y.jsx(Tf.Provider,{value:l.current,children:y.jsx(xf.Provider,{value:s.nodes,children:y.jsx($f.Provider,{value:s.dnd,children:y.jsx(eb,Object.assign({backend:t4,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function E4(){const t=Oe(),[,e]=e0(()=>({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:s}=l0({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});s&&t.dispatch(En.hovering(s.parentId,s.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function x4(t){return E4(),t.children}function $4(){const e=Oe().props.renderContainer||u0;return y.jsx(y.Fragment,{children:y.jsx(e,{})})}function T4(){const t=Oe(),{offset:e,mouse:n,item:r,isDragging:i}=T9(s=>({offset:s.getSourceClientOffset(),mouse:s.getClientOffset(),item:s.getItem(),isDragging:s.isDragging()})),o=t.props.renderDragPreview||Hf;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 P4{constructor(e){this.root=_4(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 _4(t){const e=new h0({id:"ROOT"},null);return e.children=t.map(n=>qs(n,e)),e}function qs(t,e){const n=new h0(t,e);return t.children&&(n.children=t.children.map(r=>qs(r,n))),n}class h0{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=qs(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 D4=0;function O4(t){const[e,n]=d.useState(t),r=d.useMemo(()=>new P4(e),[e]);return[e,{onMove:u=>{for(const c of u.dragIds)r.move({id:c,parentId:u.parentId,index:u.index});n(r.data)},onRename:({name:u,id:c})=>{r.update({id:c,changes:{name:u}}),n(r.data)},onCreate:({parentId:u,index:c,type:f})=>{const p={id:`simple-tree-id-${D4++}`,name:""};return f==="internal"&&(p.children=[]),r.create({parentId:u,index:c,data:p}),n(r.data),p},onDelete:u=>{u.ids.forEach(c=>r.drop({id:c})),n(r.data)}}]}function I4(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
101
- Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,n]=O4(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function k4(t,e){const n=I4(t);return y.jsxs(w4,{treeProps:n,imperativeHandle:e,children:[y.jsx(x4,{children:y.jsx($4,{})}),y.jsx(T4,{})]})}const N4=d.forwardRef(k4),p0=({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 R4(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 s=i.current,a=r.current,l=s||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===l&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:l,subscriber:t,cleanup:l?t(l):void 0})},[t]);return d.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),d.useCallback(function(s){i.current=s,o()},[o])}function vu(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 L4(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}),s=o[0],a=o[1],l=d.useRef(!1);d.useEffect(function(){return l.current=!1,function(){l.current=!0}},[]);var u=d.useRef({width:void 0,height:void 0}),c=R4(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(p){var g=p[0],b=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=vu(g,b,"inlineSize"),m=vu(g,b,"blockSize"),v=h?r(h):void 0,C=m?r(m):void 0;if(u.current.width!==v||u.current.height!==C){var w={width:v,height:C};u.current.width=v,u.current.height=C,n.current?n.current(w):l.current||a(w)}})}),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:c,width:s.width,height:s.height}},[c,s.width,s.height])}var Ke=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(Ke||{}),xt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(xt||{});const ci=t=>t?t.nodeType===Ke.SEPARATOR:!1,di=t=>t?t.nodeType===Ke.TITLE:!1,Vn=t=>!ci(t)&&!di(t),g0=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:s,insertAfter:a,append:l,prepend:u,getItem:c,move:f,items:p}=Gp({initialItems:JSON.parse(JSON.stringify(t)),getKey:j=>j.id,getChildren:j=>j.children||[]}),[g,b]=d.useState(),h=(j=[])=>{const B=p.map(I=>I.key);r(...B);const k=JSON.parse(JSON.stringify(j));k.length>0&&o(null,0,...k),b(void 0)},m=j=>{const B=c(j);B&&b(B.value)},v=(j,B,k)=>{var I;if(j){const A=c(j);A&&o(j,k??((I=A.children)==null?void 0:I.length)??0,B)}else o(null,k??p.length,B)},C=j=>{var B;return(B=c(j))==null?void 0:B.value},w=(j,B)=>{var W;const k=c(j);if(!k){console.error("No item found");return}let I=((W=k.children)==null?void 0:W.map(U=>U.value))??null;const A=B.childrenCount??k.value.childrenCount??0;if((I==null?void 0:I.length)===0&&A>0&&(I=null),B.children&&(I=[...I??[],...B.children]),B.children){const U=new Set(B.children.map(K=>K.id));I=B.children.filter(K=>!U.has(K.id)),I=[...I??[],...B.children]}const M={...k.value,...B,children:I,childrenCount:(I==null?void 0:I.length)??A};i(j,M)},P=j=>{r(j)},x=j=>{r(...j)},D=async j=>{if(!e){console.error("No refresh callback provided");return}try{const B=await e(j);w(j,B)}catch(B){console.error("error while refreshing node:",B)}},_=(j,B)=>{o(null,B??p.length,j)},S=(j,B)=>{o(null,B??p.length,...j)},R=(j,B)=>{const k=c(j);if(!k){console.error("No item found");return}const I={...k.value,children:B,childrenCount:B.length,hasLoadedChildren:B.length>0};i(j,I)},F=j=>{const B=[],k=c(j);if(!k)return[];B.push(k.value);const I=A=>{const M=N(A);if(!M)return;const W=c(M);W&&(B.push(W.value),I(M))};return I(j),B.reverse()},N=j=>{var B;return((B=c(j))==null?void 0:B.parentKey)??null},H=j=>{const B=N(j);if(!B)return null;const k=c(B);return k?k.value:null},E=(j,B)=>{s(j,B)},O=(j,B)=>{a(j,B)},z=(j,B)=>{l(j,B)},G=(j,B)=>{u(j,B)},V=(j,B,k)=>{f(j,B,k)},L=j=>{V(j.sourceId,j.newParentId,j.index)},Y=async j=>{if(!n)return[];const B=await n(j);return w(j,{children:B,hasLoadedChildren:!0,childrenCount:B.length}),B};return d.useEffect(()=>{const j=B=>{B.forEach(k=>{var I;if(k.children&&k.children.length>0){const A=k.value.hasLoadedChildren||((I=k.children)==null?void 0:I.length)>0||k.value.children&&k.value.children.length>0;k.value.children=k.children.map(W=>W.value);const M=A?k.children.length:k.value.childrenCount??0;k.value.childrenCount=M,A&&!k.value.hasLoadedChildren&&(k.value.hasLoadedChildren=!0),j(k.children)}else{const M=k.value.hasLoadedChildren||k.value.children&&k.value.children.length>0?0:k.value.childrenCount;k.value.children=[],k.value.childrenCount=M}})};j(p)},[p]),{nodes:p,addChild:v,updateNode:w,deleteNode:P,deleteNodes:x,addRootNode:_,addRootNodes:S,selectedNode:g,setSelectedNode:b,refreshNode:D,setChildren:R,insertBeforeNode:E,insertAfterNode:O,handleMove:L,prependToNode:G,moveNode:V,appendToNode:z,move:f,resetTree:h,handleLoadChildren:Y,selectNodeById:m,getParent:H,getNode:C,getParentId:N,getAncestors:F}},Ys=d.createContext(null),M4=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=d.useRef(null),[s,a]=d.useState(null),[l,u]=d.useState(n??null),c=g0(i??[],e,r);return y.jsx(Ys.Provider,{value:{treeApiRef:o,treeData:c,root:s,initialTargetId:l,setInitialTargetId:u,setRoot:a},children:t})},Zs=()=>{const t=d.useContext(Ys);if(!t)throw new Error("TreeContext not found");return t},A4=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:s,beforeMove:a})=>{const[l,u]=d.useState(400),{ref:c,width:f}=L4(),p=Zs(),g=(p==null?void 0:p.treeData.nodes)??[];d.useEffect(()=>{const v=document.querySelector(".c__tree-view"),C=v==null?void 0:v.firstElementChild;let w=null;return v&&C&&(w=new ResizeObserver(()=>{if(C&&C instanceof HTMLElement){const P=C.style.height;u(parseInt(P,10)+20)}}),w.observe(C)),()=>w==null?void 0:w.disconnect()},[]);const b=v=>{var L,Y,j,B;const C=JSON.parse(JSON.stringify(g)),w=v.dragNodes[0],P=v.parentId?((L=v.parentNode)==null?void 0:L.data.children)??[]:C,x=v.dragNodes[0].data.value.id,D=v.dragNodes[0].data,_=(Y=v.parentNode)==null?void 0:Y.data;if((_==null?void 0:_.value.nodeType)===Ke.TITLE||(_==null?void 0:_.value.nodeType)===Ke.SEPARATOR)return null;const S=D.parentKey??n,R=v.parentId??n;let F=v.index+0,N=null,H=R;const E=((B=(j=w.parent)==null?void 0:j.children)==null?void 0:B.findIndex(k=>k.data.value.id===x))??0;if(S===R){if(E===F)return null;F=F<E?F:F-1}const O=v.index-1,z=P[O],G=v.index,V=P[G];return v.index===0?(H=v.parentId??n,N=xt.FIRST_CHILD):!_&&v.index===1&&!Vn(z.value)?(H=n,F=1,N=xt.FIRST_CHILD):v.index===P.length?(H=H??n,N=xt.LAST_CHILD):z&&Vn(z.value)?(H=z.value.id,N=xt.RIGHT):V&&Vn(V.value)&&(N=xt.LEFT,H=V.value.id),N&&H?{targetModeId:H,mode:N,oldParentId:S,index:F,newParentId:v.parentId,sourceId:x}:null},h=v=>{const C=b(v);C&&(a?a(C,()=>{p==null||p.treeData.handleMove(C),s==null||s(C)}):(p==null||p.treeData.handleMove(C),s==null||s(C)))},m=d.useCallback(v=>o?!o(v):!1,[o]);if(p)return y.jsx("div",{ref:c,style:{height:l},className:"c__tree-view--container",children:y.jsx(N4,{data:g,ref:p.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:h,height:l,width:f,paddingTop:10,paddingBottom:10,rowHeight:35,disableDrag:m,disableDrop:({parentNode:v,dragNodes:C,index:w})=>{var S,R;if(i&&!i({parentNode:v,dragNodes:C,index:w}))return v.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(v.data.value.canDrop=!1),!0;const P=C[0];if(P&&P.isDragging&&P.willReceiveDrop||((S=v.data.value)==null?void 0:S.nodeType)===Ke.TITLE||((R=v.data.value)==null?void 0:R.nodeType)===Ke.SEPARATOR)return!0;if(v.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const F=g[w-1],N=g[w],H=g[w+1],E=ci(F==null?void 0:F.value),O=ci(N==null?void 0:N.value),z=di(F==null?void 0:F.value),G=di(N==null?void 0:N.value),V=Vn(H==null?void 0:H.value);return!!(w===0&&(O||G)||E&&G&&V||z&&O&&V)}const x=v==null?void 0:v.isOpen,D=(v==null?void 0:v.data.value.childrenCount)&&v.data.value.childrenCount>0||(v==null?void 0:v.data.children)&&v.data.children.length>0;if(!D)return v.data.value.canDrop=!0,!1;let _=v.data.value.childrenCount&&v.data.value.childrenCount>0&&(v==null?void 0:v.data.children)&&v.data.children.length>0;return _=_??!0,!x&&!_&&D?(v.data.value.canDrop=!0,!0):(v.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:e,renderCursor:p0,renderRow:K4,rowClassName:"c__tree-view--row",children:r})})},K4=({children:t,...e})=>{const n=e.node.data.value.nodeType===Ke.TITLE,r=e.node.data.value.nodeType===Ke.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:s=>s.stopPropagation(),onClick:e.node.handleClick},t):d.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:s=>s.stopPropagation(),onClick:e.node.handleClick},y.jsx("div",{className:"c__tree-view--row-content",children:t}))},F4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function j4(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function H4(t){return"nodeType"in t}function z4(t){var e,n;return t?j4(t)?t:H4(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}const v0=F4?d.useLayoutEffect:d.useEffect;function m0(t){const e=d.useRef(t);return v0(()=>{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 mu(t,e){e===void 0&&(e=[t]);const n=d.useRef(t);return v0(()=>{n.current!==t&&(n.current=t)},e),n}function B4(t){const e=m0(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 To={};function V4(t,e){return d.useMemo(()=>{const n=To[t]==null?0:To[t]+1;return To[t]=n,t+"-"+n},[t,e])}var Gn;(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"})(Gn||(Gn={}));function yu(){}const W4=Object.freeze({x:0,y:0});function U4(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function G4(t,e,n){const r=U4(e);if(!r)return t;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=t.left-s-(1-i)*parseFloat(n),u=t.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?t.width/i:t.width,f=o?t.height/o:t.height;return{width:c,height:f,top:u,right:l+c,bottom:u+f,left:l}}const q4={ignoreTransform:!1};function y0(t,e){e===void 0&&(e=q4);let n=t.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=z4(t).getComputedStyle(t);u&&(n=G4(n,u,c))}const{top:r,left:i,width:o,height:s,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:s,bottom:a,right:l}}function bu(t){return y0(t,{ignoreTransform:!0})}var fn;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(fn||(fn={}));var Su;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(Su||(Su={}));var pt;(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"})(pt||(pt={}));pt.Space,pt.Enter,pt.Esc,pt.Space,pt.Enter,pt.Tab;var Cu;(function(t){t[t.RightClick=2]="RightClick"})(Cu||(Cu={}));var wu;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(wu||(wu={}));var Eu;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(Eu||(Eu={}));fn.Backward+"",fn.Forward+"",fn.Backward+"",fn.Forward+"";var us;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(us||(us={}));var cs;(function(t){t.Optimized="optimized"})(cs||(cs={}));function Y4(t){let{callback:e,disabled:n}=t;const r=m0(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}us.WhileDragging,cs.Optimized;const Z4={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:yu,draggableNodes:new Map,over:null,measureDroppableContainers:yu},X4=d.createContext(Z4);({...W4});var xu;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(xu||(xu={}));const J4="Droppable",Q4={timeout:25};function e7(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=V4(J4),{active:s,dispatch:a,over:l,measureDroppableContainers:u}=d.useContext(X4),c=d.useRef({disabled:n}),f=d.useRef(!1),p=d.useRef(null),g=d.useRef(null),{disabled:b,updateMeasurementsFor:h,timeout:m}={...Q4,...i},v=mu(h??r),C=d.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),g.current=null},m)},[m]),w=Y4({callback:C,disabled:b||!s}),P=d.useCallback((S,R)=>{w&&(R&&(w.unobserve(R),f.current=!1),S&&w.observe(S))},[w]),[x,D]=B4(P),_=mu(e);return d.useEffect(()=>{!w||!x.current||(w.disconnect(),f.current=!1,w.observe(x.current))},[x,w]),d.useEffect(()=>(a({type:Gn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:x,rect:p,data:_}}),()=>a({type:Gn.UnregisterDroppable,key:o,id:r})),[r]),d.useEffect(()=>{n!==c.current.disabled&&(a({type:Gn.SetDroppableDisabled,id:r,key:o,disabled:n}),c.current.disabled=n)},[r,o,n,a]),{active:s,rect:p,isOver:(l==null?void 0:l.id)===r,node:x,over:l,setNodeRef:D}}const t7=t=>{const{isOver:e,setNodeRef:n}=e7({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})},n7=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var w,P;const s=Zs(),a=d.useRef(null),[l,u]=d.useState(!1),[c,f]=d.useState(!1),p=o??l,g=n.willReceiveDrop||c,b=n.data.value.childrenCount!==void 0&&n.data.value.childrenCount>0||(((w=n.data.children)==null?void 0:w.length)??0)>0,h=((P=n.children)==null?void 0:P.length)??!1,m=n.isLeaf||!b,v=d.useCallback(async()=>{if(!m){if(h||n.data.value.hasLoadedChildren){n.toggle();return}u(!0),await(s==null?void 0:s.treeData.handleLoadChildren(n.data.value.id)),u(!1),n.open()}},[m,h,n,s==null?void 0:s.treeData]),C=d.useCallback(x=>{x&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{v()},500)),a.current&&!x&&clearTimeout(a.current)},[v,n.isOpen,n.isDragging]);return d.useEffect(()=>{C(g)},[g,C]),n.data.value.nodeType===Ke.SEPARATOR?y.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===Ke.TITLE?y.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):y.jsx(t7,{id:n.id,data:{data:n.data,nodeApi:n},onOver:f,children:y.jsxs("div",{onClick:x=>{x.target.closest(".c__tree-view--node")||x.stopPropagation(),e==null||e()},onKeyDown:x=>{x.stopPropagation()},ref:r,style:i,className:Ve("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:c}),children:[m&&y.jsx("div",{className:"c__tree-view--node__leaf"}),!m&&y.jsxs(y.Fragment,{children:[p&&y.jsx("div",{className:"c__tree-view--node__loading",children:y.jsx(Ns,{})}),!p&&y.jsx("span",{onClick:x=>{x.stopPropagation(),v()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},ki=({roles:t,onSelect:e,canUpdate:n=!0,selectedRole:r,isOpen:i,onOpenChange:o,roleTopMessage:s})=>{const a=t.find(l=>l.value===r);return n?y.jsx(lr,{isOpen:i,shouldCloseOnInteractOutside:l=>!l.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:s,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})},b0=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:s,onSelectRole:a})=>{const{t:l}=ae.useCunningham(),[u,c]=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(S0,{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:s,onSelect:a,isOpen:u,onOpenChange:c}),y.jsx(ae.Button,{onClick:r,children:i??l("components.share.shareButton")})]})]})},S0=({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"})})]}),$u=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],r7=t=>{const e=t.split(" ");return e.length>2?e.slice(0,2).map(n=>n[0]).join(""):e.map(n=>n[0]).join("")},i7=t=>$u[t.charCodeAt(0)%$u.length],C0=({fullName:t,size:e="medium",forceColor:n})=>{const r=r7(t),i=i7(t);return y.jsx("div",{style:{backgroundColor:n||void 0},className:Ve(`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(C0,{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:Ve("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},ds=({user:t})=>{const{t:e}=ae.useCunningham();return y.jsx(Ti,{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"})]})})},w0=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:s}=ae.useCunningham(),a=Sn(),l=Sn(),u=[{label:s("components.share.access.delete"),icon:y.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!i,callback:()=>{r==null||r(t)}}],c=()=>{const f=l.isOpen;l.setIsOpen(!f)};return y.jsx("div",{className:"c__share-member-item",children:y.jsx(Ti,{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}),i&&y.jsx(lr,{options:u,isOpen:l.isOpen,onOpenChange:l.setIsOpen,children:y.jsx(ae.Button,{color:"primary-text",onClick:c,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},E0=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:s}=ae.useCunningham(),a=Sn(),l=Sn(),u=[{label:s("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:y.jsx("span",{className:"material-icons",children:"back_hand"})}],c=()=>{const f=l.isOpen;l.setIsOpen(!f)};return y.jsx("div",{className:"c__share-member-item",children:y.jsx(Ti,{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(lr,{options:u,isOpen:l.isOpen,onOpenChange:l.setIsOpen,children:y.jsx(ae.Button,{color:"primary-text",onClick:c,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},o7=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:s=!0,hasNextInvitations:a=!1,...l})=>{const{t:u}=ae.useCunningham(),{isMobile:c}=_n(),f=d.useRef(null),[p,g]=d.useState("400px"),b=d.useRef(null),[h,m]=d.useState(""),[v,C]=d.useState(""),[w,P]=d.useState([]),[x,D]=d.useState(l.invitationRoles[0].value??""),_=c?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",S=V=>{if(f.current&&clearTimeout(f.current),V===""){C(""),l.onSearchUsers("");return}f.current=setTimeout(()=>{l.onSearchUsers(V),C(V)},300)},R=V=>{m(V),S(V)},F=(v!==""||w.length>0)&&!l.loading,N=d.useCallback(V=>{P(L=>[...L,V]),m(""),C(""),l.onSearchUsers("")},[l]),H=V=>{P(L=>L.filter(Y=>Y.id!==V.id))},E=d.useMemo(()=>{const V=t==null?void 0:t.filter(I=>!w.includes(I));let L=u(v!==""?"components.share.user.no_result":"components.share.user.placeholder");const j=(I=>!!I.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,}))$/))(v??"")&&!(V!=null&&V.some(I=>I.email===v)),B={id:v,full_name:"",email:v};return j&&(L=void 0),{groupName:u("components.share.search.group_name"),elements:V??[],showWhenEmpty:!0,emptyString:L,endActions:j?[{content:y.jsx(ds,{user:B}),onSelect:()=>void N(B)}]:void 0}},[t,v,u,w,N]),O=V=>{var k;const Y=(V==null?void 0:V.clientHeight)??0,j=((k=b.current)==null?void 0:k.clientHeight)??0,B=`calc(${_} - ${Y}px - ${j}px - 70px - 10px)`;g(B)},z=!F&&!l.loading&&i.length>0,G=!F&&!l.loading&&r.length>0;return y.jsx(ae.Modal,{title:l.modalTitle??u("components.share.modalTitle"),isOpen:l.isOpen,onClose:l.onClose,closeOnClickOutside:!0,size:c?ae.ModalSize.FULL:ae.ModalSize.LARGE,children:y.jsxs("div",{children:[w.length>0&&y.jsx("div",{className:"c__share-modal__selected-users",ref:b,children:y.jsx(b0,{users:w,onRemoveUser:H,roles:l.invitationRoles,selectedRole:x,onSelectRole:D,onShare:()=>{l.onInviteUser(w,x),P([])}})}),y.jsx(Cf,{onFilter:R,inputValue:h,loading:l.loading,placeholder:u("components.share.user.placeholder"),children:y.jsxs("div",{style:{height:p,overflowY:"auto"},children:[F&&!l.loading&&y.jsx("div",{className:"c__share-modal__search-users",children:y.jsx(wf,{group:E,onSelect:V=>{N(V)},renderElement:V=>y.jsx(ds,{user:V})})}),!F&&e,z&&y.jsxs("div",{className:"c__share-modal__invitations",children:[y.jsx("span",{className:"c__share-modal__invitations-title",children:u("components.share.invitations.title")}),i.map(V=>{var L;return y.jsx(E0,{invitation:V,roles:l.invitationRoles,updateRole:l.onUpdateInvitation,deleteInvitation:l.onDeleteInvitation,canUpdate:s,roleTopMessage:(L=l.invitationRoleTopMessage)==null?void 0:L.call(l,V)},V.id)}),y.jsx(Tu,{show:a,onShowMore:l.onLoadNextInvitations})]}),G&&y.jsxs("div",{className:"c__share-modal__members",children:[y.jsx("span",{className:"c__share-modal__members-title",children:u(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(V=>{var L,Y;return y.jsx(w0,{accessData:V,canUpdate:s,roleTopMessage:(L=l.accessRoleTopMessage)==null?void 0:L.call(l,V),roles:((Y=l.getAccessRoles)==null?void 0:Y.call(l,V))??l.invitationRoles,updateRole:l.onUpdateAccess,deleteAccess:l.onDeleteAccess},V.id)}),y.jsx(Tu,{show:o,onShowMore:l.onLoadNextMembers})]})]})}),y.jsx("div",{ref:O,children:!F&&y.jsx(y.Fragment,{children:n})})]})})},Tu=({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},s7=({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=ki;exports.CunninghamProvider=A0;exports.CustomTabs=Pm;exports.DropdownMenu=lr;exports.Footer=_g;exports.Header=pd;exports.Hero=Dg;exports.HomeGutter=Og;exports.HorizontalSeparator=Qo;exports.InvitationUserSelectorItem=S0;exports.InvitationUserSelectorList=b0;exports.LaGaufre=Hg;exports.Label=Kd;exports.LanguagePicker=hd;exports.LeftPanel=gd;exports.MainLayout=b5;exports.ProConnectButton=Du;exports.QuickSearch=Cf;exports.QuickSearchGroup=wf;exports.QuickSearchInput=Sf;exports.QuickSearchItem=Ar;exports.QuickSearchItemTemplate=Ti;exports.SearchUserItem=ds;exports.ShareInvitationItem=E0;exports.ShareMemberItem=w0;exports.ShareModal=o7;exports.ShareModalCopyLinkFooter=s7;exports.Spinner=Ns;exports.TreeApi=mn;exports.TreeContext=Ys;exports.TreeProvider=M4;exports.TreeView=A4;exports.TreeViewItem=n7;exports.TreeViewMoveModeEnum=xt;exports.TreeViewNodeTypeEnum=Ke;exports.TreeViewSeparator=p0;exports.UserAvatar=C0;exports.UserRow=Ni;exports.WithLabel=C5;exports.cunninghamConfig=Wo;exports.getLocales=_u;exports.headerHeight=S5;exports.isNode=Vn;exports.isSeparator=ci;exports.isTitle=di;exports.useDropdownMenu=Sn;exports.useResponsive=_n;exports.useTree=g0;exports.useTreeContext=Zs;
91
+ For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return k.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},q9="DialogDescriptionWarning",Y9=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$h(q9).contentName}}.`;return k.useEffect(()=>{var o;const i=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},X9=ch,Z9=hh,J9=ph,Q9=gh,dr='[cmdk-group=""]',il='[cmdk-group-items=""]',e4='[cmdk-group-heading=""]',ts='[cmdk-item=""]',oc=`${ts}:not([aria-disabled="true"])`,ra="cmdk-item-select",Ft="data-value",t4=(t,e,n)=>yy(t,e,n),Sh=k.createContext(void 0),Kr=()=>k.useContext(Sh),wh=k.createContext(void 0),ns=()=>k.useContext(wh),Ch=k.createContext(void 0),Eh=k.forwardRef((t,e)=>{let n=Mn(()=>{var N,M;return{search:"",value:(M=(N=t.value)!=null?N:t.defaultValue)!=null?M:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=Mn(()=>new Set),i=Mn(()=>new Map),o=Mn(()=>new Map),l=Mn(()=>new Set),a=xh(t),{label:s,children:u,value:d,onValueChange:f,filter:v,shouldFilter:g,loop:$,disablePointerSelection:p=!1,vimBindings:b=!0,...m}=t,C=ht(),S=ht(),D=ht(),x=k.useRef(null),T=f4();ln(()=>{if(d!==void 0){let N=d.trim();n.current.value=N,I.emit()}},[d]),ln(()=>{T(6,y)},[]);let I=k.useMemo(()=>({subscribe:N=>(l.current.add(N),()=>l.current.delete(N)),snapshot:()=>n.current,setState:(N,M,z)=>{var j,W,G;if(!Object.is(n.current[N],M)){if(n.current[N]=M,N==="search")F(),A(),T(1,P);else if(N==="value"&&(z||T(5,y),((j=a.current)==null?void 0:j.value)!==void 0)){let R=M??"";(G=(W=a.current).onValueChange)==null||G.call(W,R);return}I.emit()}},emit:()=>{l.current.forEach(N=>N())}}),[]),h=k.useMemo(()=>({value:(N,M,z)=>{var j;M!==((j=o.current.get(N))==null?void 0:j.value)&&(o.current.set(N,{value:M,keywords:z}),n.current.filtered.items.set(N,L(M,z)),T(2,()=>{A(),I.emit()}))},item:(N,M)=>(r.current.add(N),M&&(i.current.has(M)?i.current.get(M).add(N):i.current.set(M,new Set([N]))),T(3,()=>{F(),A(),n.current.value||P(),I.emit()}),()=>{o.current.delete(N),r.current.delete(N),n.current.filtered.items.delete(N);let z=E();T(4,()=>{F(),(z==null?void 0:z.getAttribute("id"))===N&&P(),I.emit()})}),group:N=>(i.current.has(N)||i.current.set(N,new Set),()=>{o.current.delete(N),i.current.delete(N)}),filter:()=>a.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:C,inputId:D,labelId:S,listInnerRef:x}),[]);function L(N,M){var z,j;let W=(j=(z=a.current)==null?void 0:z.filter)!=null?j:t4;return N?W(N,n.current.search,M):0}function A(){if(!n.current.search||a.current.shouldFilter===!1)return;let N=n.current.filtered.items,M=[];n.current.filtered.groups.forEach(j=>{let W=i.current.get(j),G=0;W.forEach(R=>{let Z=N.get(R);G=Math.max(Z,G)}),M.push([j,G])});let z=x.current;K().sort((j,W)=>{var G,R;let Z=j.getAttribute("id"),J=W.getAttribute("id");return((G=N.get(J))!=null?G:0)-((R=N.get(Z))!=null?R:0)}).forEach(j=>{let W=j.closest(il);W?W.appendChild(j.parentElement===W?j:j.closest(`${il} > *`)):z.appendChild(j.parentElement===z?j:j.closest(`${il} > *`))}),M.sort((j,W)=>W[1]-j[1]).forEach(j=>{var W;let G=(W=x.current)==null?void 0:W.querySelector(`${dr}[${Ft}="${encodeURIComponent(j[0])}"]`);G==null||G.parentElement.appendChild(G)})}function P(){let N=K().find(z=>z.getAttribute("aria-disabled")!=="true"),M=N==null?void 0:N.getAttribute(Ft);I.setState("value",M||void 0)}function F(){var N,M,z,j;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let W=0;for(let G of r.current){let R=(M=(N=o.current.get(G))==null?void 0:N.value)!=null?M:"",Z=(j=(z=o.current.get(G))==null?void 0:z.keywords)!=null?j:[],J=L(R,Z);n.current.filtered.items.set(G,J),J>0&&W++}for(let[G,R]of i.current)for(let Z of R)if(n.current.filtered.items.get(Z)>0){n.current.filtered.groups.add(G);break}n.current.filtered.count=W}function y(){var N,M,z;let j=E();j&&(((N=j.parentElement)==null?void 0:N.firstChild)===j&&((z=(M=j.closest(dr))==null?void 0:M.querySelector(e4))==null||z.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function E(){var N;return(N=x.current)==null?void 0:N.querySelector(`${ts}[aria-selected="true"]`)}function K(){var N;return Array.from(((N=x.current)==null?void 0:N.querySelectorAll(oc))||[])}function B(N){let M=K()[N];M&&I.setState("value",M.getAttribute(Ft))}function H(N){var M;let z=E(),j=K(),W=j.findIndex(R=>R===z),G=j[W+N];(M=a.current)!=null&&M.loop&&(G=W+N<0?j[j.length-1]:W+N===j.length?j[0]:j[W+N]),G&&I.setState("value",G.getAttribute(Ft))}function O(N){let M=E(),z=M==null?void 0:M.closest(dr),j;for(;z&&!j;)z=N>0?c4(z,dr):d4(z,dr),j=z==null?void 0:z.querySelector(oc);j?I.setState("value",j.getAttribute(Ft)):H(N)}let q=()=>B(K().length-1),V=N=>{N.preventDefault(),N.metaKey?q():N.altKey?O(1):H(1)},U=N=>{N.preventDefault(),N.metaKey?B(0):N.altKey?O(-1):H(-1)};return k.createElement(we.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:N=>{var M;if((M=m.onKeyDown)==null||M.call(m,N),!N.defaultPrevented)switch(N.key){case"n":case"j":{b&&N.ctrlKey&&V(N);break}case"ArrowDown":{V(N);break}case"p":case"k":{b&&N.ctrlKey&&U(N);break}case"ArrowUp":{U(N);break}case"Home":{N.preventDefault(),B(0);break}case"End":{N.preventDefault(),q();break}case"Enter":if(!N.nativeEvent.isComposing&&N.keyCode!==229){N.preventDefault();let z=E();if(z){let j=new Event(ra);z.dispatchEvent(j)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:h.inputId,id:h.labelId,style:p4},s),go(t,N=>k.createElement(wh.Provider,{value:I},k.createElement(Sh.Provider,{value:h},N))))}),n4=k.forwardRef((t,e)=>{var n,r;let i=ht(),o=k.useRef(null),l=k.useContext(Ch),a=Kr(),s=xh(t),u=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;ln(()=>{if(!u)return a.item(i,l==null?void 0:l.id)},[u]);let d=Ph(i,o,[t.value,t.children,o],t.keywords),f=ns(),v=an(T=>T.value&&T.value===d.current),g=an(T=>u||a.filter()===!1?!0:T.search?T.filtered.items.get(i)>0:!0);k.useEffect(()=>{let T=o.current;if(!(!T||t.disabled))return T.addEventListener(ra,$),()=>T.removeEventListener(ra,$)},[g,t.onSelect,t.disabled]);function $(){var T,I;p(),(I=(T=s.current).onSelect)==null||I.call(T,d.current)}function p(){f.setState("value",d.current,!0)}if(!g)return null;let{disabled:b,value:m,onSelect:C,forceMount:S,keywords:D,...x}=t;return k.createElement(we.div,{ref:kr([o,e]),...x,id:i,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!v,"data-disabled":!!b,"data-selected":!!v,onPointerMove:b||a.getDisablePointerSelection()?void 0:p,onClick:b?void 0:$},t.children)}),r4=k.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=ht(),a=k.useRef(null),s=k.useRef(null),u=ht(),d=Kr(),f=an(g=>i||d.filter()===!1?!0:g.search?g.filtered.groups.has(l):!0);ln(()=>d.group(l),[]),Ph(l,a,[t.value,t.heading,s]);let v=k.useMemo(()=>({id:l,forceMount:i}),[i]);return k.createElement(we.div,{ref:kr([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&k.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),go(t,g=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},k.createElement(Ch.Provider,{value:v},g))))}),i4=k.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=k.useRef(null),o=an(l=>!l.search);return!n&&!o?null:k.createElement(we.div,{ref:kr([i,e]),...r,"cmdk-separator":"",role:"separator"})}),o4=k.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=ns(),l=an(d=>d.search),a=an(d=>d.value),s=Kr(),u=k.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${ts}[${Ft}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return k.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),k.createElement(we.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":u,id:s.inputId,type:"text",value:i?t.value:l,onChange:d=>{i||o.setState("search",d.target.value),n==null||n(d.target.value)}})}),l4=k.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=k.useRef(null),l=k.useRef(null),a=Kr();return k.useEffect(()=>{if(l.current&&o.current){let s=l.current,u=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let v=s.offsetHeight;u.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),k.createElement(we.div,{ref:kr([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},go(t,s=>k.createElement("div",{ref:kr([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),a4=k.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return k.createElement(X9,{open:n,onOpenChange:r},k.createElement(Z9,{container:l},k.createElement(J9,{"cmdk-overlay":"",className:i}),k.createElement(Q9,{"aria-label":t.label,"cmdk-dialog":"",className:o},k.createElement(Eh,{ref:e,...a}))))}),s4=k.forwardRef((t,e)=>an(n=>n.filtered.count===0)?k.createElement(we.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),u4=k.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return k.createElement(we.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},go(t,l=>k.createElement("div",{"aria-hidden":!0},l)))}),_r=Object.assign(Eh,{List:l4,Item:n4,Input:o4,Group:r4,Separator:i4,Dialog:a4,Empty:s4,Loading:u4});function c4(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function d4(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function xh(t){let e=k.useRef(t);return ln(()=>{e.current=t}),e}var ln=typeof window>"u"?k.useEffect:k.useLayoutEffect;function Mn(t){let e=k.useRef();return e.current===void 0&&(e.current=t()),e}function kr(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function an(t){let e=ns(),n=()=>t(e.snapshot());return Ca.useSyncExternalStore(e.subscribe,n,n)}function Ph(t,e,n,r=[]){let i=k.useRef(),o=Kr();return ln(()=>{var l;let a=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():i.current}})(),s=r.map(u=>u.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(Ft,a),i.current=a}),i}var f4=()=>{let[t,e]=k.useState(),n=Mn(()=>new Map);return ln(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function h4(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function go({asChild:t,children:e},n){return t&&k.isValidElement(e)?k.cloneElement(h4(e),{ref:e.ref},n(e.props.children)):n(e)}var p4={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const ia=({withPadding:t=!0})=>w.jsx("div",{className:Te("c__horizontal-separator",{"with-padding":t})}),Th=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=se.useCunningham();return i?w.jsxs(w.Fragment,{children:[i,o&&w.jsx(ia,{})]}):w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"quick-search-input-container",children:[!t&&w.jsx("span",{className:"material-icons",children:"search"}),t&&w.jsx("div",{children:w.jsx(Ya,{size:"md"})}),w.jsx(_r.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&w.jsx(ia,{withPadding:!0})]})},g4=t=>{let e=!1;return c.Children.forEach(t,n=>{e=e||!!n}),e},Dh=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=c.useRef(null);return w.jsx(w.Fragment,{children:w.jsx("div",{className:"quick-search-container",children:w.jsxs(_r,{label:o,shouldFilter:!1,ref:s,children:[i&&w.jsx(Th,{loading:r,withSeparator:g4(a),inputValue:n,onFilter:t,placeholder:l,children:e}),w.jsx(_r.List,{children:w.jsx("div",{children:a})})]})})})},bi=({children:t,onSelect:e,id:n})=>w.jsx(_r.Item,{value:n,onSelect:e,children:t}),Ih=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:w.jsx("div",{className:"pt-base",children:w.jsxs(_r.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>w.jsx(bi,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>w.jsx(bi,{id:`${t.groupName}-element-${l}`,onSelect:()=>{e==null||e(o)},children:n==null?void 0:n(o)},`${t.groupName}-element-${l}`)),(i=t.endActions)==null?void 0:i.map((o,l)=>w.jsx(bi,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&w.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},vo=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=nr();return w.jsxs("div",{className:"c__quick-search-item-template",children:[w.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&w.jsx("div",{className:Te("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},v4=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:w.jsx("div",{className:Te("c__tabs",{"c__tabs__full-width":n}),children:w.jsxs(sb,{defaultSelectedKey:e,children:[w.jsx(cb,{"aria-label":"History of Ancient Rome",children:t.map(r=>w.jsxs(fb,{id:r.id,children:[r.icon&&w.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>w.jsx(hb,{id:r.id,children:r.content},r.id))]})}),Oh=c.createContext(null);function Le(){const t=c.useContext(Oh);if(t===null)throw new Error("No Tree Api Provided");return t}const _h=c.createContext(null);function m4(){const t=c.useContext(_h);if(t===null)throw new Error("Provide a NodesContext");return t}const kh=c.createContext(null);function b4(){const t=c.useContext(kh);if(t===null)throw new Error("Provide a DnDContext");return t}const Lh=c.createContext(0);function Mh(){c.useContext(Lh)}function yi(t,e,n){return Math.max(Math.min(t,n),e)}function Nh(t){return t&&t.isLeaf}function Rh(t){return t&&t.isInternal&&!t.isOpen}function Ah(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const Kh=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},Fh=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function y4(){}function rs(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=rs(n,e);if(r)return r}return null}function Vi(t,e){if(e(t),t.children)for(let n of t.children)Vi(n,e)}function jh(t){const e=zh(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=$4(e,r);break}n==null||n.focus()}function Hh(t){const e=zh(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=S4(e,r);break}n==null||n.focus()}function $4(t,e){return e+1<t.length?t[e+1]:t[0]}function S4(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function zh(t){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(e=>e===t||!t.contains(e))}function yr(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function Bh(t){return t===null?null:jt(t)}function jt(t){return typeof t=="string"?t:t.id}function w4(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Vh(t,...e){if(t)return t(...e)}function Uh(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function Wh(t){var e,n;const r=t.focusedNode;return r?r.isOpen?0:r.parent?r.childIndex+1:0:(n=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0}function Gh(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const C4=Object.freeze(Object.defineProperty({__proto__:null,access:yr,bound:yi,dfs:rs,focusNextElement:jh,focusPrevElement:Hh,getInsertIndex:Wh,getInsertParentId:Gh,identify:jt,identifyNull:Bh,indexOf:Fh,isClosed:Rh,isDescendant:Kh,isItem:Nh,isOpenWithEmptyChildren:Ah,mergeRefs:w4,noop:y4,safeRun:Vh,waitFor:Uh,walk:Vi},Symbol.toStringTag,{value:"Module"})),E4={display:"flex",alignItems:"center",zIndex:1},x4={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},P4={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},T4=c.memo(function({top:e,left:n,indent:r}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:n+"px",right:r+"px"};return w.jsxs("div",{style:Object.assign(Object.assign({},E4),i),children:[w.jsx("div",{style:Object.assign({},P4)}),w.jsx("div",{style:Object.assign({},x4)})]})});function D4({node:t,attrs:e,innerRef:n,children:r}){return w.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function I4(t){return w.jsxs("div",{ref:t.dragHandle,style:t.style,children:[w.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?w.jsx(_4,Object.assign({},t)):w.jsx(O4,Object.assign({},t))]})}function O4(t){return w.jsx(w.Fragment,{children:w.jsx("span",{children:t.node.data.name})})}function _4({node:t}){const e=c.useRef();return c.useEffect(()=>{var n,r;(n=e.current)===null||n===void 0||n.focus(),(r=e.current)===null||r===void 0||r.select()},[]),w.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:n=>{var r;n.key==="Escape"&&t.reset(),n.key==="Enter"&&t.submit(((r=e.current)===null||r===void 0?void 0:r.value)||"")}})}function ol(t){return{type:"EDIT",id:t}}function k4(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function wn(t){return{type:"FOCUS",id:t}}function L4(){return{type:"TREE_BLUR"}}function M4(t={id:null,treeFocused:!1},e){return e.type==="FOCUS"?Object.assign(Object.assign({},t),{id:e.id,treeFocused:!0}):e.type==="TREE_BLUR"?Object.assign(Object.assign({},t),{treeFocused:!1}):t}class Ui{constructor(e){this.handleClick=n=>{n.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():n.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())},this.tree=e.tree,this.id=e.id,this.data=e.data,this.level=e.level,this.children=e.children,this.parent=e.parent,this.isDraggable=e.isDraggable,this.rowIndex=e.rowIndex}get isRoot(){return this.id===Lr}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var e;return this.isSelected&&!(!((e=this.prev)===null||e===void 0)&&e.isSelected)}get isSelectedEnd(){var e;return this.isSelected&&!(!((e=this.next)===null||e===void 0)&&e.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var e,n;const r=this.childIndex;return(n=(e=this.parent)===null||e===void 0?void 0:e.children[r+1])!==null&&n!==void 0?n:null}isAncestorOf(e){if(!e)return!1;let n=e;for(;n;){if(n.id===this.id)return!0;n=n.parent}return!1}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(e){this.tree.submit(this,e)}reset(){this.tree.reset()}clone(){return new Ui(Object.assign({},this))}edit(){return this.tree.edit(this)}}const Lr="__REACT_ARBORIST_INTERNAL_ROOT__";function lc(t){var e;function n(o,l,a){const s=t.accessId(o),u=new Ui({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(u.children=d.map(f=>n(f,l+1,u))),u}const r=new Ui({tree:t,id:Lr,data:{id:Lr},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return r.children=i.map(o=>n(o,0,r)),r}const oa={open(t,e){return{type:"VISIBILITY_OPEN",id:t,filtered:e}},close(t,e){return{type:"VISIBILITY_CLOSE",id:t,filtered:e}},toggle(t,e){return{type:"VISIBILITY_TOGGLE",id:t,filtered:e}},clear(t){return{type:"VISIBILITY_CLEAR",filtered:t}}};function ac(t={},e){if(e.type==="VISIBILITY_OPEN")return Object.assign(Object.assign({},t),{[e.id]:!0});if(e.type==="VISIBILITY_CLOSE")return Object.assign(Object.assign({},t),{[e.id]:!1});if(e.type==="VISIBILITY_TOGGLE"){const n=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!n})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function N4(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:ac(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:ac(t.unfiltered,e)}):t}const Zn=t=>{var e;return{nodes:{open:{filtered:{},unfiltered:(e=t==null?void 0:t.initialOpenState)!==null&&e!==void 0?e:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,selectedIds:[],destinationParentId:null,destinationIndex:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},Ue={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:jt(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(jt)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(jt)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:jt(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:jt(t)})};function R4(t=Zn().nodes.selection,e){const n=t.ids;switch(e.type){case"SELECTION_CLEAR":return Object.assign(Object.assign({},t),{ids:new Set});case"SELECTION_ONLY":return Object.assign(Object.assign({},t),{ids:new Set([e.id])});case"SELECTION_ADD":return e.ids.length===0?t:(e.ids.forEach(r=>n.add(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(r=>n.delete(r)),Object.assign(Object.assign({},t),{ids:new Set(n)}));case"SELECTION_SET":return Object.assign(Object.assign({},t),{ids:e.ids,mostRecent:e.mostRecent,anchor:e.anchor});case"SELECTION_MOST_RECENT":return Object.assign(Object.assign({},t),{mostRecent:e.id});case"SELECTION_ANCHOR":return Object.assign(Object.assign({},t),{anchor:e.id});default:return t}}const Jn={cursor(t){return{type:"DND_CURSOR",cursor:t}},dragStart(t,e){return{type:"DND_DRAG_START",id:t,dragIds:e}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(t,e){return{type:"DND_HOVERING",parentId:t,index:e}}};function A4(t=Zn().dnd,e){switch(e.type){case"DND_CURSOR":return Object.assign(Object.assign({},t),{cursor:e.cursor});case"DND_DRAG_START":return Object.assign(Object.assign({},t),{dragId:e.id,dragIds:e.dragIds});case"DND_DRAG_END":return Zn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const K4={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},F4=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},j4=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function qh({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return w.jsxs(H4,{isDragging:i,children:[w.jsx(z4,{offset:t,children:w.jsx(V4,{id:n,dragIds:r})}),w.jsx(B4,{mouse:e,count:r.length})]})}const H4=c.memo(function(e){return e.isDragging?w.jsx("div",{style:K4,children:e.children}):null});function z4(t){return w.jsx("div",{className:"row preview",style:F4(t.offset),children:t.children})}function B4(t){const{count:e,mouse:n}=t;return e>1?w.jsx("div",{className:"selected-count",style:j4(n),children:e}):null}const V4=c.memo(function(e){const n=Le(),r=n.get(e.id);return r?w.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function la(){return la=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},la.apply(null,arguments)}function sc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function aa(t,e){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},aa(t,e)}function U4(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,aa(t,e)}var uc=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function W4(t,e){return!!(t===e||uc(t)&&uc(e))}function G4(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!W4(t[n],e[n]))return!1;return!0}function ll(t,e){e===void 0&&(e=G4);var n,r=[],i,o=!1;function l(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&e(a,r)||(i=t.apply(this,a),o=!0,n=this,r=a),i}return l}var q4=typeof performance=="object"&&typeof performance.now=="function",cc=q4?function(){return performance.now()}:function(){return Date.now()};function dc(t){cancelAnimationFrame(t.id)}function Y4(t,e){var n=cc();function r(){cc()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var al=-1;function fc(t){if(t===void 0&&(t=!1),al===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),al=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return al}var Cn=null;function hc(t){if(t===void 0&&(t=!1),Cn===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Cn="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Cn="negative":Cn="positive-ascending"),document.body.removeChild(e),Cn}return Cn}process.env.NODE_ENV;var X4=150,Z4=function(e,n){return e},$i=null,Si=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&($i=new WeakSet,Si=new WeakSet);function J4(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,u=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){U4(v,f);function v($){var p;return p=f.call(this,$)||this,p._instanceProps=s(p.props,sc(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:sc(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=ll(function(b,m,C,S){return p.props.onItemsRendered({overscanStartIndex:b,overscanStopIndex:m,visibleStartIndex:C,visibleStopIndex:S})}),p._callOnScroll=void 0,p._callOnScroll=ll(function(b,m,C){return p.props.onScroll({scrollDirection:b,scrollOffset:m,scrollUpdateWasRequested:C})}),p._getItemStyle=void 0,p._getItemStyle=function(b){var m=p.props,C=m.direction,S=m.itemSize,D=m.layout,x=p._getItemStyleCache(u&&S,u&&D,u&&C),T;if(x.hasOwnProperty(b))T=x[b];else{var I=n(p.props,b,p._instanceProps),h=i(p.props,b,p._instanceProps),L=C==="horizontal"||D==="horizontal",A=C==="rtl",P=L?I:0;x[b]=T={position:"absolute",left:A?void 0:P,right:A?P:void 0,top:L?0:I,height:L?"100%":h,width:L?h:"100%"}}return T},p._getItemStyleCache=void 0,p._getItemStyleCache=ll(function(b,m,C){return{}}),p._onScrollHorizontal=function(b){var m=b.currentTarget,C=m.clientWidth,S=m.scrollLeft,D=m.scrollWidth;p.setState(function(x){if(x.scrollOffset===S)return null;var T=p.props.direction,I=S;if(T==="rtl")switch(hc()){case"negative":I=-S;break;case"positive-descending":I=D-C-S;break}return I=Math.max(0,Math.min(I,D-C)),{isScrolling:!0,scrollDirection:x.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(b){var m=b.currentTarget,C=m.clientHeight,S=m.scrollHeight,D=m.scrollTop;p.setState(function(x){if(x.scrollOffset===D)return null;var T=Math.max(0,Math.min(D,S-C));return{isScrolling:!0,scrollDirection:x.scrollOffset<T?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(b){var m=p.props.outerRef;p._outerRef=b,typeof m=="function"?m(b):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=b)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&dc(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=Y4(p._resetIsScrolling,X4)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}v.getDerivedStateFromProps=function(p,b){return Q4(p,b),d(p),null};var g=v.prototype;return g.scrollTo=function(p){p=Math.max(0,p),this.setState(function(b){return b.scrollOffset===p?null:{scrollDirection:b.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(p,b){b===void 0&&(b="auto");var m=this.props,C=m.itemCount,S=m.layout,D=this.state.scrollOffset;p=Math.max(0,Math.min(p,C-1));var x=0;if(this._outerRef){var T=this._outerRef;S==="vertical"?x=T.scrollWidth>T.clientWidth?fc():0:x=T.scrollHeight>T.clientHeight?fc():0}this.scrollTo(o(this.props,p,b,D,this._instanceProps,x))},g.componentDidMount=function(){var p=this.props,b=p.direction,m=p.initialScrollOffset,C=p.layout;if(typeof m=="number"&&this._outerRef!=null){var S=this._outerRef;b==="horizontal"||C==="horizontal"?S.scrollLeft=m:S.scrollTop=m}this._callPropsCallbacks()},g.componentDidUpdate=function(){var p=this.props,b=p.direction,m=p.layout,C=this.state,S=C.scrollOffset,D=C.scrollUpdateWasRequested;if(D&&this._outerRef!=null){var x=this._outerRef;if(b==="horizontal"||m==="horizontal")if(b==="rtl")switch(hc()){case"negative":x.scrollLeft=-S;break;case"positive-ascending":x.scrollLeft=S;break;default:var T=x.clientWidth,I=x.scrollWidth;x.scrollLeft=I-T-S;break}else x.scrollLeft=S;else x.scrollTop=S}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&dc(this._resetIsScrollingTimeoutId)},g.render=function(){var p=this.props,b=p.children,m=p.className,C=p.direction,S=p.height,D=p.innerRef,x=p.innerElementType,T=p.innerTagName,I=p.itemCount,h=p.itemData,L=p.itemKey,A=L===void 0?Z4:L,P=p.layout,F=p.outerElementType,y=p.outerTagName,E=p.style,K=p.useIsScrolling,B=p.width,H=this.state.isScrolling,O=C==="horizontal"||P==="horizontal",q=O?this._onScrollHorizontal:this._onScrollVertical,V=this._getRangeToRender(),U=V[0],N=V[1],M=[];if(I>0)for(var z=U;z<=N;z++)M.push(c.createElement(b,{data:h,key:A(z,h),index:z,isScrolling:K?H:void 0,style:this._getItemStyle(z)}));var j=r(this.props,this._instanceProps);return c.createElement(F||y||"div",{className:m,onScroll:q,ref:this._outerRefSetter,style:la({position:"relative",height:S,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},E)},c.createElement(x||T||"div",{children:M,ref:D,style:{height:O?"100%":j,pointerEvents:H?"none":void 0,width:O?j:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var b=this._getRangeToRender(),m=b[0],C=b[1],S=b[2],D=b[3];this._callOnItemsRendered(m,C,S,D)}}if(typeof this.props.onScroll=="function"){var x=this.state,T=x.scrollDirection,I=x.scrollOffset,h=x.scrollUpdateWasRequested;this._callOnScroll(T,I,h)}},g._getRangeToRender=function(){var p=this.props,b=p.itemCount,m=p.overscanCount,C=this.state,S=C.isScrolling,D=C.scrollDirection,x=C.scrollOffset;if(b===0)return[0,0,0,0];var T=l(this.props,x,this._instanceProps),I=a(this.props,T,x,this._instanceProps),h=!S||D==="backward"?Math.max(1,m):1,L=!S||D==="forward"?Math.max(1,m):1;return[Math.max(0,T-h),Math.max(0,Math.min(b-1,I+L)),T,I]},v}(c.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Q4=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,u=e.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Si&&!Si.has(d)&&(Si.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||l==="horizontal";switch(i){case"horizontal":case"vertical":$i&&!$i.has(d)&&($i.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(l){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+l+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(f&&typeof u!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(u===null?"null":typeof u)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},e7=J4({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,l){var a=e.direction,s=e.height,u=e.itemCount,d=e.itemSize,f=e.layout,v=e.width,g=a==="horizontal"||f==="horizontal",$=g?v:s,p=Math.max(0,u*d-$),b=Math.min(p,n*d),m=Math.max(0,n*d-$+d+l);switch(r==="smart"&&(i>=m-$&&i<=b+$?r="auto":r="center"),r){case"start":return b;case"end":return m;case"center":{var C=Math.round(m+(b-m)/2);return C<Math.ceil($/2)?0:C>p+Math.floor($/2)?p:C}case"auto":default:return i>=m&&i<=b?i:i<m?m:b}},getStartIndexForOffset:function(e,n){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(e,n,r){var i=e.direction,o=e.height,l=e.itemCount,a=e.itemSize,s=e.layout,u=e.width,d=i==="horizontal"||s==="horizontal",f=n*a,v=d?u:o,g=Math.ceil((v+r-f)/a);return Math.max(0,Math.min(l-1,n+g-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var n=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});function t7(){var t,e;const n=Le(),i=b4().cursor;if(!i||i.type!=="line")return null;const o=n.indent,l=n.rowHeight*i.index+((e=(t=n.props.padding)!==null&&t!==void 0?t:n.props.paddingTop)!==null&&e!==void 0?e:0),a=o*i.level,s=n.renderCursor;return w.jsx(s,{top:l,left:a,indent:o})}var n7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const r7=c.forwardRef(function(e,n){const{children:r}=e,i=n7(e,["children"]),o=Le();return w.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[w.jsx(i7,{}),r]}))}),i7=()=>{const t=Le();return w.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:w.jsx(t7,{})})};var o7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const l7=c.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=o7(e,["style"]);const u=Le(),d=(i=(r=u.props.padding)!==null&&r!==void 0?r:u.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=u.props.padding)!==null&&o!==void 0?o:u.props.paddingBottom)!==null&&l!==void 0?l:0;return w.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+d+f}px`})},s))});var Yh=c.createContext({dragDropManager:void 0}),je;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(je||(je={}));function Q(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){var o;if(e===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;o=new Error(e.replace(/%s/g,function(){return r[l++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var is="dnd-core/INIT_COORDS",mo="dnd-core/BEGIN_DRAG",os="dnd-core/PUBLISH_DRAG_SOURCE",bo="dnd-core/HOVER",yo="dnd-core/DROP",$o="dnd-core/END_DRAG";function pc(t,e){return{type:is,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function wi(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wi=function(n){return typeof n}:wi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wi(t)}function a7(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n},t)}function s7(t,e){return t.filter(function(n){return n!==e})}function Xh(t){return wi(t)==="object"}function u7(t,e){var n=new Map,r=function(l){n.set(l,n.has(l)?n.get(l)+1:1)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o,l){o===1&&i.push(l)}),i}function c7(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var d7={type:is,payload:{clientOffset:null,sourceClientOffset:null}};function f7(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=r.publishSource,o=i===void 0?!0:i,l=r.clientOffset,a=r.getSourceClientOffset,s=t.getMonitor(),u=t.getRegistry();t.dispatch(pc(l)),h7(n,s,u);var d=v7(n,s);if(d===null){t.dispatch(d7);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");p7(a),f=a(d)}t.dispatch(pc(l,f));var v=u.getSource(d),g=v.beginDrag(s,d);if(g!=null){g7(g),u.pinSource(d);var $=u.getSourceType(d);return{type:mo,payload:{itemType:$,item:g,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function h7(t,e,n){Q(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Q(n.getSource(r),"Expected sourceIds to be registered.")})}function p7(t){Q(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function g7(t){Q(Xh(t),"Item must be an object.")}function v7(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function m7(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:os}}}function sa(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function b7(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;y7(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();$7(o,l,a);var s=l.getItemType();return S7(o,a,s),w7(o,l,a),{type:bo,payload:{targetIds:o,clientOffset:i||null}}}}function y7(t){Q(Array.isArray(t),"Expected targetIds to be an array.")}function $7(t,e,n){Q(e.isDragging(),"Cannot call hover while not dragging."),Q(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];Q(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);Q(o,"Expected targetIds to be registered.")}}function S7(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);sa(o,n)||t.splice(r,1)}}function w7(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function gc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gc(Object(n),!0).forEach(function(r){C7(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function C7(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E7(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();x7(r);var o=D7(r);o.forEach(function(l,a){var s=P7(l,a,i,r),u={type:yo,payload:{dropResult:vc(vc({},n),s)}};t.dispatch(u)})}}function x7(t){Q(t.isDragging(),"Cannot call drop while not dragging."),Q(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function P7(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return T7(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function T7(t){Q(typeof t>"u"||Xh(t),"Drop result must either be an object or undefined.")}function D7(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function I7(t){return function(){var n=t.getMonitor(),r=t.getRegistry();O7(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:$o}}}function O7(t){Q(t.isDragging(),"Cannot call endDrag while not dragging.")}function _7(t){return{beginDrag:f7(t),publishDragSource:m7(t),hover:b7(t),drop:E7(t),endDrag:I7(t)}}function k7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L7(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function M7(t,e,n){return L7(t.prototype,e),t}function fr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var N7=function(){function t(e,n){var r=this;k7(this,t),fr(this,"store",void 0),fr(this,"monitor",void 0),fr(this,"backend",void 0),fr(this,"isSetUp",!1),fr(this,"handleRefCountChange",function(){var i=r.store.getState().refCount>0;r.backend&&(i&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!i&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}return M7(t,[{key:"receiveBackend",value:function(n){this.backend=n}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var n=this,r=this.store.dispatch;function i(l){return function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];var d=l.apply(n,s);typeof d<"u"&&r(d)}}var o=_7(this);return Object.keys(o).reduce(function(l,a){var s=o[a];return l[a]=i(s),l},{})}},{key:"dispatch",value:function(n){this.store.dispatch(n)}}]),t}();function Ne(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var mc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),sl=function(){return Math.random().toString(36).substring(7).split("").join(".")},bc={INIT:"@@redux/INIT"+sl(),REPLACE:"@@redux/REPLACE"+sl(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+sl()}};function R7(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function A7(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(j7(t))return"date";if(F7(t))return"error";var n=K7(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function K7(t){return typeof t.constructor=="function"?t.constructor.name:null}function F7(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function j7(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function En(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=A7(t)),e}function Zh(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ne(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(1):"Expected the enhancer to be a function. Instead, received: '"+En(n)+"'");return n(Zh)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(2):"Expected the root reducer to be a function. Instead, received: '"+En(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function u(){a===l&&(a=l.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(4):"Expected the listener to be a function. Instead, received: '"+En(p)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var b=!0;return u(),a.push(p),function(){if(b){if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,u();var C=a.indexOf(p);a.splice(C,1),l=null}}}function v(p){if(!R7(p))throw new Error(process.env.NODE_ENV==="production"?Ne(7):"Actions must be plain objects. Instead, the actual type was: '"+En(p)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ne(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(s)throw new Error(process.env.NODE_ENV==="production"?Ne(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,p)}finally{s=!1}for(var b=l=a,m=0;m<b.length;m++){var C=b[m];C()}return p}function g(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Ne(10):"Expected the nextReducer to be a function. Instead, received: '"+En(p));i=p,v({type:bc.REPLACE})}function $(){var p,b=f;return p={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?Ne(11):"Expected the observer to be an object. Instead, received: '"+En(C)+"'");function S(){C.next&&C.next(d())}S();var D=b(S);return{unsubscribe:D}}},p[mc]=function(){return this},p}return v({type:bc.INIT}),r={dispatch:v,subscribe:f,getState:d,replaceReducer:g},r[mc]=$,r}var H7=function(e,n){return e===n};function z7(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function B7(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H7;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function yc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $c(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yc(Object(n),!0).forEach(function(r){V7(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function V7(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sc={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function U7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sc,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case is:case mo:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case bo:return z7(t.clientOffset,n.clientOffset)?t:$c($c({},t),{},{clientOffset:n.clientOffset});case $o:case yo:return Sc;default:return t}}var ls="dnd-core/ADD_SOURCE",as="dnd-core/ADD_TARGET",ss="dnd-core/REMOVE_SOURCE",So="dnd-core/REMOVE_TARGET";function W7(t){return{type:ls,payload:{sourceId:t}}}function G7(t){return{type:as,payload:{targetId:t}}}function q7(t){return{type:ss,payload:{sourceId:t}}}function Y7(t){return{type:So,payload:{targetId:t}}}function wc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Re(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wc(Object(n),!0).forEach(function(r){X7(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function X7(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Z7={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function J7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z7,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case mo:return Re(Re({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case os:return Re(Re({},t),{},{isSourcePublic:!0});case bo:return Re(Re({},t),{},{targetIds:n.targetIds});case So:return t.targetIds.indexOf(n.targetId)===-1?t:Re(Re({},t),{},{targetIds:s7(t.targetIds,n.targetId)});case yo:return Re(Re({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case $o:return Re(Re({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function Q7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case ls:case as:return t+1;case ss:case So:return t-1;default:return t}}var Wi=[],us=[];Wi.__IS_NONE__=!0;us.__IS_ALL__=!0;function e3(t,e){if(t===Wi)return!1;if(t===us||typeof e>"u")return!0;var n=c7(e,t);return n.length>0}function t3(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case bo:break;case ls:case as:case So:case ss:return Wi;case mo:case os:case $o:case yo:default:return us}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=u7(r,o),a=l.length>0||!B7(r,o);if(!a)return Wi;var s=o[o.length-1],u=r[r.length-1];return s!==u&&(s&&l.push(s),u&&l.push(u)),l}function n3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function Cc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ec(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cc(Object(n),!0).forEach(function(r){r3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function r3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:t3(t.dirtyHandlerIds,{type:e.type,payload:Ec(Ec({},e.payload),{},{prevTargetIds:a7(t,"dragOperation.targetIds",[])})}),dragOffset:U7(t.dragOffset,e),refCount:Q7(t.refCount,e),dragOperation:J7(t.dragOperation,e),stateId:n3(t.stateId)}}function o3(t,e){return{x:t.x+e.x,y:t.y+e.y}}function Jh(t,e){return{x:t.x-e.x,y:t.y-e.y}}function l3(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:Jh(o3(e,r),n)}function a3(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:Jh(e,n)}function s3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c3(t,e,n){return u3(t.prototype,e),t}function xc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d3=function(){function t(e,n){s3(this,t),xc(this,"store",void 0),xc(this,"registry",void 0),this.store=e,this.registry=n}return c3(t,[{key:"subscribeToStateChange",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;Q(typeof n=="function","listener must be a function."),Q(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var u=r.store.getState(),d=u.stateId;try{var f=d===l||d===l+1&&!e3(u.dirtyHandlerIds,o);f||n()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;Q(typeof n=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var a=r.store.getState().dragOffset;a!==i&&(i=a,n())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n);return Q(r,"Expected to find a valid source. sourceId=".concat(n)),this.isDragging()?!1:r.canDrag(this,n)}},{key:"canDropOnTarget",value:function(n){if(!n)return!1;var r=this.registry.getTarget(n);if(Q(r,"Expected to find a valid target. targetId=".concat(n)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(n),o=this.getItemType();return sa(i,o)&&r.canDrop(this,n)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(n){if(!n)return!1;var r=this.registry.getSource(n,!0);if(Q(r,"Expected to find a valid source. sourceId=".concat(n)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(n),o=this.getItemType();return i!==o?!1:r.isDragging(this,n)}},{key:"isOverTarget",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!n)return!1;var i=r.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(n),l=this.getItemType();if(l&&!sa(o,l))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(n);return i?s===a.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return l3(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return a3(this.store.getState().dragOffset)}}]),t}(),f3=0;function h3(){return f3++}function Ci(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ci=function(n){return typeof n}:Ci=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ci(t)}function p3(t){Q(typeof t.canDrag=="function","Expected canDrag to be a function."),Q(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Q(typeof t.endDrag=="function","Expected endDrag to be a function.")}function g3(t){Q(typeof t.canDrop=="function","Expected canDrop to be a function."),Q(typeof t.hover=="function","Expected hover to be a function."),Q(typeof t.drop=="function","Expected beginDrag to be a function.")}function ua(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return ua(n,!1)});return}Q(typeof t=="string"||Ci(t)==="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const Pc=typeof global<"u"?global:self,Qh=Pc.MutationObserver||Pc.WebKitMutationObserver;function ep(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function v3(t){let e=1;const n=new Qh(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const m3=typeof Qh=="function"?v3:ep;class b3{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=m3(this.flush),this.requestErrorThrow=ep(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class y3{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class $3{create(e){const n=this.freeTasks,r=n.length?n.pop():new y3(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const tp=new b3,S3=new $3(tp.registerPendingError);function w3(t){tp.enqueueTask(S3.create(t))}function C3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function x3(t,e,n){return E3(t.prototype,e),t}function xn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P3(t,e){return O3(t)||I3(t,e)||D3(t,e)||T3()}function T3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D3(t,e){if(t){if(typeof t=="string")return Tc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tc(t,e)}}function Tc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function I3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function O3(t){if(Array.isArray(t))return t}function _3(t){var e=h3().toString();switch(t){case je.SOURCE:return"S".concat(e);case je.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function Dc(t){switch(t[0]){case"S":return je.SOURCE;case"T":return je.TARGET;default:Q(!1,"Cannot parse handler ID: ".concat(t))}}function Ic(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done,l=P3(i.value,2),a=l[1];if(a===e)return!0;r=!!o}while(!r);return!1}var k3=function(){function t(e){C3(this,t),xn(this,"types",new Map),xn(this,"dragSources",new Map),xn(this,"dropTargets",new Map),xn(this,"pinnedSourceId",null),xn(this,"pinnedSource",null),xn(this,"store",void 0),this.store=e}return x3(t,[{key:"addSource",value:function(n,r){ua(n),p3(r);var i=this.addHandler(je.SOURCE,n,r);return this.store.dispatch(W7(i)),i}},{key:"addTarget",value:function(n,r){ua(n,!0),g3(r);var i=this.addHandler(je.TARGET,n,r);return this.store.dispatch(G7(i)),i}},{key:"containsHandler",value:function(n){return Ic(this.dragSources,n)||Ic(this.dropTargets,n)}},{key:"getSource",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Q(this.isSourceId(n),"Expected a valid source ID.");var i=r&&n===this.pinnedSourceId,o=i?this.pinnedSource:this.dragSources.get(n);return o}},{key:"getTarget",value:function(n){return Q(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}},{key:"getSourceType",value:function(n){return Q(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}},{key:"getTargetType",value:function(n){return Q(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}},{key:"isSourceId",value:function(n){var r=Dc(n);return r===je.SOURCE}},{key:"isTargetId",value:function(n){var r=Dc(n);return r===je.TARGET}},{key:"removeSource",value:function(n){var r=this;Q(this.getSource(n),"Expected an existing source."),this.store.dispatch(q7(n)),w3(function(){r.dragSources.delete(n),r.types.delete(n)})}},{key:"removeTarget",value:function(n){Q(this.getTarget(n),"Expected an existing target."),this.store.dispatch(Y7(n)),this.dropTargets.delete(n),this.types.delete(n)}},{key:"pinSource",value:function(n){var r=this.getSource(n);Q(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}},{key:"unpinSource",value:function(){Q(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(n,r,i){var o=_3(n);return this.types.set(o,r),n===je.SOURCE?this.dragSources.set(o,i):n===je.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function L3(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=M3(r),o=new d3(i,new k3(i)),l=new N7(i,o),a=t(l,e,n);return l.receiveBackend(a),l}function M3(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Zh(i3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var N3=["children"];function R3(t,e){return j3(t)||F3(t,e)||K3(t,e)||A3()}function A3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
93
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K3(t,e){if(t){if(typeof t=="string")return Oc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oc(t,e)}}function Oc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function F3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function j3(t){if(Array.isArray(t))return t}function H3(t,e){if(t==null)return{};var n=z3(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function z3(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var _c=0,Ei=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),B3=c.memo(function(e){var n=e.children,r=H3(e,N3),i=V3(r),o=R3(i,2),l=o[0],a=o[1];return c.useEffect(function(){if(a){var s=np();return++_c,function(){--_c===0&&(s[Ei]=null)}}},[]),w.jsx(Yh.Provider,Object.assign({value:l},{children:n}),void 0)});function V3(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=U3(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function U3(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:np(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Ei]||(i[Ei]={dragDropManager:L3(t,e,n,r)}),i[Ei]}function np(){return typeof global<"u"?global:window}function W3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function q3(t,e,n){return G3(t.prototype,e),t}function kc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ul=!1,cl=!1,Y3=function(){function t(e){W3(this,t),kc(this,"internalMonitor",void 0),kc(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return q3(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Q(!ul,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return ul=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{ul=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Q(!cl,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return cl=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{cl=!1}}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"isDraggingSource",value:function(n){return this.internalMonitor.isDraggingSource(n)}},{key:"isOverTarget",value:function(n,r){return this.internalMonitor.isOverTarget(n,r)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(n){return this.internalMonitor.subscribeToOffsetChange(n)}},{key:"canDragSource",value:function(n){return this.internalMonitor.canDragSource(n)}},{key:"canDropOnTarget",value:function(n){return this.internalMonitor.canDropOnTarget(n)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function X3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function J3(t,e,n){return Z3(t.prototype,e),t}function Lc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dl=!1,Q3=function(){function t(e){X3(this,t),Lc(this,"internalMonitor",void 0),Lc(this,"targetId",null),this.internalMonitor=e.getMonitor()}return J3(t,[{key:"receiveHandlerId",value:function(n){this.targetId=n}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Q(!dl,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return dl=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{dl=!1}}},{key:"isOver",value:function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();function e$(t){if(typeof t.type!="string"){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function t$(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!c.isValidElement(e)){var r=e;return t(r,n),r}var i=e;e$(i);var o=n?function(l){return t(l,n)}:t;return n$(i,o)}}function rp(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var i=t$(r);e[n]=function(){return i}}}),e}function Mc(t,e){typeof t=="function"?t(e):t.current=e}function n$(t,e){var n=t.ref;return Q(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?c.cloneElement(t,{ref:function(i){Mc(n,i),Mc(e,i)}}):c.cloneElement(t,{ref:e})}function xi(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xi=function(n){return typeof n}:xi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xi(t)}function ca(t){return t!==null&&xi(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function da(t,e,n,r){var i=void 0;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;var o=Object.keys(t),l=Object.keys(e);if(o.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),s=0;s<o.length;s++){var u=o[s];if(!a(u))return!1;var d=t[u],f=e[u];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function r$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o$(t,e,n){return i$(t.prototype,e),t}function Ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l$=function(){function t(e){var n=this;r$(this,t),Ee(this,"hooks",rp({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,ca(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,ca(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),Ee(this,"handlerId",null),Ee(this,"dragSourceRef",null),Ee(this,"dragSourceNode",void 0),Ee(this,"dragSourceOptionsInternal",null),Ee(this,"dragSourceUnsubscribe",void 0),Ee(this,"dragPreviewRef",null),Ee(this,"dragPreviewNode",void 0),Ee(this,"dragPreviewOptionsInternal",null),Ee(this,"dragPreviewUnsubscribe",void 0),Ee(this,"lastConnectedHandlerId",null),Ee(this,"lastConnectedDragSource",null),Ee(this,"lastConnectedDragSourceOptions",null),Ee(this,"lastConnectedDragPreview",null),Ee(this,"lastConnectedDragPreviewOptions",null),Ee(this,"backend",void 0),this.backend=e}return o$(t,[{key:"receiveHandlerId",value:function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(r&&this.disconnectDragSource(),!!this.handlerId){if(!n){this.lastConnectedDragSource=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var n=this.dragPreview,r=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!da(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!da(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),t}();function a$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u$(t,e,n){return s$(t.prototype,e),t}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c$=function(){function t(e){var n=this;a$(this,t),et(this,"hooks",rp({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,ca(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),et(this,"handlerId",null),et(this,"dropTargetRef",null),et(this,"dropTargetNode",void 0),et(this,"dropTargetOptionsInternal",null),et(this,"unsubscribeDropTarget",void 0),et(this,"lastConnectedHandlerId",null),et(this,"lastConnectedDropTarget",null),et(this,"lastConnectedDropTargetOptions",null),et(this,"backend",void 0),this.backend=e}return u$(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!da(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),t}();function d$(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function f$(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var sn=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Pi(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pi=function(n){return typeof n}:Pi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pi(t)}function h$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g$(t,e,n){return p$(t.prototype,e),t}function fl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v$=function(){function t(e,n,r){h$(this,t),fl(this,"spec",void 0),fl(this,"monitor",void 0),fl(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return g$(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Pi(r.item)==="object"?o=r.item:typeof r.item=="function"?o=r.item(i):o={},(n=o)!==null&&n!==void 0?n:null}},{key:"canDrag",value:function(){var n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}},{key:"isDragging",value:function(n,r){var i=this.spec,o=this.monitor,l=i.isDragging;return l?l(o):r===n.getSourceId()}},{key:"endDrag",value:function(){var n=this.spec,r=this.monitor,i=this.connector,o=n.end;o&&o(r.getItem(),r),i.reconnect()}}]),t}();function m$(t,e,n){var r=c.useMemo(function(){return new v$(t,e,n)},[e,n]);return c.useEffect(function(){r.spec=t},[t]),r}function pn(){var t=c.useContext(Yh),e=t.dragDropManager;return Q(e!=null,"Expected drag drop context"),e}function b$(t){return c.useMemo(function(){var e=t.type;return Q(e!=null,"spec.type must be defined"),e},[t])}function y$(t,e){return C$(t)||w$(t,e)||S$(t,e)||$$()}function $$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
94
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S$(t,e){if(t){if(typeof t=="string")return Nc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nc(t,e)}}function Nc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w$(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function C$(t){if(Array.isArray(t))return t}function E$(t,e,n){var r=pn(),i=m$(t,e,n),o=b$(t);sn(function(){if(o!=null){var a=f$(o,i,r),s=y$(a,2),u=s[0],d=s[1];return e.receiveHandlerId(u),n.receiveHandlerId(u),d}},[r,e,n,i,o])}function x$(t){return I$(t)||D$(t)||T$(t)||P$()}function P$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
95
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T$(t,e){if(t){if(typeof t=="string")return fa(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fa(t,e)}}function D$(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function I$(t){if(Array.isArray(t))return fa(t)}function fa(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ip(t,e){var n=x$(e||[]);return e==null&&typeof t!="function"&&n.push(t),c.useMemo(function(){return typeof t=="function"?t():t},n)}function O$(){var t=pn();return c.useMemo(function(){return new Y3(t)},[t])}function _$(t,e){var n=pn(),r=c.useMemo(function(){return new l$(n.getBackend())},[n]);return sn(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),sn(function(){return r.dragPreviewOptions=e||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,e]),r}var hl,Rc;function k$(){return Rc||(Rc=1,hl=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var l=o[i];if(!t(e[l],n[l]))return!1}return!0}return e!==e&&n!==n}),hl}var L$=k$();const M$=kp(L$);function N$(t,e){return F$(t)||K$(t,e)||A$(t,e)||R$()}function R$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A$(t,e){if(t){if(typeof t=="string")return Ac(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ac(t,e)}}function Ac(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function K$(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function F$(t){if(Array.isArray(t))return t}function op(t,e,n){var r=c.useState(function(){return e(t)}),i=N$(r,2),o=i[0],l=i[1],a=c.useCallback(function(){var s=e(t);M$(o,s)||(l(s),n&&n())},[o,t,n]);return sn(a),[o,a]}function j$(t,e){return V$(t)||B$(t,e)||z$(t,e)||H$()}function H$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
97
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z$(t,e){if(t){if(typeof t=="string")return Kc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kc(t,e)}}function Kc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function B$(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function V$(t){if(Array.isArray(t))return t}function U$(t,e,n){var r=op(t,e,n),i=j$(r,2),o=i[0],l=i[1];return sn(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(l,{handlerIds:[s]})},[t,l]),o}function lp(t,e,n){return U$(e,t||function(){return{}},function(){return n.reconnect()})}function W$(t){return c.useMemo(function(){return t.hooks.dragSource()},[t])}function G$(t){return c.useMemo(function(){return t.hooks.dragPreview()},[t])}function q$(t,e){var n=ip(t,e);Q(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r=O$(),i=_$(n.options,n.previewOptions);return E$(n,r,i),[lp(n.collect,r,i),W$(i),G$(i)]}function Y$(t){var e=t.accept;return c.useMemo(function(){return Q(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function X$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function J$(t,e,n){return Z$(t.prototype,e),t}function Fc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Q$=function(){function t(e,n){X$(this,t),Fc(this,"spec",void 0),Fc(this,"monitor",void 0),this.spec=e,this.monitor=n}return J$(t,[{key:"canDrop",value:function(){var n=this.spec,r=this.monitor;return n.canDrop?n.canDrop(r.getItem(),r):!0}},{key:"hover",value:function(){var n=this.spec,r=this.monitor;n.hover&&n.hover(r.getItem(),r)}},{key:"drop",value:function(){var n=this.spec,r=this.monitor;if(n.drop)return n.drop(r.getItem(),r)}}]),t}();function e8(t,e){var n=c.useMemo(function(){return new Q$(t,e)},[e]);return c.useEffect(function(){n.spec=t},[t]),n}function t8(t,e){return o8(t)||i8(t,e)||r8(t,e)||n8()}function n8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r8(t,e){if(t){if(typeof t=="string")return jc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jc(t,e)}}function jc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i8(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function o8(t){if(Array.isArray(t))return t}function l8(t,e,n){var r=pn(),i=e8(t,e),o=Y$(t);sn(function(){var a=d$(o,i,r),s=t8(a,2),u=s[0],d=s[1];return e.receiveHandlerId(u),n.receiveHandlerId(u),d},[r,e,i,n,o.map(function(l){return l.toString()}).join("|")])}function a8(){var t=pn();return c.useMemo(function(){return new Q3(t)},[t])}function s8(t){var e=pn(),n=c.useMemo(function(){return new c$(e.getBackend())},[e]);return sn(function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}},[t]),n}function u8(t){return c.useMemo(function(){return t.hooks.dropTarget()},[t])}function ap(t,e){var n=ip(t,e),r=a8(),i=s8(n.options);return l8(n,r,i),[lp(n.collect,r,i),u8(i)]}function c8(t,e){return p8(t)||h8(t,e)||f8(t,e)||d8()}function d8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
99
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f8(t,e){if(t){if(typeof t=="string")return Hc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hc(t,e)}}function Hc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h8(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(t);!(i=(l=n.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function p8(t){if(Array.isArray(t))return t}function g8(t){var e=pn(),n=e.getMonitor(),r=op(n,t),i=c8(r,2),o=i[0],l=i[1];return c.useEffect(function(){return n.subscribeToOffsetChange(l)}),c.useEffect(function(){return n.subscribeToStateChange(l)}),o}function sp(t){var e=null,n=function(){return e==null&&(e=t()),e};return n}function v8(t,e){return t.filter(function(n){return n!==e})}function m8(t,e){var n=new Set,r=function(l){return n.add(l)};t.forEach(r),e.forEach(r);var i=[];return n.forEach(function(o){return i.push(o)}),i}function b8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $8(t,e,n){return y8(t.prototype,e),t}function zc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S8=function(){function t(e){b8(this,t),zc(this,"entered",[]),zc(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return $8(t,[{key:"enter",value:function(n){var r=this,i=this.entered.length,o=function(a){return r.isNodeInDocument(a)&&(!a.contains||a.contains(n))};return this.entered=m8(this.entered.filter(o),[n]),i===0&&this.entered.length>0}},{key:"leave",value:function(n){var r=this.entered.length;return this.entered=v8(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),w8=sp(function(){return/firefox/i.test(navigator.userAgent)}),up=sp(function(){return!!window.safari});function C8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function x8(t,e,n){return E8(t.prototype,e),t}function hr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bc=function(){function t(e,n){C8(this,t),hr(this,"xs",void 0),hr(this,"ys",void 0),hr(this,"c1s",void 0),hr(this,"c2s",void 0),hr(this,"c3s",void 0);for(var r=e.length,i=[],o=0;o<r;o++)i.push(o);i.sort(function(h,L){return e[h]<e[L]?-1:1});for(var l=[],a=[],s,u,d=0;d<r-1;d++)s=e[d+1]-e[d],u=n[d+1]-n[d],l.push(s),a.push(u/s);for(var f=[a[0]],v=0;v<l.length-1;v++){var g=a[v],$=a[v+1];if(g*$<=0)f.push(0);else{s=l[v];var p=l[v+1],b=s+p;f.push(3*b/((b+p)/g+(b+s)/$))}}f.push(a[a.length-1]);for(var m=[],C=[],S,D=0;D<f.length-1;D++){S=a[D];var x=f[D],T=1/l[D],I=x+f[D+1]-S-S;m.push((S-x-I)*T),C.push(I*T*T)}this.xs=e,this.ys=n,this.c1s=f,this.c2s=m,this.c3s=C}return x8(t,[{key:"interpolate",value:function(n){var r=this.xs,i=this.ys,o=this.c1s,l=this.c2s,a=this.c3s,s=r.length-1;if(n===r[s])return i[s];for(var u=0,d=a.length-1,f;u<=d;){f=Math.floor(.5*(u+d));var v=r[f];if(v<n)u=f+1;else if(v>n)d=f-1;else return i[f]}s=Math.max(0,d);var g=n-r[s],$=g*g;return i[s]+o[s]*g+l[s]*$+a[s]*g*$}}]),t}(),P8=1;function cp(t){var e=t.nodeType===P8?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top,i=n.left;return{x:i,y:r}}function ci(t){return{x:t.clientX,y:t.clientY}}function T8(t){var e;return t.nodeName==="IMG"&&(w8()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function D8(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return up()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function I8(t,e,n,r,i){var o=T8(e),l=o?t:e,a=cp(l),s={x:n.x-a.x,y:n.y-a.y},u=t.offsetWidth,d=t.offsetHeight,f=r.anchorX,v=r.anchorY,g=D8(o,e,u,d),$=g.dragPreviewWidth,p=g.dragPreviewHeight,b=function(){var I=new Bc([0,.5,1],[s.y,s.y/d*p,s.y+p-d]),h=I.interpolate(v);return up()&&o&&(h+=(window.devicePixelRatio-1)*p),h},m=function(){var I=new Bc([0,.5,1],[s.x,s.x/u*$,s.x+$-u]);return I.interpolate(f)},C=i.offsetX,S=i.offsetY,D=C===0||C,x=S===0||S;return{x:D?C:m(),y:x?S:b()}}var dp="__NATIVE_FILE__",fp="__NATIVE_URL__",hp="__NATIVE_TEXT__",pp="__NATIVE_HTML__";const Vc=Object.freeze(Object.defineProperty({__proto__:null,FILE:dp,HTML:pp,TEXT:hp,URL:fp},Symbol.toStringTag,{value:"Module"}));function pl(t,e,n){var r=e.reduce(function(i,o){return i||t.getData(o)},"");return r??n}var Pn;function di(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ha=(Pn={},di(Pn,dp,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),di(Pn,pp,{exposeProperties:{html:function(e,n){return pl(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),di(Pn,fp,{exposeProperties:{urls:function(e,n){return pl(e,n,"").split(`
100
+ `)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),di(Pn,hp,{exposeProperties:{text:function(e,n){return pl(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),Pn);function O8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k8(t,e,n){return _8(t.prototype,e),t}function Uc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L8=function(){function t(e){O8(this,t),Uc(this,"item",void 0),Uc(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return k8(t,[{key:"initializeExposedProperties",value:function(){var n=this;Object.keys(this.config.exposeProperties).forEach(function(r){Object.defineProperty(n.item,r,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(r,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(n){var r=this;if(n){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:r.config.exposeProperties[o](n,r.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,i)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(n,r){return r===n.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function M8(t,e){var n=new L8(ha[t]);return n.loadDataTransfer(e),n}function gl(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(ha).filter(function(n){var r=ha[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function N8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function A8(t,e,n){return R8(t.prototype,e),t}function vl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var K8=function(){function t(e,n){N8(this,t),vl(this,"ownerDocument",null),vl(this,"globalContext",void 0),vl(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return A8(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var n;return(n=this.globalContext)!==null&&n!==void 0&&n.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}}]),t}();function Wc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Gc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wc(Object(n),!0).forEach(function(r){ne(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function F8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function H8(t,e,n){return j8(t.prototype,e),t}function ne(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var z8=function(){function t(e,n,r){var i=this;F8(this,t),ne(this,"options",void 0),ne(this,"actions",void 0),ne(this,"monitor",void 0),ne(this,"registry",void 0),ne(this,"enterLeaveCounter",void 0),ne(this,"sourcePreviewNodes",new Map),ne(this,"sourcePreviewNodeOptions",new Map),ne(this,"sourceNodes",new Map),ne(this,"sourceNodeOptions",new Map),ne(this,"dragStartSourceIds",null),ne(this,"dropTargetIds",[]),ne(this,"dragEnterTargetIds",[]),ne(this,"currentNativeSource",null),ne(this,"currentNativeHandle",null),ne(this,"currentDragSourceNode",null),ne(this,"altKeyPressed",!1),ne(this,"mouseMoveTimeoutTimer",null),ne(this,"asyncEndDragFrameId",null),ne(this,"dragOverTargetIds",null),ne(this,"lastClientOffset",null),ne(this,"hoverRafId",null),ne(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&cp(l)||null}),ne(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),ne(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),ne(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),ne(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=ci(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,u=gl(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),v=i.sourcePreviewNodes.get(d)||f;if(v){var g=i.getCurrentSourcePreviewNodeOptions(),$=g.anchorX,p=g.anchorY,b=g.offsetX,m=g.offsetY,C={anchorX:$,anchorY:p},S={offsetX:b,offsetY:m},D=I8(f,v,a,C,S);s.setDragImage(v,D.x,D.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var x=i.getCurrentSourcePreviewNodeOptions(),T=x.captureDraggingState;T?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(u)i.beginDragNativeItem(u);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),ne(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=gl(a);s&&i.beginDragNativeItem(s,a)}}),ne(this,"handleTopDragEnter",function(o){var l=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,l.length>0&&i.actions.hover(l,{clientOffset:ci(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),ne(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),ne(this,"handleTopDragOver",function(o){var l=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=ci(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(l||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var a=(l||[]).some(function(s){return i.monitor.canDropOnTarget(s)});a?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),ne(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),ne(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var l;o.preventDefault(),(l=i.currentNativeSource)===null||l===void 0||l.loadDataTransfer(o.dataTransfer)}else gl(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),ne(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:ci(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleSelectStart",function(o){var l=o.target;typeof l.dragDrop=="function"&&(l.tagName==="INPUT"||l.tagName==="SELECT"||l.tagName==="TEXTAREA"||l.isContentEditable||(o.preventDefault(),l.dragDrop()))}),this.options=new K8(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new S8(this.isNodeInDocument)}return H8(t,[{key:"profile",value:function(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}},{key:"teardown",value:function(){var n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(n,r,i){var o=this;return this.sourcePreviewNodeOptions.set(n,i),this.sourcePreviewNodes.set(n,r),function(){o.sourcePreviewNodes.delete(n),o.sourcePreviewNodeOptions.delete(n)}}},{key:"connectDragSource",value:function(n,r,i){var o=this;this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,i);var l=function(u){return o.handleDragStart(u,n)},a=function(u){return o.handleSelectStart(u)};return r.setAttribute("draggable","true"),r.addEventListener("dragstart",l),r.addEventListener("selectstart",a),function(){o.sourceNodes.delete(n),o.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",l),r.removeEventListener("selectstart",a),r.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(n,r){var i=this,o=function(u){return i.handleDragEnter(u,n)},l=function(u){return i.handleDragOver(u,n)},a=function(u){return i.handleDrop(u,n)};return r.addEventListener("dragenter",o),r.addEventListener("dragover",l),r.addEventListener("drop",a),function(){r.removeEventListener("dragenter",o),r.removeEventListener("dragover",l),r.removeEventListener("drop",a)}}},{key:"addEventListeners",value:function(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return Gc({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return Gc({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(Vc).some(function(r){return Vc[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=M8(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(n){var r=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=r.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",r.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}},{key:"handleDragEnter",value:function(n,r){this.dragEnterTargetIds.unshift(r)}},{key:"handleDragOver",value:function(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}},{key:"handleDrop",value:function(n,r){this.dropTargetIds.unshift(r)}}]),t}(),fi;function B8(){return fi||(fi=new Image,fi.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),fi}var V8=function(e,n,r){return new z8(e,n,r)};function U8(t){const e=Le(),n=e.selectedIds,[r,i,o]=q$(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(Jn.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(Jn.dragEnd())}}),[n,t]);return c.useEffect(()=>{o(B8())},[o]),i}function W8(t,e){const n=t.getBoundingClientRect(),r=e.x-Math.round(n.x),i=e.y-Math.round(n.y),o=n.height,l=i<o/2,a=!l,s=o/4,u=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:u,atTop:!u&&l,atBottom:!u&&a}}function G8(t,e,n,r){return t?t.isInternal?r.atTop?[e,t]:r.inMiddle?[t,t]:[t,n]:r.inTopHalf?[e,t]:[t,n]:[e,null]}function hi(t,e){return{parentId:t||null,index:e}}function Tn(t,e){return{type:"line",index:t,level:e}}function q8(t){return{type:"highlight",id:t}}function ml(t,e){var n;let r=t;for(;r.parent&&r.level>e;)r=r.parent;const i=((n=r.parent)===null||n===void 0?void 0:n.id)||null,o=Fh(r)+1;return{parentId:i,index:o}}function gp(t){var e;const n=W8(t.element,t.offset),r=t.indent,i=Math.round(Math.max(0,n.x-r)/r),{node:o,nextNode:l,prevNode:a}=t,[s,u]=G8(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:hi(o.id,null),cursor:q8(o.id)};if(!s)return{drop:hi((e=u==null?void 0:u.parent)===null||e===void 0?void 0:e.id,0),cursor:Tn(0,0)};if(Nh(s)){const d=yi(i,(u==null?void 0:u.level)||0,s.level);return{drop:ml(s,d),cursor:Tn(s.rowIndex+1,d)}}if(Rh(s)){const d=yi(i,(u==null?void 0:u.level)||0,s.level);return{drop:ml(s,d),cursor:Tn(s.rowIndex+1,d)}}if(Ah(s)){const d=yi(i,0,s.level+1);return d>s.level?{drop:hi(s.id,0),cursor:Tn(s.rowIndex+1,d)}:{drop:ml(s,d),cursor:Tn(s.rowIndex+1,d)}}return{drop:hi(s==null?void 0:s.id,0),cursor:Tn(s.rowIndex+1,s.level+1)}}function Y8(t,e){const n=Le(),[r,i]=ap(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:u}=gp({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});u&&n.dispatch(Jn.hovering(u.parentId,u.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:u}=n.state.dnd;Vh(n.props.onMove,{dragIds:u,parentId:a===Lr?null:a,index:s===null?0:s,dragNodes:n.dragNodes,parentNode:n.get(a)}),n.open(a)}}),[e,t.current,n.props]);return i}function X8(t){const e=Le(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return c.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const Z8=c.memo(function({index:e,style:n}){Mh(),m4();const r=Le(),i=X8(e),o=c.useRef(null),l=U8(i),a=Y8(o,i),s=c.useCallback(p=>{o.current=p,a(p)},[a]),u=r.indent*i.level,d=c.useMemo(()=>({paddingLeft:u}),[u]),f=c.useMemo(()=>{var p,b;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((b=(p=r.props.padding)!==null&&p!==void 0?p:r.props.paddingTop)!==null&&b!==void 0?b:0)})},[n,r.props.padding,r.props.paddingTop]),v={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:r.props.rowClassName};c.useEffect(()=>{var p;!i.isEditing&&i.isFocused&&((p=o.current)===null||p===void 0||p.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const g=r.renderNode,$=r.renderRow;return w.jsx($,{node:i,innerRef:s,attrs:v,children:w.jsx(g,{node:i,tree:r,style:d,dragHandle:l})})});let bl="",qc=null;function vp(){Mh();const t=Le();return w.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var n;if(t.isEditing)return;if(e.key==="Backspace"){if(!t.props.onDelete)return;const i=Array.from(t.selectedIds);if(i.length>1){let o=t.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=t.lastNode),t.focus(o,{scroll:!1}),t.delete(Array.from(i))}else{const o=t.focusedNode;if(o){const l=o.nextSibling,a=o.parent;t.focus(l||a,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),jh(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),Hh(e.currentTarget);return}if(e.key==="ArrowDown"){e.preventDefault();const i=t.nextNode;if(e.metaKey){t.select(t.focusedNode),t.activate(t.focusedNode);return}else if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.firstNode);return}}if(e.key==="ArrowUp"){e.preventDefault();const i=t.prevNode;if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.lastNode);return}}if(e.key==="ArrowRight"){const i=t.focusedNode;if(!i)return;i.isInternal&&i.isOpen?t.focus(t.nextNode):i.isInternal&&t.open(i.id);return}if(e.key==="ArrowLeft"){const i=t.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?t.close(i.id):!((n=i.parent)===null||n===void 0)&&n.isRoot||t.focus(i.parent);return}if(e.key==="a"&&e.metaKey&&!t.props.disableMultiSelection){e.preventDefault(),t.selectAll();return}if(e.key==="a"&&!e.metaKey&&t.props.onCreate){t.createLeaf();return}if(e.key==="A"&&!e.metaKey){if(!t.props.onCreate)return;t.createInternal();return}if(e.key==="Home"){e.preventDefault(),t.focus(t.firstNode);return}if(e.key==="End"){e.preventDefault(),t.focus(t.lastNode);return}if(e.key==="Enter"){const i=t.focusedNode;if(!i||!i.isEditable||!t.props.onRename)return;setTimeout(()=>{i&&t.edit(i)});return}if(e.key===" "){e.preventDefault();const i=t.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(e.key==="*"){const i=t.focusedNode;if(!i)return;t.openSiblings(i);return}if(e.key==="PageUp"){e.preventDefault(),t.pageUp();return}e.key==="PageDown"&&(e.preventDefault(),t.pageDown()),clearTimeout(qc),bl+=e.key,qc=setTimeout(()=>{bl=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(bl):!1});r&&t.focus(r.id)},children:w.jsx(e7,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.height,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:e=>{var n;return((n=t.visibleNodes[e])===null||n===void 0?void 0:n.id)||e},outerElementType:r7,innerElementType:l7,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:Z8})})}function Yc(t){return t.isFiltered?Q8(t.root,t.isMatch.bind(t)):J8(t.root)}function J8(t){const e=[];function n(r){var i;r.level>=0&&e.push(r),r.isOpen&&((i=r.children)===null||i===void 0||i.forEach(n))}return n(t),e.forEach(mp),e}function Q8(t,e){const n={},r=[];function i(l){if(!l.isRoot&&e(l)){n[l.id]=!0;let s=l.parent;for(;s;)n[s.id]=!0,s=s.parent}if(l.children)for(let s of l.children)i(s)}function o(l){var a;l.level>=0&&n[l.id]&&r.push(l),l.isOpen&&((a=l.children)===null||a===void 0||a.forEach(o))}return i(t),o(t),r.forEach(mp),r}function mp(t,e){t.rowIndex=e}const Xc=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var yl=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function a(d){try{u(r.next(d))}catch(f){l(f)}}function s(d){try{u(r.throw(d))}catch(f){l(f)}}function u(d){d.done?o(d.value):i(d.value).then(a,s)}u((r=r.apply(t,e||[])).next())})};const{safeRun:ve,identify:ut,identifyNull:We}=C4;class Vn{constructor(e,n,r,i){this.store=e,this.props=n,this.list=r,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=lc(this),this.visibleNodes=Yc(this),this.idToIndex=Xc(this.visibleNodes)}update(e){this.props=e,this.root=lc(this),this.visibleNodes=Yc(this),this.idToIndex=Xc(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!==null&&e!==void 0?e:300}get height(){var e;return(e=this.props.height)!==null&&e!==void 0?e:500}get indent(){var e;return(e=this.props.indent)!==null&&e!==void 0?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!==null&&e!==void 0?e:24}get overscanCount(){var e;return(e=this.props.overscanCount)!==null&&e!==void 0?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var e;const n=(e=this.props.searchMatch)!==null&&e!==void 0?e:(r,i)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return r=>n(r,this.searchTerm)}accessChildren(e){var n;const r=this.props.childrenAccessor||"children";return(n=yr(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=yr(e,n);if(!r)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}get firstNode(){var e;return(e=this.visibleNodes[0])!==null&&e!==void 0?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!==null&&e!==void 0?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!==null&&e!==void 0?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!==null&&e!==void 0?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,n){var r;if(e===null||n===null)return[];const i=(r=this.indexOf(e))!==null&&r!==void 0?r:0,o=this.indexOf(n);if(o===null)return[];const l=Math.min(i,o),a=Math.max(i,o);return this.visibleNodes.slice(l,a+1)}indexOf(e){const n=Bh(e);return n?this.idToIndex[n]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return yl(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?Gh(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:Wh(this),l=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield ve(this.props.onCreate,{type:l,parentId:i,index:o,parentNode:this.get(i)});a&&(this.focus(a),setTimeout(()=>{this.edit(a).then(()=>{this.select(a),this.activate(a)})}))})}delete(e){return yl(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(ut),i=r.map(o=>this.get(o)).filter(o=>!!o);yield ve(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=ut(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(ol(n)),new Promise(r=>{Vn.editPromise=r})}submit(e,n){return yl(this,void 0,void 0,function*(){if(!e)return;const r=ut(e);yield ve(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(ol(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(ol(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(We(e));n&&ve(this.props.onActivate,n)}resolveEdit(e){const n=Vn.editPromise;n&&n(e),Vn.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&e.push(r)}return e}focus(e,n={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(wn(ut(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ve(this.props.onFocus,this.focusedNode)))}pageUp(){var e,n;const r=this.visibleStartIndex,o=this.visibleStopIndex-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l>r?l=r:l=Math.max(r-o,0),this.focus(this.at(l))}pageDown(){var e,n;const r=this.visibleStartIndex,i=this.visibleStopIndex,o=i-r;let l=(n=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&n!==void 0?n:0;l<i?l=i:l=Math.min(l+o,this.visibleNodes.length-1),this.focus(this.at(l))}select(e,n={}){if(!e)return;const r=n.focus!==!1,i=ut(e);r&&this.dispatch(wn(i)),this.dispatch(Ue.only(i)),this.dispatch(Ue.anchor(i)),this.dispatch(Ue.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&ve(this.props.onFocus,this.focusedNode),ve(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=ut(e);this.dispatch(Ue.remove(n)),ve(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(We(e));n&&(this.dispatch(wn(n.id)),this.dispatch(Ue.add(n.id)),this.dispatch(Ue.anchor(n.id)),this.dispatch(Ue.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&ve(this.props.onFocus,this.focusedNode),ve(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=ut(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(wn(n)),this.dispatch(Ue.remove(this.nodesBetween(r,i))),this.dispatch(Ue.add(this.nodesBetween(r,We(n)))),this.dispatch(Ue.mostRecent(n)),this.scrollTo(n),this.focusedNode&&ve(this.props.onFocus,this.focusedNode),ve(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ve(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(wn((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ve(this.props.onFocus,this.focusedNode),ve(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(ut)),i=We(e.anchor),o=We(e.mostRecent);this.dispatch(Ue.set({ids:r,anchor:i,mostRecent:o})),ve(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:e}=this.state.dnd;switch(e.type){case"highlight":return e.id;default:return null}}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(e=>this.get(e)).filter(e=>!!e)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){var e;if(this.isFiltered)return!1;const n=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,r=this.dragNodes,i=this.props.disableDrop;for(const o of r)if(!o||!n||o.isInternal&&Kh(n,o))return!1;return typeof i=="function"?!i({parentNode:n,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!n.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(Jn.cursor({type:"none"}))}showCursor(e){this.dispatch(Jn.cursor(e))}open(e){const n=We(e);n&&(this.isOpen(n)||(this.dispatch(oa.open(n,this.isFiltered)),ve(this.props.onToggle,n)))}close(e){const n=We(e);n&&this.isOpen(n)&&(this.dispatch(oa.close(n,this.isFiltered)),ve(this.props.onToggle,n))}toggle(e){const n=We(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=We(e);if(!n)return;const r=rs(this.root,n);let i=r==null?void 0:r.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const n=e.parent;if(!n)this.toggle(e.id);else if(n.children){const r=e.isOpen;for(let i of n.children)i.isInternal&&(r?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){Vi(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Vi(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=ut(e);return this.openParents(r),Uh(()=>r in this.idToIndex).then(()=>{var i;const o=this.idToIndex[r];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,n))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!(!((e=this.props.searchTerm)===null||e===void 0)&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var n,r,i;if(!e)return!1;if(e===Lr)return!0;const o=(n=this.props.openByDefault)!==null&&n!==void 0?n:!0;return this.isFiltered?(r=this.state.nodes.open.filtered[e])!==null&&r!==void 0?r:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const n=this.props.disableEdit||(()=>!1);return!yr(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!yr(e,n)}isDragging(e){const n=We(e);return n?this.state.nodes.drag.id===n:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const n=We(e);if(!n)return!1;const{destinationParentId:r,destinationIndex:i}=this.state.nodes.drag;return n===r&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(wn(e.id))}onBlur(){this.dispatch(L4())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||vp}get renderRow(){return this.props.renderRow||D4}get renderNode(){return this.props.children||I4}get renderDragPreview(){return this.props.renderDragPreview||qh}get renderCursor(){return this.props.renderCursor||T4}}function xe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var eS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Zc=eS,$l=()=>Math.random().toString(36).substring(7).split("").join("."),tS={INIT:`@@redux/INIT${$l()}`,REPLACE:`@@redux/REPLACE${$l()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${$l()}`},qt=tS;function bp(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function nS(t){if(t===void 0)return"undefined";if(t===null)return"null";const e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(oS(t))return"date";if(iS(t))return"error";const n=rS(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function rS(t){return typeof t.constructor=="function"?t.constructor.name:null}function iS(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function oS(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Et(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=nS(t)),e}function yp(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?xe(2):`Expected the root reducer to be a function. Instead, received: '${Et(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?xe(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?xe(1):`Expected the enhancer to be a function. Instead, received: '${Et(n)}'`);return n(yp)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function u(){l===o&&(l=new Map,o.forEach((b,m)=>{l.set(m,b)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?xe(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?xe(4):`Expected the listener to be a function. Instead, received: '${Et(b)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?xe(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let m=!0;u();const C=a++;return l.set(C,b),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?xe(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");m=!1,u(),l.delete(C),o=null}}}function v(b){if(!bp(b))throw new Error(process.env.NODE_ENV==="production"?xe(7):`Actions must be plain objects. Instead, the actual type was: '${Et(b)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof b.type>"u")throw new Error(process.env.NODE_ENV==="production"?xe(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof b.type!="string")throw new Error(process.env.NODE_ENV==="production"?xe(17):`Action "type" property must be a string. Instead, the actual type was: '${Et(b.type)}'. Value was: '${b.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?xe(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,b)}finally{s=!1}return(o=l).forEach(C=>{C()}),b}function g(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?xe(10):`Expected the nextReducer to be a function. Instead, received: '${Et(b)}`);r=b,v({type:qt.REPLACE})}function $(){const b=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?xe(11):`Expected the observer to be an object. Instead, received: '${Et(m)}'`);function C(){const D=m;D.next&&D.next(d())}return C(),{unsubscribe:b(C)}},[Zc](){return this}}}return v({type:qt.INIT}),{dispatch:v,subscribe:f,getState:d,replaceReducer:g,[Zc]:$}}function Jc(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function lS(t,e,n,r){const i=Object.keys(e),o=n&&n.type===qt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!bp(t))return`The ${o} has unexpected type of "${Et(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const l=Object.keys(t).filter(a=>!e.hasOwnProperty(a)&&!r[a]);if(l.forEach(a=>{r[a]=!0}),!(n&&n.type===qt.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function aS(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:qt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?xe(12):`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:qt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?xe(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${qt.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Qc(t){const e=Object.keys(t),n={};for(let l=0;l<e.length;l++){const a=e[l];process.env.NODE_ENV!=="production"&&typeof t[a]>"u"&&Jc(`No reducer provided for key "${a}"`),typeof t[a]=="function"&&(n[a]=t[a])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{aS(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=lS(a,n,s,i);f&&Jc(f)}let u=!1;const d={};for(let f=0;f<r.length;f++){const v=r[f],g=n[v],$=a[v],p=g($,s);if(typeof p>"u"){const b=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?xe(14):`When called with an action of type ${b?`"${String(b)}"`:"(unknown type)"}, the slice reducer for key "${v}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[v]=p,u=u||p!==$}return u=u||r.length!==Object.keys(a).length,u?d:a}}function sS(t=Zn().nodes.drag,e){switch(e.type){case"DND_DRAG_START":return Object.assign(Object.assign({},t),{id:e.id,selectedIds:e.dragIds});case"DND_DRAG_END":return Object.assign(Object.assign({},t),{id:null,destinationParentId:null,destinationIndex:null,selectedIds:[]});case"DND_HOVERING":return e.parentId!==t.destinationParentId||e.index!=t.destinationIndex?Object.assign(Object.assign({},t),{destinationParentId:e.parentId,destinationIndex:e.index}):t;default:return t}}const uS=Qc({nodes:Qc({focus:M4,edit:k4,open:N4,selection:R4,drag:sS}),dnd:A4}),cS=Zn();function dS({treeProps:t,imperativeHandle:e,children:n}){const r=c.useRef(null),i=c.useRef(null),o=c.useRef(yp(uS,Zn(t))),l=Ca.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>cS),a=c.useMemo(()=>new Vn(o.current,t,r,i),[]),s=c.useRef(0);return c.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),c.useImperativeHandle(e,()=>a),c.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),c.useEffect(()=>{a.props.searchTerm||o.current.dispatch(oa.clear(!0))},[a.props.searchTerm]),w.jsx(Oh.Provider,{value:a,children:w.jsx(Lh.Provider,{value:s.current,children:w.jsx(_h.Provider,{value:l.nodes,children:w.jsx(kh.Provider,{value:l.dnd,children:w.jsx(B3,Object.assign({backend:V8,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function fS(){const t=Le(),[,e]=ap(()=>({accept:"NODE",canDrop:(n,r)=>r.isOver({shallow:!0})?t.canDrop():!1,hover:(n,r)=>{if(!r.isOver({shallow:!0}))return;const i=r.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:l}=gp({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(Jn.hovering(l.parentId,l.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function hS(t){return fS(),t.children}function pS(){const e=Le().props.renderContainer||vp;return w.jsx(w.Fragment,{children:w.jsx(e,{})})}function gS(){const t=Le(),{offset:e,mouse:n,item:r,isDragging:i}=g8(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||qh;return w.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class vS{constructor(e){this.root=mS(e)}get data(){var e,n;return(n=(e=this.root.children)===null||e===void 0?void 0:e.map(r=>r.data))!==null&&n!==void 0?n:[]}create(e){const n=e.parentId?this.find(e.parentId):this.root;if(!n)return null;n.addChild(e.data,e.index)}move(e){const n=this.find(e.id),r=e.parentId?this.find(e.parentId):this.root;!n||!r||(r.addChild(n.data,e.index),n.drop())}update(e){const n=this.find(e.id);n&&n.update(e.changes)}drop(e){const n=this.find(e.id);n&&n.drop()}find(e,n=this.root){if(!n)return null;if(n.id===e)return n;if(n.children){for(let r of n.children){const i=this.find(e,r);if(i)return i}return null}return null}}function mS(t){const e=new $p({id:"ROOT"},null);return e.children=t.map(n=>cs(n,e)),e}function cs(t,e){const n=new $p(t,e);return t.children&&(n.children=t.children.map(r=>cs(r,n))),n}class $p{constructor(e,n){this.data=e,this.parent=n,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,n){var r,i;const o=cs(e,this);this.children=(r=this.children)!==null&&r!==void 0?r:[],this.children.splice(n,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(n,0,e)}removeChild(e){var n,r;(n=this.children)===null||n===void 0||n.splice(e,1),(r=this.data.children)===null||r===void 0||r.splice(e,1)}update(e){if(this.hasParent()){const n=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),n),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let bS=0;function yS(t){const[e,n]=c.useState(t),r=c.useMemo(()=>new vS(e),[e]);return[e,{onMove:u=>{for(const d of u.dragIds)r.move({id:d,parentId:u.parentId,index:u.index});n(r.data)},onRename:({name:u,id:d})=>{r.update({id:d,changes:{name:u}}),n(r.data)},onCreate:({parentId:u,index:d,type:f})=>{const v={id:`simple-tree-id-${bS++}`,name:""};return f==="internal"&&(v.children=[]),r.create({parentId:u,index:d,data:v}),n(r.data),v},onDelete:u=>{u.ids.forEach(d=>r.drop({id:d})),n(r.data)}}]}function $S(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
101
+ Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,n]=yS(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function SS(t,e){const n=$S(t);return w.jsxs(dS,{treeProps:n,imperativeHandle:e,children:[w.jsx(hS,{children:w.jsx(pS,{})}),w.jsx(gS,{})]})}const wS=c.forwardRef(SS),Sp=({top:t,left:e})=>w.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function CS(t,e){var n=c.useRef(null),r=c.useRef(null);r.current=e;var i=c.useRef(null);c.useEffect(function(){o()});var o=c.useCallback(function(){var l=i.current,a=r.current,s=l||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===s&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return c.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),c.useCallback(function(l){i.current=l,o()},[o])}function ed(t,e,n){return t[e]?t[e][0]?t[e][0][n]:t[e][n]:e==="contentBoxSize"?t.contentRect[n==="inlineSize"?"width":"height"]:void 0}function ES(t){t===void 0&&(t={});var e=t.onResize,n=c.useRef(void 0);n.current=e;var r=t.round||Math.round,i=c.useRef(),o=c.useState({width:void 0,height:void 0}),l=o[0],a=o[1],s=c.useRef(!1);c.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=c.useRef({width:void 0,height:void 0}),d=CS(c.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==r)&&(i.current={box:t.box,round:r,instance:new ResizeObserver(function(v){var g=v[0],$=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",p=ed(g,$,"inlineSize"),b=ed(g,$,"blockSize"),m=p?r(p):void 0,C=b?r(b):void 0;if(u.current.width!==m||u.current.height!==C){var S={width:m,height:C};u.current.width=m,u.current.height=C,n.current?n.current(S):s.current||a(S)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,r]),t.ref);return c.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var ze=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(ze||{}),Ht=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(Ht||{});const Gi=t=>t?t.nodeType===ze.SEPARATOR:!1,qi=t=>t?t.nodeType===ze.TITLE:!1,$r=t=>!Gi(t)&&!qi(t),wp=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:l,insertAfter:a,append:s,prepend:u,getItem:d,move:f,items:v}=D1({initialItems:JSON.parse(JSON.stringify(t)),getKey:V=>V.id,getChildren:V=>V.children||[]}),[g,$]=c.useState(),p=(V=[])=>{const U=v.map(M=>M.key);r(...U);const N=JSON.parse(JSON.stringify(V));N.length>0&&o(null,0,...N),$(void 0)},b=V=>{const U=d(V);U&&$(U.value)},m=(V,U,N)=>{var M;if(V){const z=d(V);z&&o(V,N??((M=z.children)==null?void 0:M.length)??0,U)}else o(null,N??v.length,U)},C=V=>{var U;return(U=d(V))==null?void 0:U.value},S=(V,U)=>{var W;const N=d(V);if(!N){console.error("No item found");return}let M=((W=N.children)==null?void 0:W.map(G=>G.value))??null;const z=U.childrenCount??N.value.childrenCount??0;if((M==null?void 0:M.length)===0&&z>0&&(M=null),U.children&&(M=[...M??[],...U.children]),U.children){const G=new Set(U.children.map(R=>R.id));M=U.children.filter(R=>!G.has(R.id)),M=[...M??[],...U.children]}const j={...N.value,...U,children:M,childrenCount:(M==null?void 0:M.length)??z};i(V,j)},D=V=>{r(V)},x=V=>{r(...V)},T=async V=>{if(!e){console.error("No refresh callback provided");return}try{const U=await e(V);S(V,U)}catch(U){console.error("error while refreshing node:",U)}},I=(V,U)=>{o(null,U??v.length,V)},h=(V,U)=>{o(null,U??v.length,...V)},L=(V,U)=>{const N=d(V);if(!N){console.error("No item found");return}const M={...N.value,children:U,childrenCount:U.length,hasLoadedChildren:U.length>0};i(V,M)},A=V=>{const U=[],N=d(V);if(!N)return[];U.push(N.value);const M=z=>{const j=P(z);if(!j)return;const W=d(j);W&&(U.push(W.value),M(j))};return M(V),U.reverse()},P=V=>{var U;return((U=d(V))==null?void 0:U.parentKey)??null},F=V=>{const U=P(V);if(!U)return null;const N=d(U);return N?N.value:null},y=(V,U)=>{l(V,U)},E=(V,U)=>{a(V,U)},K=(V,U)=>{s(V,U)},B=(V,U)=>{u(V,U)},H=(V,U,N)=>{f(V,U,N)},O=V=>{H(V.sourceId,V.newParentId,V.index)},q=async V=>{if(!n)return[];const U=await n(V);return S(V,{children:U,hasLoadedChildren:!0,childrenCount:U.length}),U};return c.useEffect(()=>{const V=U=>{U.forEach(N=>{var M;if(N.children&&N.children.length>0){const z=N.value.hasLoadedChildren||((M=N.children)==null?void 0:M.length)>0||N.value.children&&N.value.children.length>0;N.value.children=N.children.map(W=>W.value);const j=z?N.children.length:N.value.childrenCount??0;N.value.childrenCount=j,z&&!N.value.hasLoadedChildren&&(N.value.hasLoadedChildren=!0),V(N.children)}else{const j=N.value.hasLoadedChildren||N.value.children&&N.value.children.length>0?0:N.value.childrenCount;N.value.children=[],N.value.childrenCount=j}})};V(v)},[v]),{nodes:v,addChild:m,updateNode:S,deleteNode:D,deleteNodes:x,addRootNode:I,addRootNodes:h,selectedNode:g,setSelectedNode:$,refreshNode:T,setChildren:L,insertBeforeNode:y,insertAfterNode:E,handleMove:O,prependToNode:B,moveNode:H,appendToNode:K,move:f,resetTree:p,handleLoadChildren:q,selectNodeById:b,getParent:F,getNode:C,getParentId:P,getAncestors:A}},ds=c.createContext(null),xS=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=c.useRef(null),[l,a]=c.useState(null),[s,u]=c.useState(n??null),d=wp(i??[],e,r);return w.jsx(ds.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:u,setRoot:a},children:t})},fs=()=>{const t=c.useContext(ds);if(!t)throw new Error("TreeContext not found");return t},PS=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:l,beforeMove:a})=>{const[s,u]=c.useState(400),{ref:d,width:f}=ES(),v=fs(),g=(v==null?void 0:v.treeData.nodes)??[];c.useEffect(()=>{const m=document.querySelector(".c__tree-view"),C=m==null?void 0:m.firstElementChild;let S=null;return m&&C&&(S=new ResizeObserver(()=>{if(C&&C instanceof HTMLElement){const D=C.style.height;u(parseInt(D,10)+20)}}),S.observe(C)),()=>S==null?void 0:S.disconnect()},[]);const $=m=>{var O,q,V,U;const C=JSON.parse(JSON.stringify(g)),S=m.dragNodes[0],D=m.parentId?((O=m.parentNode)==null?void 0:O.data.children)??[]:C,x=m.dragNodes[0].data.value.id,T=m.dragNodes[0].data,I=(q=m.parentNode)==null?void 0:q.data;if((I==null?void 0:I.value.nodeType)===ze.TITLE||(I==null?void 0:I.value.nodeType)===ze.SEPARATOR)return null;const h=T.parentKey??n,L=m.parentId??n;let A=m.index+0,P=null,F=L;const y=((U=(V=S.parent)==null?void 0:V.children)==null?void 0:U.findIndex(N=>N.data.value.id===x))??0;if(h===L){if(y===A)return null;A=A<y?A:A-1}const E=m.index-1,K=D[E],B=m.index,H=D[B];return m.index===0?(F=m.parentId??n,P=Ht.FIRST_CHILD):!I&&m.index===1&&!$r(K.value)?(F=n,A=1,P=Ht.FIRST_CHILD):m.index===D.length?(F=F??n,P=Ht.LAST_CHILD):K&&$r(K.value)?(F=K.value.id,P=Ht.RIGHT):H&&$r(H.value)&&(P=Ht.LEFT,F=H.value.id),P&&F?{targetModeId:F,mode:P,oldParentId:h,index:A,newParentId:m.parentId,sourceId:x}:null},p=m=>{const C=$(m);C&&(a?a(C,()=>{v==null||v.treeData.handleMove(C),l==null||l(C)}):(v==null||v.treeData.handleMove(C),l==null||l(C)))},b=c.useCallback(m=>o?!o(m):!1,[o]);if(v)return w.jsx("div",{ref:d,style:{height:s},className:"c__tree-view--container",children:w.jsx(wS,{data:g,ref:v.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:p,height:s,width:f,paddingTop:10,paddingBottom:10,rowHeight:35,disableDrag:b,disableDrop:({parentNode:m,dragNodes:C,index:S})=>{var h,L;if(i&&!i({parentNode:m,dragNodes:C,index:S}))return m.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(m.data.value.canDrop=!1),!0;const D=C[0];if(D&&D.isDragging&&D.willReceiveDrop||((h=m.data.value)==null?void 0:h.nodeType)===ze.TITLE||((L=m.data.value)==null?void 0:L.nodeType)===ze.SEPARATOR)return!0;if(m.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const A=g[S-1],P=g[S],F=g[S+1],y=Gi(A==null?void 0:A.value),E=Gi(P==null?void 0:P.value),K=qi(A==null?void 0:A.value),B=qi(P==null?void 0:P.value),H=$r(F==null?void 0:F.value);return!!(S===0&&(E||B)||y&&B&&H||K&&E&&H)}const x=m==null?void 0:m.isOpen,T=(m==null?void 0:m.data.value.childrenCount)&&m.data.value.childrenCount>0||(m==null?void 0:m.data.children)&&m.data.children.length>0;if(!T)return m.data.value.canDrop=!0,!1;let I=m.data.value.childrenCount&&m.data.value.childrenCount>0&&(m==null?void 0:m.data.children)&&m.data.children.length>0;return I=I??!0,!x&&!I&&T?(m.data.value.canDrop=!0,!0):(m.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:e,renderCursor:Sp,renderRow:TS,rowClassName:"c__tree-view--row",children:r})})},TS=({children:t,...e})=>{const n=e.node.data.value.nodeType===ze.TITLE,r=e.node.data.value.nodeType===ze.SEPARATOR,{style:i}=e.attrs,o={...i};return n||r?c.createElement("div",{...e.attrs,key:e.node.id,style:o,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},t):c.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},w.jsx("div",{className:"c__tree-view--row-content",children:t}))},DS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function IS(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function OS(t){return"nodeType"in t}function _S(t){var e,n;return t?IS(t)?t:OS(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}const Cp=DS?c.useLayoutEffect:c.useEffect;function Ep(t){const e=c.useRef(t);return Cp(()=>{e.current=t}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function td(t,e){e===void 0&&(e=[t]);const n=c.useRef(t);return Cp(()=>{n.current!==t&&(n.current=t)},e),n}function kS(t){const e=Ep(t),n=c.useRef(null),r=c.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let Sl={};function LS(t,e){return c.useMemo(()=>{const n=Sl[t]==null?0:Sl[t]+1;return Sl[t]=n,t+"-"+n},[t,e])}var xr;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(xr||(xr={}));function nd(){}const MS=Object.freeze({x:0,y:0});function NS(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function RS(t,e,n){const r=NS(e);if(!r)return t;const{scaleX:i,scaleY:o,x:l,y:a}=r,s=t.left-l-(1-i)*parseFloat(n),u=t.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=i?t.width/i:t.width,f=o?t.height/o:t.height;return{width:d,height:f,top:u,right:s+d,bottom:u+f,left:s}}const AS={ignoreTransform:!1};function xp(t,e){e===void 0&&(e=AS);let n=t.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:d}=_S(t).getComputedStyle(t);u&&(n=RS(n,u,d))}const{top:r,left:i,width:o,height:l,bottom:a,right:s}=n;return{top:r,left:i,width:o,height:l,bottom:a,right:s}}function rd(t){return xp(t,{ignoreTransform:!0})}var Fn;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Fn||(Fn={}));var id;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(id||(id={}));var Tt;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Tt||(Tt={}));Tt.Space,Tt.Enter,Tt.Esc,Tt.Space,Tt.Enter,Tt.Tab;var od;(function(t){t[t.RightClick=2]="RightClick"})(od||(od={}));var ld;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(ld||(ld={}));var ad;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(ad||(ad={}));Fn.Backward+"",Fn.Forward+"",Fn.Backward+"",Fn.Forward+"";var pa;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(pa||(pa={}));var ga;(function(t){t.Optimized="optimized"})(ga||(ga={}));function KS(t){let{callback:e,disabled:n}=t;const r=Ep(e),i=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return c.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}pa.WhileDragging,ga.Optimized;const FS={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:nd,draggableNodes:new Map,over:null,measureDroppableContainers:nd},jS=c.createContext(FS);({...MS});var sd;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(sd||(sd={}));const HS="Droppable",zS={timeout:25};function BS(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=LS(HS),{active:l,dispatch:a,over:s,measureDroppableContainers:u}=c.useContext(jS),d=c.useRef({disabled:n}),f=c.useRef(!1),v=c.useRef(null),g=c.useRef(null),{disabled:$,updateMeasurementsFor:p,timeout:b}={...zS,...i},m=td(p??r),C=c.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(m.current)?m.current:[m.current]),g.current=null},b)},[b]),S=KS({callback:C,disabled:$||!l}),D=c.useCallback((h,L)=>{S&&(L&&(S.unobserve(L),f.current=!1),h&&S.observe(h))},[S]),[x,T]=kS(D),I=td(e);return c.useEffect(()=>{!S||!x.current||(S.disconnect(),f.current=!1,S.observe(x.current))},[x,S]),c.useEffect(()=>(a({type:xr.RegisterDroppable,element:{id:r,key:o,disabled:n,node:x,rect:v,data:I}}),()=>a({type:xr.UnregisterDroppable,key:o,id:r})),[r]),c.useEffect(()=>{n!==d.current.disabled&&(a({type:xr.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,a]),{active:l,rect:v,isOver:(s==null?void 0:s.id)===r,node:x,over:s,setNodeRef:T}}const VS=t=>{const{isOver:e,setNodeRef:n}=BS({id:t.id,data:t.data});return c.useEffect(()=>{var r;(r=t.onOver)==null||r.call(t,e,t.data)},[e,t.data,t.onOver]),w.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},US=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var S,D;const l=fs(),a=c.useRef(null),[s,u]=c.useState(!1),[d,f]=c.useState(!1),v=o??s,g=n.willReceiveDrop||d,$=n.data.value.childrenCount!==void 0&&n.data.value.childrenCount>0||(((S=n.data.children)==null?void 0:S.length)??0)>0,p=((D=n.children)==null?void 0:D.length)??!1,b=n.isLeaf||!$,m=c.useCallback(async()=>{if(!b){if(p||n.data.value.hasLoadedChildren){n.toggle();return}u(!0),await(l==null?void 0:l.treeData.handleLoadChildren(n.data.value.id)),u(!1),n.open()}},[b,p,n,l==null?void 0:l.treeData]),C=c.useCallback(x=>{x&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{m()},500)),a.current&&!x&&clearTimeout(a.current)},[m,n.isOpen,n.isDragging]);return c.useEffect(()=>{C(g)},[g,C]),n.data.value.nodeType===ze.SEPARATOR?w.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===ze.TITLE?w.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):w.jsx(VS,{id:n.id,data:{data:n.data,nodeApi:n},onOver:f,children:w.jsxs("div",{onClick:x=>{x.target.closest(".c__tree-view--node")||x.stopPropagation(),e==null||e()},onKeyDown:x=>{x.stopPropagation()},ref:r,style:i,className:Te("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:d}),children:[b&&w.jsx("div",{className:"c__tree-view--node__leaf"}),!b&&w.jsxs(w.Fragment,{children:[v&&w.jsx("div",{className:"c__tree-view--node__loading",children:w.jsx(Ya,{})}),!v&&w.jsx("span",{onClick:x=>{x.stopPropagation(),m()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},wo=({roles:t,onSelect:e,canUpdate:n=!0,selectedRole:r,isOpen:i,onOpenChange:o,roleTopMessage:l})=>{const a=t.find(s=>s.value===r);return n?w.jsx(Ar,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:l,children:w.jsxs("div",{role:"button",className:"c__access-role-dropdown",onClick:()=>{o==null||o(!i)},children:[w.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label}),w.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):w.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label})},Pp=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=se.useCunningham(),[u,d]=c.useState(!1);return w.jsxs("div",{className:"c__add-share-user-list",children:[w.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>w.jsx(Tp,{user:f,onRemoveUser:e},f.id))}),w.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,w.jsx(wo,{roles:o,selectedRole:l,onSelect:a,isOpen:u,onOpenChange:d}),w.jsx(se.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},Tp=({user:t,onRemoveUser:e})=>w.jsxs("div",{className:"c__add-share-user-item",children:[w.jsx("span",{children:t.full_name||t.email}),w.jsx(se.Button,{color:"tertiary-text",size:"nano",onClick:()=>e==null?void 0:e(t),icon:w.jsx("span",{className:"material-icons",children:"close"})})]}),ud=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],WS=t=>{const e=t.split(" ");return e.length>2?e.slice(0,2).map(n=>n[0]).join(""):e.map(n=>n[0]).join("")},GS=t=>ud[t.charCodeAt(0)%ud.length],Dp=({fullName:t,size:e="medium",forceColor:n})=>{const r=WS(t),i=GS(t);return w.jsx("div",{style:{backgroundColor:n||void 0},className:Te(`c__avatar ${e}`,{[i]:!n&&i}),children:w.jsx("div",{className:"c__avatar__initials",children:r})})},Co=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return w.jsxs("div",{className:"c__user-row",children:[w.jsx(Dp,{fullName:r,size:"small"}),w.jsxs("div",{className:"c__user-row__info",children:[w.jsx("span",{className:"c__user-row__name",children:t}),n&&e&&w.jsx("span",{className:Te("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},va=({user:t})=>{const{t:e}=se.useCunningham();return w.jsx(vo,{left:w.jsx(Co,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:w.jsxs("div",{className:"c__search-user-item-right",children:[w.jsx("span",{children:e("components.share.item.add")}),w.jsx("span",{className:"material-icons",children:"add"})]})})},Ip=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=se.useCunningham(),a=Yn(),s=Yn(),u=[{label:l("components.share.access.delete"),icon:w.jsx("span",{className:"material-icons",children:"back_hand"}),isDisabled:!i,callback:()=>{r==null||r(t)}}],d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return w.jsx("div",{className:"c__share-member-item",children:w.jsx(vo,{left:w.jsx(Co,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:w.jsxs("div",{className:"c__share-member-item__right",children:[w.jsx(wo,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,onOpenChange:a.setIsOpen,canUpdate:i,roleTopMessage:o}),i&&w.jsx(Ar,{options:u,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:w.jsx(se.Button,{color:"primary-text",onClick:d,size:"small",icon:w.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},Op=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=se.useCunningham(),a=Yn(),s=Yn(),u=[{label:l("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:w.jsx("span",{className:"material-icons",children:"back_hand"})}],d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return w.jsx("div",{className:"c__share-member-item",children:w.jsx(vo,{left:w.jsx(Co,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:w.jsxs("div",{className:"c__share-member-item__right",children:[w.jsx(wo,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,canUpdate:i,onOpenChange:a.setIsOpen,roleTopMessage:o}),i&&w.jsx(Ar,{options:u,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:w.jsx(se.Button,{color:"primary-text",onClick:d,size:"small",icon:w.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},qS=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,hasNextInvitations:a=!1,...s})=>{const{t:u}=se.useCunningham(),{isMobile:d}=nr(),f=c.useRef(null),[v,g]=c.useState("400px"),$=c.useRef(null),[p,b]=c.useState(""),[m,C]=c.useState(""),[S,D]=c.useState([]),[x,T]=c.useState(s.invitationRoles[0].value??""),I=d?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",h=H=>{if(f.current&&clearTimeout(f.current),H===""){C(""),s.onSearchUsers("");return}f.current=setTimeout(()=>{s.onSearchUsers(H),C(H)},300)},L=H=>{b(H),h(H)},A=(m!==""||S.length>0)&&!s.loading,P=c.useCallback(H=>{D(O=>[...O,H]),b(""),C(""),s.onSearchUsers("")},[s]),F=H=>{D(O=>O.filter(q=>q.id!==H.id))},y=c.useMemo(()=>{const H=t==null?void 0:t.filter(M=>!S.includes(M));let O=u(m!==""?"components.share.user.no_result":"components.share.user.placeholder");const V=(M=>!!M.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/))(m??"")&&!(H!=null&&H.some(M=>M.email===m)),U={id:m,full_name:"",email:m};return V&&(O=void 0),{groupName:u("components.share.search.group_name"),elements:H??[],showWhenEmpty:!0,emptyString:O,endActions:V?[{content:w.jsx(va,{user:U}),onSelect:()=>void P(U)}]:void 0}},[t,m,u,S,P]),E=H=>{var N;const q=(H==null?void 0:H.clientHeight)??0,V=((N=$.current)==null?void 0:N.clientHeight)??0,U=`calc(${I} - ${q}px - ${V}px - 70px - 10px)`;g(U)},K=!A&&!s.loading&&i.length>0,B=!A&&!s.loading&&r.length>0;return w.jsx(se.Modal,{title:s.modalTitle??u("components.share.modalTitle"),isOpen:s.isOpen,onClose:s.onClose,closeOnClickOutside:!0,size:d?se.ModalSize.FULL:se.ModalSize.LARGE,children:w.jsxs("div",{children:[l&&S.length>0&&w.jsx("div",{className:"c__share-modal__selected-users",ref:$,children:w.jsx(Pp,{users:S,onRemoveUser:F,roles:s.invitationRoles,selectedRole:x,onSelectRole:T,onShare:()=>{s.onInviteUser(S,x),D([])}})}),w.jsx(Dh,{onFilter:L,inputValue:p,showInput:l,loading:s.loading,placeholder:u("components.share.user.placeholder"),children:w.jsxs("div",{style:{height:v,overflowY:"auto"},children:[A&&!s.loading&&w.jsx("div",{className:"c__share-modal__search-users",children:w.jsx(Ih,{group:y,onSelect:H=>{P(H)},renderElement:H=>w.jsx(va,{user:H})})}),!A&&e,K&&w.jsxs("div",{className:"c__share-modal__invitations",children:[w.jsx("span",{className:"c__share-modal__invitations-title",children:u("components.share.invitations.title")}),i.map(H=>{var O;return w.jsx(Op,{invitation:H,roles:s.invitationRoles,updateRole:s.onUpdateInvitation,deleteInvitation:s.onDeleteInvitation,canUpdate:l,roleTopMessage:(O=s.invitationRoleTopMessage)==null?void 0:O.call(s,H)},H.id)}),w.jsx(cd,{show:a,onShowMore:s.onLoadNextInvitations})]}),B&&w.jsxs("div",{className:"c__share-modal__members",children:[w.jsx("span",{className:"c__share-modal__members-title",children:u(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(H=>{var O,q;return w.jsx(Ip,{accessData:H,canUpdate:l,roleTopMessage:(O=s.accessRoleTopMessage)==null?void 0:O.call(s,H),roles:((q=s.getAccessRoles)==null?void 0:q.call(s,H))??s.invitationRoles,updateRole:s.onUpdateAccess,deleteAccess:s.onDeleteAccess},H.id)}),w.jsx(cd,{show:o,onShowMore:s.onLoadNextMembers})]})]})}),w.jsx("div",{ref:E,children:!A&&w.jsx(w.Fragment,{children:n})})]})})},cd=({show:t,onShowMore:e})=>{const{t:n}=se.useCunningham();return t?w.jsx("div",{className:"c__share-modal__show-more-button",children:w.jsx(se.Button,{color:"primary-text",size:"small",icon:w.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:n("components.share.members.load_more")})}):null},YS=({onCopyLink:t,onOk:e})=>{const{t:n}=se.useCunningham();return w.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[w.jsx(se.Button,{color:"tertiary",icon:w.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),w.jsx(se.Button,{color:"primary",onClick:e,children:n("components.share.ok")})]})};exports.AccessRoleDropdown=wo;exports.CunninghamProvider=Vp;exports.CustomTabs=v4;exports.DropdownMenu=Ar;exports.Filter=vb;exports.Footer=gb;exports.Header=w2;exports.Hero=bb;exports.HomeGutter=yb;exports.HorizontalSeparator=ia;exports.InvitationUserSelectorItem=Tp;exports.InvitationUserSelectorList=Pp;exports.LaGaufre=Ob;exports.Label=W2;exports.LanguagePicker=S2;exports.LeftPanel=C2;exports.MainLayout=sy;exports.ProConnectButton=hd;exports.QuickSearch=Dh;exports.QuickSearchGroup=Ih;exports.QuickSearchInput=Th;exports.QuickSearchItem=bi;exports.QuickSearchItemTemplate=vo;exports.SearchUserItem=va;exports.ShareInvitationItem=Op;exports.ShareMemberItem=Ip;exports.ShareModal=qS;exports.ShareModalCopyLinkFooter=YS;exports.Spinner=Ya;exports.TreeApi=Vn;exports.TreeContext=ds;exports.TreeProvider=xS;exports.TreeView=PS;exports.TreeViewItem=US;exports.TreeViewMoveModeEnum=Ht;exports.TreeViewNodeTypeEnum=ze;exports.TreeViewSeparator=Sp;exports.UserAvatar=Dp;exports.UserRow=Co;exports.WithLabel=cy;exports.cunninghamConfig=Xl;exports.getLocales=fd;exports.headerHeight=uy;exports.isNode=$r;exports.isSeparator=Gi;exports.isTitle=qi;exports.useDropdownMenu=Yn;exports.useResponsive=nr;exports.useTree=wp;exports.useTreeContext=fs;
102
102
  //# sourceMappingURL=index.cjs.map