nntc-ui 0.1.2 → 0.1.4

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.
Files changed (47) hide show
  1. package/components/common/ColorPicker/ColorPicker.d.ts +3 -4
  2. package/components/common/ColorPicker/ColorPicker.d.ts.map +1 -1
  3. package/components/common/DateTime/DateTime.d.ts +3 -2
  4. package/components/common/DateTime/DateTime.d.ts.map +1 -1
  5. package/components/common/FieldShell/FieldShell.d.ts +27 -0
  6. package/components/common/FieldShell/FieldShell.d.ts.map +1 -0
  7. package/components/common/FieldShell/index.d.ts +3 -0
  8. package/components/common/FieldShell/index.d.ts.map +1 -0
  9. package/components/common/Input/Input.d.ts +6 -5
  10. package/components/common/Input/Input.d.ts.map +1 -1
  11. package/components/common/MultiSelect/MultiSelect.d.ts +3 -4
  12. package/components/common/MultiSelect/MultiSelect.d.ts.map +1 -1
  13. package/components/common/MultiSelect/models/TitleVariant.d.ts +1 -1
  14. package/components/common/MultiSelect/models/TitleVariant.d.ts.map +1 -1
  15. package/components/common/MultiSelect/utils/getTitle.d.ts.map +1 -1
  16. package/components/common/SearchInput/SearchInput.d.ts +5 -1
  17. package/components/common/SearchInput/SearchInput.d.ts.map +1 -1
  18. package/components/common/Select/Select.d.ts +4 -4
  19. package/components/common/Select/Select.d.ts.map +1 -1
  20. package/components/view/Card/Card.d.ts +2 -0
  21. package/components/view/Card/Card.d.ts.map +1 -1
  22. package/components/view/Chip/Chip.d.ts.map +1 -1
  23. package/components/view/InputChip/InputChip.d.ts +15 -0
  24. package/components/view/InputChip/InputChip.d.ts.map +1 -0
  25. package/components/view/InputChip/index.d.ts +2 -0
  26. package/components/view/InputChip/index.d.ts.map +1 -0
  27. package/components/view/Popover/Popover.d.ts +1 -0
  28. package/components/view/Popover/Popover.d.ts.map +1 -1
  29. package/components/view/Popover/ui/PopoverProvider/hooks/usePopover.d.ts +1 -1
  30. package/components/view/Popover/ui/PopoverProvider/hooks/usePopover.d.ts.map +1 -1
  31. package/components/view/Popover/ui/PopoverProvider/models/PopoverOptions.d.ts +1 -0
  32. package/components/view/Popover/ui/PopoverProvider/models/PopoverOptions.d.ts.map +1 -1
  33. package/components/view/VirtualTable/models/TableCell.d.ts +5 -0
  34. package/components/view/VirtualTable/models/TableCell.d.ts.map +1 -1
  35. package/components/view/VirtualTable/models/TableColumn.d.ts +22 -0
  36. package/components/view/VirtualTable/models/TableColumn.d.ts.map +1 -1
  37. package/components/view/VirtualTable/models/TableRow.d.ts +1 -0
  38. package/components/view/VirtualTable/models/TableRow.d.ts.map +1 -1
  39. package/index.css +690 -755
  40. package/index.css.map +1 -1
  41. package/index.d.ts +1 -0
  42. package/index.d.ts.map +1 -1
  43. package/index.js +1 -1
  44. package/index.js.map +1 -1
  45. package/index.mjs +1 -1
  46. package/index.mjs.map +1 -1
  47. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see index.mjs.LICENSE.txt */
2
- import*as e from"react";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import{createPortal as o,flushSync as i}from"react-dom";var l={353(e){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",l="day",a="week",s="month",c="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,l=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-l:l-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:u,w:a,d:l,D:d,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",y={};y[v]=h;var w="$isDayjsObject",O=function(e){return e instanceof j||!(!e||!e[w])},_=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var l=t.split("-");if(!o&&l.length>1)return e(l[0])}else{var a=t.name;y[a]=t,o=a}return!r&&o&&(v=o),o||!r&&v},S=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new j(n)},P=b;P.l=_,P.i=O,P.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var j=function(){function h(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=h.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return P},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return S(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<S(e)},m.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,c=!!P.u(t)||t,f=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(l)},g=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,m=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case u:return c?p(1,0):p(31,11);case s:return c?p(1,m):p(0,m+1);case a:var y=this.$locale().weekStart||0,w=(h<y?h+7:h)-y;return p(c?b-w:b+(6-w),m);case l:case d:return g(v+"Hours",0);case i:return g(v+"Minutes",1);case o:return g(v+"Seconds",2);case r:return g(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var a,c=P.p(e),f="set"+(this.$u?"UTC":""),p=(a={},a[l]=f+"Date",a[d]=f+"Date",a[s]=f+"Month",a[u]=f+"FullYear",a[i]=f+"Hours",a[o]=f+"Minutes",a[r]=f+"Seconds",a[n]=f+"Milliseconds",a)[c],g=c===l?this.$D+(t-this.$W):t;if(c===s||c===u){var h=this.clone().set(d,1);h.$d[p](g),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](g);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[P.p(e)]()},m.add=function(n,c){var d,f=this;n=Number(n);var p=P.p(c),g=function(e){var t=S(f);return P.w(t.date(t.date()+Math.round(e*n)),f)};if(p===s)return this.set(s,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return g(1);if(p===a)return g(7);var h=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,m=this.$d.getTime()+n*h;return P.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,l=this.$m,a=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return P.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return P.s(t.$y,4,"0");case"M":return a+1;case"MM":return P.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return P.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return P.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,l,!0);case"A":return h(i,l,!1);case"m":return String(l);case"mm":return P.s(l,2,"0");case"s":return String(t.$s);case"ss":return P.s(t.$s,2,"0");case"SSS":return P.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,f){var p,g=this,h=P.p(d),m=S(n),b=(m.utcOffset()-this.utcOffset())*e,v=this-m,y=function(){return P.m(g,m)};switch(h){case u:p=y()/12;break;case s:p=y();break;case c:p=y()/3;break;case a:p=(v-b)/6048e5;break;case l:p=(v-b)/864e5;break;case i:p=v/t;break;case o:p=v/e;break;case r:p=v/1e3;break;default:p=v}return f?p:P.a(p)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return y[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return P.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},h}(),x=j.prototype;return S.prototype=x,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",s],["$y",u],["$D",d]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,j,S),e.$i=!0),S},S.locale=_,S.isDayjs=O,S.unix=function(e){return S(1e3*e)},S.en=y[v],S.Ls=y,S.p={},S}()},493(e,t,n){var r=n(649),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,l=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a(function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})},[e,n,t]),l(function(){return c(o)&&u({inst:o}),e(function(){c(o)&&u({inst:o})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},888(e,t,n){e.exports=n(493)},915(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},649(t){t.exports=e},942(e,t){var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return l[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var c={};s.r(c),s.d(c,{active:()=>E,elevated:()=>R,filled:()=>k,link:()=>D,medium:()=>M,onlyIcon:()=>I,outlined:()=>N,root:()=>L,small:()=>T,stateLayer:()=>F,text:()=>V,textSecondary:()=>A,tonal:()=>z,withIcon:()=>$,withoutIcon:()=>H});var u={};s.r(u),s.d(u,{body1:()=>X,body2:()=>J,button:()=>Z,caption:()=>Q,h1:()=>ee,h2:()=>te,h3:()=>ne,h4:()=>re,h5:()=>oe,h6:()=>ie,h7:()=>le,overline:()=>ae,subtitle1:()=>se,subtitle2:()=>ce});var d={};s.r(d),s.d(d,{arrow:()=>_a,filled:()=>Sa,icon:()=>Pa,input:()=>ja,itemIcon:()=>xa,label:()=>Ca,medium:()=>Ea,outlined:()=>Ra,popoverContent:()=>ka,popoverTarget:()=>Da,root:()=>Ma,small:()=>Ia,withIcon:()=>Na,withItemIcon:()=>La,wrapper:()=>Ta});var f={};s.r(f),s.d(f,{divider:()=>Va,item:()=>Aa,itemActions:()=>za,itemDescription:()=>$a,itemDisabled:()=>Ha,itemIcon:()=>Ba,itemSelected:()=>Wa,itemTextBlock:()=>qa,itemTitle:()=>Ga,itemTitleTop:()=>Ua,medium:()=>Ka,root:()=>Ya,small:()=>Xa,stateLayer:()=>Ja});var p={};s.r(p),s.d(p,{filled:()=>as,fullWidth:()=>ss,icon:()=>cs,input:()=>us,label:()=>ds,medium:()=>fs,outlined:()=>ps,popoverContent:()=>gs,popoverTarget:()=>hs,root:()=>ms,small:()=>bs,wrapper:()=>vs});var g={};s.r(g),s.d(g,{button:()=>ys,buttonsContainer:()=>ws,calendarContainer:()=>Os,cell:()=>_s,cellCircle:()=>Ss,cellData:()=>Ps,cellSelection:()=>js,cellSelectionFirst:()=>xs,cellSelectionLast:()=>Cs,cellsContainer:()=>Es,dateTimeMode:()=>Rs,medium:()=>ks,month:()=>Ds,monthCellSelection:()=>Ms,monthCellSelectionFirst:()=>Is,monthCellSelectionLast:()=>Ns,monthView:()=>Ls,navigationArrow:()=>Ts,navigationContainer:()=>Fs,navigationTitle:()=>Vs,navigationValue:()=>As,root:()=>zs,small:()=>$s,timeContainer:()=>Hs,timeDivider:()=>Bs,timeSelectionMarker:()=>Ws,year:()=>qs});var h={};s.r(h),s.d(h,{arrow:()=>Cc,icon:()=>Ec,input:()=>Rc,label:()=>kc,medium:()=>Dc,outlined:()=>Mc,popoverContent:()=>Ic,popoverTarget:()=>Nc,root:()=>Lc,small:()=>Tc,wrapper:()=>Fc});var m={};s.r(m),s.d(m,{attachIcon:()=>Bc,fileDisplay:()=>Wc,fileInput:()=>qc,fileName:()=>Gc,filled:()=>Uc,fullWidth:()=>Kc,input:()=>Yc,label:()=>Xc,medium:()=>Jc,outlined:()=>Zc,placeholder:()=>Qc,root:()=>eu,small:()=>tu,wrapper:()=>nu});var b={};s.r(b),s.d(b,{filled:()=>md,icon:()=>bd,input:()=>vd,medium:()=>yd,outlined:()=>wd,root:()=>Od,small:()=>_d,withIcon:()=>Sd});var v={};s.r(v),s.d(v,{medium:()=>Rd,root:()=>kd,small:()=>Dd});var y={};s.r(y),s.d(y,{arrow:()=>Id,checklistRoot:()=>Nd,checklistScrolled:()=>Ld,checklistWrapper:()=>Td,clear:()=>Fd,filled:()=>Vd,fullWidth:()=>Ad,icon:()=>zd,input:()=>$d,itemIcon:()=>Hd,label:()=>Bd,labelSelectedCount:()=>Wd,medium:()=>qd,outlined:()=>Gd,popoverContent:()=>Ud,popoverTarget:()=>Kd,root:()=>Yd,searchInputRoot:()=>Xd,small:()=>Jd,withIcon:()=>Zd,withItemIcon:()=>Qd,wrapper:()=>ef});var w={};s.r(w),s.d(w,{modal:()=>_f,panel:()=>Sf,primary:()=>Pf,root:()=>jf});var O={};s.r(O),s.d(O,{arrow:()=>Ef,bottomArrow:()=>Rf,content:()=>kf,error:()=>Df,info:()=>Mf,leftArrow:()=>If,rightArrow:()=>Nf,success:()=>Lf,topArrow:()=>Tf,trigger:()=>Ff,warning:()=>Vf});var _={};s.r(_),s.d(_,{disableBorder:()=>op,disabled:()=>ip,filled:()=>lp,iconOnly:()=>ap,medium:()=>sp,root:()=>cp,selected:()=>up,selectedFilled:()=>dp,small:()=>fp,tab:()=>pp,tabBorder:()=>gp,tabBorderVertical:()=>hp,tabFilled:()=>mp,tabIcon:()=>bp,tabTitle:()=>vp,tabVertical:()=>yp,vertical:()=>wp});var S={};s.r(S),s.d(S,{alignCenter:()=>zg,alignLeft:()=>$g,alignRight:()=>Hg,bordersAll:()=>Bg,bordersHorizontal:()=>Wg,bordersVertical:()=>qg,bottomBorder:()=>Gg,clickable:()=>Ug,editable:()=>Kg,error:()=>Yg,evenRow:()=>Xg,firstThRow:()=>Jg,input:()=>Zg,label:()=>Qg,marginLeftChanging:()=>eh,medium:()=>th,modalContent:()=>nh,rightBorder:()=>rh,root:()=>oh,rowButtonTrigger:()=>ih,rowspanContent:()=>lh,selected:()=>ah,showInModal:()=>sh,small:()=>ch,sticky:()=>uh,success:()=>dh,table:()=>fh,tableContainer:()=>ph,td:()=>gh,th:()=>hh,thCell:()=>mh,thHiddenColumn:()=>bh,thLeftBorder:()=>vh,thRightBorder:()=>yh,tr:()=>wh,verticalAlignCenter:()=>Oh,verticalAlignFlexEnd:()=>_h,verticalAlignFlexStart:()=>Sh,viewCell:()=>Ph,viewSpan:()=>jh});var P={};s.r(P),s.d(P,{active:()=>sm,clickable:()=>cm,filled:()=>um,icon:()=>dm,iconClickable:()=>fm,iconLeft:()=>pm,iconRight:()=>gm,label:()=>hm,medium:()=>mm,outlined:()=>bm,root:()=>vm,secondary:()=>ym,small:()=>wm,stateLayer:()=>Om,withIcon:()=>_m});var j=s(942),x=s.n(j),C=s(649),E="button-module__active__hSEWs",R="button-module__elevated__nAlrD",k="button-module__filled__D7eAr",D="button-module__link__F_tgW",M="button-module__medium__v66y0",I="button-module__only-icon__zOzfl",N="button-module__outlined__c_PHO",L="button-module__root__gX6OQ",T="button-module__small__HHNmk",F="button-module__state-layer__t1MJf",V="button-module__text__rG7nD",A="button-module__text-secondary__jXFdx",z="button-module__tonal__u6w_G",$="button-module__with-icon__C4Cw6",H="button-module__without-icon__GOGFF";const B=["variant","size","icon","textSecondary","isActive","className","children","classes"];function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const U=(0,C.forwardRef)(function(e,t){let{variant:o="filled",size:i="medium",icon:l,textSecondary:a,isActive:s,className:u,children:d,classes:f}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,B);return n("button",q(q({className:x()(L,c[o],c[i],l?d?$:I:H,s?E:void 0,a?A:void 0,u,f?.root)},p),{},{ref:t,children:r("span",{className:x()(F,f?.stateLayer),children:[l,d]})}))});function K(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var Y=parseInt(C.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=K(r,t),o="function"==typeof e;n.push(o?e:()=>K(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)K(n,t)}},X="typography-module__body1__x76Hw",J="typography-module__body2__xQKKj",Z="typography-module__button__dx69P",Q="typography-module__caption__cWpWz",ee="typography-module__h1__pRuCD",te="typography-module__h2__tNSpQ",ne="typography-module__h3__YqCF_",re="typography-module__h4__BCkqi",oe="typography-module__h5__z84mf",ie="typography-module__h6__C2Wqz",le="typography-module__h7__B6VO6",ae="typography-module__overline__IkqBV",se="typography-module__subtitle1__NO_el",ce="typography-module__subtitle2__TKKn5";const ue=["variant","component","children","className"];function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pe(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ge=(0,C.forwardRef)(function(e,t){let{variant:r="body2",component:o,children:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ue);return n(o||"span",fe(fe({className:x()(u[r],l)},a),{},{ref:t,children:i}))});function he(){const e=C;return"function"==typeof e.useId?e.useId():(0,C.useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const me=({size:e=24,color:t="currentColor",className:r,children:o})=>n("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,className:r,xmlns:"http://www.w3.org/2000/svg",children:o});function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach(function(t){ye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ye(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const we=e=>n(me,ve(ve({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})}));function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach(function(t){Se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Se(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pe=e=>n(me,_e(_e({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}));function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach(function(t){Ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ce(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ee=e=>n(me,xe(xe({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2zm0-4H7V7h10v2z"})}));var Re="checkbox-module__checkbox__x6SCC",ke="checkbox-module__pressed__mLWO0";const De=["label","several","componentSize","classes","id","ref"];function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach(function(t){Ne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ne(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Le(e){const{label:o,several:i,componentSize:l="medium",classes:a,id:s,ref:c}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,De),d=(0,C.useRef)(null),f=he(),p=s??f;(0,C.useEffect)(()=>{const e=d.current;if(!e)return;const t=()=>e.classList.remove(ke),n=()=>e.classList.add(ke);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const g="large"===l?"subtitle1":"subtitle2";return r("div",{className:x()("checkbox-module__root__xJtJG",a?.root),children:[n("input",Ie({ref:Y([d,c]),type:"checkbox",className:x()("checkbox-module__input__SjKVz",a?.input),id:p,title:o},u)),r("label",{htmlFor:p,className:x()("checkbox-module__label__tkrMd",a?.label),title:o,children:[i?n("span",{className:x()(Re,"checkbox-module__several__TYjeg",a?.checkbox),children:n(Ee,{})}):r(t,{children:[n("span",{className:x()(Re,"checkbox-module__deselected__ZuA24",a?.checkbox),children:n(we,{})}),n("span",{className:x()(Re,"checkbox-module__selected__pLwVq",a?.checkbox),children:n(Pe,{})})]}),!!o&&n(ge,{variant:g,className:x()("checkbox-module__label-text__kXha_",a?.labelText),children:o})]})]})}const Te=new Uint8Array(16),Fe=[];for(let e=0;e<256;++e)Fe.push((e+256).toString(16).slice(1));const Ve=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(Te);if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(Fe[e[t+0]]+Fe[e[t+1]]+Fe[e[t+2]]+Fe[e[t+3]]+"-"+Fe[e[t+4]]+Fe[e[t+5]]+"-"+Fe[e[t+6]]+Fe[e[t+7]]+"-"+Fe[e[t+8]]+Fe[e[t+9]]+"-"+Fe[e[t+10]]+Fe[e[t+11]]+Fe[e[t+12]]+Fe[e[t+13]]+Fe[e[t+14]]+Fe[e[t+15]]).toLowerCase()}(r)}(e,t,n):crypto.randomUUID()};function Ae(){return"undefined"!=typeof window}function ze(e){return Be(e)?(e.nodeName||"").toLowerCase():"#document"}function $e(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function He(e){var t;return null==(t=(Be(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Be(e){return!!Ae()&&(e instanceof Node||e instanceof $e(e).Node)}function We(e){return!!Ae()&&(e instanceof Element||e instanceof $e(e).Element)}function qe(e){return!!Ae()&&(e instanceof HTMLElement||e instanceof $e(e).HTMLElement)}function Ge(e){return!(!Ae()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof $e(e).ShadowRoot)}function Ue(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Ke(e){return/^(table|td|th)$/.test(ze(e))}function Ye(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Xe=/transform|translate|scale|rotate|perspective|filter/,Je=/paint|layout|strict|content/,Ze=e=>!!e&&"none"!==e;let Qe;function et(e){const t=We(e)?rt(e):e;return Ze(t.transform)||Ze(t.translate)||Ze(t.scale)||Ze(t.rotate)||Ze(t.perspective)||!tt()&&(Ze(t.backdropFilter)||Ze(t.filter))||Xe.test(t.willChange||"")||Je.test(t.contain||"")}function tt(){return null==Qe&&(Qe="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qe}function nt(e){return/^(html|body|#document)$/.test(ze(e))}function rt(e){return $e(e).getComputedStyle(e)}function ot(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function it(e){if("html"===ze(e))return e;const t=e.assignedSlot||e.parentNode||Ge(e)&&e.host||He(e);return Ge(t)?t.host:t}function lt(e){const t=it(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:qe(t)&&Ue(t)?t:lt(t)}function at(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=lt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=$e(o);if(i){const e=st(l);return t.concat(l,l.visualViewport||[],Ue(o)?o:[],e&&n?at(e):[])}return t.concat(o,at(o,[],n))}function st(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ct=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),ut="undefined"==typeof Element,dt=ut?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ft=!ut&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},pt=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):pt(e.parentNode))},gt=function(e,t,n){if(pt(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ct));return t&&dt.call(e,ct)&&r.unshift(e),r.filter(n)},ht=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!pt(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),a=l.length?l:i.children,s=ht(a,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{dt.call(i,ct)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!pt(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=ht(!0===c?i.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return r},mt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},bt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!mt(e)?0:e.tabIndex},vt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},yt=function(e){return"INPUT"===e.tagName},wt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Ot=function(e,t){return!(t.disabled||function(e){return yt(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=dt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(dt.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return wt(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,a=ft(e);if(l&&!l.shadowRoot&&!0===r(l))return wt(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=i}if(function(e){var t,n,r,o,i=e&&ft(e),l=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=l)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(l)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&l;){var s,c,u;a=!(null===(c=l=null===(s=i=ft(l))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(l))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!dt.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},_t=function(e,t){return!(function(e){return function(e){return yt(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ft(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||bt(t)<0||!Ot(e,t))},St=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Pt=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,l=function(e,t){var n=bt(e);return n<0&&t&&!mt(e)?0:n}(i,o),a=o?Pt(e.candidates):i;0===l?o?t.push.apply(t,a):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:a})}),n.sort(vt).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},jt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ht([e],t.includeContainer,{filter:_t.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:St}):gt(e,t.includeContainer,_t.bind(null,t)),Pt(n)},xt=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==dt.call(e,ct)&&_t(t,e)};function Ct(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Et(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function Rt(){return/apple/i.test(navigator.vendor)}function kt(){const e=/android/i;return e.test(Ct())||e.test(Et())}function Dt(){return Et().includes("jsdom/")}const Mt="data-floating-ui-focusable";function It(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Nt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ge(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Lt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Tt(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Ft(e){return(null==e?void 0:e.ownerDocument)||document}function Vt(e){return qe(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function At(e){return!!e&&"combobox"===e.getAttribute("role")&&Vt(e)}function zt(e){return e?e.hasAttribute(Mt)?e:e.querySelector("["+Mt+"]")||e:null}function $t(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...$t(e,t.id,n)])}function Ht(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function Bt(e){e.preventDefault(),e.stopPropagation()}function Wt(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var qt="undefined"!=typeof document?C.useLayoutEffect:function(){};function Gt(e){const t=C.useRef(e);return qt(()=>{t.current=e}),t}const Ut={...C}.useInsertionEffect||(e=>e());function Kt(e){const t=C.useRef(()=>{});return Ut(()=>{t.current=e}),C.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const Yt=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Xt(e,t){const n=jt(e,Yt()),r=n.length;if(0===r)return;const o=It(Ft(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function Jt(e){return Xt(Ft(e).body,1)||e}function Zt(e){return Xt(Ft(e).body,-1)||e}function Qt(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Nt(n,r)}function en(e){jt(e,Yt()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function tn(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const nn=Math.min,rn=Math.max,on=Math.round,ln=Math.floor,an=e=>({x:e,y:e}),sn={left:"right",right:"left",bottom:"top",top:"bottom"};function cn(e,t,n){return rn(e,nn(t,n))}function un(e,t){return"function"==typeof e?e(t):e}function dn(e){return e.split("-")[0]}function fn(e){return e.split("-")[1]}function pn(e){return"x"===e?"y":"x"}function gn(e){return"y"===e?"height":"width"}function hn(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function mn(e){return pn(hn(e))}function bn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const vn=["left","right"],yn=["right","left"],wn=["top","bottom"],On=["bottom","top"];function _n(e){const t=dn(e);return sn[t]+e.slice(t.length)}function Sn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Pn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function jn(e,t,n){let{reference:r,floating:o}=e;const i=hn(t),l=mn(t),a=gn(l),s=dn(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(fn(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function xn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=un(t,e),g=Sn(p),h=a[f?"floating"===d?"reference":"floating":d],m=Pn(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Pn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:s}):b);return{top:(m.top-w.top+g.top)/y.y,bottom:(w.bottom-m.bottom+g.bottom)/y.y,left:(m.left-w.left+g.left)/y.x,right:(w.right-m.right+g.right)/y.x}}const Cn=new Set(["left","top"]);function En(e){const t=rt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=qe(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=on(n)!==i||on(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Rn(e){return We(e)?e:e.contextElement}function kn(e){const t=Rn(e);if(!qe(t))return an(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=En(t);let l=(i?on(n.width):n.width)/r,a=(i?on(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Dn=an(0);function Mn(e){const t=$e(e);return tt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Dn}function In(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Rn(e);let l=an(1);t&&(r?We(r)&&(l=kn(r)):l=kn(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$e(e))&&t}(i,n,r)?Mn(i):an(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i){const e=$e(i),t=r&&We(r)?$e(r):r;let n=e,o=st(n);for(;o&&r&&t!==n;){const e=kn(o),t=o.getBoundingClientRect(),r=rt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=l,n=$e(o),o=st(n)}}return Pn({width:u,height:d,x:s,y:c})}function Nn(e,t){const n=ot(e).scrollLeft;return t?t.left+n:In(He(e)).left+n}function Ln(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Nn(e,n),y:n.top+t.scrollTop}}function Tn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=$e(e),r=He(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=tt();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}const c=Nn(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=He(e),n=ot(e),r=e.ownerDocument.body,o=rn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=rn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Nn(e);const a=-n.scrollTop;return"rtl"===rt(r).direction&&(l+=rn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(He(e));else if(We(t))r=function(e,t){const n=In(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=qe(e)?kn(e):an(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Mn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Pn(r)}function Fn(e,t){const n=it(e);return!(n===t||!We(n)||nt(n))&&("fixed"===rt(n).position||Fn(n,t))}function Vn(e,t,n){const r=qe(t),o=He(t),i="fixed"===n,l=In(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=an(0);function c(){s.x=Nn(o)}if(r||!r&&!i)if(("body"!==ze(t)||Ue(o))&&(a=ot(t)),r){const e=In(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?an(0):Ln(o,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.y,width:l.width,height:l.height}}function An(e){return"static"===rt(e).position}function zn(e,t){if(!qe(e)||"fixed"===rt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return He(e)===n&&(n=n.ownerDocument.body),n}function $n(e,t){const n=$e(e);if(Ye(e))return n;if(!qe(e)){let t=it(e);for(;t&&!nt(t);){if(We(t)&&!An(t))return t;t=it(t)}return n}let r=zn(e,t);for(;r&&Ke(r)&&An(r);)r=zn(r,t);return r&&nt(r)&&An(r)&&!et(r)?n:r||function(e){let t=it(e);for(;qe(t)&&!nt(t);){if(et(t))return t;if(Ye(t))return null;t=it(t)}return null}(e)||n}const Hn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=He(r),a=!!t&&Ye(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=an(1);const u=an(0),d=qe(r);if((d||!d&&!i)&&(("body"!==ze(r)||Ue(l))&&(s=ot(r)),d)){const e=In(r);c=kn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?an(0):Ln(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:He,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ye(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=at(e,[],!1).filter(e=>We(e)&&"body"!==ze(e)),o=null;const i="fixed"===rt(e).position;let l=i?it(e):e;for(;We(l)&&!nt(l);){const t=rt(l),n=et(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Ue(l)&&!n&&Fn(e,l))?r=r.filter(e=>e!==l):o=t,l=it(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=Tn(t,i[0],o);let a=l.top,s=l.right,c=l.bottom,u=l.left;for(let e=1;e<i.length;e++){const n=Tn(t,i[e],o);a=rn(n.top,a),s=nn(n.right,s),c=nn(n.bottom,c),u=rn(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:$n,getElementRects:async function(e){const t=this.getOffsetParent||$n,n=this.getDimensions,r=await n(e.floating);return{reference:Vn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=En(e);return{width:t,height:n}},getScale:kn,isElement:We,isRTL:function(e){return"rtl"===rt(e).direction}};function Bn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wn(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Rn(e),u=o||i?[...c?at(c):[],...t?at(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&a?function(e,t){let n,r=null;const o=He(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;const g={rootMargin:-ln(d)+"px "+-ln(o.clientWidth-(u+f))+"px "+-ln(o.clientHeight-(d+p))+"px "+-ln(u)+"px",threshold:rn(0,nn(1,s))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||Bn(c,e.getBoundingClientRect())||l(),h=!1}try{r=new IntersectionObserver(m,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,g)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),c&&!s&&g.observe(c),t&&g.observe(t));let h=s?In(e):null;return s&&function t(){const r=In(e);h&&!Bn(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=g)||e.disconnect(),g=null,s&&cancelAnimationFrame(f)}}const qn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...m}=un(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=dn(o),v=hn(a),y=dn(a)===a,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),O=f||(y||!h?[_n(a)]:function(e){const t=_n(e);return[bn(e),t,bn(t)]}(a)),_="none"!==g;!f&&_&&O.push(...function(e,t,n,r){const o=fn(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?yn:vn:t?vn:yn;case"left":case"right":return t?wn:On;default:return[]}}(dn(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(bn)))),i}(a,h,g,w));const S=[a,...O],P=await s.detectOverflow(t,m),j=[];let x=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&j.push(P[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=fn(e),o=mn(e),i=gn(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=_n(l)),[l,_n(l)]}(o,l,w);j.push(P[e[0]],P[e[1]])}if(x=[...x,{placement:o,overflows:j}],!j.every(e=>e<=0)){var C,E;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=S[e];if(t&&("alignment"!==d||v===hn(t)||x.every(e=>hn(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:x},reset:{placement:t}};let n=null==(E=x.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=x.filter(e=>{if(_){const t=hn(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Gn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=un(e,t)||{};if(null==c)return{};const d=Sn(u),f={x:n,y:r},p=mn(o),g=gn(p),h=await l.getDimensions(c),m="y"===p,b=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",w=i.reference[g]+i.reference[p]-f[p]-i.floating[g],O=f[p]-i.reference[p],_=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let S=_?_[y]:0;S&&await(null==l.isElement?void 0:l.isElement(_))||(S=a.floating[y]||i.floating[g]);const P=w/2-O/2,j=S/2-h[g]/2-1,x=nn(d[b],j),C=nn(d[v],j),E=x,R=S-h[g]-C,k=S/2-h[g]/2+P,D=cn(E,k,R),M=!s.arrow&&null!=fn(o)&&k!==D&&i.reference[g]/2-(k<E?x:C)-h[g]/2<0,I=M?k<E?k-E:k-R:0;return{[p]:f[p]+I,data:{[p]:D,centerOffset:k-D-I,...M&&{alignmentOffset:I}},reset:M}}}),Un=(e,t,n)=>{const r=new Map,o={platform:Hn,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:xn},s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=jn(c,r,s),f=r,p=0;const g={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:m,fn:b}=h,{x:v,y,data:w,reset:O}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,g[m]={...g[m],...w},O&&p<50&&(p++,"object"==typeof O&&(O.placement&&(f=O.placement),O.rects&&(c=!0===O.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):O.rects),({x:u,y:d}=jn(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:g}})(e,t,{...o,platform:i})};var Kn="undefined"!=typeof document?C.useLayoutEffect:function(){};function Yn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!Yn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Yn(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Xn(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jn(e,t){const n=Xn(e);return Math.round(t*n)/n}function Zn(e){const t=C.useRef(e);return Kn(()=>{t.current=e}),t}const Qn=(e,t)=>{const n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=dn(n),a=fn(n),s="y"===hn(n),c=Cn.has(l)?-1:1,u=i&&s?-1:1,d=un(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof g&&(p="end"===a?-1*g:g),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},er=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=un(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=hn(dn(o)),p=pn(f);let g=u[p],h=u[f];if(l){const e="y"===p?"bottom":"right";g=cn(g+d["y"===p?"top":"left"],g,g-d[e])}if(a){const e="y"===f?"bottom":"right";h=cn(h+d["y"===f?"top":"left"],h,h-d[e])}const m=s.fn({...t,[p]:g,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:l,[f]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},tr=(e,t)=>{const n=qn(e);return{name:n.name,fn:n.fn,options:[e,t]}},nr=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Gn({element:n.current,padding:r}).fn(t):{}:n?Gn({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function rr(e){const t=C.useRef(void 0),n=C.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return C.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const or="data-floating-ui-focusable",ir="active",lr="selected",ar={...C};let sr=!1,cr=0;const ur=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cr++,dr=ar.useId||function(){const[e,t]=C.useState(()=>sr?ur():void 0);return qt(()=>{null==e&&t(ur())},[]),C.useEffect(()=>{sr=!0},[]),e};const fr=C.createContext(null),pr=C.createContext(null),gr=()=>{var e;return(null==(e=C.useContext(fr))?void 0:e.id)||null},hr=()=>C.useContext(pr);function mr(e){return"data-floating-ui-"+e}function br(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const vr=mr("safe-polygon");function yr(e,t,n){if(n&&!Wt(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function wr(e){return"function"==typeof e?e():e}let Or=0;function _r(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Or);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Or=requestAnimationFrame(i)}const Sr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Pr(e){return"inert"===e?Sr.inert:"aria-hidden"===e?Sr["aria-hidden"]:Sr.none}let jr=new WeakSet,xr={},Cr=0;function Er(e){return e?Ge(e)?e.host:Er(e.parentNode):null}const Rr=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Er(t);return e.contains(n)?n:null}).filter(e=>null!=e);function kr(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(o=e[0],(null==o?void 0:o.ownerDocument)||document).body;var o;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,l=Rr(t,e),a=new Set,s=new Set(l),c=[];xr[o]||(xr[o]=new WeakMap);const u=xr[o];return l.forEach(function e(t){t&&!a.has(t)&&(a.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!s.has(t)&&[].forEach.call(t.children,t=>{if("script"!==ze(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=Pr(i),l=(r.get(t)||0)+1,a=(u.get(t)||0)+1;r.set(t,l),u.set(t,a),c.push(t),1===l&&n&&jr.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),a.clear(),Cr++,()=>{c.forEach(e=>{const t=Pr(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!jr.has(e)&&i&&e.removeAttribute(i),jr.delete(e)),r||e.removeAttribute(o)}),Cr--,Cr||(Sr.inert=new WeakMap,Sr["aria-hidden"]=new WeakMap,Sr.none=new WeakMap,jr=new WeakSet,xr={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Dr={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Mr=C.forwardRef(function(e,t){const[r,o]=C.useState();qt(()=>{Rt()&&o("button")},[]);const i={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[mr("focus-guard")]:"",style:Dr};return n("span",{...e,...i})}),Ir={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Nr=C.createContext(null),Lr=mr("portal");function Tr(e){const{children:t,id:i,root:l,preserveTabOrder:a=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=dr(),o=Fr(),[i,l]=C.useState(null),a=C.useRef(null);return qt(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),qt(()=>{if(!r)return;if(a.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Lr,""),e.appendChild(n),a.current=n,l(n)},[t,r]),qt(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Be(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const s=document.createElement("div");s.id=r,s.setAttribute(Lr,""),e=i||e,e.appendChild(s),a.current=s,l(s)},[t,n,r,o]),i}({id:i,root:l}),[c,u]=C.useState(null),d=C.useRef(null),f=C.useRef(null),p=C.useRef(null),g=C.useRef(null),h=null==c?void 0:c.modal,m=null==c?void 0:c.open,b=!!c&&!c.modal&&c.open&&a&&!(!l&&!s);return C.useEffect(()=>{if(s&&a&&!h)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&Qt(e)&&("focusin"===e.type?tn:en)(s)}},[s,a,h]),C.useEffect(()=>{s&&(m||tn(s))},[m,s]),r(Nr.Provider,{value:C.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:g,portalNode:s,setFocusManagerState:u}),[a,s]),children:[b&&s&&n(Mr,{"data-type":"outside",ref:d,onFocus:e=>{if(Qt(e,s)){var t;null==(t=p.current)||t.focus()}else{const e=Zt(c?c.domReference:null);null==e||e.focus()}}}),b&&s&&n("span",{"aria-owns":s.id,style:Ir}),s&&o(t,s),b&&s&&n(Mr,{"data-type":"outside",ref:f,onFocus:e=>{if(Qt(e,s)){var t;null==(t=g.current)||t.focus()}else{const t=Jt(c?c.domReference:null);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Fr=()=>C.useContext(Nr);function Vr(e){return C.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Ar=[];function zr(){Ar=Ar.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function $r(){zr();const e=Ar[Ar.length-1];return null==e?void 0:e.deref()}function Hr(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=Yt(),o=function(e,t){return(t=t||{}).getShadowRoot?ht([e],t.includeContainer,{filter:Ot.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):gt(e,t.includeContainer,Ot.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return xt(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),l=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==l&&e.setAttribute("tabindex","0"):("-1"!==l||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const Br=C.forwardRef(function(e,t){return n("button",{...e,type:"button",ref:t,tabIndex:-1,style:Dr})});function Wr(e){const{context:o,children:i,disabled:l=!1,order:a=["content"],guards:s=!0,initialFocus:c=0,returnFocus:u=!0,restoreFocus:d=!1,modal:f=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:g=!0,outsideElementsInert:h=!1,getInsideElements:m=()=>[]}=e,{open:b,onOpenChange:v,events:y,dataRef:w,elements:{domReference:O,floating:_}}=o,S=Kt(()=>{var e;return null==(e=w.current.floatingContext)?void 0:e.nodeId}),P=Kt(m),j="number"==typeof c&&c<0,x=At(O)&&j,E="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,R=!E||s,k=!R||E&&h,D=Gt(a),M=Gt(c),I=Gt(u),N=hr(),L=Fr(),T=C.useRef(null),F=C.useRef(null),V=C.useRef(!1),A=C.useRef(!1),z=C.useRef(-1),$=C.useRef(-1),H=null!=L,B=zt(_),W=Kt(function(e){return void 0===e&&(e=B),e?jt(e,Yt()):[]}),q=Kt(e=>{const t=W(e);return D.current.map(e=>O&&"reference"===e?O:B&&"floating"===e?B:t).filter(Boolean).flat()});C.useEffect(()=>{if(l)return;if(!f)return;function e(e){if("Tab"===e.key){Nt(B,It(Ft(B)))&&0===W().length&&!x&&Bt(e);const t=q(),n=Lt(e);"reference"===D.current[0]&&n===O&&(Bt(e),e.shiftKey?_r(t[t.length-1]):_r(t[1])),"floating"===D.current[1]&&n===B&&e.shiftKey&&(Bt(e),_r(t[0]))}}const t=Ft(B);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[l,O,B,f,D,x,W,q]),C.useEffect(()=>{if(!l&&_)return _.addEventListener("focusin",e),()=>{_.removeEventListener("focusin",e)};function e(e){const t=Lt(e),n=W().indexOf(t);-1!==n&&(z.current=n)}},[l,_,W]),C.useEffect(()=>{if(l)return;if(!g)return;function e(){A.current=!0,setTimeout(()=>{A.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Lt(e);queueMicrotask(()=>{const o=S(),i=!(Nt(O,t)||Nt(_,t)||Nt(t,_)||Nt(null==L?void 0:L.portalNode,t)||null!=t&&t.hasAttribute(mr("focus-guard"))||N&&($t(N.nodesRef.current,o).find(e=>{var n,r;return Nt(null==(n=e.context)?void 0:n.elements.floating,t)||Nt(null==(r=e.context)?void 0:r.elements.domReference,t)})||Ht(N.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,zt(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===O&&B&&Hr(B,D),d&&n!==O&&(null==r||!r.isConnected)&&It(Ft(B))===Ft(B).body){qe(B)&&B.focus();const e=z.current,t=W(),n=t[e]||t[t.length-1]||B;qe(n)&&n.focus()}w.current.insideReactTree?w.current.insideReactTree=!1:!x&&f||!t||!i||A.current||t===$r()||(V.current=!0,v(!1,e,"focus-out"))})}const n=Boolean(!N&&L);function r(){br($),w.current.insideReactTree=!0,$.current=window.setTimeout(()=>{w.current.insideReactTree=!1})}return _&&qe(O)?(O.addEventListener("focusout",t),O.addEventListener("pointerdown",e),_.addEventListener("focusout",t),n&&_.addEventListener("focusout",r,!0),()=>{O.removeEventListener("focusout",t),O.removeEventListener("pointerdown",e),_.removeEventListener("focusout",t),n&&_.removeEventListener("focusout",r,!0)}):void 0},[l,O,_,B,f,N,L,v,g,d,W,x,S,D,w]);const G=C.useRef(null),U=C.useRef(null),K=Vr([G,null==L?void 0:L.beforeInsideRef]),Y=Vr([U,null==L?void 0:L.afterInsideRef]);function X(e){return!l&&p&&f?n(Br,{ref:"start"===e?T:F,onClick:e=>v(!1,e.nativeEvent),children:"string"==typeof p?p:"Dismiss"}):null}C.useEffect(()=>{var e,t;if(l)return;if(!_)return;const n=Array.from((null==L||null==(e=L.portalNode)?void 0:e.querySelectorAll("["+mr("portal")+"]"))||[]),r=null==(t=(N?Ht(N.nodesRef.current,S()):[]).find(e=>{var t;return At((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,o=[_,r,...n,...P(),T.current,F.current,G.current,U.current,null==L?void 0:L.beforeOutsideRef.current,null==L?void 0:L.afterOutsideRef.current,D.current.includes("reference")||x?O:null].filter(e=>null!=e),i=f||x?kr(o,!k,k):kr(o);return()=>{i()}},[l,O,_,f,D,L,x,R,k,N,S,P]),qt(()=>{if(l||!qe(B))return;const e=It(Ft(B));queueMicrotask(()=>{const t=q(B),n=M.current,r=("number"==typeof n?t[n]:n.current)||B,o=Nt(B,e);j||o||!b||_r(r,{preventScroll:r===B})})},[l,b,B,j,q,M]),qt(()=>{if(l||!B)return;const e=Ft(B);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(V.current=!0),"outside-press"===t)if(r)V.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(kt()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!Dt()&&(!kt()&&0===e.width&&0===e.height||kt()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}(n))V.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),V.current=!e}}t=It(e),zr(),t&&"body"!==ze(t)&&(Ar.push(new WeakRef(t)),Ar.length>20&&(Ar=Ar.slice(-20))),y.on("openchange",n);const r=e.createElement("span");return r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),Object.assign(r.style,Dr),H&&O&&O.insertAdjacentElement("afterend",r),()=>{y.off("openchange",n);const t=It(e),o=Nt(_,t)||N&&$t(N.nodesRef.current,S(),!1).some(e=>{var n;return Nt(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof I.current){const e=O||$r();return e&&e.isConnected?e:r}return I.current.current||r}();queueMicrotask(()=>{const n=function(e){const t=Yt();return xt(e,t)?e:jt(e,t)[0]||e}(i);I.current&&!V.current&&qe(n)&&(n===t||t===e.body||o)&&n.focus({preventScroll:!0}),r.remove()})}},[l,_,B,I,w,y,N,H,O,S]),C.useEffect(()=>(queueMicrotask(()=>{V.current=!1}),()=>{queueMicrotask(zr)}),[l]),qt(()=>{if(!l&&L)return L.setFocusManagerState({modal:f,closeOnFocusOut:g,open:b,onOpenChange:v,domReference:O}),()=>{L.setFocusManagerState(null)}},[l,L,f,b,v,g,O]),qt(()=>{l||B&&Hr(B,D)},[l,B,D]);const J=!l&&R&&(!f||!x)&&(H||f);return r(t,{children:[J&&n(Mr,{"data-type":"inside",ref:K,onFocus:e=>{if(f){const e=q();_r("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(V.current=!1,Qt(e,L.portalNode)){const e=Jt(O);null==e||e.focus()}else{var t;null==(t=L.beforeOutsideRef.current)||t.focus()}}}),!x&&X("start"),i,X("end"),J&&n(Mr,{"data-type":"inside",ref:Y,onFocus:e=>{if(f)_r(q()[0]);else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(g&&(V.current=!0),Qt(e,L.portalNode)){const e=Zt(O);null==e||e.focus()}else{var t;null==(t=L.afterOutsideRef.current)||t.focus()}}})]})}function qr(e){return qe(e.target)&&"BUTTON"===e.target.tagName}function Gr(e){return Vt(e)}function Ur(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:l=!0,event:a="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,f=C.useRef(),p=C.useRef(!1),g=C.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&(Wt(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===a&&f.current?f.current=void 0:Wt(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!u||qr(e)||(" "!==e.key||Gr(i)||(e.preventDefault(),p.current=!0),function(e){return qe(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||qr(e)||Gr(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,s]);return C.useMemo(()=>l?{reference:g}:{},[l,g])}const Kr={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Yr={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xr=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Jr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:l=!0,escapeKey:a=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:g}=t,h=hr(),m=Kt("function"==typeof s?s:()=>!1),b="function"==typeof s?m:s,v=C.useRef(!1),{escapeKey:y,outsidePress:w}=Xr(p),{escapeKey:O,outsidePress:_}=Xr(g),S=C.useRef(!1),P=Kt(e=>{var t;if(!n||!l||!a||"Escape"!==e.key)return;if(S.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=h?$t(h.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),j=Kt(e=>{var t;const n=()=>{var t;P(e),null==(t=Lt(e))||t.removeEventListener("keydown",n)};null==(t=Lt(e))||t.addEventListener("keydown",n)}),x=Kt(e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const l=v.current;if(v.current=!1,"click"===c&&l)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=Lt(e),s="["+mr("inert")+"]",u=Ft(o.floating).querySelectorAll(s);let d=We(a)?a:null;for(;d&&!nt(d);){const e=it(d);if(nt(e)||!We(e))break;d=e}if(u.length&&We(a)&&!a.matches("html,body")&&!Nt(a,o.floating)&&Array.from(u).every(e=>!Nt(d,e)))return;if(qe(a)&&k){const t=nt(a),n=rt(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,s=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,u=s&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=l&&e.offsetY>a.clientHeight;if(u||d)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=h&&$t(h.nodesRef.current,f).some(t=>{var n;return Tt(e,null==(n=t.context)?void 0:n.elements.floating)});if(Tt(e,o.floating)||Tt(e,o.domReference)||p)return;const g=h?$t(h.nodesRef.current,f):[];if(g.length>0){let e=!0;if(g.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),E=Kt(e=>{var t;const n=()=>{var t;x(e),null==(t=Lt(e))||t.removeEventListener(c,n)};null==(t=Lt(e))||t.addEventListener(c,n)});C.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),S.current=!0}function u(){e=window.setTimeout(()=>{S.current=!1},tt()?5:0)}const d=Ft(o.floating);a&&(d.addEventListener("keydown",O?j:P,O),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),b&&d.addEventListener(c,_?E:x,_);let p=[];return f&&(We(o.domReference)&&(p=at(o.domReference)),We(o.floating)&&(p=p.concat(at(o.floating))),!We(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(at(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{a&&(d.removeEventListener("keydown",O?j:P,O),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),b&&d.removeEventListener(c,_?E:x,_),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,b,c,n,r,f,l,y,w,P,O,j,x,_,E]),C.useEffect(()=>{i.current.insideReactTree=!1},[i,b,c]);const R=C.useMemo(()=>({onKeyDown:P,...u&&{[Kr[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[P,r,u,d]),k=C.useMemo(()=>{function e(e){0===e.button&&(v.current=!0)}return{onKeyDown:P,onMouseDown:e,onMouseUp:e,[Yr[c]]:()=>{i.current.insideReactTree=!0}}},[P,c,i]);return C.useMemo(()=>l?{reference:R,floating:k}:{},[l,R,k])}function Zr(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=dr(),i=C.useRef({}),[l]=C.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),a=null!=gr(),[s,c]=C.useState(r.reference),u=Kt((e,t,r)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),d=C.useMemo(()=>({setPositionReference:c}),[]),f=C.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return C.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:l,floatingId:o,refs:d}),[t,u,f,l,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[l,a]=C.useState(null),[s,c]=C.useState(null),u=(null==o?void 0:o.domReference)||l,d=C.useRef(null),f=hr();qt(()=>{u&&(d.current=u)},[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=C.useState(r);Yn(p,r)||g(r);const[h,m]=C.useState(null),[b,v]=C.useState(null),y=C.useCallback(e=>{e!==S.current&&(S.current=e,m(e))},[]),w=C.useCallback(e=>{e!==P.current&&(P.current=e,v(e))},[]),O=l||h,_=a||b,S=C.useRef(null),P=C.useRef(null),j=C.useRef(d),x=null!=c,E=Zn(c),R=Zn(o),k=Zn(u),D=C.useCallback(()=>{if(!S.current||!P.current)return;const e={placement:t,strategy:n,middleware:p};R.current&&(e.platform=R.current),Un(S.current,P.current,e).then(e=>{const t={...e,isPositioned:!1!==k.current};M.current&&!Yn(j.current,t)&&(j.current=t,i(()=>{f(t)}))})},[p,t,n,R,k]);Kn(()=>{!1===u&&j.current.isPositioned&&(j.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const M=C.useRef(!1);Kn(()=>(M.current=!0,()=>{M.current=!1}),[]),Kn(()=>{if(O&&(S.current=O),_&&(P.current=_),O&&_){if(E.current)return E.current(O,_,D);D()}},[O,_,D,E,x]);const I=C.useMemo(()=>({reference:S,floating:P,setReference:y,setFloating:w}),[y,w]),N=C.useMemo(()=>({reference:O,floating:_}),[O,_]),L=C.useMemo(()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Jn(N.floating,d.x),r=Jn(N.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Xn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,N.floating,d.x,d.y]);return C.useMemo(()=>({...d,update:D,refs:I,elements:N,floatingStyles:L}),[d,D,I,N,L])}({...e,elements:{...o,...s&&{reference:s}}}),g=C.useCallback(e=>{const t=We(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),h=C.useCallback(e=>{(We(e)||null===e)&&(d.current=e,a(e)),(We(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!We(e))&&p.refs.setReference(e)},[p.refs]),m=C.useMemo(()=>({...p.refs,setReference:h,setPositionReference:g,domReference:d}),[p.refs,h,g]),b=C.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=C.useMemo(()=>({...p,...r,refs:m,elements:b,nodeId:t}),[p,m,b,t,r]);return qt(()=>{r.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),C.useMemo(()=>({...p,context:v,refs:m,elements:b}),[p,m,b,v])}function Qr(){return Ct().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&Rt()}function eo(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:l}=e,{enabled:a=!0,visibleOnly:s=!0}=t,c=C.useRef(!1),u=C.useRef(-1),d=C.useRef(!0);C.useEffect(()=>{if(!a)return;const e=$e(l.domReference);function t(){!n&&qe(l.domReference)&&l.domReference===It(Ft(l.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),Qr()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),Qr()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[l.domReference,n,a]),C.useEffect(()=>{if(a)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}},[o,a]),C.useEffect(()=>()=>{br(u)},[]);const f=C.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Lt(e.nativeEvent);if(s&&We(t))if(Qr()&&!e.relatedTarget){if(!d.current&&!Vt(t))return}else if(!function(e){if(!e||Dt())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=We(t)&&t.hasAttribute(mr("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=It(l.domReference?l.domReference.ownerDocument:document);(t||a!==l.domReference)&&(Nt(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Nt(l.domReference,a)||o||r(!1,n,"focus"))})}}),[i,l.domReference,r,s]);return C.useMemo(()=>a?{reference:f}:{},[a,f])}function to(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[ir]:t,[lr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[or]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var l;o&&[ir,lr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function no(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=C.useCallback(t=>to(t,e,"reference"),t),i=C.useCallback(t=>to(t,e,"floating"),n),l=C.useCallback(t=>to(t,e,"item"),r);return C.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}const ro=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function oo(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:l}=e,{enabled:a=!0,role:s="dialog"}=t,c=dr(),u=(null==(n=i.domReference)?void 0:n.id)||c,d=C.useMemo(()=>{var e;return(null==(e=zt(i.floating))?void 0:e.id)||l},[i.floating,l]),f=null!=(r=ro.get(s))?r:s,p=null!=gr(),g=C.useMemo(()=>"tooltip"===f||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:o?d:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===f?"dialog":f,"aria-controls":o?d:void 0,..."listbox"===f&&{role:"combobox"},..."menu"===f&&{id:u},..."menu"===f&&p&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[f,d,p,o,u,s]),h=C.useMemo(()=>{const e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),m=C.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:d+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,s]);return C.useMemo(()=>a?{reference:g,floating:h,item:m}:{},[a,g,h,m])}const io=(0,C.createContext)(null),lo=["style","children"],ao=["context"];function so(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach(function(t){uo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const po=(0,C.forwardRef)(function(e,t){let{style:r,children:o}=e,i=fo(e,lo);const l=(0,C.useContext)(io);if(!l)return null;const{context:a}=l,s=fo(l,ao),c=rr([s.refs.setFloating,t]),u=he();return(0,C.useLayoutEffect)(()=>(l.setDescriptionId(u),()=>l.setDescriptionId(void 0)),[u,l.setDescriptionId]),a.open?n(Tr,{root:s.root,children:n(Wr,{context:a,modal:s.modal,children:n("div",co(co({id:u,ref:c,style:co(co({},s.floatingStyles),r),"aria-describedby":s.descriptionId},s.getFloatingProps(i)),{},{children:o}))})}):null});function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach(function(t){mo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bo=["children","modal"];function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wo=e=>{const{children:t,modal:r=!1}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,bo),i=function(e={}){const{initialOpen:t=!1,placement:n="bottom",modal:r,root:o,open:i,onOpenChange:l,containerOffset:a=12}=e,[s,c]=(0,C.useState)(t),[u,d]=(0,C.useState)(),f=i??s,p=l??c,g=Zr({placement:n,open:f,onOpenChange:p,whileElementsMounted:Wn,middleware:[Qn(a),tr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),er({padding:5})]}),{context:h}=g,m=no([Ur(h,{enabled:null==i}),Jr(h),oo(h)]);return(0,C.useMemo)(()=>ho(ho(ho({open:f,setOpen:p},m),g),{},{modal:r,root:o,descriptionId:u,setDescriptionId:d}),[f,p,m,g,r,o,u])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach(function(t){yo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:r},o));return n(io.Provider,{value:i,children:t})},Oo=["children","wrapTrigger"];function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach(function(t){Po(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Po(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jo=(0,C.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Oo);const l=(0,C.useContext)(io),a=r.ref,s=rr([l?.refs.setReference,t,a]);return l?!o&&(0,C.isValidElement)(r)?(0,C.cloneElement)(r,l.getReferenceProps(So(So(So({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",So(So({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function xo(e){const{description:t,clickable:o,initialOpen:i,placement:l,wrapTrigger:a,containerOffset:s,root:c,open:u,onOpenChange:d,children:f,classes:p,contentStyle:g}=e,[h,m]=(0,C.useState)(!1);return f?t?r(wo,{placement:l,initialOpen:i,open:void 0!==u?u:o?h:void 0,onOpenChange:void 0!==d?d:o?m:void 0,containerOffset:s,root:c,children:[n(jo,{wrapTrigger:a,onClick:o?()=>m(e=>!e):void 0,className:x()(a?"popover-module__trigger__hYNqD":void 0,p?.trigger),children:f}),n(po,{className:x()("popover-module__content__cXVJ_",p?.content),style:g,children:t})]}):f:null}function Co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(n),!0).forEach(function(t){Ro(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ro(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ko=e=>n(me,Eo(Eo({},e),{},{children:n("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(n),!0).forEach(function(t){Io(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Io(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const No=e=>n(me,Mo(Mo({},e),{},{children:n("path",{d:"M7 10l5 5 5-5z"})}));function Lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach(function(t){Fo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vo=e=>n(me,To(To({},e),{},{children:n("path",{d:"M7 14l5-5 5 5z"})}));function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach(function(t){$o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ho=e=>n(me,zo(zo({},e),{},{children:n("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"})}));function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach(function(t){qo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Go=e=>n(me,Wo(Wo({},e),{},{children:n("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})}));function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach(function(t){Yo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xo=e=>n(me,Ko(Ko({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach(function(t){Qo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ei=e=>n(me,Zo(Zo({},e),{},{children:n("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach(function(t){ri(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ri(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oi=e=>n(me,ni(ni({},e),{},{children:n("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach(function(t){ai(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ai(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const si=e=>n(me,li(li({},e),{},{children:n("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));function ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ci(Object(n),!0).forEach(function(t){di(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function di(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fi=e=>n(me,ui(ui({},e),{},{children:n("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"})}));function pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pi(Object(n),!0).forEach(function(t){hi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mi=e=>n(me,gi(gi({},e),{},{children:n("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}));function bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach(function(t){yi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wi=e=>n(me,vi(vi({},e),{},{children:n("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"})}));function Oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(n),!0).forEach(function(t){Si(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Si(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pi=e=>n(me,_i(_i({},e),{},{children:n("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})}));function ji(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(n),!0).forEach(function(t){Ci(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ci(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ei=e=>n(me,xi(xi({},e),{},{children:n("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach(function(t){Di(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Di(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mi=e=>n(me,ki(ki({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach(function(t){Li(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Li(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ti=e=>n(me,Ni(Ni({},e),{},{children:n("path",{d:"M4.24993 5.61C6.26993 8.2 9.99993 13 9.99993 13V19C9.99993 19.55 10.4499\n 20 10.9999 20H12.9999C13.5499 20 13.9999 19.55 13.9999 19V13C13.9999 13 17.7199 8.2\n 19.7399 5.61C20.2499 4.95 19.7799 4 18.9499 4H5.03993C4.20993 4 3.73993 4.95 4.24993 5.61Z"})}));function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(n),!0).forEach(function(t){Ai(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ai(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zi=e=>r(me,Vi(Vi({},e),{},{children:[n("g",{"clip-path":"url(#clip0_851_25267)",children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00015 4L3.46792 0.467773L2.05371 1.88199L4.4002 4.22847C4.01467 4.55071 3.89485 5.1506 4.24984\n 5.61C6.26984 8.2 9.99984 13 9.99984 13V19C9.99984 19.55 10.4498 20 10.9998 20H12.9998C13.5498 20\n 13.9998 19.55 13.9998 19V13.8281L18.9708 18.7991L20.385 17.3849L20.3849 17.3847L14.8734 11.8733L7.00015\n 4ZM16.1091 10.2805C17.2922 8.75591 18.7289 6.90619 19.7398 5.61C20.2498 4.95 19.7798 4 18.9498\n 4H9.82861L16.1091 10.2805Z"})}),n("defs",{children:n("clipPath",{id:"clip0_851_25267",children:n("rect",{width:"24",height:"24",fill:"white"})})})]}));function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach(function(t){Bi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wi=e=>n(me,Hi(Hi({},e),{},{children:n("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10\n 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(n),!0).forEach(function(t){Ui(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ui(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ki=e=>n(me,Gi(Gi({},e),{},{children:n("path",{d:"M23 21.5H1L12 2.5L23 21.5ZM4.47005 19.5H19.53L12 6.48959L4.47005 19.5ZM13 18.5H11V16.5H13V18.5ZM13 10.5V14.5H11V10.5H13Z"})}));function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(n),!0).forEach(function(t){Ji(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ji(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zi=e=>n(me,Xi(Xi({},e),{},{children:n("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})}));function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function el(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(n),!0).forEach(function(t){tl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nl=e=>n(me,el(el({},e),{},{children:n("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach(function(t){il(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function il(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ll=e=>n(me,ol(ol({},e),{},{children:n("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}));function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach(function(t){cl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ul=e=>n(me,sl(sl({},e),{},{children:n("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}));function dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(n),!0).forEach(function(t){pl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gl=e=>n(me,fl(fl({},e),{},{children:n("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hl(Object(n),!0).forEach(function(t){bl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vl=e=>n(me,ml(ml({},e),{},{children:n("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})}));function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(n),!0).forEach(function(t){Ol(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ol(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _l=e=>n(me,wl(wl({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function Sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(n),!0).forEach(function(t){jl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xl=e=>n(me,Pl(Pl({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function Cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cl(Object(n),!0).forEach(function(t){Rl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kl=e=>n(me,El(El({},e),{},{children:n("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"})}));function Dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dl(Object(n),!0).forEach(function(t){Il(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Il(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nl=e=>n(me,Ml(Ml({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ll(Object(n),!0).forEach(function(t){Fl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vl=e=>n(me,Tl(Tl({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"})}));function Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(n),!0).forEach(function(t){$l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $l(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hl=e=>n(me,zl(zl({},e),{},{children:n("path",{d:"M18.3688 3.29L20.7088 5.63C21.0988 6.02 21.0988 6.65 20.7088 7.04L18.8788 8.87L15.1288 5.12L16.9588 3.29C17.1488 3.1 17.3988 3 17.6588 3C17.9188 3 18.1688 3.09 18.3688 3.29ZM2.99878 17.25V21H6.74878L17.8088 9.94L14.0588 6.19L2.99878 17.25ZM5.91878 19H4.99878V18.08L14.0588 9.02L14.9788 9.94L5.91878 19Z"})}));function Bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bl(Object(n),!0).forEach(function(t){ql(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ql(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gl=e=>n(me,Wl(Wl({},e),{},{children:n("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2\n 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})}));function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach(function(t){Yl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xl=e=>n(me,Kl(Kl({},e),{},{children:n("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(n),!0).forEach(function(t){Ql(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ql(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ea=e=>n(me,Zl(Zl({},e),{},{children:n("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z"})}));function ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(n),!0).forEach(function(t){ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ra(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oa=e=>n(me,na(na({},e),{},{children:n("path",{d:"M17 11v6.97l-5-2.14-5 2.14V5h6V3H7c-1.1 0-2\n .9-2 2v16l7-3 7 3V11h-2zm4-4h-2v2h-2V7h-2V5h2V3h2v2h2v2z"})}));function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach(function(t){aa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sa=e=>n(me,la(la({},e),{},{children:n("path",{fill:"currentColor",d:"m16.2 20.5 2.8-2.8V20h1v-4h-4v1h2.3l-2.8 2.8zM5 21q-.824\n 0-1.412-.587A1.93 1.93 0 0 1 3 19V5Q3 4.176 3.588 3.588A1.93\n 1.93 0 0 1 5 3h14q.824 0 1.413.588Q21 4.175 21 5v6.7a8 8 0\n 0 0-.975-.387A6 6 0 0 0 19 11.075V5H5v14h6.05q.076.55.237\n 1.05.163.5.388.95zm0-3v1V5v8.075V11zm2-1h4.075q.076-.525.238-1.025T11.675\n 15H7zm0-4h6.1q.8-.75 1.787-1.25A7 7 0 0 1 17 11.075V11H7zm0-4h10V7H7zm15\n 14q-2.075 0-3.537-1.462Q13 20.074 13 18q0-2.075 1.463-3.537Q15.926 13\n 18 13q2.075 0 3.538 1.463T23 18t-1.462 3.538Q20.074 23 18 23"})}));function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach(function(t){da(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function da(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fa=e=>n(me,ua(ua({},e),{},{children:n("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach(function(t){ha(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ha(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ma=e=>n(me,ga(ga({},e),{},{children:n("path",{d:"M12 6.375C15.75 6.375 18.9525 8.7075 20.25 12C18.9525 15.2925 15.75 17.625 12 17.625C8.25\n 17.625 5.0475 15.2925 3.75 12C5.0475 8.7075 8.25 6.375 12 6.375ZM12 7.875C9.15755 7.87505\n 6.62225 9.47254 5.38477 12C6.62225 14.52746 9.15755 16.12495 12 16.125C14.8425\n 16.125 17.3777 14.5275 18.6152 12C17.3777 9.4725 14.8425 7.875 12 7.875ZM12\n 8.625C13.86 8.625 15.375 10.14 15.375 12C15.375 13.86 13.86 15.375 12 15.375C10.14 15.375\n 8.625 13.86 8.625 12C8.625 10.14 10.14 8.625 12 8.625ZM12 10.125C10.965 10.125 10.125 10.965\n 10.125 12C10.125 13.035 10.965 13.875 12 13.875C13.035 13.875 13.875 13.035\n 13.875 12C13.875 10.965 13.035 10.125 12 10.125Z"})}));function ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(n),!0).forEach(function(t){ya(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ya(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wa=e=>n(me,va(va({},e),{},{children:n("path",{d:"M12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V8Z"})}));function Oa(){const e=(0,C.useContext)(io);return n(e?.open?Vo:No,{})}var _a="select-module__arrow__hlIMs",Sa="select-module__filled__HCXVQ",Pa="select-module__icon__eKwKi",ja="select-module__input__ajhdt",xa="select-module__item-icon__qWzAS",Ca="select-module__label__b95oB",Ea="select-module__medium__thAU2",Ra="select-module__outlined__rTvhS",ka="select-module__popover-content__jWbFy",Da="select-module__popover-target__utEyc",Ma="select-module__root__OCHpB",Ia="select-module__small__Fc860",Na="select-module__with-icon__sdr2r",La="select-module__with-item-icon__j4VL9",Ta="select-module__wrapper__wHn5r";const Fa=e=>{const{children:t,fillEvenly:r,classes:o}=e;return n("div",{className:x()("buttonsGroup-module__root__rBp1o",r&&"buttonsGroup-module__fill-evenly__J5T6H",o?.root),children:t})};var Va="menu-module__divider__kik9c",Aa="menu-module__item__DO2AJ",za="menu-module__item-actions__ecU8y",$a="menu-module__item-description__BxxnF",Ha="menu-module__item-disabled__E7Z4s",Ba="menu-module__item-icon___HDe4",Wa="menu-module__item-selected__m9VFe",qa="menu-module__item-text-block__zgpGT",Ga="menu-module__item-title__gcK7P",Ua="menu-module__item-title-top__PSYWj",Ka="menu-module__medium__Jev6c",Ya="menu-module__root__pR_5h",Xa="menu-module__small__uGqFV",Ja="menu-module__state-layer__m8uMf";function Za(e){const{items:o,size:i="medium",descriptionPosition:l="right",classes:a}=e,s=(0,C.useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]);return n("div",{className:x()(Ya,f[i],a?.root),children:o.map((e,o)=>{const c="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?n(c,{tabIndex:-10,className:x()(Aa,e.selected?Wa:void 0,e.disabled?Ha:void 0,a?.item,e.selected?a?.itemSelected:void 0,e.disabled?a?.itemDisabled:void 0),onClick:e.disabled?void 0:s(e),title:e.name,children:r("span",{className:x()(Ja),children:[!!e.icon&&n("span",{className:x()(Ba,a?.itemIcon,e.selected?a?.itemSelectedIcon:void 0,e.disabled?a?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===l&&e.description?r("span",{className:x()(qa),children:[n("span",{className:x()(Ua,Ga,a?.itemTitle,e.selected?a?.itemSelectedTitle:void 0,e.disabled?a?.itemDisabledTitle:void 0),children:e.name}),n("span",{className:x()($a,a?.itemDescription,e.selected?a?.itemSelectedDescription:void 0,e.disabled?a?.itemDisabledDescription:void 0),children:e.description})]}):r(t,{children:[n("span",{className:x()(Ga,a?.itemTitle,e.selected?a?.itemSelectedTitle:void 0,e.disabled?a?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&n("span",{className:x()($a,a?.itemDescription,e.selected?a?.itemSelectedDescription:void 0,e.disabled?a?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&n("div",{className:x()(za,a?.itemActions,e.selected?a?.itemSelectedActions:void 0,e.disabled?a?.itemDisabledActions:void 0),children:n(Fa,{children:e.subButtons.map((e,t)=>n(U,{variant:e.variant,size:i,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${o}`):n("div",{className:x()(Va,a?.divider),children:e.name},`menu-divider-${e.name}-${o}`)})})}function Qa(e){const{items:t,componentSize:r,selectedValue:o,changeSelectedItem:i,classes:l}=e,a=(0,C.useContext)(io);return n(Za,{size:r,classes:l?.menu,items:t.map(e=>"divider"===e.type?{type:"divider",name:e.name}:{type:"item",name:e.name,icon:e.icon,description:e.description,disabled:e.disabled,selected:e.value===o,onClick:()=>{i(e),a&&a.setOpen(!1)}})})}const es=["variant","componentSize","icon","fullWidth","label","placeholder","items","defaultValue","onValueChange","selected","classes","ref","disabled","id"];function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(n),!0).forEach(function(t){rs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function os(e){const{variant:t="filled",componentSize:o="medium",icon:i,fullWidth:l,label:a,placeholder:s,items:c,defaultValue:u,onValueChange:f,selected:p,classes:g,ref:h,disabled:m,id:b}=e,v=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,es),y=u&&!p,[w,O]=(0,C.useState)(y?c.find(e=>"item"===e.type&&e.value===u):void 0),_=y?w:p,S=(0,C.useRef)(null),P=(0,C.useRef)(null),j=(0,C.useCallback)(e=>{e.preventDefault(),m||P?.current?.click()},[P]),E=e=>{y&&O(e),f?.(e)};(0,C.useEffect)(()=>{if(_){const e=c.find(e=>"item"===e.type&&e.value===_?.value);e||E(e)}},[c,_]);const R=b??Ve();return r("div",{className:x()(Ma,d[o],g?.root),style:{maxWidth:l?"100%":void 0},children:[!!a&&n(ge,{className:x()(Ca,g?.label),component:"label",variant:"caption",htmlFor:R,onClick:j,children:a}),r("div",{className:x()(Ta,d[t],i?Na:void 0,_?.icon?La:void 0,g?.wrapper),children:[n("input",ns(ns({ref:Y([S,h]),id:R,className:x()(ja,g?.input),placeholder:s},v),{},{value:_?.name??"",onChange:()=>{},onClick:j,disabled:m})),!!i&&n("span",{onClick:j,className:x()(Pa,g?.icon),children:i}),!!_?.icon&&n("span",{onClick:j,className:x()(xa,g?.itemIcon),children:_?.icon}),n("span",{onClick:j,className:x()(_a,g?.arrow),children:n(Oa,{})}),n(xo,{placement:"bottom-start",classes:ns({content:x()(ka,"styledScroll",g?.popoverContent)},g?.popover),containerOffset:4,description:n(Qa,{items:c,classes:g,componentSize:o,selectedValue:_?.value,changeSelectedItem:E}),children:n("div",{ref:P,className:x()(Da)})})]})]})}var is=s(353),ls=s.n(is),as="dateTime-module__filled__nA6CU",ss="dateTime-module__full-width__x5Snf",cs="dateTime-module__icon__H9gzS",us="dateTime-module__input__p1lxx",ds="dateTime-module__label__FnrxJ",fs="dateTime-module__medium__btb_E",ps="dateTime-module__outlined__MCqbp",gs="dateTime-module__popover-content__I6nGv",hs="dateTime-module__popover-target__PS8vx",ms="dateTime-module__root___CULh",bs="dateTime-module__small__bywih",vs="dateTime-module__wrapper__zlOEC",ys="calendarPopover-module__button__Dpl18",ws="calendarPopover-module__buttons-container__sW9eE",Os="calendarPopover-module__calendar-container__fGMyq",_s="calendarPopover-module__cell__fwBxE",Ss="calendarPopover-module__cell-circle__PykI1",Ps="calendarPopover-module__cell-data__fnxK0",js="calendarPopover-module__cell-selection__jmUxe",xs="calendarPopover-module__cell-selection-first__bRcBr",Cs="calendarPopover-module__cell-selection-last__hyv9Z",Es="calendarPopover-module__cells-container__B6mTs",Rs="calendarPopover-module__date-time-mode__eJCHs",ks="calendarPopover-module__medium__pk6es",Ds="calendarPopover-module__month__FCpIG",Ms="calendarPopover-module__month-cell-selection__phhRr",Is="calendarPopover-module__month-cell-selection-first__lSKG9",Ns="calendarPopover-module__month-cell-selection-last__IKh98",Ls="calendarPopover-module__month-view__wNOC9",Ts="calendarPopover-module__navigation-arrow__oiWet",Fs="calendarPopover-module__navigation-container__Hut1m",Vs="calendarPopover-module__navigation-title__sp73c",As="calendarPopover-module__navigation-value__Ht40y",zs="calendarPopover-module__root__R8QOY",$s="calendarPopover-module__small__GlV62",Hs="calendarPopover-module__time-container__x4jnu",Bs="calendarPopover-module__time-divider__aRbbR",Ws="calendarPopover-module__time-selection-marker__bVI6A",qs="calendarPopover-module__year__BTz_s";function Gs(e){const{values:t,selectedValue:r,onSelect:o}=e,i=t.length,l=36*(i+r),a=(0,C.useRef)(null),s=(0,C.useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,C.useEffect)(()=>{const e=a.current;e&&(Math.abs(e.scrollTop-l)<=1||(e.scrollTop=l))},[l]);const c=(0,C.useCallback)(e=>t[(e%i+i)%i],[t,i]),u=(0,C.useCallback)(()=>{const e=a.current;if(!e)return;const t=Math.round(e.scrollTop/36),n=c(t);n!==r&&o(n),(t<i||t>=2*i)&&(e.scrollTop=36*(i+n))},[c,o,r,i]),d=(0,C.useCallback)(e=>()=>{const t=a.current;t?(t.scrollTo({top:36*(i+e),behavior:"smooth"}),o(e)):o(e)},[o,i]);return n("div",{ref:a,className:x()("timeWheelColumn-module__time-wheel__fk6Jj"),onScroll:u,tabIndex:-1,children:s.map((e,t)=>n("button",{type:"button",className:x()("timeWheelColumn-module__time-wheel-button__c61An","timeWheelColumn-module__time-wheel-item__Gjqub",e===r&&"timeWheelColumn-module__time-wheel-item-active__PLWg9"),onClick:d(e),children:n(ge,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function Us(e){const{dayjs:o,componentSize:i,isPeriod:l=!0,valueType:a="date",initStartDate:s,initEndDate:c,changeDates:u,onClear:d,classes:f}=e,p=o??ls(),h="dateTime"===a&&!l,[m,b]=(0,C.useState)("year"===a?"yearsRange":"month"),[v,y]=(0,C.useState)({year:p().year(),month:p().month()}),[w,O]=(0,C.useState)(s?h?p(s).second(0).millisecond(0).valueOf():p(s).startOf("D").valueOf():void 0),[_,S]=(0,C.useState)(c?p(c).startOf("D").valueOf():void 0),[P,j]=(0,C.useState)(h&&s?p(s).hour():0),[E,R]=(0,C.useState)(h&&s?p(s).minute():0),k=(0,C.useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),D=(0,C.useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),M=(0,C.useMemo)(()=>w?p(w).startOf("D").valueOf():void 0,[w,p]),I=(0,C.useMemo)(()=>_?p(_).startOf("D").valueOf():void 0,[_,p]),N=(0,C.useMemo)(()=>M?p(M).startOf("M").valueOf():void 0,[M,p]),L=(0,C.useMemo)(()=>I?p(I).startOf("M").valueOf():void 0,[I,p]),T=(0,C.useMemo)(()=>M?p(M).year():void 0,[M,p]),F=(0,C.useMemo)(()=>I?p(I).year():void 0,[I,p]),V=(0,C.useMemo)(()=>p(new Date(v.year,v.month,1)).startOf("month"===m?"M":"y"),[v,m,p]),A=V.daysInMonth();let z=V.startOf("M").day()-1;z<0&&(z=6),(0,C.useEffect)(()=>w||_?"year"===a?!l&&w?void u(p(w).format("YYYY")):l&&w&&_?void u(p(w).format("YYYY"),p(_).format("YYYY")):void 0:void(h&&w?u(p(w).second(0).millisecond(0).format()):l||!w?l&&w&&_&&u(p(w).format(),p(_).format()):u(p(w).format())):(d?.(),void u()),[w,_,l,a,h,p,u,d]);const $=(0,C.useCallback)((e,t,n)=>p(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[p]);(0,C.useEffect)(()=>{if(!h||!w)return;const e=$(w,P,E);e!==w&&O(e)},[h,w,P,E,$]);const H=(0,C.useCallback)(e=>()=>{const t=p(new Date(v.year,v.month,1)),n="yearsRange"===m?20*e:e,r="month"===m?"month":"year",o=t.add(n,r);y({month:o.month(),year:o.year()})},[m,v]),B=(0,C.useCallback)(()=>{"year"!==a&&b("month"===m?"year":"year"===m?"yearsRange":"month")},[m,a]),W=(0,C.useCallback)(e=>()=>{y({month:e.month(),year:e.year()}),b("month")},[]),q=(0,C.useCallback)(e=>()=>{const t=p(new Date(e,0,1)).startOf("y").valueOf();if(!l)return O(h&&M===t?void 0:h||w!==t?h?$(t,P,E):t:void 0),void S(void 0);w&&_?t===w?O(void 0):(t===_||O(t),S(void 0)):w?t===w?O(void 0):t<w?(S(w),O(t)):S(t):_?t===_?S(void 0):t<_?O(t):(O(_),S(t)):O(t)},[$,_,h,l,P,E,w,M]),G=(0,C.useMemo)(()=>{const e=V.year();return 20*Math.floor(e/20)},[V]),K=(0,C.useCallback)(e=>()=>{if(!l)return O(w===e?void 0:e),void S(void 0);w&&_?e===w?O(void 0):(e===_||O(e),S(void 0)):w?e===w?O(void 0):e<w?(S(w),O(e)):S(e):_?e===_?S(void 0):e<_?O(e):(O(_),S(e)):O(e)},[w,_,l]),Y=(0,C.useCallback)(e=>{O(void 0),S(void 0),h&&(j(0),R(0)),e.currentTarget.blur()},[h]),X=(0,C.useCallback)(e=>{y({year:p().year(),month:p().month()}),e.currentTarget.blur()},[V]);return r("div",{className:x()(zs,g[i],h&&Rs,f?.root),children:[r("div",{className:x()(Os,"month"===m&&Ls),children:[n("div",{className:x()(ws,f?.buttonsContainer),children:r(Fa,{fillEvenly:!0,children:[n(U,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:Y,children:"Сбросить"}),"year"!==a&&n(U,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:X,children:"Сегодня"})]})}),r("div",{className:x()(Fs,f?.navigationContainer),children:[n("button",{type:"button",className:x()(ys,Ts,f?.navigationArrow),onClick:H(-1),"aria-label":"Предыдущий период",children:n(oi,{})}),n("button",{type:"button",className:x()(ys,As,f?.navigationValue),onClick:B,children:r(ge,{variant:"subtitle1",className:x()(Vs,f?.navigationTitle),children:["month"===m&&V.format("MMMM YYYY"),"year"===m&&V.format("YYYY"),"yearsRange"===m&&`${G} - ${G+19}`]})}),n("button",{type:"button",className:x()(ys,Ts,f?.navigationArrow),onClick:H(1),"aria-label":"Следующий период",children:n(si,{})})]}),r("div",{className:x()(Es,f?.cellsContainer),children:["yearsRange"===m&&n(t,{children:[...Array(20)].map((e,t)=>{const o=G+t,i="year"===a?q(o):()=>{y({month:0,year:o}),b("year")},s="year"===a&&void 0!==T&&(o===T||o===F);let c=!1,u=!1,d=!1;return void 0!==T&&(l?void 0!==F&&(T===F?o===T&&(c=!0):o>=T&&o<=F&&(c=!0,o===T?u=!0:o===F&&(d=!0))):"year"!==a&&o===T&&(c=!0)),r("button",{type:"button",className:x()(ys,_s,qs,f?.cell,f?.year),onClick:i,children:[s&&n("span",{className:x()(Ss,f?.cellCircle)}),c&&n("span",{className:x()(js,f?.cellSelection,u&&xs,u&&f?.cellSelectionFirst,d&&Cs,d&&f?.cellSelectionLast)}),n(ge,{variant:"subtitle1",className:x()(Ps,f?.cellData),children:o})]},`cell-year-${o}`)})}),"year"===m&&n(t,{children:[...Array(12)].map((e,t)=>{const o=V.add(t,"M"),i=o.valueOf();let s=!1,c=!1,u=!1;return l&&"year"!==a&&void 0!==N&&void 0!==L?N===L?i===N&&(s=!0):i>=N&&i<=L&&(s=!0,i===N?c=!0:i===L&&(u=!0)):l||"year"===a||void 0===N?s=l?void 0!==N&&void 0!==L&&i>=N&&i<=L:void 0!==N&&i===N:i===N&&(s=!0),r("button",{type:"button",className:x()(ys,_s,Ds,f?.cell,f?.month),onClick:W(o),children:[s&&n("span",{className:x()(Ms,f?.monthCellSelection,c&&Is,c&&f?.monthCellSelectionFirst,u&&Ns,u&&f?.monthCellSelectionLast)}),n(ge,{variant:"subtitle1",className:x()(Ps,f?.cellData),children:o.format("MMMM")})]},`cell-month-${t}`)})}),"month"===m&&r(t,{children:[[...Array(z)].map((e,t)=>n("div",{className:x()(_s,f?.cell)},`empty-cell-${t}`)),[...Array(A)].map((e,t)=>{const o=V.add(t,"d").valueOf();return r("button",{type:"button",className:x()(ys,_s,f?.cell),onClick:K(o),children:[(o===M||o===I)&&n("span",{className:x()(Ss,f?.cellCircle)}),void 0!==M&&void 0!==I&&o>=M&&o<=I&&n("span",{className:x()(js,f?.cellSelection,o===M&&xs,o===M&&f?.cellSelectionFirst,o===I&&Cs,o===I&&f?.cellSelectionLast)}),n(ge,{variant:"subtitle1",className:x()(Ps,f?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),h&&r("div",{className:x()(Hs),children:[n("div",{className:x()(Ws)}),n(Gs,{values:k,selectedValue:P,onSelect:j}),n(ge,{variant:"subtitle1",className:x()(Bs),children:":"}),n(Gs,{values:D,selectedValue:E,onSelect:R})]})]})}const Ks=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","placeholder","defaultValues","values","onClear","onValueChange","dayjs","classes","id","onFocus","onBlur"];function Ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ys(Object(n),!0).forEach(function(t){Js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Js(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zs=(0,C.forwardRef)((e,t)=>{let{variant:o="filled",isPeriod:i=!1,valueType:l="date",defaultOpen:a=!1,componentSize:s="medium",fullWidth:c,label:u,placeholder:d,defaultValues:f,values:g,onClear:h,onValueChange:m,dayjs:b,classes:v,id:y,onFocus:w,onBlur:O}=e,_=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ks);const S=b??ls(),[P,j]=(0,C.useState)(void 0!==g?g:f),[E,R]=(0,C.useState)(a),k=(0,C.useRef)(P);(0,C.useEffect)(()=>{void 0!==g&&j(g)},[g]),(0,C.useEffect)(()=>{void 0===g&&void 0!==f&&j(f)},[f,g]),(0,C.useEffect)(()=>{k.current=P},[P]);const D=i&&"dateTime"===l?"date":l,M=(0,C.useRef)(null),I=he(),N=y??I,L=(0,C.useCallback)(e=>{R(!0),w?.(e)},[w]),T=(0,C.useCallback)(e=>{E||O?.(e)},[E,O]),F=(0,C.useCallback)(e=>{if(R(e),!e){const e=k.current;void 0!==e&&m?.(e);const t=M.current;if(!t)return;if(document.activeElement===t)return void t.blur();O?.({target:t,currentTarget:t})}},[O,m]),V=(0,C.useCallback)(()=>{M.current?.focus()},[]),A=(0,C.useCallback)((e,t)=>{const n=i?[e,t]:[e],r=k.current,o=(r?.length??0)===n.length&&r?.every((e,t)=>e===n[t]);o||(k.current=n,j(n))},[i]);return r("div",{className:x()(ms,p[s],c&&ss,v?.root),children:[!!u&&n(ge,{className:x()(ds,v?.label),component:"label",variant:"caption",htmlFor:N,children:u}),r("div",{className:x()(vs,p[o],v?.wrapper),children:[n("input",Xs(Xs({ref:Y([M,t]),id:N,className:x()(us,v?.input),placeholder:d},_),{},{value:P?.[0]?i&&P[1]?`${S(P[0]).format("year"===D?"YYYY":"DD.MM.YYYY")} - ${S(P[1]).format("year"===D?"YYYY":"DD.MM.YYYY")}`:`${S(P[0]).format("year"===D?"YYYY":"dateTime"===D?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:L,onBlur:T})),n("span",{onClick:V,className:x()(cs,v?.icon),children:n(wi,{})}),n(xo,{placement:"bottom-start",open:E,onOpenChange:F,classes:Xs(Xs({},v?.popover),{},{content:gs}),containerOffset:4,description:n(Us,{dayjs:S,classes:v,componentSize:s,isPeriod:i,valueType:D,initStartDate:P?.[0],initEndDate:P?.[1],changeDates:A,onClear:h}),children:n("div",{className:x()(hs)})})]})]})});function Qs(){return(Qs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ec(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function tc(e){var t=(0,C.useRef)(e),n=(0,C.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var nc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},rc=function(e){return"touches"in e},oc=function(e){return e&&e.ownerDocument.defaultView||self},ic=function(e,t,n){var r=e.getBoundingClientRect(),o=rc(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:nc((o.pageX-(r.left+oc(e).pageXOffset))/r.width),top:nc((o.pageY-(r.top+oc(e).pageYOffset))/r.height)}},lc=function(e){!rc(e)&&e.preventDefault()},ac=C.default.memo(function(e){var t=e.onMove,n=e.onKey,r=ec(e,["onMove","onKey"]),o=(0,C.useRef)(null),i=tc(t),l=tc(n),a=(0,C.useRef)(null),s=(0,C.useRef)(!1),c=(0,C.useMemo)(function(){var e=function(e){lc(e),(rc(e)?e.touches.length>0:e.buttons>0)&&o.current?i(ic(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=s.current,i=oc(o.current),l=n?i.addEventListener:i.removeEventListener;l(r?"touchmove":"mousemove",e),l(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(lc(t),!function(e,t){return t&&!rc(e)}(t,s.current)&&r)){if(rc(t)){s.current=!0;var l=t.changedTouches||[];l.length&&(a.current=l[0].identifier)}r.focus(),i(ic(r,t,a.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),l({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]},[l,i]),u=c[0],d=c[1],f=c[2];return(0,C.useEffect)(function(){return f},[f]),C.default.createElement("div",Qs({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),sc=function(e){return e.filter(Boolean).join(" ")},cc=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=sc(["react-colorful__pointer",e.className]);return C.default.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},C.default.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},uc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},dc=(Math.PI,function(e){return bc(fc(e))}),fc=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?uc(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?uc(parseInt(e.substring(6,8),16)/255,2):1}},pc=function(e){var t=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:uc(e.h),s:uc(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:uc(o/2),a:uc(r,2)}}(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},gc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),l=r*(1-n),a=r*(1-(t-i)*n),s=r*(1-(1-t+i)*n),c=i%6;return{r:uc(255*[r,a,l,l,s,r][c]),g:uc(255*[s,r,r,a,l,l][c]),b:uc(255*[l,l,s,r,r,a][c]),a:uc(o,2)}},hc=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},mc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?hc(uc(255*o)):"";return"#"+hc(t)+hc(n)+hc(r)+i},bc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),l=i-Math.min(t,n,r),a=l?i===t?(n-r)/l:i===n?2+(r-t)/l:4+(t-n)/l:0;return{h:uc(60*(a<0?a+6:a)),s:uc(i?l/i*100:0),v:uc(i/255*100),a:o}},vc=C.default.memo(function(e){var t=e.hue,n=e.onChange,r=sc(["react-colorful__hue",e.className]);return C.default.createElement("div",{className:r},C.default.createElement(ac,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:nc(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":uc(t),"aria-valuemax":"360","aria-valuemin":"0"},C.default.createElement(cc,{className:"react-colorful__hue-pointer",left:t/360,color:pc({h:t,s:100,v:100,a:1})})))}),yc=C.default.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:pc({h:t.h,s:100,v:100,a:1})};return C.default.createElement("div",{className:"react-colorful__saturation",style:r},C.default.createElement(ac,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:nc(t.s+100*e.left,0,100),v:nc(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+uc(t.s)+"%, Brightness "+uc(t.v)+"%"},C.default.createElement(cc,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:pc(t)})))}),wc=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Oc(e,t,n){var r=tc(n),o=(0,C.useState)(function(){return e.toHsva(t)}),i=o[0],l=o[1],a=(0,C.useRef)({color:t,hsva:i});(0,C.useEffect)(function(){if(!e.equal(t,a.current.color)){var n=e.toHsva(t);a.current={hsva:n,color:t},l(n)}},[t,e]),(0,C.useEffect)(function(){var t;wc(i,a.current.hsva)||e.equal(t=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:t},r(t))},[i,e,r]);var s=(0,C.useCallback)(function(e){l(function(t){return Object.assign({},t,e)})},[]);return[i,s]}var _c="undefined"!=typeof window?C.useLayoutEffect:C.useEffect,Sc=new Map,Pc=function(e){var t,n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,l=e.onChange,a=ec(e,["className","colorModel","color","onChange"]),c=(0,C.useRef)(null);t=c,_c(function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!Sc.has(e)){var n=e.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Sc.set(e,n);var r=s.nc;r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[]);var u=Oc(r,i,l),d=u[0],f=u[1],p=sc(["react-colorful",n]);return C.default.createElement("div",Qs({},a,{ref:c,className:p}),C.default.createElement(yc,{hsva:d,onChange:f}),C.default.createElement(vc,{hue:d.h,onChange:f,className:"react-colorful__last-control"}))},jc={defaultColor:"000",toHsva:dc,fromHsva:function(e){return function(e){return mc(gc(e))}({h:e.h,s:e.s,v:e.v,a:1})},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||wc(fc(e),fc(t))}},xc=function(e){return C.default.createElement(Pc,Qs({},e,{colorModel:jc}))},Cc="colorPicker-module__arrow__iVl5d",Ec="colorPicker-module__icon__IIYmw",Rc="colorPicker-module__input__gaesN",kc="colorPicker-module__label__PknU4",Dc="colorPicker-module__medium__zOCNs",Mc="colorPicker-module__outlined__Itbqh",Ic="colorPicker-module__popover-content__lql7r",Nc="colorPicker-module__popover-target__M5buG",Lc="colorPicker-module__root__yWPxF",Tc="colorPicker-module__small___yzV2",Fc="colorPicker-module__wrapper__xpXkA";const Vc=["variant","componentSize","fullWidth","label","classes","placeholder","ref","disabled","defaultValue","id","onValueChange"];function Ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(n),!0).forEach(function(t){$c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ac(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $c(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hc=e=>{const{variant:t="outlined",componentSize:o="medium",fullWidth:i,label:l,classes:a,placeholder:s,ref:c,disabled:u,defaultValue:d,id:f,onValueChange:p}=e,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Vc),[m,b]=(0,C.useState)(d?.toString()??"#AABBCC"),v=(0,C.useRef)(null),y=(0,C.useRef)(null),w=(0,C.useCallback)(e=>{b(e.toUpperCase()),p?.(e.toUpperCase())},[]),O=(0,C.useCallback)(e=>{e.preventDefault(),u||y?.current?.click()},[y]),_=f??Ve();return r("div",{className:x()(Lc,h[o],a?.root),style:{maxWidth:i?"100%":void 0},children:[!!l&&n(ge,{className:x()(kc,a?.label),component:"label",variant:"caption",htmlFor:_,onClick:O,children:l}),r("div",{className:x()(Fc,h[t],a?.wrapper),children:[n("input",zc(zc({ref:Y([v,c]),id:_,className:x()(Rc,a?.input),placeholder:s},g),{},{value:m,onChange:()=>{},onClick:O,disabled:u})),n("span",{onClick:O,className:x()(Ec,a?.icon),style:{backgroundColor:m}}),n("span",{onClick:O,className:x()(Cc,a?.arrow),children:n(Oa,{})}),n(xo,{placement:"bottom-start",classes:zc({content:x()(Ic,"styledScroll",a?.popoverContent)},a?.popover),containerOffset:4,description:n(xc,{color:m,onChange:w}),children:n("div",{ref:y,className:x()(Nc)})})]})]})};var Bc="input-module__attach-icon__W3URr",Wc="input-module__file-display__GKw0F",qc="input-module__file-input__Hj1fC",Gc="input-module__file-name__AVwRH",Uc="input-module__filled___69P0",Kc="input-module__full-width__qXDHU",Yc="input-module__input__Xce3x",Xc="input-module__label__RV8d4",Jc="input-module__medium__TdcNA",Zc="input-module__outlined___LdLU",Qc="input-module__placeholder__QpTXt",eu="input-module__root__QfKhR",tu="input-module__small__kXkJz",nu="input-module__wrapper__acqQv";const ru=["variant","componentSize","fullWidth","label","classes","placeholder","id","type","onChange"];function ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(n),!0).forEach(function(t){lu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const au=(0,C.forwardRef)((e,o)=>{let{variant:i="outlined",componentSize:l="medium",fullWidth:a,label:s,classes:c,placeholder:u,id:d,type:f,onChange:p}=e,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ru);const h=(0,C.useRef)(null),[b,v]=(0,C.useState)(""),y=he(),w=d??y,O="file"===f;return r("div",{className:x()(eu,m[l],a&&Kc,c?.root),children:[!!s&&n(ge,{className:x()(Xc,c?.label),component:"label",variant:"caption",htmlFor:w,children:s}),n("div",{className:x()(nu,m[i],c?.wrapper),children:O?r(t,{children:[n("input",iu({ref:Y([h,o]),id:w,className:x()(qc,c?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];v(t?.name??""),p?.(e)}},g)),r("div",{role:"button",tabIndex:0,className:x()(Yc,Wc,c?.input),onClick:()=>h.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),h.current?.click())},children:[n("span",{className:x()(Gc,!b&&Qc),children:b||u}),n(Ho,{size:20,className:Bc})]})]}):n("input",iu({ref:Y([h,o]),id:w,className:x()(Yc,c?.input),placeholder:u,type:f,autoComplete:"off",onChange:p},g))})]})}),su=e=>"string"==typeof e,cu=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},uu=e=>null==e?"":String(e),du=/###/g,fu=e=>e&&e.includes("###")?e.replace(du,"."):e,pu=e=>!e||su(e),gu=(e,t,n)=>{const r=su(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(pu(e))return{};const t=fu(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return pu(e)?{}:{obj:e,k:fu(r[o])}},hu=(e,t,n)=>{const{obj:r,k:o}=gu(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],l=t.slice(0,t.length-1),a=gu(e,l,Object);for(;void 0===a.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),a=gu(e,l,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},mu=(e,t)=>{const{obj:n,k:r}=gu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},bu=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?su(e[r])||e[r]instanceof String||su(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):bu(e[r],t[r],n):e[r]=t[r]);return e},vu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),yu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},wu=e=>su(e)?e.replace(/[&<>"'\/]/g,e=>yu[e]):e,Ou=[" ",",","?","!",";"],_u=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Su=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let l=e;l<r.length;++l)if(l!==e&&(i+=n),i+=r[l],t=o[i],void 0!==t){if(["string","number","boolean"].includes(typeof t)&&l<r.length-1)continue;e+=l-e+1;break}o=t}return o},Pu=e=>e?.replace(/_/g,"-"),ju={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class xu{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||ju,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>su(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),su(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new xu(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new xu(this.logger,e)}}var Cu=new xu;class Eu{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){const n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n(e,...t)})}}class Ru extends Eu{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.includes(".")?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):su(n)&&o?l.push(...n.split(o)):l.push(n)));const a=mu(this.data,l);return a||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!a&&i&&su(n)?Su(this.data?.[e]?.[t],n,o):a}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(i?n.split(i):n)),e.includes(".")&&(l=e.split("."),r=t,t=l[1]),this.addNamespaces(t),hu(this.data,l,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(su(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let l=[e,t];e.includes(".")&&(l=e.split("."),r=n,n=t,t=l[1]),this.addNamespaces(t);let a=mu(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?bu(a,n,o):a={...a,...n},hu(this.data,l,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var ku={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,o)??t}),t}};const Du=Symbol("i18next/PATH_KEY");function Mu(e,t){const{[Du]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Du?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",o=t?.nsSeparator??":";if(n.length>1&&o){const e=t?.ns,i=Array.isArray(e)?e:null;if(i&&i.length>1&&i.slice(1).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const Iu=e=>!su(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Nu extends Eu{constructor(e,t={}){super(),((e,t,n)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(n[e]=t[e])})})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Cu.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const o=Iu(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.includes(n),l=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=Ou.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=_u.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!l){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:su(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.includes(i[0]))&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:su(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=Mu(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?Mu(e,{...this.options,...r}):String(e));const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:l,namespaces:a}=this.extractFromKey(e[e.length-1],r),s=a[a.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return d?o?{res:`${s}${c}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${c}${l}`:o?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:l;const f=this.resolve(e,r);let p=f?.res;const g=f?.usedKey||l,h=f?.exactUsedKey||l,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!su(r.count),y=Nu.hasDefaultValue(r),w=v?this.pluralResolver.getSuffix(u,r.count,r):"",O=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",_=v&&!r.ordinal&&0===r.count,S=_&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${O}`]||r.defaultValue;let P=p;b&&!p&&y&&(P=S);const j=Iu(P),x=Object.prototype.toString.apply(P);if(!(b&&P&&j)||["[object Number]","[object Function]","[object RegExp]"].includes(x)||su(m)&&Array.isArray(P))if(b&&su(m)&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&y&&(t=!0,p=S),this.isValidLookup(p)||(o=!0,p=l);const a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=y&&S!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,s,v&&!d?`${l}${this.pluralResolver.getSuffix(u,r.count,r)}`:l,d?S:p),i){const e=this.resolve(l,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=y&&n!==p?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,o,d,r),this.emit("missingKey",e,s,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);_&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],l+t,r[`defaultValue${t}`]||S)})}):n(e,l,S))}p=this.extendTranslation(p,e,r,f,n),o&&p===l&&this.options.appendNamespaceToMissingKey&&(p=`${s}${c}${l}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${l}`:l,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,P,{...r,ns:a}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(i){const e=Array.isArray(P),t=e?[]:{},n=e?h:g;for(const e in P)if(Object.prototype.hasOwnProperty.call(P,e)){const o=`${n}${i}${e}`;t[e]=y&&!p?this.translate(o,{...r,defaultValue:Iu(S)?S[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...r,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=P[e])}p=t}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(r),f):p}extendTranslation(e,t,n,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=su(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(i){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let a=n.replace&&!su(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),e=this.interpolator.interpolate(e,a,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,l=su(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=ku.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,l;return su(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?Mu(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const a=this.extractFromKey(e,t),s=a.key;r=s;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!su(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(su(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(l=e,this.checkedLoadedFor[`${p[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(l)||(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{if(this.isValidLookup(n))return;i=r;const l=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(o)&&l.push(s+e.replace(o,this.options.pluralSeparator)),l.push(s+e),d&&l.push(s+n)),f){const r=`${s}${this.options.contextSeparator||"_"}${t.context}`;l.push(r),u&&(t.ordinal&&e.startsWith(o)&&l.push(r+e.replace(o,this.options.pluralSeparator)),l.push(r+e),d&&l.push(r+n))}}let a;for(;a=l.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(r,e,a,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!su(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class Lu{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Cu.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Pu(e))||!e.includes("-"))return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Pu(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(su(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>!(e!==r&&(!e.includes("-")&&!r.includes("-")||(!e.includes("-")||r.includes("-")||e.slice(0,e.indexOf("-"))!==r)&&!(e.startsWith(r)&&r.length>1))))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),su(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return su(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):su(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||o(this.formatLanguageCode(e))}),r}}const Tu={zero:0,one:1,two:2,few:3,many:4,other:5},Fu={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Vu{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Cu.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=Pu("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Fu;if(!e.match(/-|_/))return Fu;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Tu[e]-Tu[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Au=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=mu(e,n);return void 0!==r?r:mu(t,n)})(e,t,n);return!i&&o&&su(n)&&(i=Su(e,n,r),void 0===i&&(i=Su(t,n,r))),i},zu=e=>e.replace(/\$/g,"$$$$");class $u{constructor(e={}){this.logger=Cu.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:s,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:h,maxReplaces:m,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:wu,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?vu(o):i||"{{",this.suffix=l?vu(l):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u?vu(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?vu(c):"",this.nestingPrefix=d?vu(d):f||vu("$t("),this.nestingSuffix=p?vu(p):g||vu(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=e=>{if(!e.includes(this.formatSeparator)){const o=Au(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),l=o.join(this.formatSeparator).trim();return this.format(Au(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),l,n,{...r,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>zu(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?zu(this.escape(e)):zu(e)}].forEach(t=>{for(l=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=s(n),void 0===i)if("function"==typeof c){const t=c(e,o,r);i=su(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else su(i)||this.useRawValueToEscape||(i=uu(i));const a=t.safeValue(i);if(e=e.replace(o[0],a),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const l=(e,t)=>{const n=this.nestingOptionsSeparator;if(!e.includes(n))return e;const r=e.split(new RegExp(`${vu(n)}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const l=o.match(/'/g),a=o.match(/"/g);((l?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let a=[];i={...n},i=i.replace&&!su(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const s=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==s&&(a=r[1].slice(s).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,s)),o=t(l.call(this,r[1].trim(),i),i),o&&r[0]===e&&!su(o))return o;su(o)||(o=uu(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),a.length&&(o=a.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const Hu=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const l=r+JSON.stringify(i);let a=t[l];return a||(a=e(Pu(r),o),t[l]=a),a(n)}},Bu=e=>(t,n,r)=>e(Pu(n),r)(t);class Wu{constructor(e={}){this.logger=Cu.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?Hu:Bu;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Hu(t)}format(e,t,n,r={}){if(!t)return e;if(null==e)return e;const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&!o[0].includes(")")&&o.find(e=>e.includes(")"))){const e=o.findIndex(e=>e.includes(")"));o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const l=r?.formatParams?.[r.interpolationkey]||{},a=l.locale||l.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...l})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class qu extends Eu{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Cu.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},l={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const l=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[l]=2:this.state[l]<0||(1===this.state[l]?void 0===i[l]&&(i[l]=!0):(this.state[l]=1,r=!1,void 0===i[l]&&(i[l]=!0),void 0===o[l]&&(o[l]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(l[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=gu(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{l[e]||(l[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===l[e][t]&&(l[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const l=(l,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}l&&a&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,2*o,i)},o):i(l,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,l);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>l(null,e)).catch(l):l(null,n)}catch(e){l(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();su(e)&&(e=this.languageUtils.toResolveHierarchy(e)),su(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},l=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const a={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(e,t,n,r,a):s(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>l(null,e)).catch(l):l(null,o)}catch(e){l(e)}else s(e,t,n,r,l,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const Gu=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),su(e[1])&&(t.defaultValue=e[1]),su(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Uu=e=>(su(e.ns)&&(e.ns=[e.ns]),su(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),su(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ku=()=>{};class Yu extends Eu{constructor(e={},t){var n;if(super(),this.options=Uu(e),this.services={},this.logger=Cu,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(su(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=Gu();this.options={...n,...this.options,...Uu(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?Cu.init(r(this.modules.logger),this.options):Cu.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Wu;const t=new Lu(this.options);this.store=new Ru(this.options.resources,this.options);const n=this.services;n.logger=Cu,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Vu(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new $u(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new qu(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Nu(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Ku),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const o=cu(),i=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),o}loadResources(e,t=Ku){let n=t;const r=su(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=cu();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Ku),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ku.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}this.resolvedLanguage||this.languages.includes(e)||!this.store.hasLanguageSomeTranslations(e)||(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=cu();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=su(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(su(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...o)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const l={...this.options,...i};"function"==typeof i.keyPrefix&&(i.keyPrefix=Mu(i.keyPrefix,l));const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=Mu(e,l)),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=Mu(e,l)),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return su(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=cu();return this.options.ns?(su(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=cu();su(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new Lu(Gu());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new Yu(e,t);return n.createInstance=Yu.createInstance,n}cloneInstance(e={},t=Ku){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new Yu(r);if(void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new Ru(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...Gu().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new $u(n)}return o.translator=new Nu(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Xu=Yu.createInstance();Xu.createInstance,Xu.dir,Xu.init,Xu.loadResources,Xu.reloadResources,Xu.use,Xu.changeLanguage,Xu.getFixedT,Xu.t,Xu.exists,Xu.setDefaultNamespace,Xu.hasLoadedNamespace,Xu.loadNamespaces,Xu.loadLanguages,s(915),Object.create(null);const Ju=(e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);rd(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},Zu={},Qu=(e,t,n,r)=>{rd(n)&&Zu[n]||(rd(n)&&(Zu[n]=new Date),Ju(e,t,n,r))},ed=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},td=(e,t,n)=>{e.loadNamespaces(t,ed(e,n))},nd=(e,t,n,r)=>{if(rd(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return td(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,ed(e,r))},rd=e=>"string"==typeof e,od=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,id={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ld=e=>id[e];let ad={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(od,ld),transDefaultProps:void 0};const sd=(0,C.createContext)();class cd{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}Error;const ud={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"};new RegExp(Object.keys(ud).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var dd=s(888);const fd={t:(e,t)=>{if(rd(t))return t;if("object"==typeof(n=t)&&null!==n&&rd(t.defaultValue))return t.defaultValue;var n;if("function"==typeof e)return"";if(Array.isArray(e)){const t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},pd=()=>()=>{},gd=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=(0,C.useContext)(sd)||{},i=n||r||void 0;i&&!i.reportNamespaces&&(i.reportNamespaces=new cd),i||Qu(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=(0,C.useMemo)(()=>({...ad,...i?.options?.react,...t}),[i,t]),{useSuspense:a,keyPrefix:s}=l,c=e||o||i?.options?.defaultNS,u=rd(c)?[c]:c||["translation"],d=(0,C.useMemo)(()=>u,u);i?.reportNamespaces?.addUsedNamespaces?.(d);const f=(0,C.useRef)(0),p=(0,C.useCallback)(e=>{if(!i)return pd;const{bindI18n:t,bindI18nStore:n}=l,r=()=>{f.current+=1,e()};return t&&i.on(t,r),n&&i.store.on(n,r),()=>{t&&t.split(" ").forEach(e=>i.off(e,r)),n&&n.split(" ").forEach(e=>i.store.off(e,r))}},[i,l]),g=(0,C.useRef)(),h=(0,C.useCallback)(()=>{if(!i)return fd;const e=!(!i.isInitialized&&!i.initializedStoreOnce)&&d.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(Qu(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,l)),n=t.lng||i.language,r=f.current,o=g.current;if(o&&o.ready===e&&o.lng===n&&o.keyPrefix===s&&o.revision===r)return o;const a={t:i.getFixedT(n,"fallback"===l.nsMode?d:d[0],s),ready:e,lng:n,keyPrefix:s,revision:r};return g.current=a,a},[i,d,s,l,t.lng]),[m,b]=(0,C.useState)(0),{t:v,ready:y}=(0,dd.useSyncExternalStore)(p,h,h);(0,C.useEffect)(()=>{if(i&&!y&&!a){const e=()=>b(e=>e+1);t.lng?nd(i,t.lng,d,e):td(i,d,e)}},[i,t.lng,d,y,a,m]);const w=i||{},O=(0,C.useRef)(null),_=(0,C.useRef)(),S=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},P=(0,C.useMemo)(()=>{const e=w,t=e?.language;let n=e;e&&(O.current&&O.current.__original===e?_.current!==t?(n=S(e),O.current=n,_.current=t):n=O.current:(n=S(e),O.current=n,_.current=t));const r=y||a?v:(...e)=>(Qu(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...e)),o=[r,n,y];return o.t=r,o.i18n=n,o.ready=y,o},[v,w,y,w.resolvedLanguage,w.language,w.languages]);if(i&&a&&!y)throw new Promise(e=>{const n=()=>e();t.lng?nd(i,t.lng,d,n):td(i,d,n)});return P},hd=()=>{const{t:e,i18n:t}=gd();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}};var md="searchInput-module__filled__bFEEy",bd="searchInput-module__icon__zHTol",vd="searchInput-module__input__gX5Td",yd="searchInput-module__medium__ypAHh",wd="searchInput-module__outlined__x5bUA",Od="searchInput-module__root__WAhkl",_d="searchInput-module__small__JmU0u",Sd="searchInput-module__with-icon__fx4_g";const Pd=["variant","componentSize","disableIcon","fullWidth","placeholder","classes","ref"];function jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jd(Object(n),!0).forEach(function(t){Cd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ed(e){const{variant:t="filled",componentSize:o="medium",disableIcon:i,fullWidth:l,placeholder:a,classes:s,ref:c}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Pd),{t:d}=hd(),f=(0,C.useRef)(null);return r("div",{className:x()(Od,b[t],b[o],i?void 0:Sd,s?.root),style:{maxWidth:l?"100%":void 0},children:[!i&&n("span",{className:x()(bd,s?.icon),onClick:()=>{f.current?.focus()},children:n(ul,{})}),n("input",xd({ref:Y([f,c]),className:x()(vd,s?.input),placeholder:a??d("Поиск...")},u))]})}var Rd="wrapForLabel-module__medium__xK1gW",kd="wrapForLabel-module__root__qo0J8",Dd="wrapForLabel-module__small__esSsd";const Md=e=>{const{componentSize:t="medium",children:r,classes:o}=e;return n("div",{className:x()(kd,v[t],o?.root),children:r})};var Id="multiSelect-module__arrow__jafPv",Nd="multiSelect-module__checklist-root__hidSo",Ld="multiSelect-module__checklist-scrolled__KC8yS",Td="multiSelect-module__checklist-wrapper__EDrnx",Fd="multiSelect-module__clear__CwQiH",Vd="multiSelect-module__filled__Hz9me",Ad="multiSelect-module__full-width__LexBp",zd="multiSelect-module__icon__TnLPX",$d="multiSelect-module__input__Hk3TU",Hd="multiSelect-module__item-icon__TRHVT",Bd="multiSelect-module__label__hATiI",Wd="multiSelect-module__label-selected-count__gCPqL",qd="multiSelect-module__medium__BTgaQ",Gd="multiSelect-module__outlined__PSPU8",Ud="multiSelect-module__popover-content__p_jyb",Kd="multiSelect-module__popover-target__x51qe",Yd="multiSelect-module__root__J3jt6",Xd="multiSelect-module__search-input-root__rCmDl",Jd="multiSelect-module__small__l60qu",Zd="multiSelect-module__with-icon__eaSrD",Qd="multiSelect-module__with-item-icon__LfhcF",ef="multiSelect-module__wrapper__lHCC4";function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(n),!0).forEach(function(t){lf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function af(e){const{items:o,selected:i,disableSearch:l,isDisabled:a,actionWithSelected:s,onChangeItem:c,classes:u}=e,{t:d}=hd(),[f,p]=(0,C.useState)(""),g=(0,C.useMemo)(()=>((e,t,n)=>t?e.reduce((e,r)=>(r.name.toUpperCase().includes(t.toUpperCase())&&!n[r.value]&&e.push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach(function(t){nf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]))(o,f,i),[o,f,i]),h=(0,C.useMemo)(()=>o.filter(e=>!!i[e.value]),[o,i]),m=(0,C.useCallback)(e=>{const t=!i[e.value];c&&c(e);const n=of(of({},i),{},{[e.value]:t});s(n)},[i,c,s]),b=(0,C.useCallback)(()=>{const e=of({},i);g.forEach(t=>{e[t.value]=!0}),s(e)},[i,g,s]),v=(0,C.useCallback)(()=>{const e=of({},i);h.forEach(t=>{delete e[t.value]}),s(e)},[i,h,s]),y=(0,C.useCallback)(e=>{p(e.target.value)},[]),w=(0,C.useCallback)(e=>t=>{t.stopPropagation(),m(e)},[m]);return r("div",{className:x()("checklist-module__root__AKDzG",u?.root),children:[!l&&n(Ed,{variant:"outlined",disabled:a,value:f,fullWidth:!0,classes:u?.searchInput,onChange:y}),r("div",{className:x()("checklist-module__scrolled__mpmGi","styledScroll",u?.scrolled),children:[h.length>0&&r(t,{children:[r("div",{className:x()("checklist-module__action-wrap__rW_zg",u?.actionWrap),children:[n(ge,{className:x()(u?.typography),children:d("Выбранное")}),n(U,{variant:"link",size:"small",disabled:a,onClick:v,className:x()(u?.button),children:d("Отменить")})]}),n("div",{children:h.map(e=>n(Le,{label:e.name,checked:!!i[e.value],onChange:w(e),disabled:a,classes:u?.checkbox},`selected-${e.value}`))})]}),!a&&!!g.length&&n(U,{variant:"link",size:"small",disabled:a,onClick:b,className:x()(u?.button),children:d("Выбрать все")}),n("div",{children:g.map(e=>n(Le,{label:e.name,checked:!!i[e.value],onChange:w(e),disabled:a,classes:u?.checkbox},`filtered-${e.value}`))})]})]})}const sf=["checklistWrapper"];function cf(e){const{items:t,selected:r,onSelectedChange:o,classes:i,enableSearch:l=!1,disabled:a}=e,s=(0,C.useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),c=(0,C.useMemo)(()=>{const e={};return r?.forEach(t=>{e[t]=!0}),e},[r]),u=(0,C.useCallback)(e=>{const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const r=t.find(e=>e.value===n);r&&e.push(r)}return e},[]);o(n)},[o,t]),d=i??{},{checklistWrapper:f}=d,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(d,sf);return n("div",{className:x()(f),children:n(af,{disableSearch:!l,isDisabled:a,items:s,selected:c,actionWithSelected:u,classes:p})})}const uf=["variant","componentSize","icon","fullWidth","label","placeholder","items","onValueChange","selected","classes","ref","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];function df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?df(Object(n),!0).forEach(function(t){pf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):df(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e){const{variant:t="filled",componentSize:o="medium",icon:i,fullWidth:l,label:a,placeholder:s,items:c,onValueChange:u,selected:d,classes:f,ref:p,disabled:g,id:h,titleType:m="allValue",showSelectedCount:b=!1,enableSearch:v=!1,popoverInComponent:w=!1}=e,O=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,uf),{t:_}=gd(),S=(0,C.useRef)(null),P=(0,C.useRef)(null),j=(0,C.useRef)(null),[E,R]=(0,C.useState)(!1),[k,D]=(0,C.useState)();(0,C.useLayoutEffect)(()=>{const e=S.current;if(!e)return;const t=()=>{D(e.getBoundingClientRect().width)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]);const M=(0,C.useMemo)(()=>c.filter(e=>d?.includes(e.value)),[d,c]),I=(0,C.useCallback)(e=>{e.preventDefault(),g||R(e=>!e)},[g]),N=(0,C.useCallback)(e=>{u?.(e)},[u]),L=(0,C.useMemo)(()=>M.length?((e,t,n)=>{switch(e){case"allValue":return t.map(e=>e.name).join(", ");case"numberValue":return`${n("Выбрано элементов")}: `+t.length;case"firstValue":return`${t[0]?.name} ${t.length>1?" +"+(t.length-1):""}`}})(m,M,_):"",[m,M,_]),T=h??Ve();return r("div",{className:x()(Yd,y[o],l?Ad:void 0,f?.root),children:[!!a&&r(ge,{className:x()(Bd,f?.label),component:"label",variant:"caption",htmlFor:T,onClick:I,children:[a,b&&M.length>0&&n("span",{className:x()(Wd,f?.labelSelectedCount),children:` (${M.length})`})]}),r("div",{ref:S,className:x()(ef,y[t],i?Zd:void 0,f?.wrapper),children:[n("input",ff(ff({ref:Y([P,p]),id:T,className:x()($d,f?.input),placeholder:s},O),{},{value:L,onClick:I,disabled:g,readOnly:!0,title:M.map(e=>e.name).join(", "),autoComplete:"off"})),!!i&&n("span",{onClick:I,className:x()(zd,f?.icon),children:i}),!!M.length&&n("span",{onClick:()=>{u?.(null)},className:x()(Fd,f?.clear),children:n(mi,{})}),n("span",{onClick:I,className:x()(Id,f?.arrow),children:n(Oa,{})}),n(xo,{placement:"bottom-start",open:E,onOpenChange:R,contentStyle:k?{width:k,minWidth:k,maxWidth:k}:void 0,classes:ff({content:x()(Ud,f?.popoverContent)},f?.popover),containerOffset:4,root:w?S.current:void 0,description:n(cf,{items:c,classes:ff({searchInput:ff({root:Xd},f?.selectPopover?.searchInput),root:Nd,checklistWrapper:x()(Td),scrolled:Ld},f?.selectPopover),componentSize:o,selected:d,onSelectedChange:N,enableSearch:v,disabled:g}),children:n("div",{ref:j,className:x()(Kd)})})]})]})}var hf="radioButton-module__pressed__n_bXs",mf="radioButton-module__radio__fDsQH";const bf=["label","componentSize","canUncheck","onUncheck","classes","id","ref","onClick"];function vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(n),!0).forEach(function(t){wf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Of(e){const{label:t,componentSize:o="medium",canUncheck:i,onUncheck:l,classes:a,id:s,ref:c,onClick:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,bf),f=(0,C.useRef)(null),p=(0,C.useRef)(!1),g=he(),h=s??g;(0,C.useEffect)(()=>{const e=f.current;if(!e)return;const t=()=>e.classList.remove(hf),n=()=>{e.classList.add(hf),p.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const m=(0,C.useCallback)(e=>{i&&p.current&&(f.current.checked=!1,l?.()),u?.(e)},[i,l,u]),b="large"===o?"subtitle1":"subtitle2";return r("div",{className:x()("radioButton-module__root__fxVmv",a?.root),children:[n("input",yf({ref:Y([f,c]),type:"radio",className:x()("radioButton-module__input__O_xQT",a?.input),id:h,title:t,onClick:m},d)),r("label",{htmlFor:h,className:x()("radioButton-module__label__A9fWR",a?.label),title:t,children:[n("span",{className:x()(mf,"radioButton-module__deselected__kGeIi",a?.radio),children:n(Xo,{})}),n("span",{className:x()(mf,"radioButton-module__selected__atkc_",a?.radio),children:n(ei,{})}),!!t&&n(ge,{variant:b,className:x()("radioButton-module__label-text__KSEbB",a?.labelText),children:t})]})]})}var _f="surface-module__modal__CtpUb",Sf="surface-module__panel__WAxUP",Pf="surface-module__primary__k8467",jf="surface-module__root__h8d8c";function xf(e){const{type:t="primary",children:r,classes:o}=e;return n("div",{className:x()(jf,o?.root,w[t]),children:r})}function Cf(e){const{withoutHeader:t,children:r,classes:o}=e;return n("div",{className:x()("layout-module__root__I9KVI",t?void 0:"layout-module__with-header___aKcB",o?.root),children:r})}var Ef="tooltip-module__arrow__SONUP",Rf="tooltip-module__bottom-arrow__GdFYs",kf="tooltip-module__content__nH6p2",Df="tooltip-module__error__XWI8s",Mf="tooltip-module__info__un5n7",If="tooltip-module__left-arrow__BFwGV",Nf="tooltip-module__right-arrow__ZFRBE",Lf="tooltip-module__success__OXBJT",Tf="tooltip-module__top-arrow__UHvch",Ff="tooltip-module__trigger__PIfJx",Vf="tooltip-module__warning__Xb_Wr";const Af=(0,C.createContext)(null),zf=["styles","style","children"],$f=["context"];function Hf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hf(Object(n),!0).forEach(function(t){Wf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Gf=(0,C.forwardRef)(function(e,t){let{styles:o,style:i,children:l}=e,a=qf(e,zf);const s=(0,C.useContext)(Af);if(!s)return null;const{context:c}=s,u=qf(s,$f),d=rr([u.refs.setFloating,t]);if(!c.open)return null;let f="",p=null,g=null;switch(u.placement){case"top":case"top-end":case"top-start":f="topArrow",g=!1;break;case"bottom":case"bottom-end":case"bottom-start":f="bottomArrow",g=!0;break;case"left":case"left-end":case"left-start":f="leftArrow",p=!0;break;case"right":case"right-end":case"right-start":f="rightArrow",p=!1}return n(Tr,{root:u.root,children:r("div",Bf(Bf({ref:d,style:Bf(Bf({},u.floatingStyles),i)},u.getFloatingProps(a)),{},{children:[l,!u.withoutArrow&&n("div",{className:o&&x()(o.arrow,o[f]),ref:u.arrowRef,style:{position:"absolute",left:null===g&&!1===p?0:u.middlewareData.arrow?.x,right:null===g&&!0===p?0:u.middlewareData.arrow?.x,top:null===p&&!0===g?0:u.middlewareData.arrow?.y,bottom:null===p&&!1===g?0:u.middlewareData.arrow?.y}})]}))})});function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach(function(t){Yf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xf=["children"],Jf=e=>{const{children:t}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Xf),o=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:o,withoutArrow:i,arrowRef:l,root:a}=e,[s,c]=(0,C.useState)(t),u=r??s,d=o??c,f=Zr({placement:n,open:u,onOpenChange:d,whileElementsMounted:Wn,middleware:[Qn(12),tr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),er({padding:5}),...!i&&l?.current?[nr({element:l})]:[]]}),{context:p}=f,g=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:l}=e,{enabled:a=!0,delay:s=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=hr(),g=gr(),h=Gt(c),m=Gt(s),b=Gt(n),v=Gt(d),y=C.useRef(),w=C.useRef(-1),O=C.useRef(),_=C.useRef(-1),S=C.useRef(!0),P=C.useRef(!1),j=C.useRef(()=>{}),x=C.useRef(!1),E=Kt(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});C.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(br(w),br(_),S.current=!0,x.current=!1)}},[a,i]),C.useEffect(()=>{if(!a)return;if(!h.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=Ft(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[l.floating,n,r,a,h,E]);const R=C.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=yr(m.current,"close",y.current);o&&!O.current?(br(w),w.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(br(w),r(!1,e,n))},[m,r]),k=Kt(()=>{j.current(),O.current=void 0}),D=Kt(()=>{if(P.current){const e=Ft(l.floating).body;e.style.pointerEvents="",e.removeAttribute(vr),P.current=!1}}),M=Kt(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));C.useEffect(()=>{if(a&&We(l.domReference)){const r=l.domReference,o=l.floating;return n&&r.addEventListener("mouseleave",i),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c)),()=>{n&&r.removeEventListener("mouseleave",i),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",i),o.removeEventListener("mouseenter",s),o.removeEventListener("mouseleave",c))}}function e(e){if(br(w),S.current=!1,u&&!Wt(y.current)||wr(v.current)>0&&!yr(m.current,"open"))return;const t=yr(m.current,"open",y.current);t?w.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(M())return void D();j.current();const t=Ft(l.floating);if(br(_),x.current=!1,h.current&&o.current.floatingContext){n||br(w),O.current=h.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e,!0,"safe-polygon")}});const r=O.current;return t.addEventListener("mousemove",r),void(j.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Nt(l.floating,e.relatedTarget))&&R(e)}function i(e){M()||o.current.floatingContext&&(null==h.current||h.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e)}})(e))}function s(){br(w)}function c(e){M()||R(e,!1)}},[l,a,e,u,f,R,k,D,r,n,b,p,m,h,o,M,v]),qt(()=>{var e;if(a&&n&&null!=(e=h.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&E()){P.current=!0;const e=l.floating;if(We(l.domReference)&&e){var t;const n=Ft(l.floating).body;n.setAttribute(vr,"");const r=l.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===g))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[a,n,g,l,p,h,E]),qt(()=>{n||(y.current=void 0,x.current=!1,k(),D())},[n,k,D]),C.useEffect(()=>()=>{k(),br(w),br(_),D()},[a,l.domReference,k,D]);const I=C.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||b.current||r(!0,t,"hover")}u&&!Wt(y.current)||n||0===wr(v.current)||x.current&&e.movementX**2+e.movementY**2<2||(br(_),"touch"===y.current?o():(x.current=!0,_.current=window.setTimeout(o,wr(v.current))))}}},[u,r,n,b,v]);return C.useMemo(()=>a?{reference:I}:{},[a,I])}(p,{move:!1,enabled:null==r}),h=no([g,eo(p,{enabled:null==r}),Jr(p),oo(p,{role:"tooltip"})]);return(0,C.useMemo)(()=>Kf(Kf({open:u,setOpen:d,withoutArrow:i,arrowRef:l,root:a},h),f),[u,d,h,f,a])}(r);return n(Af.Provider,{value:o,children:t})},Zf=["children","wrapTrigger"];function Qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qf(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const np=(0,C.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Zf);const l=(0,C.useContext)(Af),a=r.ref,s=rr([l?.refs.setReference,t,a]);return l?!o&&(0,C.isValidElement)(r)?(0,C.cloneElement)(r,l.getReferenceProps(ep(ep(ep({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",ep(ep({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function rp(e){const{label:o,clickable:i,initialOpen:l,placement:a,withoutArrow:s,wrapTrigger:c,alertType:u="default",root:d,children:f,classes:p}=e,[g,h]=(0,C.useState)(!1),m=(0,C.useRef)(null);return o?f?r(Jf,{placement:a,initialOpen:l,open:i?g:void 0,onOpenChange:i?h:void 0,withoutArrow:s,arrowRef:m,root:d,children:[n(np,{wrapTrigger:c,onClick:i?()=>h(e=>!e):void 0,className:c?x()(Ff,p?.trigger):void 0,children:f}),n(Gf,{className:x()(kf,O[u],p?.content),styles:O,children:o})]}):null:f?n(t,{children:f}):null}var op="tabs-module__disable-border__Vw9nt",ip="tabs-module__disabled__e_X85",lp="tabs-module__filled__Kzrnb",ap="tabs-module__icon-only__qDPjH",sp="tabs-module__medium__dvN0f",cp="tabs-module__root__m7YiQ",up="tabs-module__selected__YEXTT",dp="tabs-module__selected-filled__MkMIt",fp="tabs-module__small__hiwdI",pp="tabs-module__tab__NoNie",gp="tabs-module__tab-border__tvFwj",hp="tabs-module__tab-border-vertical__TVo15",mp="tabs-module__tab-filled__Gmwpo",bp="tabs-module__tab-icon__Kj5Oa",vp="tabs-module__tab-title__XsuJP",yp="tabs-module__tab-vertical__WQDkd",wp="tabs-module__vertical__sPO6h";function Op(e){const{items:t,defaultSelected:o,onChange:i,size:l="medium",filled:a=!1,isVertical:s=!1,disableBorder:c=!1,allowDeselect:u=!1,showTooltips:d=!1,useExternalState:f=!1,value:p,classes:g}=e,[h,m]=(0,C.useState)(!1),[b,v]=(0,C.useState)(o),y=f?p:b,w=e=>()=>{e.isDisabled||(e.onClick?e.onClick():f?u&&y===e.value?i?.(void 0):i?.(e.value):u&&b===e.value?v(void 0):v(e.value))};return(0,C.useEffect)(()=>{h&&!f&&i?.(b),h||m(!0)},[b,f]),n("div",{className:x()(cp,a&&lp,s&&wp,c&&op,_[l],g?.root),children:t.map(e=>{const t=!e.onClick&&y===e.value,o=r("div",{className:x()(pp,a&&mp,s&&yp,c&&op,t?up:void 0,t&&a?dp:void 0,e.isDisabled&&ip,g?.tab,t?g?.tabSelected:void 0,e.isDisabled?g?.tabDisabled:void 0),onClick:w(e),children:[r("div",{className:x()(vp,d&&e.icon&&ap,g?.tabTitle,t?g?.tabSelectedTitle:void 0),children:[e.icon&&n("span",{className:bp,children:"string"==typeof e.icon?n("span",{className:bp,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!d&&e.name&&n("span",{title:e.name,children:e.name})]}),n("div",{className:x()(gp,s&&hp,c&&op,g?.tabBorder,t?g?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return d&&e.name?n(rp,{label:e.name,placement:s?"right":"top",children:o},`tab-${e.value}`):o})})}function _p(e,t){return"function"==typeof e?e(t):e}function Sp(e,t){return n=>{t.setState(t=>({...t,[e]:_p(n,t[e])}))}}function Pp(e){return e instanceof Function}function jp(e,t,n){let r,o=[];return i=>{let l;n.key&&n.debug&&(l=Date.now());const a=e(i),s=a.length!==o.length||a.some((e,t)=>o[t]!==e);if(!s)return r;let c;if(o=a,n.key&&n.debug&&(c=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-c))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function xp(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const Cp="debugHeaders";function Ep(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}const Rp={createTable:e=>{e.getHeaderGroups=jp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,l;const a=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],s=null!=(l=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[];return kp(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...s],e)},xp(e.options,Cp)),e.getCenterHeaderGroups=jp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>kp(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),xp(e.options,Cp)),e.getLeftHeaderGroups=jp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return kp(t,i,e,"left")},xp(e.options,Cp)),e.getRightHeaderGroups=jp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return kp(t,i,e,"right")},xp(e.options,Cp)),e.getFooterGroups=jp(()=>[e.getHeaderGroups()],e=>[...e].reverse(),xp(e.options,Cp)),e.getLeftFooterGroups=jp(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),xp(e.options,Cp)),e.getCenterFooterGroups=jp(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),xp(e.options,Cp)),e.getRightFooterGroups=jp(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),xp(e.options,Cp)),e.getFlatHeaders=jp(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),xp(e.options,Cp)),e.getLeftFlatHeaders=jp(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),xp(e.options,Cp)),e.getCenterFlatHeaders=jp(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),xp(e.options,Cp)),e.getRightFlatHeaders=jp(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),xp(e.options,Cp)),e.getCenterLeafHeaders=jp(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),xp(e.options,Cp)),e.getLeftLeafHeaders=jp(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),xp(e.options,Cp)),e.getRightLeafHeaders=jp(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),xp(e.options,Cp)),e.getLeafHeaders=jp(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,l,a,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},xp(e.options,Cp))}};function kp(e,t,n,r){var o,i;let l=0;const a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const l=[...i].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),l&&(null==l?void 0:l.column)===a)l.subHeaders.push(e);else{const o=Ep(n,a,{id:[r,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),s.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>Ep(n,e,{depth:l,index:t}));c(u,l-1),s.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const Dp=(e,t,n,r,o,i,l)=>{let a={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,r),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}(a.subRows,e=>e.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:jp(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:jp(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),xp(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),xp(e.options,"debugRows")),_getAllCellsByColumnId:jp(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),xp(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a},Mp={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Ip=(e,t,n)=>{var r,o;const i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))};Ip.autoRemove=e=>Bp(e);const Np=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Np.autoRemove=e=>Bp(e);const Lp=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Lp.autoRemove=e=>Bp(e);const Tp=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Tp.autoRemove=e=>Bp(e);const Fp=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});Fp.autoRemove=e=>Bp(e)||!(null!=e&&e.length);const Vp=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});Vp.autoRemove=e=>Bp(e)||!(null!=e&&e.length);const Ap=(e,t,n)=>e.getValue(t)===n;Ap.autoRemove=e=>Bp(e);const zp=(e,t,n)=>e.getValue(t)==n;zp.autoRemove=e=>Bp(e);const $p=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};$p.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,l=null===n||Number.isNaN(o)?1/0:o;if(i>l){const e=i;i=l,l=e}return[i,l]},$p.autoRemove=e=>Bp(e)||Bp(e[0])&&Bp(e[1]);const Hp={includesString:Ip,includesStringSensitive:Np,equalsString:Lp,arrIncludes:Tp,arrIncludesAll:Fp,arrIncludesSome:Vp,equals:Ap,weakEquals:zp,inNumberRange:$p};function Bp(e){return null==e||""===e}const Wp={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Sp("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?Hp.includesString:"number"==typeof r?Hp.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?Hp.equals:Array.isArray(r)?Hp.arrIncludes:Hp.weakEquals},e.getFilterFn=()=>{var n,r;return Pp(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:Hp[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),i=_p(n,o?o.value:void 0);var l;if(qp(r,i,e))return null!=(l=null==t?void 0:t.filter(t=>t.id!==e.id))?l:[];const a={id:e.id,value:i};var s;return o?null!=(s=null==t?void 0:t.map(t=>t.id===e.id?a:t))?s:[]:null!=t&&t.length?[...t,a]:[a]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=_p(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!qp(t.getFilterFn(),e.value,t)})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function qp(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Gp={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(!function(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},Up={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Sp("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?Gp.sum:"[object Date]"===Object.prototype.toString.call(r)?Gp.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Pp(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:Gp[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},Kp={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Sp("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=jp(e=>[tg(t,e)],t=>t.findIndex(t=>t.id===e.id),xp(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=tg(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=tg(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=jp(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;const o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...r]}(o,t,n)},xp(e.options,"debugTable"))}},Yp={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Sp("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,l,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!l&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=jp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},xp(t.options,"debugRows")),e.getLeftVisibleCells=jp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},xp(t.options,"debugRows")),e.getRightVisibleCells=jp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},xp(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=jp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),xp(e.options,"debugColumns")),e.getRightLeafColumns=jp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),xp(e.options,"debugColumns")),e.getCenterLeafColumns=jp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},xp(e.options,"debugColumns"))}},Xp={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Jp={getDefaultColumnDef:()=>Xp,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Sp("columnSizing",e),onColumnSizingInfoChange:Sp("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:Xp.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:Xp.size),null!=(o=e.columnDef.maxSize)?o:Xp.maxSize)},e.getStart=jp(e=>[e,tg(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),xp(t.options,"debugColumns")),e.getAfter=jp(e=>[e,tg(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),xp(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o)return;if(null==i.persist||i.persist(),Qp(i)&&i.touches&&i.touches.length>1)return;const l=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],s=Qp(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,l=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,a=Math.max(l/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*a,0))/100}),{...e,deltaOffset:l,deltaPercentage:a}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...c})))},d=e=>u("move",e),f=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("undefined"!=typeof document?document:null),g={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",g.moveHandler),null==p||p.removeEventListener("mouseup",g.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",h.moveHandler),null==p||p.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof Zp)return Zp;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return Zp=e,Zp}()&&{passive:!1};Qp(i)?(null==p||p.addEventListener("touchmove",h.moveHandler,m),null==p||p.addEventListener("touchend",h.upHandler,m)):(null==p||p.addEventListener("mousemove",g.moveHandler,m),null==p||p.addEventListener("mouseup",g.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:s,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let Zp=null;function Qp(e){return"touchstart"===e.type}const eg={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Sp("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=jp(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),xp(t.options,"debugRows")),e.getVisibleCells=jp(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],xp(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>jp(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),xp(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function tg(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const ng={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Sp("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>_p(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=_p(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,_p(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=_p(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=jp(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},xp(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},rg={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:Sp("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],l=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...l,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,l,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!l&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=jp(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),xp(e.options,"debugRows")),e.getBottomRows=jp(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),xp(e.options,"debugRows")),e.getCenterRows=jp(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},xp(e.options,"debugRows"))}},og={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Sp("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{ig(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=jp(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?lg(e,n):{rows:[],flatRows:[],rowsById:{}},xp(e.options,"debugTable")),e.getFilteredSelectedRowModel=jp(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?lg(e,n):{rows:[],flatRows:[],rowsById:{}},xp(e.options,"debugTable")),e.getGroupedSelectedRowModel=jp(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?lg(e,n):{rows:[],flatRows:[],rowsById:{}},xp(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var l;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return ig(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return ag(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===sg(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===sg(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},ig=(e,t,n,r,o)=>{var i;const l=o.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=l.subRows)&&i.length&&l.getCanSelectSubRows()&&l.subRows.forEach(t=>ig(e,t.id,n,r,o))};function lg(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=ag(e,n);if(l&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),l)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function ag(e,t){var n;return null!=(n=t[e.id])&&n}function sg(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(ag(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=sg(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const cg=/([0-9]+)/gm;function ug(e,t){return e===t?0:e>t?1:-1}function dg(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function fg(e,t){const n=e.split(cg).filter(Boolean),r=t.split(cg).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),l=[o,i].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const pg={alphanumeric:(e,t,n)=>fg(dg(e.getValue(n)).toLowerCase(),dg(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>fg(dg(e.getValue(n)),dg(t.getValue(n))),text:(e,t,n)=>ug(dg(e.getValue(n)).toLowerCase(),dg(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>ug(dg(e.getValue(n)),dg(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>ug(e.getValue(n),t.getValue(n))},gg={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Sp("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return pg.datetime;if("string"==typeof n&&(r=!0,n.split(cg).length>1))return pg.alphanumeric}return r?pg.text:pg.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Pp(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:pg[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting(l=>{const a=null==l?void 0:l.find(t=>t.id===e.id),s=null==l?void 0:l.findIndex(t=>t.id===e.id);let c,u=[],d=i?n:"desc"===o;var f;return c=null!=l&&l.length&&e.getCanMultiSort()&&r?a?"toggle":"add":null!=l&&l.length&&s!==l.length-1?"replace":a?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c?(u=[...l,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):u="toggle"===c?l.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===c?l.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],u})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?!!(l===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===l?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},hg=[Rp,eg,Kp,Yp,Mp,Wp,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Sp("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Hp.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Pp(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Hp[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},gg,Up,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Sp("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(o=n)?o:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=l;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},ng,rg,og,Jp];function mg(e){var t,n;const r=[...hg,...null!=(t=e._features)?t:[]];let o={_features:r};const i=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{});let l={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;l=null!=(t=null==e.getInitialState?void 0:e.getInitialState(l))?t:l});const a=[];let s=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:e=>{a.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=_p(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:jp(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},xp(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:jp(()=>[o._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const i=function(e,t,n,r){var o,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let s,c=null!=(o=null!=(i=l.id)?i:a?"function"==typeof String.prototype.replaceAll?a.replaceAll(".","_"):a.replace(/\./g,"_"):void 0)?o:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?s=l.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[l.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:s,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:jp(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},xp(e.options,"debugColumns")),getLeafColumns:jp(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[u]},xp(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),l=e;return i.columns=l.columns?t(l.columns,i,r+1):[],i})};return t(e)},xp(e,"debugColumns")),getAllFlatColumns:jp(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),xp(e,"debugColumns")),_getAllFlatColumnsById:jp(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),xp(e,"debugColumns")),getAllLeafColumns:jp(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),xp(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function bg(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?C.createElement(e,t):e:null;var n}function vg(e,t,n){let r,o=n.initialDeps??[],i=!0;function l(){var l,a,s;let c;n.key&&(null==(l=n.debug)?void 0:l.call(n))&&(c=Date.now());const u=e(),d=u.length!==o.length||u.some((e,t)=>o[t]!==e);if(!d)return r;let f;if(o=u,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(f=Date.now()),r=t(...u),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-f))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return!(null==n?void 0:n.onChange)||i&&n.skipInitialOnChange||n.onChange(r),i=!1,r}return l.updateDeps=e=>{o=e},l}function yg(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const wg=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},Og=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},_g=e=>e,Sg=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},Pg=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(Og(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(Og(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},jg={passive:!0},xg="undefined"==typeof window||"onscrollend"in window,Cg=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&xg?()=>{}:wg(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=r=>()=>{const{horizontal:l,isRtl:a}=e.options;o=l?n.scrollLeft*(a?-1:1):n.scrollTop,i(),t(o,r)},a=l(!0),s=l(!1);n.addEventListener("scroll",a,jg);const c=e.options.useScrollendEvent&&xg;return c&&n.addEventListener("scrollend",s,jg),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",s)}},Eg=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Rg=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const l=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class kg{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,n=this.indexFromElement(t);t.isConnected?this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this)):this.observer.unobserve(t)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:_g,rangeExtractor:Sg,onChange:()=>{},measureElement:Eg,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=vg(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=vg(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,t,n,r,o,i,l)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l}),{key:!1}),this.getMeasurements=vg(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l},a)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const c=this.measurementsCache.slice(0,s),u=new Array(i).fill(void 0);for(let e=0;e<s;e++){const t=c[e];t&&(u[t.lane]=e)}for(let o=s;o<e;o++){const e=r(o),i=this.laneAssignments.get(o);let s,d;const f="estimate"===l||a.has(e);if(void 0!==i&&this.options.lanes>1){s=i;const e=u[s],r=void 0!==e?c[e]:void 0;d=r?r.end+this.options.gap:t+n}else{const e=1===this.options.lanes?c[o-1]:this.getFurthestMeasurement(c,o);d=e?e.end+this.options.gap:t+n,s=e?e.lane:o%this.options.lanes,this.options.lanes>1&&f&&this.laneAssignments.set(o,s)}const p=a.get(e),g="number"==typeof p?p:this.options.estimateSize(o),h=d+g;c[o]={index:o,start:d,size:g,end:h,key:e,lane:s},u[s]=o}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=vg(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:o};let i=Dg(0,o,t=>e[t].start,n),l=i;if(1===r)for(;l<o&&e[l].end<n+t;)l++;else if(r>1){const a=Array(r).fill(0);for(;l<o&&a.some(e=>e<n+t);){const t=e[l];a[t.lane]=t.end,l++}const s=Array(r).fill(n+t);for(;i>=0&&s.some(e=>e>=n);){const t=e[i];s[t.lane]=t.start,i--}i=Math.max(0,i-i%r),l=Math.min(o,l+(r-1-l%r))}return{startIndex:i,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=vg(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),o=Math.min(this.options.count-1,n+t);return e>=r&&e<=o}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n;const r=this.measurementsCache[e];if(!r)return;const o=t-(this.itemSizeCache.get(r.key)??r.size);0!==o&&("smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,o,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,t)),this.notify(!1))},this.getVirtualItems=vg(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return yg(t[Dg(0,t.length-1,e=>yg(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),o=this.measurementsCache[e];if(!o)return;if("auto"===t)if(o.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(o.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const i="end"===t?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,o.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{const r=this.getOffsetForAlignment(e,t),o=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:o,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,t);if(!r)return;const[o,i]=r,l=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&((e,t)=>Math.abs(e-t)<1.01)(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return void(this.scrollState=null)}else this.scrollState.stableFrames=0,n&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior="auto",this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Dg=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},Mg="undefined"!=typeof document?C.useLayoutEffect:C.useEffect;function Ig(e){return function({useFlushSync:e=!0,...t}){const n=C.useReducer(()=>({}),{})[1],r={...t,onChange:(r,o)=>{var l;e&&o?i(n):n(),null==(l=t.onChange)||l.call(t,r,o)}},[o]=C.useState(()=>new kg(r));return o.setOptions(r),Mg(()=>o._didMount(),[]),Mg(()=>o._willUpdate()),o}({observeElementRect:Pg,observeElementOffset:Cg,scrollToFn:Rg,...e})}const Ng=32,Lg=["open","onClose","root","children"];function Tg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tg(Object(n),!0).forEach(function(t){Vg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ag=(0,C.forwardRef)(function(e,t){let{open:r,onClose:i,root:l=document.body,children:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Lg);const c=(0,C.useRef)(null),u=(0,C.useRef)(null);if(!r||!a)return null;const d=n("div",Fg(Fg({ref:c,className:"modal-module__overlay__qGmy7",onClick:e=>{e.target!==c.current&&u.current?.contains(e.target)||(e.stopPropagation(),i?.())}},s),{},{children:n("div",{ref:e=>{e&&(u.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:"modal-module__modal__SyCF2",onClick:e=>e.stopPropagation(),children:a})}));return o(d,l)});var zg="virtualTable-module__align-center__GE7hn",$g="virtualTable-module__align-left__UwmQP",Hg="virtualTable-module__align-right__BgN21",Bg="virtualTable-module__borders-all__4E7iX",Wg="virtualTable-module__borders-horizontal__sJHrp",qg="virtualTable-module__borders-vertical__vW5hC",Gg="virtualTable-module__bottom-border__Aqyxx",Ug="virtualTable-module__clickable__rairY",Kg="virtualTable-module__editable__vHC_D",Yg="virtualTable-module__error__Pc_YH",Xg="virtualTable-module__even-row__UtfmY",Jg="virtualTable-module__first-th-row__Ic3VG",Zg="virtualTable-module__input__URGVM",Qg="virtualTable-module__label__RRtAL",eh="virtualTable-module__margin-left-changing__DeOwh",th="virtualTable-module__medium__fWjBj",nh="virtualTable-module__modal-content__y8dAa",rh="virtualTable-module__right-border___sLGh",oh="virtualTable-module__root__oT8Aa",ih="virtualTable-module__row-button-trigger__qLWa9",lh="virtualTable-module__rowspan-content__uNqDw",ah="virtualTable-module__selected__LXpK4",sh="virtualTable-module__show-in-modal__v55Sn",ch="virtualTable-module__small__Pbe1H",uh="virtualTable-module__sticky__kLGF2",dh="virtualTable-module__success__xPKub",fh="virtualTable-module__table__GccG7",ph="virtualTable-module__table-container__Z27Uv",gh="virtualTable-module__td__INgoI",hh="virtualTable-module__th__xeEGg",mh="virtualTable-module__th-cell__r6ckx",bh="virtualTable-module__th-hidden-column__jr_ZK",vh="virtualTable-module__th-left-border__Ns0MX",yh="virtualTable-module__th-right-border__PR4eS",wh="virtualTable-module__tr__chmfp",Oh="virtualTable-module__vertical-align-center__Xun5O",_h="virtualTable-module__vertical-align-flex-end__wOSxq",Sh="virtualTable-module__vertical-align-flex-start__uBUX9",Ph="virtualTable-module__view-cell__bXl8D",jh="virtualTable-module__view-span__HfOpN";const xh={cell:({getValue:e,row:{index:o,original:i},column:{id:l,columnDef:a},table:s})=>{const c=e(),{meta:u}=a,d=s.options.meta,[f,p]=(0,C.useState)(c),[g,h]=(0,C.useState)(!1),[m,b]=(0,C.useState)(!1),v=(0,C.useRef)();v.current=()=>{b(!1)},(0,C.useEffect)(()=>{p(c)},[c]);const y=d?.additionalColumnsViews?.(l,c,i[l]?.payload);if(g&&u?.editable){const e=()=>{d?.updateData(o,l,f,i),h(!1)},r=(e,t)=>{p(e),t&&(d?.updateData(o,l,e,i),h(!1))};return n(rp,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:null!=y?.edit?y.edit(r,e):n(t,{children:n(au,{classes:{input:Zg},componentSize:"small",variant:"outlined",onChange:e=>r(e.target.value),onBlur:e,value:f??"",type:u.inputType,fullWidth:!0,autoFocus:!0})})})}const w=null!=y?.view?y.view:u?.valueFormat?u.valueFormat(c):void 0===u?.toFixed||Number.isNaN(parseFloat(c))?c:parseFloat(Number(c).toFixed(u.toFixed));return n(rp,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:r("div",{className:x()(Ph,u?.rowsAlign?S[`align${u?.rowsAlign}`]:void 0,u?.showInModal?sh:void 0,u?.onClick&&i[l]?.payload?Ug:void 0,i[l]?.fill?S[i[l].fill]:void 0,u?.editable?Kg:void 0,u?.verticalAlign?S[`verticalAlign${u?.verticalAlign}`]:void 0),onClick:u?.editable?()=>{h(!0)}:u?.showInModal?()=>{b(!0)}:u?.onClick&&i[l]?.payload?()=>u?.onClick?.(i[l]?.payload??{}):void 0,children:[n("span",{className:jh,children:w}),m&&n(Ag,{root:d?.tableContainerRef?.current,open:m,onClose:()=>v.current?.(),children:n(xf,{type:"panel",children:n("div",{className:nh,children:w})})})]})})}},Ch=(e,t)=>{const n=e.match(/(\d+|\D+)/g)||[],r=t.match(/(\d+|\D+)/g)||[],o=Math.max(n.length,r.length);for(let e=0;e<o;e++){const t=n[e]||"",o=r[e]||"",i=/^\d+$/.test(t),l=/^\d+$/.test(o);if(i&&l){const e=parseInt(t,10),n=parseInt(o,10);if(e!==n)return e-n}else{const e=t.localeCompare(o);if(0!==e)return e}}return 0};function Eh(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:o}=e,[i,l]=(0,C.useState)(t);(0,C.useEffect)(()=>{o(i)},[i]);const a=(0,C.useCallback)(()=>{l([void 0,void 0]),o([void 0,void 0])},[]);return r("div",{className:x()("dateFiltration-module__root__hOXOU"),children:[n(Zs,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:i,onValueChange:e=>{l(e)},tabIndex:-1}),n(rp,{label:"Сбросить",children:n(U,{onClick:a,className:x()("dateFiltration-module__button__kboWN"),variant:"text",size:"small",textSecondary:!0,icon:n(mi,{})})})]})}var Rh="numberFiltration-module__input___94YM";const kh=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function Dh(e){const{defaultValues:o=[-1/0,1/0],actionWithSelected:i}=e,[l,a]=(0,C.useState)(o[0]===-1/0&&o[1]===1/0?kh[0]:o[0]===o[1]?kh[3]:o[0]===-1/0?kh[2]:o[1]===1/0?kh[1]:kh[0]),[s,c]=(0,C.useState)(o),u=(e,t)=>{c(n=>"equal"===e?[t.length?+t:-1/0,t.length?+t:1/0]:"more"===e?[t.length?+t:-1/0,n[1]]:[n[0],t.length?+t:1/0])},d=(0,C.useCallback)(()=>{c([-1/0,1/0]),i([-1/0,1/0])},[]);return r("div",{className:x()("numberFiltration-module__root__k2DSM"),children:[n(os,{items:kh,componentSize:"small",variant:"filled",selected:l,onValueChange:e=>{if(e){const t=[...s];switch(e.value){case"more":t[1]=1/0;break;case"less":t[0]=-1/0;break;case"equal":const e=t[0]!==-1/0?t[0]:t[1];t[0]=e,t[1]=e}c(t),i(t),a(e)}},classes:{root:"numberFiltration-module__select__vQqEg"},tabIndex:-1}),n("div",{className:x()("numberFiltration-module__inputs-container__tjcwf"),children:"range"===l.value?r(t,{children:[n(au,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Rh},value:s[0]>-1/0&&s[0]<1/0?s[0]:"",onChange:e=>{u("more",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}}),n(au,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Rh},value:s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u("less",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})]}):n(au,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Rh},value:"more"===l.value?s[0]>-1/0&&s[0]<1/0?s[0]:"":s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u(l.value,e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})}),n(rp,{label:"Сбросить",children:n(U,{onClick:d,className:x()("numberFiltration-module__button__GIxRq"),variant:"text",size:"small",textSecondary:!0,icon:n(mi,{})})})]})}function Mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mh(Object(n),!0).forEach(function(t){Nh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lh(e){const{headerMeta:{sortable:o=!1,selectUnique:i=!1,sortType:l,sortAnotherName:a,filtrationByNumber:s=!1,filtrationByDate:c=!1,filtrationByValue:u=!1,valueFormat:d,toFixed:f},sortBy:p,setSortBy:g,filterBy:h,setFilterBy:m,headerName:b,containerRef:v,showUniqueValuesCount:y,leftAdditionalContent:w,rightAdditionalContent:O,children:_,rows:S,rowsForUniqueCount:P}=e,j=a??b,E=(0,C.useMemo)(()=>{const e=S.map(e=>({name:e[j]?d?d(e[j].value):void 0===f||Number.isNaN(parseFloat(e[j].value))?e[j].value?.toString()||"< нет значения >":parseFloat(Number(e[j].value).toFixed(f)).toString():"< нет значения >",value:e[j]?.value?.toString()||""})).sort((e,t)=>{const n=e.name.toString(),r=t.name.toString(),o="< нет значения >";return n===o?-1:r===o?1:Ch(n,r)}),t=[...e.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()];return t},[S,j,d,f]),R=(0,C.useMemo)(()=>{const e=P??S,t=new Set;e.forEach(e=>{const n=e?.[j];t.add(n?(n.value??"")?.toString():"")});const n=h.find(e=>e.columnName===j&&"value"===e.type),r=(n?.values??[]).map(e=>(e??"")?.toString());if(r.length>0){const e=new Set(r);let n=0;return t.forEach(t=>{e.has(t)&&(n+=1)}),n}return t.size},[P,S,j,h]),k=(0,C.useMemo)(()=>{const e={};return h.find(e=>e.columnName===j)?.values.forEach(t=>{e[t]=!0}),e},[h,j]),D=(0,C.useMemo)(()=>h.find(e=>e.columnName===j&&"numberRange"===e.type)?.values,[h,j]),M=(0,C.useMemo)(()=>h.find(e=>e.columnName===j&&"dateRange"===e.type)?.values,[h,j]),I=e=>()=>{g(t=>t.some(t=>t.columnName===j&&t.direction===e)?t.filter(t=>!(t.columnName===j&&t.direction===e)):t.some(e=>e.columnName===j)?t.map(t=>t.columnName===j?Ih(Ih({},t),{},{direction:e}):Ih({},t)):t.concat([{columnName:j,direction:e,sortType:l}]))},N=h.some(e=>e.columnName===j&&"value"===e.type&&e.uniqueFirstPerValue),L=Object.keys(k).length>0||N,T=p.some(e=>e.columnName===j&&"desc"===e.direction),F=p.some(e=>e.columnName===j&&"asc"===e.direction),{t:V}=hd(),A=[];return i&&(A.push({type:"divider",name:V("Уникальность значений")}),A.push({type:"item",name:V("Только уникальные"),icon:n(gl,{}),selected:N,onClick:()=>{m(e=>{const t=e.findIndex(e=>e.columnName===j&&"value"===e.type);if(-1!==t){const n=e[t],r=!n.uniqueFirstPerValue;return r||0!==n.values.length?e.map((e,n)=>n!==t?e:r?Ih(Ih({},e),{},{uniqueFirstPerValue:!0}):{columnName:e.columnName,type:e.type,values:e.values}):e.filter((e,n)=>n!==t)}return[...e,{columnName:j,type:"value",values:[],uniqueFirstPerValue:!0}]})}})),o&&(A.push({type:"divider",name:V("Сортировка")}),A.push({type:"item",name:V("По возрастанию"),icon:n(_l,{}),selected:p.some(e=>e.columnName===j&&"asc"===e.direction),onClick:I("asc")}),A.push({type:"item",name:V("По убыванию"),icon:n(xl,{}),selected:p.some(e=>e.columnName===j&&"desc"===e.direction),onClick:I("desc")})),r("div",{className:x()("headerDropdown-module__root__vO30T"),children:[w?.(j),_?.(y&&n("div",{children:`(${R})`})),O?.(j),(o||i||u||c||s)&&n(xo,{placement:"bottom-end",wrapTrigger:!0,root:v,description:r(t,{children:[s&&n(Dh,{defaultValues:D,actionWithSelected:e=>{m(t=>{if(e[0]===-1/0&&e[1]===1/0)return[...t.filter(e=>!(e.columnName===j&&"numberRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===j&&"numberRange"===e.type);return-1!==r?n[r]=Ih(Ih({},n[r]),{},{values:e}):n.push({columnName:j,type:"numberRange",values:e}),n}})}}),c&&n(Eh,{defaultValues:M,actionWithSelected:e=>{m(t=>{if(void 0===e[0]||void 0===e[1])return[...t.filter(e=>!(e.columnName===j&&"dateRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===j&&"dateRange"===e.type);return-1!==r?n[r]=Ih(Ih({},n[r]),{},{values:e}):n.push({columnName:j,type:"dateRange",values:e}),n}})}}),u&&n("div",{className:x()("headerDropdown-module__checklist-wrap__7C0pz"),children:n(af,{items:E,selected:k,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e);m(e=>{if(0===t.length)return e.map(e=>e.columnName!==j||"value"!==e.type?e:e.uniqueFirstPerValue?Ih(Ih({},e),{},{values:[]}):null).filter(e=>null!==e);const n=[...e],r=n.findIndex(e=>e.columnName===j&&"value"===e.type);return-1!==r?n[r]=Ih(Ih({},n[r]),{},{values:t}):n.push({columnName:j,type:"value",values:t}),n})}})}),(o||i)&&n("div",{children:n(Za,{items:A})})]}),children:n(rp,{label:V("Сортировка и фильтрация"),placement:"bottom-end",root:v,children:n(U,{size:"small",variant:"text",textSecondary:!L&&!T&&!F,icon:n(L?Ti:T?xl:F?_l:No,{})})})})]})}function Th(e,t){const n=new Set,r=[];return e.forEach(e=>{const o=e[t]?(e[t].value||"")?.toString():"";n.has(o)||(n.add(o),r.push(e))}),r}const Fh=e=>{if(e)return{editable:e.editable,sortable:e.sortable,sortType:e.sortType,sortAnotherName:e.sortAnotherName,filtrationByNumber:e.filtrationByNumber,filtrationByDate:e.filtrationByDate,filtrationByValue:e.filtrationByValue,selectUnique:e.selectUnique,width:e.width,headerAlign:e.headerAlign,rowsAlign:e.rowsAlign,valueFormat:e.valueFormat,showInModal:e.showInModal,onClick:e.onClick,label:e.label,verticalAlign:e.verticalAlign,toFixed:e.toFixed,inputType:e.inputType}},Vh=(e,t)=>e.map(e=>({id:e.id,accessorKey:e.accessorKey,accessorFn:e.accessorKey?t=>t[e.accessorKey]?.value:void 0,header:()=>e.label,meta:Fh(t?.accessorKey?t:e),columns:e.columns?Vh(e.columns,e):void 0})),Ah=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(Ah(e,t+1,n)):[],zh=(e,t,n)=>e[t-1]&&!e[t-1].headers[n].column.columnDef.meta?.label&&e[t-1].headers[n].column.columnDef.id!==e[t].headers[n].column.columnDef.id?[e[t-1].headers[n]].concat(zh(e,t-1,n)):[],$h=(e,t,n)=>e[t+1]&&zh(e,t+1,n).length?[e[t+1].headers[n]].concat($h(e,t+1,n)):[],Hh=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(Hh(e,t-1)):[],Bh=(e,t)=>{if(t.length){const n=t[t.length-1],r="dateRange"===n.type?ls()(n.values[0]):null,o="dateRange"===n.type?ls()(n.values[1]):null,i=n.values.length?e.filter(e=>{const t="dateRange"===n.type?ls()(e[n.columnName].value):null;return(e[n.columnName]?"dateRange"===n.type?(t.isAfter(r)||t.isSame(r))&&(t.isBefore(o)||t.isSame(o)):"numberRange"===n.type?e[n.columnName].value>=n.values[0]&&e[n.columnName].value<=n.values[1]:n.values.includes((e[n.columnName].value||"")?.toString()):n.values.includes(""))||1===e.isNew?.value}):e;return Bh(i,t.slice(0,t.length-1))}return e},Wh=(e,t)=>{if(t.length){const n=t[t.length-1],r=e.sort((e,t)=>{const r=e[n.columnName]?.value?.toString()??"",o=t[n.columnName]?.value?.toString()??"";if("alphanumeric"===n.sortType){const e=Ch(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return Wh(r,t.slice(0,t.length-1))}return e};function qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qh(Object(n),!0).forEach(function(t){Uh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kh=(0,C.forwardRef)((e,o)=>{const{rows:i,columns:l,additionalColumnsViews:a,onChangeCell:s,cellWidth:c,rowButtons:u,fixedColumnsCount:d=0,headerRowHeight:f=[Ng],bodyRowHeight:p=Ng,rowActionWidth:g=77,classes:h,dynamicRowHeight:m=!1,height:b,scrollToBottom:v,useTableContainerAsRootForPopup:y,size:w="small",borders:O="horizontal",showUniqueValuesCount:_=!1,globalFilters:P,globalSorts:j,onFiltersChange:E,onSortsChange:R,leftAdditionalHeaderContent:k,rightAdditionalHeaderContent:D,showRowsNumbers:M}=e,I=d+(M?1:0),[N,L]=(0,C.useState)(P??[]),[T,F]=(0,C.useState)([...j??[],{columnName:"isNew",direction:"desc"}]),V=(0,C.useRef)(null),A=(0,C.useMemo)(()=>M?`rowNumber_${Ve()}`:null,[M]),z=(0,C.useMemo)(()=>{if(!A)return Vh(l);const e=t=>Gh(Gh({id:A},t?.columns?.length?void 0:{accessorKey:A}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(l[0]),...l];return Vh(t)},[l,A]),$=(0,C.useMemo)(()=>{const e=[...i],t=N.filter(e=>{if("value"===e.type&&e.uniqueFirstPerValue&&0===e.values.length)return!0;const t="dateRange"===e.type?ls()(e.values[0]):null,n="dateRange"===e.type?ls()(e.values[1]):null;return i.some(r=>{const o="dateRange"===e.type?ls()(r[e.columnName].value):null;return r[e.columnName]?"dateRange"===e.type?(o.isAfter(t)||o.isSame(t))&&(o.isBefore(n)||o.isSame(n)):"numberRange"===e.type?r[e.columnName].value>=e.values[0]&&r[e.columnName].value<=e.values[1]:e.values.includes((r[e.columnName].value||"")?.toString()):e.values.includes("")})}),n=t.length?Bh(e,t):N.some(e=>"numberRange"===e.type&&e.values.some(e=>e!==1/0&&e!==-1/0)||"dateRange"===e.type&&e.values.some(e=>!ls()(e).isSame(ls()(0))&&!ls()(e).isSame(ls()(Number.MAX_SAFE_INTEGER))))?[]:e;let r=T.length?Wh(n,T):n;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(r=Th(r,e.columnName));const o=A?r.map((e,t)=>Gh(Gh({},e),{},{[A]:{value:t+1}})):r;return window.dispatchEvent(new CustomEvent("filteringRows",{detail:o})),o},[i,T,N,A]),H=(0,C.useMemo)(()=>{const e=[...i];return Array.from({length:N.length+1},(t,n)=>Bh(e,N.slice(0,n)))},[i,N]),B=(0,C.useMemo)(()=>c??(e=>A&&0===e?8*$.length.toString().length+24:z[e]?.meta?.width??200),[c,z,$,A]),W=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=C.useState(()=>({current:mg(t)})),[r,o]=C.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:$,columns:z,defaultColumn:xh,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>jp(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const l=[];for(let s=0;s<t.length;s++){const c=Dp(e,e._getRowId(t[s],s,i),t[s],s,o,void 0,null==i?void 0:i.id);var a;n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return l};return n.rows=r(t),n},xp(e.options,"debugTable",0,()=>e._autoResetPageIndex())),initialState:{columnPinning:{left:z.filter((e,t)=>t<I).map(e=>e.id).filter(e=>e).map(e=>e)??[]}},meta:{updateData:(e,t,n,r)=>{s?.(e,t,n,r)},tableContainerRef:V,additionalColumnsViews:a}}),{rows:q}=W.getRowModel(),G=W.getHeaderGroups(),K=Ig({count:q.length,getScrollElement:()=>V?.current,estimateSize:()=>p,overscan:5}),Y=Ig({horizontal:!0,count:G[0]?.headers.length??1,rangeExtractor:(0,C.useCallback)(e=>{const t=[...Array(I)].map((e,t)=>t);return[...new Set([...t,...Sg(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>V?.current,estimateSize:B,overscan:5}),X=(0,C.useMemo)(()=>[...Array(I)].reduce((e,t,n)=>e+B(n),0),[I,B]),J=(0,C.useMemo)(()=>{const e=G.length-f.length,t=[...f];if(e>0)for(let n=0;n<e;n++)t.push(Ng);return t},[f,G]),Z=(0,C.useMemo)(()=>J.reduce((e,t,n)=>n<G.length?e+t:e,0),[J,G]),Q=(0,C.useCallback)(e=>J.reduce((t,n,r)=>r<e?t+n:t,0),[J,G]),ee=K.getTotalSize(),te=Y.getTotalSize(),ne=()=>{L([])},re=()=>{F([{columnName:"isNew",direction:"desc"}])};(0,C.useImperativeHandle)(o,()=>({resetFilters:ne,resetSorts:re})),(0,C.useEffect)(()=>{if(V?.current){const e=V?.current,t=e.querySelector(`.${rh}`);if(t){const n=e.clientWidth,r=te+(u?g:0);t.style.left=`${n>r?r:n}px`}}},[V?.current?.clientWidth,te,u,g]),(0,C.useEffect)(()=>{if(V?.current){const e=V?.current,t=e.querySelector(`.${Gg}`);if(t){const n=e.clientHeight,r=ee+Z;t.style.top=`${n>r?r:n}px`}}},[V?.current?.clientHeight,ee]),(0,C.useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${eh}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return V?.current&&(V.current.addEventListener("scroll",e),v&&V.current.scrollTo(0,V.current.scrollHeight)),()=>{V?.current&&V.current.removeEventListener("scroll",e)}},[V,v]);const oe=K.getVirtualItems(),ie=Y.getVirtualItems(),le=ie[ie.length-1]?.index,ae=(0,C.useMemo)(()=>new Map(oe.map(e=>[e.index,e.size])),[oe]),se=(0,C.useCallback)(e=>ae.get(e)??p,[p,ae]),ce=(0,C.useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=Math.min(q.length-1,e+n-1),o=r-e+1;let i=0;for(let t=e;t<=r;t+=1)i+=se(t);const l="all"===O||"horizontal"===O?Math.max(0,o-1):0;return Math.max(0,i-l)},[O,se,q.length]),ue=(0,C.useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=q[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[q]),de=(0,C.useCallback)((e,t)=>1===e?.isNew?.value?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[]),fe=(0,C.useMemo)(()=>{const e=q.length,t=new Map;return q.forEach((n,r)=>{const o=(n.getAllCells().reduce((e,t)=>Math.max(e,Math.max(1,n.original?.[t.column.id]?.rowspan??1)),1)-1)*(e+1)+(e-r+1);t.set(r,o)}),t},[q]),pe=(0,C.useMemo)(()=>q.length*q.length+q.length+10,[q.length]),ge=e=>{const o=e.column.columnDef.meta?.label;if("string"==typeof o){const i=o.split(/\r\n|\\r\\n|\n|\\n/);if(i.length>1)return n(t,{children:i.map((t,o)=>r(C.Fragment,{children:[t,o<i.length-1&&n("br",{})]},`${e.id}_${o}`))})}return bg(e.column.columnDef.header,e.getContext())},[he,me]=ie.length>0?[I&&ie[I].index!==I?ie[I].start-X:ie[0].start,te-ie[ie.length-1].end]:[0,0];return(0,C.useEffect)(()=>{E?.(N)},[N]),(0,C.useEffect)(()=>{R?.(T.filter(e=>"isNew"!==e.columnName))},[T]),n("div",{className:x()(oh,S[w],S[`borders${be=O,be[0].toUpperCase()+be.substring(1)}`],h?.root),style:b?{height:b}:void 0,children:r("div",{ref:V,className:x()(ph,"styledScroll"),children:[r("div",{className:fh,style:{height:`${ee+Z}px`},children:[n("div",{style:{position:"sticky",top:0,zIndex:pe},children:G.map((e,t)=>{const o=e=>{const t=e.column.columnDef.meta,o=t?.sortAnotherName??e.column.columnDef.id??e.id,i=N.findIndex(e=>e.columnName===o),l=-1===i?$:H[i];return n("div",{className:x()(mh),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==A&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&_)?n(Lh,{headerMeta:t,sortBy:T,setSortBy:F,filterBy:N,setFilterBy:L,rows:l,rowsForUniqueCount:$,headerName:e.column.columnDef.id??e.id,containerRef:y?V:void 0,showUniqueValuesCount:_,leftAdditionalContent:k,rightAdditionalContent:D,children:n=>r("div",{className:x()(Qg,t?.headerAlign?S[`align${t?.headerAlign}`]:$g),children:[ge(e),n]})}):n("div",{className:x()(Qg,t?.headerAlign?S[`align${t?.headerAlign}`]:$g),children:ge(e)})})};return r(C.Fragment,{children:[[...Array(I)].map((r,i)=>{const l=e.headers[i],a=Ah(e.headers,i,le),s=$h(G,t,i);return n("div",{className:x()(hh,0===t?Jg:void 0,!s.length&&i!==e.headers.length-1&&yh,0===i&&vh,s.length&&!a.length&&bh,eh),style:{zIndex:pe+1,width:`${B(i)}px`,height:`${J[t]}px`,transform:`translateX(${Array.from({length:i},(e,t)=>B(t)).reduce((e,t)=>e+t,0)}px) translateY(${Q(t)}px)`},children:o(l)},`${e.id}-${l.id}`)}),ie.map(r=>{if(r.index>I-1){const i=e.headers[r.index],l=Ah(e.headers,r.index,le),a=Hh(e.headers,r.index),s=$h(G,t,r.index),c=zh(G,t,r.index),u=l.length||a.length?r.size+l.reduce((e,t)=>e+(t.column.columnDef.meta?.width??0),0):r.size,d=l.length||a.length?pe+l.length+2:void 0,f=c.length?J[t]+c.reduce((e,n,r)=>e+(J[t-r-1]??0),0):J[t],p=c.length?Q(t)-c.reduce((e,n,r)=>e+(J[t-r-1]??0),0):Q(t);return n("div",{className:x()(hh,0===t&&Jg,!s.length&&r.index!==e.headers.length-1&&yh,0===r.index&&vh,s.length&&!l.length&&bh),style:{width:`${u}px`,zIndex:d,height:`${f}px`,transform:`translateX(${r.start+(I?-1:0)}px) translateY(${p}px)`,borderTop:"none"!==O&&0===p?"1px solid var(--border-color)":void 0},children:o(i)},`${e.id}-${i.id}`)}return null}),!!u&&n("div",{className:x()(hh,0===t?Jg:void 0),style:{width:`${g}px`,height:`${J[t]}px`,transform:`translateX(${te+(I?-2:0)}px) translateY(${Q(t)}px)`}})]},e.id)})}),oe.map(e=>{const t=q[e.index];return r("div",{"data-index":e.index,ref:m?K.measureElement:void 0,className:x()(wh,e.index%2!=0&&Xg,1===t.original?.isNew?.value&&ah),style:Gh(Gh({zIndex:fe.get(e.index)??1},!m&&{height:e.size}),{},{transform:"translateY("+(Z+e.start-K.options.scrollMargin)+"px)"}),children:[n("div",{style:{width:`${he}px`}}),ie.map(r=>{const o=t.getAllCells()[r.index],i="left"===o.column.getIsPinned(),l=t.original?.[o.column.id],a=Math.max(1,l?.rowspan??1),s=ue(e.index,o.column.id),c=a>1&&!s;return n("div",{"data-col-index":r.index,className:x()(gh,i&&uh),style:Gh(Gh({},i&&{left:r.start,marginLeft:0===r.index?-1:0}),{},{width:`${r.size}px`},!m&&!c&&{overflow:"hidden"}),"data-index":e.index,children:!s&&(c?n("div",{className:lh,style:{height:`${ce(e.index,a)}px`,backgroundColor:de(t.original,e.index)},children:bg(o.column.columnDef.cell,o.getContext())}):bg(o.column.columnDef.cell,o.getContext()))},`cell-${e.key}-${r.key}`)}),!!u&&n("div",{className:x()(gh),style:Gh({width:`${g}px`,justifyContent:"flex-start",padding:"4px"},!m&&{overflow:"hidden"}),children:u?.(t.original)?.map(r=>n(C.Fragment,{children:r.template?r.template(r):n(rp,{label:r.title,placement:"top",wrapTrigger:!0,classes:{trigger:ih},children:n(U,{onClick:()=>r.onClick?.(e.index,t.original),size:"small",variant:"text",icon:r.icon})})},r.title))}),n("div",{style:{width:`${me}px`}})]},`row-${e.key}`)})]}),"none"!==O&&r(t,{children:[n("div",{className:rh,style:{height:`${ee+Z}px`}}),n("div",{className:Gg,style:{width:`${te}px`}})]})]})});var be});var Yh="treeViewItem-module__selectable__ZnWqc",Xh="treeViewItem-module__selected__uwOfq";const Jh=(0,C.memo)(function e({title:t,value:o,searchValue:i,selected:l,onSelect:a,type:s,isSelectable:c,startIcons:u,children:d}){const[f,p]=(0,C.useState)(!1);(0,C.useEffect)(()=>{p(!!i)},[i]);const g=!!d?.length,h=s&&u?.[s],m=l[o];return r("div",{children:[r("div",{className:x()("treeViewItem-module__item__Ddenr",{[Yh]:c}),onClick:()=>{c&&a?a(o):p(!f)},children:[g&&n(Zi,{}),r("div",{className:x()("treeViewItem-module__title___JZMU",{[Xh]:m}),children:[h,n(ge,{variant:"subtitle2",children:t}),c&&n("span",{className:"treeViewItem-module__select-icon__Ma7T6",children:n(m?Ei:ko,{})})]})]}),f&&g&&n("div",{className:"treeViewItem-module__children__SBb_p",children:d.map(t=>n(e,{title:t.name,value:t.id,children:t.children,selected:l,searchValue:i,type:t.type,isSelectable:t.isSelectable,startIcons:u,onSelect:a},t.id))})]})});function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zh(Object(n),!0).forEach(function(t){em(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function em(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tm=(0,C.memo)(function({data:e,selected:o,startIcons:i,onSelect:l,withSearch:a=!1}){const[s,c]=(0,C.useState)(""),u=(0,C.useCallback)(e=>c(e.target.value),[]),d=(0,C.useMemo)(()=>o.reduce((e,t)=>(e[t]=!0,e),{}),[o]),f=(0,C.useMemo)(()=>((e,t)=>{const n=t.toLowerCase(),r=(e,t)=>{if(t.name.toLowerCase().includes(n))return e.push(t),e;if(Array.isArray(t.children)){const n=t.children.reduce(r,[]);n.length&&e.push(Qh(Qh({},t),{},{children:n}))}return e};return e.reduce(r,[])})(e,s),[e,s]);return r(t,{children:[a&&n(Ed,{variant:"outlined",value:s,fullWidth:!0,onChange:u,classes:{root:"treeView-module__search__CptHY"}}),n("div",{className:"styledScroll",children:f.map(({id:e,name:t,children:r})=>n(Jh,{title:t,value:e,searchValue:s,children:r,startIcons:i,onSelect:l,selected:d},e))})]})});var nm="pairs-module__labels-with-borders__iC6y_",rm="pairs-module__row-container-borders__H3rCB",om="pairs-module__values-with-borders__ssGZ0";function im(e){const{label:t}=e,[r,o]=(0,C.useState)(t);return n(rp,{label:r,children:n(ge,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{o(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}function lm(e){const{pairs:o,column1Width:i="50%",column2Width:l="50%",showBorder:a,minRowHeight:s,classes:c}=e;return n("div",{className:x()(c?.root),children:o.map((e,o)=>n("div",{style:{minHeight:s,display:"flex"},className:x()(c?.rowContainer,{[rm]:a}),children:e&&r(t,{children:[n("div",{className:x()("pairs-module__labels-container__AKW8x",c?.labelsContainer,{[nm]:a}),style:{width:i,minWidth:i},children:n(ge,{className:"pairs-module__dim-typography__CX_Sf",children:e.label})}),n("div",{style:{width:l,minWidth:l},className:x()("pairs-module__values-container__a4t60",c?.valuesContainer,{[om]:a}),children:n(im,{label:e.value})})]})},o))})}function am(e){const{surfaceType:t="primary",title:o,actions:i,children:l,classes:a}=e;return r(xf,{type:t,classes:{root:x()("card-module__root__uGlLT",a?.root)},children:[(!!o||!!i)&&r("div",{className:"card-module__header__NdV6G",children:[o??n("div",{}),!!i&&n("div",{className:x()("card-module__actions__ctfFt",a?.actions),children:i})]}),n("div",{className:x()(a?.body),children:l})]})}var sm="chip-module__active__wQcQS",cm="chip-module__clickable__dOcCr",um="chip-module__filled__LKP4O",dm="chip-module__icon__yybCP",fm="chip-module__icon-clickable__BPoAa",pm="chip-module__icon-left__LhniG",gm="chip-module__icon-right__CnqJ6",hm="chip-module__label__RySGy",mm="chip-module__medium__RRnyf",bm="chip-module__outlined__HHje4",vm="chip-module__root__QN7P0",ym="chip-module__secondary__yquCM",wm="chip-module__small__UbquU",Om="chip-module__state-layer__AGbiC",_m="chip-module__with-icon__ORESD";const Sm=e=>{const{variant:t="filled",size:o="medium",icon:i,iconPlacement:l="right",secondary:a,onClick:s,onIconClick:c,children:u,classes:d}=e,f=c?"button":"span";return n("div",{className:x()(vm,P[t],P[o],!!i&&_m,"left"===l?pm:gm,a&&ym,s&&cm,d?.root),onClick:s,children:r("span",{className:x()(Om,d?.stateLayer),children:[u&&n("span",{className:x()(hm,d?.label),children:u}),i&&n(f,{className:x()(dm,c&&fm,d?.icon),onClick:e=>{e.stopPropagation(),c?.()},"aria-label":"Удалить",children:i})]})})},Pm="nntc-ui-base-styles",jm=(0,C.createContext)(void 0);function xm(){return(0,C.useContext)(jm)??null}function Cm(){return xm()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function Em({children:e}){const[t,r]=(0,C.useState)(()=>function(){if("undefined"==typeof window)return"light";try{const e=localStorage.getItem("theme");if("light"===e||"dark"===e||"darkBlue"===e)return e}catch{}return window.matchMedia?.("(prefers-color-scheme: dark)")?.matches?"dark":"light"}());(0,C.useEffect)(()=>{let e=document.getElementById(Pm);e||(e=document.createElement("style"),e.id=Pm,document.head.appendChild(e)),e.textContent=":root {\n --text-headline1-size: 96px;\n --text-headline1-weight: 300;\n --text-headline1-height: 112px;\n --text-headline1-letter: -1.5px;\n\n --text-headline2-size: 60px;\n --text-headline2-weight: 300;\n --text-headline2-height: 72px;\n --text-headline2-letter: -0.5px;\n\n --text-headline3-size: 48px;\n --text-headline3-weight: 400;\n --text-headline3-height: 56px;\n --text-headline3-letter: normal;\n\n --text-headline4-size: 34px;\n --text-headline4-weight: 400;\n --text-headline4-height: 36px;\n --text-headline4-letter: normal;\n\n --text-headline5-size: 24px;\n --text-headline5-weight: 400;\n --text-headline5-height: 24px;\n --text-headline5-letter: 0.18px;\n\n --text-headline6-size: 20px;\n --text-headline6-weight: 500;\n --text-headline6-height: 24px;\n --text-headline6-letter: 0.15px;\n\n --text-headline7-size: 20px;\n --text-headline7-weight: 400;\n --text-headline7-height: 24px;\n --text-headline7-letter: 0.15px;\n\n --text-subtitle1-size: 16px;\n --text-subtitle1-weight: 400;\n --text-subtitle1-height: 24px;\n --text-subtitle1-letter: 0.15px;\n\n --text-subtitle2-size: 14px;\n --text-subtitle2-weight: 400;\n --text-subtitle2-height: 24px;\n --text-subtitle2-letter: 0.1px;\n\n --text-body1-size: 16px;\n --text-body1-weight: 400;\n --text-body1-height: 24px;\n --text-body1-letter: 0.5px;\n\n --text-body2-size: 14px;\n --text-body2-weight: 400;\n --text-body2-height: 20px;\n --text-body2-letter: 0.25px;\n\n --text-button-size: 14px;\n --text-button-weight: 500;\n --text-button-height: 20px;\n --text-button-letter: 0.1px;\n\n --text-caption-size: 12px;\n --text-caption-weight: 400;\n --text-caption-height: 16px;\n --text-caption-letter: 0.4px;\n\n --text-overline-size: 10px;\n --text-overline-weight: 500;\n --text-overline-height: 16px;\n --text-overline-letter: 1.5px;\n}\n\n* {\n box-sizing: border-box;\n}\n\ninput[type='password']::-ms-reveal {\n display: none;\n height: 100%;\n opacity: 1;\n}\n\n.styledScroll {\n margin-right: -16px !important;\n margin-bottom: -16px !important;\n overflow: scroll;\n}\n\n/* общая зона скроллбара */\n.styledScroll::-webkit-scrollbar {\n width: 16px;\n height: 16px;\n background-color: transparent;\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n\n/* зона перетаскивания */\n.styledScroll::-webkit-scrollbar-thumb {\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n\n/* уголок между горизонтальным и вертикальным скроллбарами */\n.styledScroll::-webkit-scrollbar-corner {\n background: transparent;\n}\n\n/* зона трека */\n.styledScroll::-webkit-scrollbar-track {\n background-color: transparent;\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n\nhtml,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n color: var(--theme-text-primary);\n background-color: var(--theme-surface-layout);\n transition:\n background-color 0.3s ease,\n color 0.3s ease;\n}\n\nbody {\n font-family: Roboto, sans-serif;\n font-size: var(--text-body2-size);\n font-weight: var(--text-body2-weight);\n line-height: var(--text-body2-height);\n letter-spacing: var(--text-body2-letter);\n}\n"},[]),(0,C.useEffect)(()=>{const e={light:":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-background: #ffffff;\n --theme-surface-modal: #ffffff;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: #ffffff;\n\n --theme-modal-shadow-background: rgba(255, 255, 255, 0.5);\n --theme-modal-background: #ffffff;\n\n --theme-divider: rgba(0, 0, 0, 0.12);\n\n --theme-text-primary: rgba(0, 0, 0, 0.87);\n --theme-text-secondary: rgba(0, 0, 0, 0.64);\n --theme-text-inactive: rgba(0, 0, 0, 0.32);\n --theme-text-button-primary: rgba(0, 0, 0, 0.72);\n --theme-text-button-invert: #ffffff;\n\n --theme-icon-primary: rgba(0, 0, 0, 0.64);\n --theme-icon-secondary: rgba(0, 0, 0, 0.32);\n --theme-icon-hover: #eeeeee;\n --theme-icon-hover-on-selected: #e0e0e0;\n\n --theme-accent: #03a9f4;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #03a9f4;\n\n --theme-table-background: #ffffff;\n --theme-table-header: #f5f5f5;\n --theme-table-even-row: #f5f5f5;\n --theme-table-hover-row: #f5f5f5;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(215, 215, 215, 0.9);\n\n --theme-alert-default-color: rgba(0, 0, 0, 0.87);\n --theme-alert-default-background: #ffffff;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: ##fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(255, 255, 255, 0.04);\n --theme-overlay-8: rgba(255, 255, 255, 0.08);\n --theme-overlay-10: rgba(255, 255, 255, 0.1);\n --theme-overlay-12: rgba(255, 255, 255, 0.12);\n\n --theme-button-elevated: rgba(3, 169, 244, 0.04);\n --theme-button-tonal: rgba(3, 169, 244, 0.16);\n\n --theme-input-filled: #f5f5f5;\n --theme-input-filled-hover: #eeeeee;\n\n --theme-input-border: rgba(0, 0, 0, 0.4);\n --theme-input-border-hover: rgba(0, 0, 0, 0.8);\n\n --theme-selection-border: rgba(0, 0, 0, 0.6);\n --theme-selection-border-disabled: rgba(0, 0, 0, 0.32);\n --theme-selection-hover: rgba(0, 0, 0, 0.04);\n --theme-selection-focused: rgba(0, 0, 0, 0.12);\n --theme-selection-pressed: rgba(0, 0, 0, 0.1);\n --theme-selection-selected-hover: rgba(3, 169, 244, 0.04);\n --theme-selection-selected-focused: rgba(3, 169, 244, 0.12);\n --theme-selection-selected-pressed: rgba(3, 169, 244, 0.1);\n\n --theme-date-range: rgba(3, 169, 244, 0.12);\n\n --theme-thumb: rgba(0, 0, 0, 0.16);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n",dark:":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-background: #2b2b2b;\n --theme-surface-modal: #373737;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: #515151;\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #373737;\n\n --theme-divider: rgba(255, 255, 255, 0.24);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.24);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #424242;\n --theme-table-header: #515151;\n --theme-table-even-row: #494949;\n --theme-table-hover-row: #494949;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n\n --theme-button-elevated: #424242;\n --theme-button-tonal: #435864;\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.16);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n",darkBlue:":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-background: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: rgba(255, 255, 255, 0.08);\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #14212e;\n\n --theme-divider: rgba(255, 255, 255, 0.12);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.12);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #14212e;\n --theme-table-header: #28323e;\n --theme-table-even-row: #1f2a36;\n --theme-table-hover-row: #1f2a36;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n\n --theme-button-elevated: #14212e;\n --theme-button-tonal: #435864;\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.16);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n"};let n=document.getElementById("theme-style");n||(n=document.createElement("style"),n.id="theme-style",document.head.appendChild(n)),n.textContent=e[t]??e.light},[t]),(0,C.useEffect)(()=>{let e=null;try{e=localStorage.getItem("theme")}catch{}if("light"===e||"dark"===e||"darkBlue"===e)return;const t=window.matchMedia?.("(prefers-color-scheme: dark)");if(!t)return;const n=e=>{r(e.matches?"dark":"light")};return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]);const o={theme:t,toggleTheme:()=>{r(e=>{const t="light"===e?"dark":"dark"===e?"darkBlue":"light";try{localStorage.setItem("theme",t)}catch{}return t})},setTheme:e=>{r(e);try{localStorage.setItem("theme",e)}catch{}}};return n(jm.Provider,{value:o,children:e})}export{ko as AddIcon,Ki as AlertIcon,No as ArrowDropDownIcon,Vo as ArrowDropUpIcon,Ho as AttachIcon,Go as BarChartIcon,oa as BookmarkAddIcon,ea as BookmarkIcon,U as Button,Fa as ButtonsGroup,am as Card,Le as Checkbox,we as CheckboxDeselectedIcon,Pe as CheckboxIcon,Ee as CheckboxSeveralIcon,af as Checklist,oi as ChevronLeftIcon,si as ChevronRightIcon,Sm as Chip,fi as CircleFilledIcon,mi as CloseIcon,Hc as ColorPicker,wi as DateRangeIcon,Zs as DateTime,Pi as DeleteIcon,Ei as DoneIcon,fa as DownloadIcon,Hl as EditIcon,sa as ExportTableIcon,Mi as FileUploadIcon,zi as FilterClearIcon,Ti as FilterIcon,Xl as FullScreenOffIcon,Gl as FullScreenOnIcon,Wi as InfoIcon,au as Input,Zi as KeyboardArrowDownIcon,Cf as Layout,nl as ListIcon,Za as Menu,Ag as Modal,ll as MoreVerticalIcon,gf as MultiSelect,lm as Pairs,wa as PointIcon,xo as Popover,Of as RadioButton,Xo as RadioDeselectedIcon,ei as RadioSelectedIcon,ul as SearchIcon,Ed as SearchInput,os as Select,gl as SelectUniqueIcon,vl as SettingsIcon,_l as SortDownIcon,xl as SortUpIcon,xf as Surface,kl as TableChartIcon,Op as Tabs,Em as ThemeProvider,rp as Tooltip,tm as TreeView,ge as Typography,Nl as UploadIcon,Kh as VirtualTable,ma as VisibilityIcon,Vl as WellIcon,Md as WrapForLabel,xm as useTheme,Cm as useThemeWithFallback,Ng as virtualTableDefaultRowHeight};
2
+ import*as e from"react";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import{createPortal as o,flushSync as i}from"react-dom";var l={353(e){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",l="day",a="week",s="month",c="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,l=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-l:l-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:u,w:a,d:l,D:d,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",y={};y[v]=h;var w="$isDayjsObject",O=function(e){return e instanceof j||!(!e||!e[w])},S=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var l=t.split("-");if(!o&&l.length>1)return e(l[0])}else{var a=t.name;y[a]=t,o=a}return!r&&o&&(v=o),o||!r&&v},_=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new j(n)},P=b;P.l=S,P.i=O,P.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var j=function(){function h(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=h.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return P},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return _(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<_(e)},m.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,c=!!P.u(t)||t,f=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(l)},g=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,m=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case u:return c?p(1,0):p(31,11);case s:return c?p(1,m):p(0,m+1);case a:var y=this.$locale().weekStart||0,w=(h<y?h+7:h)-y;return p(c?b-w:b+(6-w),m);case l:case d:return g(v+"Hours",0);case i:return g(v+"Minutes",1);case o:return g(v+"Seconds",2);case r:return g(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var a,c=P.p(e),f="set"+(this.$u?"UTC":""),p=(a={},a[l]=f+"Date",a[d]=f+"Date",a[s]=f+"Month",a[u]=f+"FullYear",a[i]=f+"Hours",a[o]=f+"Minutes",a[r]=f+"Seconds",a[n]=f+"Milliseconds",a)[c],g=c===l?this.$D+(t-this.$W):t;if(c===s||c===u){var h=this.clone().set(d,1);h.$d[p](g),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](g);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[P.p(e)]()},m.add=function(n,c){var d,f=this;n=Number(n);var p=P.p(c),g=function(e){var t=_(f);return P.w(t.date(t.date()+Math.round(e*n)),f)};if(p===s)return this.set(s,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return g(1);if(p===a)return g(7);var h=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,m=this.$d.getTime()+n*h;return P.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,l=this.$m,a=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return P.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return P.s(t.$y,4,"0");case"M":return a+1;case"MM":return P.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return P.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return P.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,l,!0);case"A":return h(i,l,!1);case"m":return String(l);case"mm":return P.s(l,2,"0");case"s":return String(t.$s);case"ss":return P.s(t.$s,2,"0");case"SSS":return P.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,f){var p,g=this,h=P.p(d),m=_(n),b=(m.utcOffset()-this.utcOffset())*e,v=this-m,y=function(){return P.m(g,m)};switch(h){case u:p=y()/12;break;case s:p=y();break;case c:p=y()/3;break;case a:p=(v-b)/6048e5;break;case l:p=(v-b)/864e5;break;case i:p=v/t;break;case o:p=v/e;break;case r:p=v/1e3;break;default:p=v}return f?p:P.a(p)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return y[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return P.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},h}(),x=j.prototype;return _.prototype=x,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",s],["$y",u],["$D",d]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),_.extend=function(e,t){return e.$i||(e(t,j,_),e.$i=!0),_},_.locale=S,_.isDayjs=O,_.unix=function(e){return _(1e3*e)},_.en=y[v],_.Ls=y,_.p={},_}()},493(e,t,n){var r=n(649),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,l=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a(function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})},[e,n,t]),l(function(){return c(o)&&u({inst:o}),e(function(){c(o)&&u({inst:o})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},888(e,t,n){e.exports=n(493)},915(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},649(t){t.exports=e},942(e,t){var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return l[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var c={};s.r(c),s.d(c,{active:()=>P,elevated:()=>j,filled:()=>x,link:()=>C,medium:()=>E,onlyIcon:()=>R,outlined:()=>k,root:()=>D,small:()=>M,stateLayer:()=>I,text:()=>L,textSecondary:()=>N,tonal:()=>T,withIcon:()=>F,withoutIcon:()=>V});var u={};s.r(u),s.d(u,{body1:()=>q,body2:()=>U,button:()=>K,caption:()=>Y,h1:()=>X,h2:()=>Z,h3:()=>J,h4:()=>Q,h5:()=>ee,h6:()=>te,h7:()=>ne,overline:()=>re,subtitle1:()=>oe,subtitle2:()=>ie});var d={};s.r(d),s.d(d,{clickable:()=>Be,disabled:()=>We,filled:()=>Ge,icon:()=>qe,large:()=>Ue,medium:()=>Ke,outlined:()=>Ye,remove:()=>Xe,root:()=>Ze,small:()=>Je,text:()=>Qe,withIcon:()=>et});var f={};s.r(f),s.d(f,{divider:()=>Fa,item:()=>Va,itemActions:()=>Aa,itemDescription:()=>za,itemDisabled:()=>$a,itemIcon:()=>Ha,itemSelected:()=>Ba,itemTextBlock:()=>Wa,itemTitle:()=>Ga,itemTitleTop:()=>qa,medium:()=>Ua,root:()=>Ka,small:()=>Ya,stateLayer:()=>Xa});var p={};s.r(p),s.d(p,{button:()=>ls,buttonsContainer:()=>as,calendarContainer:()=>ss,cell:()=>cs,cellCircle:()=>us,cellData:()=>ds,cellSelection:()=>fs,cellSelectionFirst:()=>ps,cellSelectionLast:()=>gs,cellsContainer:()=>hs,dateTimeMode:()=>ms,medium:()=>bs,month:()=>vs,monthCellSelection:()=>ys,monthCellSelectionFirst:()=>ws,monthCellSelectionLast:()=>Os,monthView:()=>Ss,navigationArrow:()=>_s,navigationContainer:()=>Ps,navigationTitle:()=>js,navigationValue:()=>xs,root:()=>Cs,small:()=>Es,timeContainer:()=>Rs,timeDivider:()=>ks,timeSelectionMarker:()=>Ds,year:()=>Ms});var g={};s.r(g),s.d(g,{medium:()=>Fu,root:()=>Vu,small:()=>Au});var h={};s.r(h),s.d(h,{modal:()=>ad,panel:()=>sd,primary:()=>cd,root:()=>ud});var m={};s.r(m),s.d(m,{arrow:()=>pd,bottomArrow:()=>gd,content:()=>hd,error:()=>md,info:()=>bd,leftArrow:()=>vd,rightArrow:()=>yd,success:()=>wd,topArrow:()=>Od,trigger:()=>Sd,warning:()=>_d});var b={};s.r(b),s.d(b,{disableBorder:()=>Bd,disabled:()=>Wd,filled:()=>Gd,iconOnly:()=>qd,medium:()=>Ud,root:()=>Kd,selected:()=>Yd,selectedFilled:()=>Xd,small:()=>Zd,tab:()=>Jd,tabBorder:()=>Qd,tabBorderVertical:()=>ef,tabFilled:()=>tf,tabIcon:()=>nf,tabTitle:()=>rf,tabVertical:()=>of,vertical:()=>lf});var v={};s.r(v),s.d(v,{alignCenter:()=>xp,alignLeft:()=>Cp,alignRight:()=>Ep,bordersAll:()=>Rp,bordersHorizontal:()=>kp,bordersVertical:()=>Dp,bottomBorder:()=>Mp,clickable:()=>Ip,editable:()=>Lp,error:()=>Np,evenRow:()=>Tp,firstThRow:()=>Fp,input:()=>Vp,label:()=>Ap,marginLeftChanging:()=>zp,medium:()=>$p,modalContent:()=>Hp,rightBorder:()=>Bp,root:()=>Wp,rowButtonTrigger:()=>Gp,rowspanContent:()=>qp,selected:()=>Up,showInModal:()=>Kp,small:()=>Yp,sticky:()=>Xp,success:()=>Zp,table:()=>Jp,tableContainer:()=>Qp,td:()=>eg,th:()=>tg,thCell:()=>ng,thHiddenColumn:()=>rg,thLeftBorder:()=>og,thRightBorder:()=>ig,tr:()=>lg,verticalAlignCenter:()=>ag,verticalAlignFlexEnd:()=>sg,verticalAlignFlexStart:()=>cg,viewCell:()=>ug,viewSpan:()=>dg});var y={};s.r(y),s.d(y,{actions:()=>Ug,body:()=>Kg,header:()=>Yg,root:()=>Xg,small:()=>Zg});var w={};s.r(w),s.d(w,{clickable:()=>Qg,filled:()=>eh,icon:()=>th,iconClickable:()=>nh,iconLeft:()=>rh,iconRight:()=>oh,iconRightSlot:()=>ih,label:()=>lh,medium:()=>ah,outlined:()=>sh,root:()=>ch,secondary:()=>uh,small:()=>dh,withIcon:()=>fh});var O=s(942),S=s.n(O),_=s(649),P="button-module__active__hSEWs",j="button-module__elevated__nAlrD",x="button-module__filled__D7eAr",C="button-module__link__F_tgW",E="button-module__medium__v66y0",R="button-module__only-icon__zOzfl",k="button-module__outlined__c_PHO",D="button-module__root__gX6OQ",M="button-module__small__HHNmk",I="button-module__state-layer__t1MJf",L="button-module__text__rG7nD",N="button-module__text-secondary__jXFdx",T="button-module__tonal__u6w_G",F="button-module__with-icon__C4Cw6",V="button-module__without-icon__GOGFF";const A=["variant","size","icon","textSecondary","isActive","className","children","classes"];function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach(function(t){H(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function H(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const B=(0,_.forwardRef)(function(e,t){let{variant:o="filled",size:i="medium",icon:l,textSecondary:a,isActive:s,className:u,children:d,classes:f}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,A);return n("button",$($({className:S()(D,c[o],c[i],l?d?F:R:V,s?P:void 0,a?N:void 0,u,f?.root)},p),{},{ref:t,children:r("span",{className:S()(I,f?.stateLayer),children:[l,d]})}))});function W(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var G=parseInt(_.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=W(r,t),o="function"==typeof e;n.push(o?e:()=>W(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)W(n,t)}},q="typography-module__body1__x76Hw",U="typography-module__body2__xQKKj",K="typography-module__button__dx69P",Y="typography-module__caption__cWpWz",X="typography-module__h1__pRuCD",Z="typography-module__h2__tNSpQ",J="typography-module__h3__YqCF_",Q="typography-module__h4__BCkqi",ee="typography-module__h5__z84mf",te="typography-module__h6__C2Wqz",ne="typography-module__h7__B6VO6",re="typography-module__overline__IkqBV",oe="typography-module__subtitle1__NO_el",ie="typography-module__subtitle2__TKKn5";const le=["variant","component","children","className"];function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ue=(0,_.forwardRef)(function(e,t){let{variant:r="body2",component:o,children:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,le);return n(o||"span",se(se({className:S()(u[r],l)},a),{},{ref:t,children:i}))});function de(){const e=_;return"function"==typeof e.useId?e.useId():(0,_.useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const fe=({size:e=24,color:t="currentColor",className:r,children:o})=>n("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,className:r,xmlns:"http://www.w3.org/2000/svg",children:o});function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach(function(t){he(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function he(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const me=e=>n(fe,ge(ge({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})}));function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach(function(t){ye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ye(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const we=e=>n(fe,ve(ve({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}));function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach(function(t){_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _e(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pe=e=>n(fe,Se(Se({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2zm0-4H7V7h10v2z"})}));var je="checkbox-module__checkbox__x6SCC",xe="checkbox-module__pressed__mLWO0";const Ce=["label","several","componentSize","classes","id","ref"];function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach(function(t){ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ke(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e){const{label:o,several:i,componentSize:l="medium",classes:a,id:s,ref:c}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ce),d=(0,_.useRef)(null),f=de(),p=s??f;(0,_.useEffect)(()=>{const e=d.current;if(!e)return;const t=()=>e.classList.remove(xe),n=()=>e.classList.add(xe);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const g="large"===l?"subtitle1":"subtitle2";return r("div",{className:S()("checkbox-module__root__xJtJG",a?.root),children:[n("input",Re({ref:G([d,c]),type:"checkbox",className:S()("checkbox-module__input__SjKVz",a?.input),id:p,title:o},u)),r("label",{htmlFor:p,className:S()("checkbox-module__label__tkrMd",a?.label),title:o,children:[i?n("span",{className:S()(je,"checkbox-module__several__TYjeg",a?.checkbox),children:n(Pe,{})}):r(t,{children:[n("span",{className:S()(je,"checkbox-module__deselected__ZuA24",a?.checkbox),children:n(me,{})}),n("span",{className:S()(je,"checkbox-module__selected__pLwVq",a?.checkbox),children:n(we,{})})]}),!!o&&n(ue,{variant:g,className:S()("checkbox-module__label-text__kXha_",a?.labelText),children:o})]})]})}const Me=new Uint8Array(16),Ie=[];for(let e=0;e<256;++e)Ie.push((e+256).toString(16).slice(1));const Le=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(Me);if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(Ie[e[t+0]]+Ie[e[t+1]]+Ie[e[t+2]]+Ie[e[t+3]]+"-"+Ie[e[t+4]]+Ie[e[t+5]]+"-"+Ie[e[t+6]]+Ie[e[t+7]]+"-"+Ie[e[t+8]]+Ie[e[t+9]]+"-"+Ie[e[t+10]]+Ie[e[t+11]]+Ie[e[t+12]]+Ie[e[t+13]]+Ie[e[t+14]]+Ie[e[t+15]]).toLowerCase()}(r)}(e,t,n):crypto.randomUUID()};var Ne="fieldShell-module__arrow__dXtPp",Te="fieldShell-module__chips__Eyi_K",Fe="fieldShell-module__input__mpHQB";function Ve(e){const{variant:t="outlined",componentSize:o="medium",fullWidth:i,label:l,labelExtra:a,inputId:s,onLabelClick:c,wrapperRef:u,hasStartIcon:d,hasEndIcon:f,hasArrow:p,chipsMode:g,children:h,classes:m}=e;return r("div",{"data-size":o,className:S()("fieldShell-module__root__vQ9PI",i&&"fieldShell-module__full-width__bYt_Z",m?.root),children:[!!l&&r(ue,{className:S()("fieldShell-module__label__fdgQq",m?.label),component:"label",variant:"caption",htmlFor:s,onClick:c,children:[l,a]}),n("div",{ref:u,"data-variant":t,"data-start-icon":d?"":void 0,"data-end-icon":f?"":void 0,"data-arrow":p?"":void 0,"data-chips":g?"":void 0,className:S()("fieldShell-module__wrapper__OLPGQ",m?.wrapper),children:h})]})}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach(function(t){$e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $e(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const He=e=>n(fe,ze(ze({},e),{},{children:n("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}));var Be="inputChip-module__clickable__XZjD7",We="inputChip-module__disabled__Zk_O4",Ge="inputChip-module__filled__mSiU7",qe="inputChip-module__icon__phvLA",Ue="inputChip-module__large__PPvr0",Ke="inputChip-module__medium__VruGz",Ye="inputChip-module__outlined__j4EHe",Xe="inputChip-module__remove__Z6QBd",Ze="inputChip-module__root__DWnVf",Je="inputChip-module__small__XrLEF",Qe="inputChip-module__text__dhqTV",et="inputChip-module__with-icon__DZMe4";const tt=e=>{const{variant:t="filled",componentSize:o="medium",icon:i,disabled:l,onClick:a,onRemove:s,children:c,classes:u}=e;return r("div",{className:S()(Ze,d[t],d[o],!!i&&et,l&&We,a&&!l&&Be,u?.root),tabIndex:a&&!l?0:void 0,onClick:l?void 0:a,children:[!!i&&n("span",{className:S()(qe,u?.icon),children:i}),n("span",{className:S()(Qe,u?.text),children:c}),!!s&&n("button",{type:"button",className:S()(Xe,u?.remove),onClick:e=>{e.stopPropagation(),l||s?.()},disabled:l,"aria-label":"Удалить",children:n(He,{})})]})};function nt(){return"undefined"!=typeof window}function rt(e){return lt(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function it(e){var t;return null==(t=(lt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function lt(e){return!!nt()&&(e instanceof Node||e instanceof ot(e).Node)}function at(e){return!!nt()&&(e instanceof Element||e instanceof ot(e).Element)}function st(e){return!!nt()&&(e instanceof HTMLElement||e instanceof ot(e).HTMLElement)}function ct(e){return!(!nt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot)}function ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function dt(e){return/^(table|td|th)$/.test(rt(e))}function ft(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const pt=/transform|translate|scale|rotate|perspective|filter/,gt=/paint|layout|strict|content/,ht=e=>!!e&&"none"!==e;let mt;function bt(e){const t=at(e)?wt(e):e;return ht(t.transform)||ht(t.translate)||ht(t.scale)||ht(t.rotate)||ht(t.perspective)||!vt()&&(ht(t.backdropFilter)||ht(t.filter))||pt.test(t.willChange||"")||gt.test(t.contain||"")}function vt(){return null==mt&&(mt="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mt}function yt(e){return/^(html|body|#document)$/.test(rt(e))}function wt(e){return ot(e).getComputedStyle(e)}function Ot(e){return at(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function St(e){if("html"===rt(e))return e;const t=e.assignedSlot||e.parentNode||ct(e)&&e.host||it(e);return ct(t)?t.host:t}function _t(e){const t=St(e);return yt(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&&ut(t)?t:_t(t)}function Pt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=_t(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=ot(o);if(i){const e=jt(l);return t.concat(l,l.visualViewport||[],ut(o)?o:[],e&&n?Pt(e):[])}return t.concat(o,Pt(o,[],n))}function jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var xt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),Ct="undefined"==typeof Element,Et=Ct?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Rt=!Ct&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},kt=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):kt(e.parentNode))},Dt=function(e,t,n){if(kt(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(xt));return t&&Et.call(e,xt)&&r.unshift(e),r.filter(n)},Mt=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!kt(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),a=l.length?l:i.children,s=Mt(a,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{Et.call(i,xt)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!kt(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=Mt(!0===c?i.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return r},It=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Lt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!It(e)?0:e.tabIndex},Nt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Tt=function(e){return"INPUT"===e.tagName},Ft=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Vt=function(e,t){return!(t.disabled||function(e){return Tt(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=Et.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Et.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ft(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,a=Rt(e);if(l&&!l.shadowRoot&&!0===r(l))return Ft(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=i}if(function(e){var t,n,r,o,i=e&&Rt(e),l=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=l)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(l)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&l;){var s,c,u;a=!(null===(c=l=null===(s=i=Rt(l))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(l))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Et.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},At=function(e,t){return!(function(e){return function(e){return Tt(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Rt(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||Lt(t)<0||!Vt(e,t))},zt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},$t=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,l=function(e,t){var n=Lt(e);return n<0&&t&&!It(e)?0:n}(i,o),a=o?$t(e.candidates):i;0===l?o?t.push.apply(t,a):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:a})}),n.sort(Nt).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Ht=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Mt([e],t.includeContainer,{filter:At.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:zt}):Dt(e,t.includeContainer,At.bind(null,t)),$t(n)},Bt=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Et.call(e,xt)&&At(t,e)};function Wt(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Gt(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function qt(){return/apple/i.test(navigator.vendor)}function Ut(){const e=/android/i;return e.test(Wt())||e.test(Gt())}function Kt(){return Gt().includes("jsdom/")}const Yt="data-floating-ui-focusable";function Xt(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Zt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ct(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Jt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Qt(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function en(e){return(null==e?void 0:e.ownerDocument)||document}function tn(e){return st(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function nn(e){return!!e&&"combobox"===e.getAttribute("role")&&tn(e)}function rn(e){return e?e.hasAttribute(Yt)?e:e.querySelector("["+Yt+"]")||e:null}function on(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...on(e,t.id,n)])}function ln(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function an(e){e.preventDefault(),e.stopPropagation()}function sn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var cn="undefined"!=typeof document?_.useLayoutEffect:function(){};function un(e){const t=_.useRef(e);return cn(()=>{t.current=e}),t}const dn={..._}.useInsertionEffect||(e=>e());function fn(e){const t=_.useRef(()=>{});return dn(()=>{t.current=e}),_.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const pn=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function gn(e,t){const n=Ht(e,pn()),r=n.length;if(0===r)return;const o=Xt(en(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function hn(e){return gn(en(e).body,1)||e}function mn(e){return gn(en(e).body,-1)||e}function bn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Zt(n,r)}function vn(e){Ht(e,pn()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function yn(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const wn=Math.min,On=Math.max,Sn=Math.round,_n=Math.floor,Pn=e=>({x:e,y:e}),jn={left:"right",right:"left",bottom:"top",top:"bottom"};function xn(e,t,n){return On(e,wn(t,n))}function Cn(e,t){return"function"==typeof e?e(t):e}function En(e){return e.split("-")[0]}function Rn(e){return e.split("-")[1]}function kn(e){return"x"===e?"y":"x"}function Dn(e){return"y"===e?"height":"width"}function Mn(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function In(e){return kn(Mn(e))}function Ln(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Nn=["left","right"],Tn=["right","left"],Fn=["top","bottom"],Vn=["bottom","top"];function An(e){const t=En(e);return jn[t]+e.slice(t.length)}function zn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $n(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Hn(e,t,n){let{reference:r,floating:o}=e;const i=Mn(t),l=In(t),a=Dn(l),s=En(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Rn(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function Bn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Cn(t,e),g=zn(p),h=a[f?"floating"===d?"reference":"floating":d],m=$n(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=$n(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:s}):b);return{top:(m.top-w.top+g.top)/y.y,bottom:(w.bottom-m.bottom+g.bottom)/y.y,left:(m.left-w.left+g.left)/y.x,right:(w.right-m.right+g.right)/y.x}}const Wn=new Set(["left","top"]);function Gn(e){const t=wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=st(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=Sn(n)!==i||Sn(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function qn(e){return at(e)?e:e.contextElement}function Un(e){const t=qn(e);if(!st(t))return Pn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Gn(t);let l=(i?Sn(n.width):n.width)/r,a=(i?Sn(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Kn=Pn(0);function Yn(e){const t=ot(e);return vt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Kn}function Xn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qn(e);let l=Pn(1);t&&(r?at(r)&&(l=Un(r)):l=Un(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ot(e))&&t}(i,n,r)?Yn(i):Pn(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i){const e=ot(i),t=r&&at(r)?ot(r):r;let n=e,o=jt(n);for(;o&&r&&t!==n;){const e=Un(o),t=o.getBoundingClientRect(),r=wt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=l,n=ot(o),o=jt(n)}}return $n({width:u,height:d,x:s,y:c})}function Zn(e,t){const n=Ot(e).scrollLeft;return t?t.left+n:Xn(it(e)).left+n}function Jn(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Zn(e,n),y:n.top+t.scrollTop}}function Qn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ot(e),r=it(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=vt();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}const c=Zn(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=it(e),n=Ot(e),r=e.ownerDocument.body,o=On(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=On(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Zn(e);const a=-n.scrollTop;return"rtl"===wt(r).direction&&(l+=On(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(it(e));else if(at(t))r=function(e,t){const n=Xn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=st(e)?Un(e):Pn(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Yn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $n(r)}function er(e,t){const n=St(e);return!(n===t||!at(n)||yt(n))&&("fixed"===wt(n).position||er(n,t))}function tr(e,t,n){const r=st(t),o=it(t),i="fixed"===n,l=Xn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=Pn(0);function c(){s.x=Zn(o)}if(r||!r&&!i)if(("body"!==rt(t)||ut(o))&&(a=Ot(t)),r){const e=Xn(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?Pn(0):Jn(o,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.y,width:l.width,height:l.height}}function nr(e){return"static"===wt(e).position}function rr(e,t){if(!st(e)||"fixed"===wt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return it(e)===n&&(n=n.ownerDocument.body),n}function or(e,t){const n=ot(e);if(ft(e))return n;if(!st(e)){let t=St(e);for(;t&&!yt(t);){if(at(t)&&!nr(t))return t;t=St(t)}return n}let r=rr(e,t);for(;r&&dt(r)&&nr(r);)r=rr(r,t);return r&&yt(r)&&nr(r)&&!bt(r)?n:r||function(e){let t=St(e);for(;st(t)&&!yt(t);){if(bt(t))return t;if(ft(t))return null;t=St(t)}return null}(e)||n}const ir={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=it(r),a=!!t&&ft(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=Pn(1);const u=Pn(0),d=st(r);if((d||!d&&!i)&&(("body"!==rt(r)||ut(l))&&(s=Ot(r)),d)){const e=Xn(r);c=Un(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?Pn(0):Jn(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:it,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ft(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Pt(e,[],!1).filter(e=>at(e)&&"body"!==rt(e)),o=null;const i="fixed"===wt(e).position;let l=i?St(e):e;for(;at(l)&&!yt(l);){const t=wt(l),n=bt(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||ut(l)&&!n&&er(e,l))?r=r.filter(e=>e!==l):o=t,l=St(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=Qn(t,i[0],o);let a=l.top,s=l.right,c=l.bottom,u=l.left;for(let e=1;e<i.length;e++){const n=Qn(t,i[e],o);a=On(n.top,a),s=wn(n.right,s),c=wn(n.bottom,c),u=On(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:or,getElementRects:async function(e){const t=this.getOffsetParent||or,n=this.getDimensions,r=await n(e.floating);return{reference:tr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Gn(e);return{width:t,height:n}},getScale:Un,isElement:at,isRTL:function(e){return"rtl"===wt(e).direction}};function lr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ar(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=qn(e),u=o||i?[...c?Pt(c):[],...t?Pt(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&a?function(e,t){let n,r=null;const o=it(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;const g={rootMargin:-_n(d)+"px "+-_n(o.clientWidth-(u+f))+"px "+-_n(o.clientHeight-(d+p))+"px "+-_n(u)+"px",threshold:On(0,wn(1,s))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||lr(c,e.getBoundingClientRect())||l(),h=!1}try{r=new IntersectionObserver(m,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,g)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),c&&!s&&g.observe(c),t&&g.observe(t));let h=s?Xn(e):null;return s&&function t(){const r=Xn(e);h&&!lr(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=g)||e.disconnect(),g=null,s&&cancelAnimationFrame(f)}}const sr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...m}=Cn(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=En(o),v=Mn(a),y=En(a)===a,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),O=f||(y||!h?[An(a)]:function(e){const t=An(e);return[Ln(e),t,Ln(t)]}(a)),S="none"!==g;!f&&S&&O.push(...function(e,t,n,r){const o=Rn(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Tn:Nn:t?Nn:Tn;case"left":case"right":return t?Fn:Vn;default:return[]}}(En(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Ln)))),i}(a,h,g,w));const _=[a,...O],P=await s.detectOverflow(t,m),j=[];let x=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&j.push(P[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Rn(e),o=In(e),i=Dn(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=An(l)),[l,An(l)]}(o,l,w);j.push(P[e[0]],P[e[1]])}if(x=[...x,{placement:o,overflows:j}],!j.every(e=>e<=0)){var C,E;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=_[e];if(t&&("alignment"!==d||v===Mn(t)||x.every(e=>Mn(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:x},reset:{placement:t}};let n=null==(E=x.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=x.filter(e=>{if(S){const t=Mn(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},cr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=Cn(e,t)||{};if(null==c)return{};const d=zn(u),f={x:n,y:r},p=In(o),g=Dn(p),h=await l.getDimensions(c),m="y"===p,b=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",w=i.reference[g]+i.reference[p]-f[p]-i.floating[g],O=f[p]-i.reference[p],S=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let _=S?S[y]:0;_&&await(null==l.isElement?void 0:l.isElement(S))||(_=a.floating[y]||i.floating[g]);const P=w/2-O/2,j=_/2-h[g]/2-1,x=wn(d[b],j),C=wn(d[v],j),E=x,R=_-h[g]-C,k=_/2-h[g]/2+P,D=xn(E,k,R),M=!s.arrow&&null!=Rn(o)&&k!==D&&i.reference[g]/2-(k<E?x:C)-h[g]/2<0,I=M?k<E?k-E:k-R:0;return{[p]:f[p]+I,data:{[p]:D,centerOffset:k-D-I,...M&&{alignmentOffset:I}},reset:M}}}),ur=(e,t,n)=>{const r=new Map,o={platform:ir,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:Bn},s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Hn(c,r,s),f=r,p=0;const g={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:m,fn:b}=h,{x:v,y,data:w,reset:O}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,g[m]={...g[m],...w},O&&p<50&&(p++,"object"==typeof O&&(O.placement&&(f=O.placement),O.rects&&(c=!0===O.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):O.rects),({x:u,y:d}=Hn(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:g}})(e,t,{...o,platform:i})};var dr="undefined"!=typeof document?_.useLayoutEffect:function(){};function fr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!fr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||fr(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function pr(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gr(e,t){const n=pr(e);return Math.round(t*n)/n}function hr(e){const t=_.useRef(e);return dr(()=>{t.current=e}),t}const mr=(e,t)=>{const n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=En(n),a=Rn(n),s="y"===Mn(n),c=Wn.has(l)?-1:1,u=i&&s?-1:1,d=Cn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof g&&(p="end"===a?-1*g:g),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},br=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Cn(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=Mn(En(o)),p=kn(f);let g=u[p],h=u[f];if(l){const e="y"===p?"bottom":"right";g=xn(g+d["y"===p?"top":"left"],g,g-d[e])}if(a){const e="y"===f?"bottom":"right";h=xn(h+d["y"===f?"top":"left"],h,h-d[e])}const m=s.fn({...t,[p]:g,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:l,[f]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},vr=(e,t)=>{const n=sr(e);return{name:n.name,fn:n.fn,options:[e,t]}},yr=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?cr({element:n.current,padding:r}).fn(t):{}:n?cr({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function wr(e){const t=_.useRef(void 0),n=_.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return _.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const Or="data-floating-ui-focusable",Sr="active",_r="selected",Pr={..._};let jr=!1,xr=0;const Cr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xr++,Er=Pr.useId||function(){const[e,t]=_.useState(()=>jr?Cr():void 0);return cn(()=>{null==e&&t(Cr())},[]),_.useEffect(()=>{jr=!0},[]),e};const Rr=_.createContext(null),kr=_.createContext(null),Dr=()=>{var e;return(null==(e=_.useContext(Rr))?void 0:e.id)||null},Mr=()=>_.useContext(kr);function Ir(e){return"data-floating-ui-"+e}function Lr(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const Nr=Ir("safe-polygon");function Tr(e,t,n){if(n&&!sn(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function Fr(e){return"function"==typeof e?e():e}let Vr=0;function Ar(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Vr);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Vr=requestAnimationFrame(i)}const zr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function $r(e){return"inert"===e?zr.inert:"aria-hidden"===e?zr["aria-hidden"]:zr.none}let Hr=new WeakSet,Br={},Wr=0;function Gr(e){return e?ct(e)?e.host:Gr(e.parentNode):null}const qr=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Gr(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Ur(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(o=e[0],(null==o?void 0:o.ownerDocument)||document).body;var o;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,l=qr(t,e),a=new Set,s=new Set(l),c=[];Br[o]||(Br[o]=new WeakMap);const u=Br[o];return l.forEach(function e(t){t&&!a.has(t)&&(a.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!s.has(t)&&[].forEach.call(t.children,t=>{if("script"!==rt(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=$r(i),l=(r.get(t)||0)+1,a=(u.get(t)||0)+1;r.set(t,l),u.set(t,a),c.push(t),1===l&&n&&Hr.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),a.clear(),Wr++,()=>{c.forEach(e=>{const t=$r(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!Hr.has(e)&&i&&e.removeAttribute(i),Hr.delete(e)),r||e.removeAttribute(o)}),Wr--,Wr||(zr.inert=new WeakMap,zr["aria-hidden"]=new WeakMap,zr.none=new WeakMap,Hr=new WeakSet,Br={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Kr={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Yr=_.forwardRef(function(e,t){const[r,o]=_.useState();cn(()=>{qt()&&o("button")},[]);const i={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Ir("focus-guard")]:"",style:Kr};return n("span",{...e,...i})}),Xr={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Zr=_.createContext(null),Jr=Ir("portal");function Qr(e){const{children:t,id:i,root:l,preserveTabOrder:a=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Er(),o=eo(),[i,l]=_.useState(null),a=_.useRef(null);return cn(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),cn(()=>{if(!r)return;if(a.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Jr,""),e.appendChild(n),a.current=n,l(n)},[t,r]),cn(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!lt(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const s=document.createElement("div");s.id=r,s.setAttribute(Jr,""),e=i||e,e.appendChild(s),a.current=s,l(s)},[t,n,r,o]),i}({id:i,root:l}),[c,u]=_.useState(null),d=_.useRef(null),f=_.useRef(null),p=_.useRef(null),g=_.useRef(null),h=null==c?void 0:c.modal,m=null==c?void 0:c.open,b=!!c&&!c.modal&&c.open&&a&&!(!l&&!s);return _.useEffect(()=>{if(s&&a&&!h)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&bn(e)&&("focusin"===e.type?yn:vn)(s)}},[s,a,h]),_.useEffect(()=>{s&&(m||yn(s))},[m,s]),r(Zr.Provider,{value:_.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:g,portalNode:s,setFocusManagerState:u}),[a,s]),children:[b&&s&&n(Yr,{"data-type":"outside",ref:d,onFocus:e=>{if(bn(e,s)){var t;null==(t=p.current)||t.focus()}else{const e=mn(c?c.domReference:null);null==e||e.focus()}}}),b&&s&&n("span",{"aria-owns":s.id,style:Xr}),s&&o(t,s),b&&s&&n(Yr,{"data-type":"outside",ref:f,onFocus:e=>{if(bn(e,s)){var t;null==(t=g.current)||t.focus()}else{const t=hn(c?c.domReference:null);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const eo=()=>_.useContext(Zr);function to(e){return _.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let no=[];function ro(){no=no.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function oo(){ro();const e=no[no.length-1];return null==e?void 0:e.deref()}function io(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=pn(),o=function(e,t){return(t=t||{}).getShadowRoot?Mt([e],t.includeContainer,{filter:Vt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Dt(e,t.includeContainer,Vt.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return Bt(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),l=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==l&&e.setAttribute("tabindex","0"):("-1"!==l||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const lo=_.forwardRef(function(e,t){return n("button",{...e,type:"button",ref:t,tabIndex:-1,style:Kr})});function ao(e){const{context:o,children:i,disabled:l=!1,order:a=["content"],guards:s=!0,initialFocus:c=0,returnFocus:u=!0,restoreFocus:d=!1,modal:f=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:g=!0,outsideElementsInert:h=!1,getInsideElements:m=()=>[]}=e,{open:b,onOpenChange:v,events:y,dataRef:w,elements:{domReference:O,floating:S}}=o,P=fn(()=>{var e;return null==(e=w.current.floatingContext)?void 0:e.nodeId}),j=fn(m),x="number"==typeof c&&c<0,C=nn(O)&&x,E="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,R=!E||s,k=!R||E&&h,D=un(a),M=un(c),I=un(u),L=Mr(),N=eo(),T=_.useRef(null),F=_.useRef(null),V=_.useRef(!1),A=_.useRef(!1),z=_.useRef(-1),$=_.useRef(-1),H=null!=N,B=rn(S),W=fn(function(e){return void 0===e&&(e=B),e?Ht(e,pn()):[]}),G=fn(e=>{const t=W(e);return D.current.map(e=>O&&"reference"===e?O:B&&"floating"===e?B:t).filter(Boolean).flat()});_.useEffect(()=>{if(l)return;if(!f)return;function e(e){if("Tab"===e.key){Zt(B,Xt(en(B)))&&0===W().length&&!C&&an(e);const t=G(),n=Jt(e);"reference"===D.current[0]&&n===O&&(an(e),e.shiftKey?Ar(t[t.length-1]):Ar(t[1])),"floating"===D.current[1]&&n===B&&e.shiftKey&&(an(e),Ar(t[0]))}}const t=en(B);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[l,O,B,f,D,C,W,G]),_.useEffect(()=>{if(!l&&S)return S.addEventListener("focusin",e),()=>{S.removeEventListener("focusin",e)};function e(e){const t=Jt(e),n=W().indexOf(t);-1!==n&&(z.current=n)}},[l,S,W]),_.useEffect(()=>{if(l)return;if(!g)return;function e(){A.current=!0,setTimeout(()=>{A.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Jt(e);queueMicrotask(()=>{const o=P(),i=!(Zt(O,t)||Zt(S,t)||Zt(t,S)||Zt(null==N?void 0:N.portalNode,t)||null!=t&&t.hasAttribute(Ir("focus-guard"))||L&&(on(L.nodesRef.current,o).find(e=>{var n,r;return Zt(null==(n=e.context)?void 0:n.elements.floating,t)||Zt(null==(r=e.context)?void 0:r.elements.domReference,t)})||ln(L.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,rn(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===O&&B&&io(B,D),d&&n!==O&&(null==r||!r.isConnected)&&Xt(en(B))===en(B).body){st(B)&&B.focus();const e=z.current,t=W(),n=t[e]||t[t.length-1]||B;st(n)&&n.focus()}w.current.insideReactTree?w.current.insideReactTree=!1:!C&&f||!t||!i||A.current||t===oo()||(V.current=!0,v(!1,e,"focus-out"))})}const n=Boolean(!L&&N);function r(){Lr($),w.current.insideReactTree=!0,$.current=window.setTimeout(()=>{w.current.insideReactTree=!1})}return S&&st(O)?(O.addEventListener("focusout",t),O.addEventListener("pointerdown",e),S.addEventListener("focusout",t),n&&S.addEventListener("focusout",r,!0),()=>{O.removeEventListener("focusout",t),O.removeEventListener("pointerdown",e),S.removeEventListener("focusout",t),n&&S.removeEventListener("focusout",r,!0)}):void 0},[l,O,S,B,f,L,N,v,g,d,W,C,P,D,w]);const q=_.useRef(null),U=_.useRef(null),K=to([q,null==N?void 0:N.beforeInsideRef]),Y=to([U,null==N?void 0:N.afterInsideRef]);function X(e){return!l&&p&&f?n(lo,{ref:"start"===e?T:F,onClick:e=>v(!1,e.nativeEvent),children:"string"==typeof p?p:"Dismiss"}):null}_.useEffect(()=>{var e,t;if(l)return;if(!S)return;const n=Array.from((null==N||null==(e=N.portalNode)?void 0:e.querySelectorAll("["+Ir("portal")+"]"))||[]),r=null==(t=(L?ln(L.nodesRef.current,P()):[]).find(e=>{var t;return nn((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,o=[S,r,...n,...j(),T.current,F.current,q.current,U.current,null==N?void 0:N.beforeOutsideRef.current,null==N?void 0:N.afterOutsideRef.current,D.current.includes("reference")||C?O:null].filter(e=>null!=e),i=f||C?Ur(o,!k,k):Ur(o);return()=>{i()}},[l,O,S,f,D,N,C,R,k,L,P,j]),cn(()=>{if(l||!st(B))return;const e=Xt(en(B));queueMicrotask(()=>{const t=G(B),n=M.current,r=("number"==typeof n?t[n]:n.current)||B,o=Zt(B,e);x||o||!b||Ar(r,{preventScroll:r===B})})},[l,b,B,x,G,M]),cn(()=>{if(l||!B)return;const e=en(B);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(V.current=!0),"outside-press"===t)if(r)V.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ut()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!Kt()&&(!Ut()&&0===e.width&&0===e.height||Ut()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}(n))V.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),V.current=!e}}t=Xt(e),ro(),t&&"body"!==rt(t)&&(no.push(new WeakRef(t)),no.length>20&&(no=no.slice(-20))),y.on("openchange",n);const r=e.createElement("span");return r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),Object.assign(r.style,Kr),H&&O&&O.insertAdjacentElement("afterend",r),()=>{y.off("openchange",n);const t=Xt(e),o=Zt(S,t)||L&&on(L.nodesRef.current,P(),!1).some(e=>{var n;return Zt(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof I.current){const e=O||oo();return e&&e.isConnected?e:r}return I.current.current||r}();queueMicrotask(()=>{const n=function(e){const t=pn();return Bt(e,t)?e:Ht(e,t)[0]||e}(i);I.current&&!V.current&&st(n)&&(n===t||t===e.body||o)&&n.focus({preventScroll:!0}),r.remove()})}},[l,S,B,I,w,y,L,H,O,P]),_.useEffect(()=>(queueMicrotask(()=>{V.current=!1}),()=>{queueMicrotask(ro)}),[l]),cn(()=>{if(!l&&N)return N.setFocusManagerState({modal:f,closeOnFocusOut:g,open:b,onOpenChange:v,domReference:O}),()=>{N.setFocusManagerState(null)}},[l,N,f,b,v,g,O]),cn(()=>{l||B&&io(B,D)},[l,B,D]);const Z=!l&&R&&(!f||!C)&&(H||f);return r(t,{children:[Z&&n(Yr,{"data-type":"inside",ref:K,onFocus:e=>{if(f){const e=G();Ar("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(V.current=!1,bn(e,N.portalNode)){const e=hn(O);null==e||e.focus()}else{var t;null==(t=N.beforeOutsideRef.current)||t.focus()}}}),!C&&X("start"),i,X("end"),Z&&n(Yr,{"data-type":"inside",ref:Y,onFocus:e=>{if(f)Ar(G()[0]);else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(g&&(V.current=!0),bn(e,N.portalNode)){const e=mn(O);null==e||e.focus()}else{var t;null==(t=N.afterOutsideRef.current)||t.focus()}}})]})}function so(e){return st(e.target)&&"BUTTON"===e.target.tagName}function co(e){return tn(e)}function uo(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:l=!0,event:a="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,f=_.useRef(),p=_.useRef(!1),g=_.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&(sn(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===a&&f.current?f.current=void 0:sn(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!u||so(e)||(" "!==e.key||co(i)||(e.preventDefault(),p.current=!0),function(e){return st(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||so(e)||co(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,s]);return _.useMemo(()=>l?{reference:g}:{},[l,g])}const fo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},po={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},go=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function ho(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:l=!0,escapeKey:a=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:g}=t,h=Mr(),m=fn("function"==typeof s?s:()=>!1),b="function"==typeof s?m:s,v=_.useRef(!1),{escapeKey:y,outsidePress:w}=go(p),{escapeKey:O,outsidePress:S}=go(g),P=_.useRef(!1),j=fn(e=>{var t;if(!n||!l||!a||"Escape"!==e.key)return;if(P.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=h?on(h.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),x=fn(e=>{var t;const n=()=>{var t;j(e),null==(t=Jt(e))||t.removeEventListener("keydown",n)};null==(t=Jt(e))||t.addEventListener("keydown",n)}),C=fn(e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const l=v.current;if(v.current=!1,"click"===c&&l)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=Jt(e),s="["+Ir("inert")+"]",u=en(o.floating).querySelectorAll(s);let d=at(a)?a:null;for(;d&&!yt(d);){const e=St(d);if(yt(e)||!at(e))break;d=e}if(u.length&&at(a)&&!a.matches("html,body")&&!Zt(a,o.floating)&&Array.from(u).every(e=>!Zt(d,e)))return;if(st(a)&&k){const t=yt(a),n=wt(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,s=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,u=s&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=l&&e.offsetY>a.clientHeight;if(u||d)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=h&&on(h.nodesRef.current,f).some(t=>{var n;return Qt(e,null==(n=t.context)?void 0:n.elements.floating)});if(Qt(e,o.floating)||Qt(e,o.domReference)||p)return;const g=h?on(h.nodesRef.current,f):[];if(g.length>0){let e=!0;if(g.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),E=fn(e=>{var t;const n=()=>{var t;C(e),null==(t=Jt(e))||t.removeEventListener(c,n)};null==(t=Jt(e))||t.addEventListener(c,n)});_.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),P.current=!0}function u(){e=window.setTimeout(()=>{P.current=!1},vt()?5:0)}const d=en(o.floating);a&&(d.addEventListener("keydown",O?x:j,O),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),b&&d.addEventListener(c,S?E:C,S);let p=[];return f&&(at(o.domReference)&&(p=Pt(o.domReference)),at(o.floating)&&(p=p.concat(Pt(o.floating))),!at(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(Pt(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{a&&(d.removeEventListener("keydown",O?x:j,O),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),b&&d.removeEventListener(c,S?E:C,S),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,b,c,n,r,f,l,y,w,j,O,x,C,S,E]),_.useEffect(()=>{i.current.insideReactTree=!1},[i,b,c]);const R=_.useMemo(()=>({onKeyDown:j,...u&&{[fo[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[j,r,u,d]),k=_.useMemo(()=>{function e(e){0===e.button&&(v.current=!0)}return{onKeyDown:j,onMouseDown:e,onMouseUp:e,[po[c]]:()=>{i.current.insideReactTree=!0}}},[j,c,i]);return _.useMemo(()=>l?{reference:R,floating:k}:{},[l,R,k])}function mo(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Er(),i=_.useRef({}),[l]=_.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),a=null!=Dr(),[s,c]=_.useState(r.reference),u=fn((e,t,r)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),d=_.useMemo(()=>({setPositionReference:c}),[]),f=_.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return _.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:l,floatingId:o,refs:d}),[t,u,f,l,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[l,a]=_.useState(null),[s,c]=_.useState(null),u=(null==o?void 0:o.domReference)||l,d=_.useRef(null),f=Mr();cn(()=>{u&&(d.current=u)},[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=_.useState(r);fr(p,r)||g(r);const[h,m]=_.useState(null),[b,v]=_.useState(null),y=_.useCallback(e=>{e!==P.current&&(P.current=e,m(e))},[]),w=_.useCallback(e=>{e!==j.current&&(j.current=e,v(e))},[]),O=l||h,S=a||b,P=_.useRef(null),j=_.useRef(null),x=_.useRef(d),C=null!=c,E=hr(c),R=hr(o),k=hr(u),D=_.useCallback(()=>{if(!P.current||!j.current)return;const e={placement:t,strategy:n,middleware:p};R.current&&(e.platform=R.current),ur(P.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==k.current};M.current&&!fr(x.current,t)&&(x.current=t,i(()=>{f(t)}))})},[p,t,n,R,k]);dr(()=>{!1===u&&x.current.isPositioned&&(x.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const M=_.useRef(!1);dr(()=>(M.current=!0,()=>{M.current=!1}),[]),dr(()=>{if(O&&(P.current=O),S&&(j.current=S),O&&S){if(E.current)return E.current(O,S,D);D()}},[O,S,D,E,C]);const I=_.useMemo(()=>({reference:P,floating:j,setReference:y,setFloating:w}),[y,w]),L=_.useMemo(()=>({reference:O,floating:S}),[O,S]),N=_.useMemo(()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=gr(L.floating,d.x),r=gr(L.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...pr(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,L.floating,d.x,d.y]);return _.useMemo(()=>({...d,update:D,refs:I,elements:L,floatingStyles:N}),[d,D,I,L,N])}({...e,elements:{...o,...s&&{reference:s}}}),g=_.useCallback(e=>{const t=at(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),h=_.useCallback(e=>{(at(e)||null===e)&&(d.current=e,a(e)),(at(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!at(e))&&p.refs.setReference(e)},[p.refs]),m=_.useMemo(()=>({...p.refs,setReference:h,setPositionReference:g,domReference:d}),[p.refs,h,g]),b=_.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=_.useMemo(()=>({...p,...r,refs:m,elements:b,nodeId:t}),[p,m,b,t,r]);return cn(()=>{r.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),_.useMemo(()=>({...p,context:v,refs:m,elements:b}),[p,m,b,v])}function bo(){return Wt().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&qt()}function vo(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:l}=e,{enabled:a=!0,visibleOnly:s=!0}=t,c=_.useRef(!1),u=_.useRef(-1),d=_.useRef(!0);_.useEffect(()=>{if(!a)return;const e=ot(l.domReference);function t(){!n&&st(l.domReference)&&l.domReference===Xt(en(l.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),bo()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),bo()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[l.domReference,n,a]),_.useEffect(()=>{if(a)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}},[o,a]),_.useEffect(()=>()=>{Lr(u)},[]);const f=_.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Jt(e.nativeEvent);if(s&&at(t))if(bo()&&!e.relatedTarget){if(!d.current&&!tn(t))return}else if(!function(e){if(!e||Kt())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=at(t)&&t.hasAttribute(Ir("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=Xt(l.domReference?l.domReference.ownerDocument:document);(t||a!==l.domReference)&&(Zt(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Zt(l.domReference,a)||o||r(!1,n,"focus"))})}}),[i,l.domReference,r,s]);return _.useMemo(()=>a?{reference:f}:{},[a,f])}function yo(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Sr]:t,[_r]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Or]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var l;o&&[Sr,_r].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function wo(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=_.useCallback(t=>yo(t,e,"reference"),t),i=_.useCallback(t=>yo(t,e,"floating"),n),l=_.useCallback(t=>yo(t,e,"item"),r);return _.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}const Oo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function So(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:l}=e,{enabled:a=!0,role:s="dialog"}=t,c=Er(),u=(null==(n=i.domReference)?void 0:n.id)||c,d=_.useMemo(()=>{var e;return(null==(e=rn(i.floating))?void 0:e.id)||l},[i.floating,l]),f=null!=(r=Oo.get(s))?r:s,p=null!=Dr(),g=_.useMemo(()=>"tooltip"===f||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:o?d:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===f?"dialog":f,"aria-controls":o?d:void 0,..."listbox"===f&&{role:"combobox"},..."menu"===f&&{id:u},..."menu"===f&&p&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[f,d,p,o,u,s]),h=_.useMemo(()=>{const e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),m=_.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:d+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,s]);return _.useMemo(()=>a?{reference:g,floating:h,item:m}:{},[a,g,h,m])}const _o=(0,_.createContext)(null),Po=["style","children"],jo=["context"];function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(n),!0).forEach(function(t){Eo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Eo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ro(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const ko=(0,_.forwardRef)(function(e,t){let{style:r,children:o}=e,i=Ro(e,Po);const l=(0,_.useContext)(_o);if(!l)return null;const{context:a}=l,s=Ro(l,jo),c=wr([s.refs.setFloating,t]),u=de();return(0,_.useLayoutEffect)(()=>(l.setDescriptionId(u),()=>l.setDescriptionId(void 0)),[u,l.setDescriptionId]),a.open?n(Qr,{root:s.root,children:n(ao,{context:a,modal:s.modal,children:n("div",Co(Co({id:u,ref:c,style:Co(Co({},s.floatingStyles),r),"aria-describedby":s.descriptionId},s.getFloatingProps(i)),{},{children:o}))})}):null}),Do=["update"];function Mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach(function(t){Lo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const No=["children","modal"];function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vo=e=>{const{children:t,modal:r=!1}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,No),i=function(e={}){const{initialOpen:t=!1,placement:n="bottom",modal:r,root:o,open:i,onOpenChange:l,containerOffset:a=12,layoutVersion:s}=e,[c,u]=(0,_.useState)(t),[d,f]=(0,_.useState)(),p=i??c,g=l??u,h=mo({placement:n,open:p,onOpenChange:g,whileElementsMounted:ar,middleware:[mr(a),vr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),br({padding:5})]}),{update:m}=h,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(h,Do),{context:v}=b;(0,_.useLayoutEffect)(()=>{p&&m()},[p,s,m]);const y=wo([uo(v,{enabled:null==i}),ho(v),So(v)]);return(0,_.useMemo)(()=>Io(Io(Io({open:p,setOpen:g},y),b),{},{update:m,modal:r,root:o,descriptionId:d,setDescriptionId:f}),[p,g,y,b,m,r,o,d])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach(function(t){Fo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:r},o));return n(_o.Provider,{value:i,children:t})},Ao=["children","wrapTrigger"];function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach(function(t){Ho(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ho(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bo=(0,_.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ao);const l=(0,_.useContext)(_o),a=r.ref,s=wr([l?.refs.setReference,t,a]);return l?!o&&(0,_.isValidElement)(r)?(0,_.cloneElement)(r,l.getReferenceProps($o($o($o({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",$o($o({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function Wo(e){const{description:t,clickable:o,initialOpen:i,placement:l,wrapTrigger:a,containerOffset:s,root:c,open:u,onOpenChange:d,children:f,classes:p,contentStyle:g,layoutVersion:h}=e,[m,b]=(0,_.useState)(!1);return f?t?r(Vo,{placement:l,initialOpen:i,open:void 0!==u?u:o?m:void 0,onOpenChange:void 0!==d?d:o?b:void 0,containerOffset:s,root:c,layoutVersion:h,children:[n(Bo,{wrapTrigger:a,onClick:o?()=>b(e=>!e):void 0,className:S()(a?"popover-module__trigger__hYNqD":void 0,p?.trigger),children:f}),n(ko,{className:S()("popover-module__content__cXVJ_",p?.content),style:g,children:t})]}):f:null}function Go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Go(Object(n),!0).forEach(function(t){Uo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ko=e=>n(fe,qo(qo({},e),{},{children:n("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(n),!0).forEach(function(t){Zo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jo=e=>n(fe,Xo(Xo({},e),{},{children:n("path",{d:"M7 10l5 5 5-5z"})}));function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach(function(t){ti(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ti(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ni=e=>n(fe,ei(ei({},e),{},{children:n("path",{d:"M7 14l5-5 5 5z"})}));function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach(function(t){ii(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ii(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const li=e=>n(fe,oi(oi({},e),{},{children:n("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"})}));function ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ai(Object(n),!0).forEach(function(t){ci(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ai(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ci(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ui=e=>n(fe,si(si({},e),{},{children:n("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})}));function di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?di(Object(n),!0).forEach(function(t){pi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gi=e=>n(fe,fi(fi({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(n),!0).forEach(function(t){bi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vi=e=>n(fe,mi(mi({},e),{},{children:n("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(n),!0).forEach(function(t){Oi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Si=e=>n(fe,wi(wi({},e),{},{children:n("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach(function(t){ji(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ji(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xi=e=>n(fe,Pi(Pi({},e),{},{children:n("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));function Ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ci(Object(n),!0).forEach(function(t){Ri(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ri(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ki=e=>n(fe,Ei(Ei({},e),{},{children:n("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"})}));function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(n),!0).forEach(function(t){Ii(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ii(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Li=e=>n(fe,Mi(Mi({},e),{},{children:n("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"})}));function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach(function(t){Fi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vi=e=>n(fe,Ti(Ti({},e),{},{children:n("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})}));function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach(function(t){$i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $i(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hi=e=>n(fe,zi(zi({},e),{},{children:n("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function Bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(n),!0).forEach(function(t){Gi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qi=e=>n(fe,Wi(Wi({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach(function(t){Yi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xi=e=>n(fe,Ki(Ki({},e),{},{children:n("path",{d:"M4.24993 5.61C6.26993 8.2 9.99993 13 9.99993 13V19C9.99993 19.55 10.4499\n 20 10.9999 20H12.9999C13.5499 20 13.9999 19.55 13.9999 19V13C13.9999 13 17.7199 8.2\n 19.7399 5.61C20.2499 4.95 19.7799 4 18.9499 4H5.03993C4.20993 4 3.73993 4.95 4.24993 5.61Z"})}));function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach(function(t){Qi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const el=e=>r(fe,Ji(Ji({},e),{},{children:[n("g",{"clip-path":"url(#clip0_851_25267)",children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00015 4L3.46792 0.467773L2.05371 1.88199L4.4002 4.22847C4.01467 4.55071 3.89485 5.1506 4.24984\n 5.61C6.26984 8.2 9.99984 13 9.99984 13V19C9.99984 19.55 10.4498 20 10.9998 20H12.9998C13.5498 20\n 13.9998 19.55 13.9998 19V13.8281L18.9708 18.7991L20.385 17.3849L20.3849 17.3847L14.8734 11.8733L7.00015\n 4ZM16.1091 10.2805C17.2922 8.75591 18.7289 6.90619 19.7398 5.61C20.2498 4.95 19.7798 4 18.9498\n 4H9.82861L16.1091 10.2805Z"})}),n("defs",{children:n("clipPath",{id:"clip0_851_25267",children:n("rect",{width:"24",height:"24",fill:"white"})})})]}));function tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(n),!0).forEach(function(t){rl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ol=e=>n(fe,nl(nl({},e),{},{children:n("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10\n 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?il(Object(n),!0).forEach(function(t){al(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):il(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function al(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sl=e=>n(fe,ll(ll({},e),{},{children:n("path",{d:"M23 21.5H1L12 2.5L23 21.5ZM4.47005 19.5H19.53L12 6.48959L4.47005 19.5ZM13 18.5H11V16.5H13V18.5ZM13 10.5V14.5H11V10.5H13Z"})}));function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach(function(t){dl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fl=e=>n(fe,ul(ul({},e),{},{children:n("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})}));function pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pl(Object(n),!0).forEach(function(t){hl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ml=e=>n(fe,gl(gl({},e),{},{children:n("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(n),!0).forEach(function(t){yl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wl=e=>n(fe,vl(vl({},e),{},{children:n("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}));function Ol(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ol(Object(n),!0).forEach(function(t){_l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ol(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _l(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pl=e=>n(fe,Sl(Sl({},e),{},{children:n("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}));function jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jl(Object(n),!0).forEach(function(t){Cl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const El=e=>n(fe,xl(xl({},e),{},{children:n("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function Rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rl(Object(n),!0).forEach(function(t){Dl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ml=e=>n(fe,kl(kl({},e),{},{children:n("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})}));function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(n),!0).forEach(function(t){Nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tl=e=>n(fe,Ll(Ll({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function Fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(n),!0).forEach(function(t){Al(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Al(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zl=e=>n(fe,Vl(Vl({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach(function(t){Bl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wl=e=>n(fe,Hl(Hl({},e),{},{children:n("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"})}));function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gl(Object(n),!0).forEach(function(t){Ul(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ul(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kl=e=>n(fe,ql(ql({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yl(Object(n),!0).forEach(function(t){Zl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jl=e=>n(fe,Xl(Xl({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"})}));function Ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ql(Object(n),!0).forEach(function(t){ta(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ql(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ta(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const na=e=>n(fe,ea(ea({},e),{},{children:n("path",{d:"M18.3688 3.29L20.7088 5.63C21.0988 6.02 21.0988 6.65 20.7088 7.04L18.8788 8.87L15.1288 5.12L16.9588 3.29C17.1488 3.1 17.3988 3 17.6588 3C17.9188 3 18.1688 3.09 18.3688 3.29ZM2.99878 17.25V21H6.74878L17.8088 9.94L14.0588 6.19L2.99878 17.25ZM5.91878 19H4.99878V18.08L14.0588 9.02L14.9788 9.94L5.91878 19Z"})}));function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ra(Object(n),!0).forEach(function(t){ia(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ra(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ia(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const la=e=>n(fe,oa(oa({},e),{},{children:n("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2\n 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})}));function aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(n),!0).forEach(function(t){ca(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ca(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ua=e=>n(fe,sa(sa({},e),{},{children:n("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?da(Object(n),!0).forEach(function(t){pa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):da(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ga=e=>n(fe,fa(fa({},e),{},{children:n("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z"})}));function ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(n),!0).forEach(function(t){ba(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ba(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const va=e=>n(fe,ma(ma({},e),{},{children:n("path",{d:"M17 11v6.97l-5-2.14-5 2.14V5h6V3H7c-1.1 0-2\n .9-2 2v16l7-3 7 3V11h-2zm4-4h-2v2h-2V7h-2V5h2V3h2v2h2v2z"})}));function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach(function(t){Oa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sa=e=>n(fe,wa(wa({},e),{},{children:n("path",{fill:"currentColor",d:"m16.2 20.5 2.8-2.8V20h1v-4h-4v1h2.3l-2.8 2.8zM5 21q-.824\n 0-1.412-.587A1.93 1.93 0 0 1 3 19V5Q3 4.176 3.588 3.588A1.93\n 1.93 0 0 1 5 3h14q.824 0 1.413.588Q21 4.175 21 5v6.7a8 8 0\n 0 0-.975-.387A6 6 0 0 0 19 11.075V5H5v14h6.05q.076.55.237\n 1.05.163.5.388.95zm0-3v1V5v8.075V11zm2-1h4.075q.076-.525.238-1.025T11.675\n 15H7zm0-4h6.1q.8-.75 1.787-1.25A7 7 0 0 1 17 11.075V11H7zm0-4h10V7H7zm15\n 14q-2.075 0-3.537-1.462Q13 20.074 13 18q0-2.075 1.463-3.537Q15.926 13\n 18 13q2.075 0 3.538 1.463T23 18t-1.462 3.538Q20.074 23 18 23"})}));function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_a(Object(n),!0).forEach(function(t){ja(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ja(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xa=e=>n(fe,Pa(Pa({},e),{},{children:n("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach(function(t){Ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ra(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ka=e=>n(fe,Ea(Ea({},e),{},{children:n("path",{d:"M12 6.375C15.75 6.375 18.9525 8.7075 20.25 12C18.9525 15.2925 15.75 17.625 12 17.625C8.25\n 17.625 5.0475 15.2925 3.75 12C5.0475 8.7075 8.25 6.375 12 6.375ZM12 7.875C9.15755 7.87505\n 6.62225 9.47254 5.38477 12C6.62225 14.52746 9.15755 16.12495 12 16.125C14.8425\n 16.125 17.3777 14.5275 18.6152 12C17.3777 9.4725 14.8425 7.875 12 7.875ZM12\n 8.625C13.86 8.625 15.375 10.14 15.375 12C15.375 13.86 13.86 15.375 12 15.375C10.14 15.375\n 8.625 13.86 8.625 12C8.625 10.14 10.14 8.625 12 8.625ZM12 10.125C10.965 10.125 10.125 10.965\n 10.125 12C10.125 13.035 10.965 13.875 12 13.875C13.035 13.875 13.875 13.035\n 13.875 12C13.875 10.965 13.035 10.125 12 10.125Z"})}));function Da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(n),!0).forEach(function(t){Ia(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Da(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ia(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const La=e=>n(fe,Ma(Ma({},e),{},{children:n("path",{d:"M12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V8Z"})}));function Na(){const e=(0,_.useContext)(_o);return n(e?.open?ni:Jo,{})}const Ta=e=>{const{children:t,fillEvenly:r,classes:o}=e;return n("div",{className:S()("buttonsGroup-module__root__rBp1o",r&&"buttonsGroup-module__fill-evenly__J5T6H",o?.root),children:t})};var Fa="menu-module__divider__kik9c",Va="menu-module__item__DO2AJ",Aa="menu-module__item-actions__ecU8y",za="menu-module__item-description__BxxnF",$a="menu-module__item-disabled__E7Z4s",Ha="menu-module__item-icon___HDe4",Ba="menu-module__item-selected__m9VFe",Wa="menu-module__item-text-block__zgpGT",Ga="menu-module__item-title__gcK7P",qa="menu-module__item-title-top__PSYWj",Ua="menu-module__medium__Jev6c",Ka="menu-module__root__pR_5h",Ya="menu-module__small__uGqFV",Xa="menu-module__state-layer__m8uMf";function Za(e){const{items:o,size:i="medium",descriptionPosition:l="right",classes:a}=e,s=(0,_.useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]);return n("div",{className:S()(Ka,f[i],a?.root),children:o.map((e,o)=>{const c="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?n(c,{tabIndex:-10,className:S()(Va,e.selected?Ba:void 0,e.disabled?$a:void 0,a?.item,e.selected?a?.itemSelected:void 0,e.disabled?a?.itemDisabled:void 0),onClick:e.disabled?void 0:s(e),title:e.name,children:r("span",{className:S()(Xa),children:[!!e.icon&&n("span",{className:S()(Ha,a?.itemIcon,e.selected?a?.itemSelectedIcon:void 0,e.disabled?a?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===l&&e.description?r("span",{className:S()(Wa),children:[n("span",{className:S()(qa,Ga,a?.itemTitle,e.selected?a?.itemSelectedTitle:void 0,e.disabled?a?.itemDisabledTitle:void 0),children:e.name}),n("span",{className:S()(za,a?.itemDescription,e.selected?a?.itemSelectedDescription:void 0,e.disabled?a?.itemDisabledDescription:void 0),children:e.description})]}):r(t,{children:[n("span",{className:S()(Ga,a?.itemTitle,e.selected?a?.itemSelectedTitle:void 0,e.disabled?a?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&n("span",{className:S()(za,a?.itemDescription,e.selected?a?.itemSelectedDescription:void 0,e.disabled?a?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&n("div",{className:S()(Aa,a?.itemActions,e.selected?a?.itemSelectedActions:void 0,e.disabled?a?.itemDisabledActions:void 0),children:n(Ta,{children:e.subButtons.map((e,t)=>n(B,{variant:e.variant,size:i,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${o}`):n("div",{className:S()(Fa,a?.divider),children:e.name},`menu-divider-${e.name}-${o}`)})})}function Ja(e){const{items:t,componentSize:r,selectedValue:o,changeSelectedItem:i,classes:l}=e,a=(0,_.useContext)(_o);return n(Za,{size:r,classes:l?.menu,items:t.map(e=>"divider"===e.type?{type:"divider",name:e.name}:{type:"item",name:e.name,icon:e.icon,description:e.description,disabled:e.disabled,selected:e.value===o,onClick:()=>{i(e),a&&a.setOpen(!1)}})})}const Qa=["variant","componentSize","icon","fullWidth","label","placeholder","items","defaultValue","onValueChange","selected","chips","classes","ref","disabled","id"];function es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach(function(t){ns(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ns(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rs(e){const{variant:t="filled",componentSize:o="medium",icon:i,fullWidth:l,label:a,placeholder:s,items:c,defaultValue:u,onValueChange:d,selected:f,chips:p,classes:g,ref:h,disabled:m,id:b}=e,v=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Qa),y=u&&!f,[w,O]=(0,_.useState)(y?c.find(e=>"item"===e.type&&e.value===u):void 0),P=y?w:f,j=(0,_.useRef)(null),x=(0,_.useRef)(null),C=(0,_.useCallback)(e=>{e.preventDefault(),m||x?.current?.click()},[x]),E=e=>{y&&O(e),d?.(e)};(0,_.useEffect)(()=>{if(P){const e=c.find(e=>"item"===e.type&&e.value===P?.value);e||E(e)}},[c,P]);const R=b??Le();return r(Ve,{variant:t,componentSize:o,fullWidth:l,label:a,inputId:R,onLabelClick:C,hasStartIcon:!!i||!!P?.icon,hasArrow:!0,chipsMode:p&&!!P,classes:ts(ts({},g),{},{wrapper:S()(i?"select-module__with-icon__sdr2r":void 0,P?.icon?"select-module__with-item-icon__j4VL9":void 0,g?.wrapper)}),children:[n("input",ts(ts({ref:G([j,h]),id:R,className:S()(Fe,"select-module__input__ajhdt",g?.input),placeholder:p&&P?void 0:s},v),{},{value:p?"":P?.name??"",onChange:()=>{},onClick:C,disabled:m})),p&&!!P&&n("span",{className:S()(Te,g?.chips),children:n(tt,{componentSize:o,disabled:m,onClick:()=>x?.current?.click(),onRemove:()=>E(void 0),children:P.name})}),!!i&&n("span",{onClick:C,className:S()("select-module__icon__eKwKi",g?.icon),children:i}),!!P?.icon&&n("span",{onClick:C,className:S()("select-module__item-icon__qWzAS",g?.itemIcon),children:P?.icon}),n("span",{onClick:C,className:S()(Ne,g?.arrow),children:n(Na,{})}),n(Wo,{placement:"bottom-start",classes:ts({content:S()("select-module__popover-content__jWbFy","styledScroll",g?.popoverContent)},g?.popover),containerOffset:4,description:n(Ja,{items:c,classes:g,componentSize:"large"===o?"medium":o,selectedValue:P?.value,changeSelectedItem:E}),children:n("div",{ref:x,className:S()("select-module__popover-target__utEyc")})})]})}var os=s(353),is=s.n(os),ls="calendarPopover-module__button__Dpl18",as="calendarPopover-module__buttons-container__sW9eE",ss="calendarPopover-module__calendar-container__fGMyq",cs="calendarPopover-module__cell__fwBxE",us="calendarPopover-module__cell-circle__PykI1",ds="calendarPopover-module__cell-data__fnxK0",fs="calendarPopover-module__cell-selection__jmUxe",ps="calendarPopover-module__cell-selection-first__bRcBr",gs="calendarPopover-module__cell-selection-last__hyv9Z",hs="calendarPopover-module__cells-container__B6mTs",ms="calendarPopover-module__date-time-mode__eJCHs",bs="calendarPopover-module__medium__pk6es",vs="calendarPopover-module__month__FCpIG",ys="calendarPopover-module__month-cell-selection__phhRr",ws="calendarPopover-module__month-cell-selection-first__lSKG9",Os="calendarPopover-module__month-cell-selection-last__IKh98",Ss="calendarPopover-module__month-view__wNOC9",_s="calendarPopover-module__navigation-arrow__oiWet",Ps="calendarPopover-module__navigation-container__Hut1m",js="calendarPopover-module__navigation-title__sp73c",xs="calendarPopover-module__navigation-value__Ht40y",Cs="calendarPopover-module__root__R8QOY",Es="calendarPopover-module__small__GlV62",Rs="calendarPopover-module__time-container__x4jnu",ks="calendarPopover-module__time-divider__aRbbR",Ds="calendarPopover-module__time-selection-marker__bVI6A",Ms="calendarPopover-module__year__BTz_s";function Is(e){const{values:t,selectedValue:r,onSelect:o}=e,i=t.length,l=36*(i+r),a=(0,_.useRef)(null),s=(0,_.useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,_.useEffect)(()=>{const e=a.current;e&&(Math.abs(e.scrollTop-l)<=1||(e.scrollTop=l))},[l]);const c=(0,_.useCallback)(e=>t[(e%i+i)%i],[t,i]),u=(0,_.useCallback)(()=>{const e=a.current;if(!e)return;const t=Math.round(e.scrollTop/36),n=c(t);n!==r&&o(n),(t<i||t>=2*i)&&(e.scrollTop=36*(i+n))},[c,o,r,i]),d=(0,_.useCallback)(e=>()=>{const t=a.current;t?(t.scrollTo({top:36*(i+e),behavior:"smooth"}),o(e)):o(e)},[o,i]);return n("div",{ref:a,className:S()("timeWheelColumn-module__time-wheel__fk6Jj"),onScroll:u,tabIndex:-1,children:s.map((e,t)=>n("button",{type:"button",className:S()("timeWheelColumn-module__time-wheel-button__c61An","timeWheelColumn-module__time-wheel-item__Gjqub",e===r&&"timeWheelColumn-module__time-wheel-item-active__PLWg9"),onClick:d(e),children:n(ue,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function Ls(e){const{dayjs:o,componentSize:i,isPeriod:l=!0,valueType:a="date",initStartDate:s,initEndDate:c,changeDates:u,onClear:d,classes:f}=e,g=o??is(),h="dateTime"===a&&!l,[m,b]=(0,_.useState)("year"===a?"yearsRange":"month"),[v,y]=(0,_.useState)({year:g().year(),month:g().month()}),[w,O]=(0,_.useState)(s?h?g(s).second(0).millisecond(0).valueOf():g(s).startOf("D").valueOf():void 0),[P,j]=(0,_.useState)(c?g(c).startOf("D").valueOf():void 0),[x,C]=(0,_.useState)(h&&s?g(s).hour():0),[E,R]=(0,_.useState)(h&&s?g(s).minute():0),k=(0,_.useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),D=(0,_.useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),M=(0,_.useMemo)(()=>w?g(w).startOf("D").valueOf():void 0,[w,g]),I=(0,_.useMemo)(()=>P?g(P).startOf("D").valueOf():void 0,[P,g]),L=(0,_.useMemo)(()=>M?g(M).startOf("M").valueOf():void 0,[M,g]),N=(0,_.useMemo)(()=>I?g(I).startOf("M").valueOf():void 0,[I,g]),T=(0,_.useMemo)(()=>M?g(M).year():void 0,[M,g]),F=(0,_.useMemo)(()=>I?g(I).year():void 0,[I,g]),V=(0,_.useMemo)(()=>g(new Date(v.year,v.month,1)).startOf("month"===m?"M":"y"),[v,m,g]),A=V.daysInMonth();let z=V.startOf("M").day()-1;z<0&&(z=6),(0,_.useEffect)(()=>w||P?"year"===a?!l&&w?void u(g(w).format("YYYY")):l&&w&&P?void u(g(w).format("YYYY"),g(P).format("YYYY")):void 0:void(h&&w?u(g(w).second(0).millisecond(0).format()):l||!w?l&&w&&P&&u(g(w).format(),g(P).format()):u(g(w).format())):(d?.(),void u()),[w,P,l,a,h,g,u,d]);const $=(0,_.useCallback)((e,t,n)=>g(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[g]);(0,_.useEffect)(()=>{if(!h||!w)return;const e=$(w,x,E);e!==w&&O(e)},[h,w,x,E,$]);const H=(0,_.useCallback)(e=>()=>{const t=g(new Date(v.year,v.month,1)),n="yearsRange"===m?20*e:e,r="month"===m?"month":"year",o=t.add(n,r);y({month:o.month(),year:o.year()})},[m,v]),W=(0,_.useCallback)(()=>{"year"!==a&&b("month"===m?"year":"year"===m?"yearsRange":"month")},[m,a]),G=(0,_.useCallback)(e=>()=>{y({month:e.month(),year:e.year()}),b("month")},[]),q=(0,_.useCallback)(e=>()=>{const t=g(new Date(e,0,1)).startOf("y").valueOf();if(!l)return O(h&&M===t?void 0:h||w!==t?h?$(t,x,E):t:void 0),void j(void 0);w&&P?t===w?O(void 0):(t===P||O(t),j(void 0)):w?t===w?O(void 0):t<w?(j(w),O(t)):j(t):P?t===P?j(void 0):t<P?O(t):(O(P),j(t)):O(t)},[$,P,h,l,x,E,w,M]),U=(0,_.useMemo)(()=>{const e=V.year();return 20*Math.floor(e/20)},[V]),K=(0,_.useCallback)(e=>()=>{if(!l)return O(w===e?void 0:e),void j(void 0);w&&P?e===w?O(void 0):(e===P||O(e),j(void 0)):w?e===w?O(void 0):e<w?(j(w),O(e)):j(e):P?e===P?j(void 0):e<P?O(e):(O(P),j(e)):O(e)},[w,P,l]),Y=(0,_.useCallback)(e=>{O(void 0),j(void 0),h&&(C(0),R(0)),e.currentTarget.blur()},[h]),X=(0,_.useCallback)(e=>{y({year:g().year(),month:g().month()}),e.currentTarget.blur()},[V]);return r("div",{className:S()(Cs,p[i],h&&ms,f?.root),children:[r("div",{className:S()(ss,"month"===m&&Ss),children:[n("div",{className:S()(as,f?.buttonsContainer),children:r(Ta,{fillEvenly:!0,children:[n(B,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:Y,children:"Сбросить"}),"year"!==a&&n(B,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:X,children:"Сегодня"})]})}),r("div",{className:S()(Ps,f?.navigationContainer),children:[n("button",{type:"button",className:S()(ls,_s,f?.navigationArrow),onClick:H(-1),"aria-label":"Предыдущий период",children:n(Si,{})}),n("button",{type:"button",className:S()(ls,xs,f?.navigationValue),onClick:W,children:r(ue,{variant:"subtitle1",className:S()(js,f?.navigationTitle),children:["month"===m&&V.format("MMMM YYYY"),"year"===m&&V.format("YYYY"),"yearsRange"===m&&`${U} - ${U+19}`]})}),n("button",{type:"button",className:S()(ls,_s,f?.navigationArrow),onClick:H(1),"aria-label":"Следующий период",children:n(xi,{})})]}),r("div",{className:S()(hs,f?.cellsContainer),children:["yearsRange"===m&&n(t,{children:[...Array(20)].map((e,t)=>{const o=U+t,i="year"===a?q(o):()=>{y({month:0,year:o}),b("year")},s="year"===a&&void 0!==T&&(o===T||o===F);let c=!1,u=!1,d=!1;return void 0!==T&&(l?void 0!==F&&(T===F?o===T&&(c=!0):o>=T&&o<=F&&(c=!0,o===T?u=!0:o===F&&(d=!0))):"year"!==a&&o===T&&(c=!0)),r("button",{type:"button",className:S()(ls,cs,Ms,f?.cell,f?.year),onClick:i,children:[s&&n("span",{className:S()(us,f?.cellCircle)}),c&&n("span",{className:S()(fs,f?.cellSelection,u&&ps,u&&f?.cellSelectionFirst,d&&gs,d&&f?.cellSelectionLast)}),n(ue,{variant:"subtitle1",className:S()(ds,f?.cellData),children:o})]},`cell-year-${o}`)})}),"year"===m&&n(t,{children:[...Array(12)].map((e,t)=>{const o=V.add(t,"M"),i=o.valueOf();let s=!1,c=!1,u=!1;return l&&"year"!==a&&void 0!==L&&void 0!==N?L===N?i===L&&(s=!0):i>=L&&i<=N&&(s=!0,i===L?c=!0:i===N&&(u=!0)):l||"year"===a||void 0===L?s=l?void 0!==L&&void 0!==N&&i>=L&&i<=N:void 0!==L&&i===L:i===L&&(s=!0),r("button",{type:"button",className:S()(ls,cs,vs,f?.cell,f?.month),onClick:G(o),children:[s&&n("span",{className:S()(ys,f?.monthCellSelection,c&&ws,c&&f?.monthCellSelectionFirst,u&&Os,u&&f?.monthCellSelectionLast)}),n(ue,{variant:"subtitle1",className:S()(ds,f?.cellData),children:o.format("MMMM")})]},`cell-month-${t}`)})}),"month"===m&&r(t,{children:[[...Array(z)].map((e,t)=>n("div",{className:S()(cs,f?.cell)},`empty-cell-${t}`)),[...Array(A)].map((e,t)=>{const o=V.add(t,"d").valueOf();return r("button",{type:"button",className:S()(ls,cs,f?.cell),onClick:K(o),children:[(o===M||o===I)&&n("span",{className:S()(us,f?.cellCircle)}),void 0!==M&&void 0!==I&&o>=M&&o<=I&&n("span",{className:S()(fs,f?.cellSelection,o===M&&ps,o===M&&f?.cellSelectionFirst,o===I&&gs,o===I&&f?.cellSelectionLast)}),n(ue,{variant:"subtitle1",className:S()(ds,f?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),h&&r("div",{className:S()(Rs),children:[n("div",{className:S()(Ds)}),n(Is,{values:k,selectedValue:x,onSelect:C}),n(ue,{variant:"subtitle1",className:S()(ks),children:":"}),n(Is,{values:D,selectedValue:E,onSelect:R})]})]})}const Ns=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","placeholder","defaultValues","values","onClear","onValueChange","dayjs","classes","id","onFocus","onBlur"];function Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(n),!0).forEach(function(t){Vs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ts(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const As=(0,_.forwardRef)((e,t)=>{let{variant:o="filled",isPeriod:i=!1,valueType:l="date",defaultOpen:a=!1,componentSize:s="medium",fullWidth:c,label:u,placeholder:d,defaultValues:f,values:p,onClear:g,onValueChange:h,dayjs:m,classes:b,id:v,onFocus:y,onBlur:w}=e,O=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ns);const P=m??is(),[j,x]=(0,_.useState)(void 0!==p?p:f),[C,E]=(0,_.useState)(a),R=(0,_.useRef)(j);(0,_.useEffect)(()=>{void 0!==p&&x(p)},[p]),(0,_.useEffect)(()=>{void 0===p&&void 0!==f&&x(f)},[f,p]),(0,_.useEffect)(()=>{R.current=j},[j]);const k=i&&"dateTime"===l?"date":l,D=(0,_.useRef)(null),M=de(),I=v??M,L=(0,_.useCallback)(e=>{E(!0),y?.(e)},[y]),N=(0,_.useCallback)(e=>{C||w?.(e)},[C,w]),T=(0,_.useCallback)(e=>{if(E(e),!e){const e=R.current;void 0!==e&&h?.(e);const t=D.current;if(!t)return;if(document.activeElement===t)return void t.blur();w?.({target:t,currentTarget:t})}},[w,h]),F=(0,_.useCallback)(()=>{D.current?.focus()},[]),V=(0,_.useCallback)((e,t)=>{const n=i?[e,t]:[e],r=R.current,o=(r?.length??0)===n.length&&r?.every((e,t)=>e===n[t]);o||(R.current=n,x(n))},[i]);return r(Ve,{variant:o,componentSize:s,fullWidth:c,label:u,inputId:I,hasArrow:!0,classes:b,children:[n("input",Fs(Fs({ref:G([D,t]),id:I,className:S()(Fe,"dateTime-module__input__p1lxx",b?.input),placeholder:d},O),{},{value:j?.[0]?i&&j[1]?`${P(j[0]).format("year"===k?"YYYY":"DD.MM.YYYY")} - ${P(j[1]).format("year"===k?"YYYY":"DD.MM.YYYY")}`:`${P(j[0]).format("year"===k?"YYYY":"dateTime"===k?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:L,onBlur:N})),n("span",{onClick:F,className:S()(Ne,b?.icon),children:n(Li,{})}),n(Wo,{placement:"bottom-start",open:C,onOpenChange:T,classes:Fs(Fs({},b?.popover),{},{content:"dateTime-module__popover-content__I6nGv"}),containerOffset:4,description:n(Ls,{dayjs:P,classes:b,componentSize:"large"===s?"medium":s,isPeriod:i,valueType:k,initStartDate:j?.[0],initEndDate:j?.[1],changeDates:V,onClear:g}),children:n("div",{className:S()("dateTime-module__popover-target__PS8vx")})})]})});function zs(){return(zs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $s(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function Hs(e){var t=(0,_.useRef)(e),n=(0,_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var Bs=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},Ws=function(e){return"touches"in e},Gs=function(e){return e&&e.ownerDocument.defaultView||self},qs=function(e,t,n){var r=e.getBoundingClientRect(),o=Ws(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:Bs((o.pageX-(r.left+Gs(e).pageXOffset))/r.width),top:Bs((o.pageY-(r.top+Gs(e).pageYOffset))/r.height)}},Us=function(e){!Ws(e)&&e.preventDefault()},Ks=_.default.memo(function(e){var t=e.onMove,n=e.onKey,r=$s(e,["onMove","onKey"]),o=(0,_.useRef)(null),i=Hs(t),l=Hs(n),a=(0,_.useRef)(null),s=(0,_.useRef)(!1),c=(0,_.useMemo)(function(){var e=function(e){Us(e),(Ws(e)?e.touches.length>0:e.buttons>0)&&o.current?i(qs(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=s.current,i=Gs(o.current),l=n?i.addEventListener:i.removeEventListener;l(r?"touchmove":"mousemove",e),l(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(Us(t),!function(e,t){return t&&!Ws(e)}(t,s.current)&&r)){if(Ws(t)){s.current=!0;var l=t.changedTouches||[];l.length&&(a.current=l[0].identifier)}r.focus(),i(qs(r,t,a.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),l({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]},[l,i]),u=c[0],d=c[1],f=c[2];return(0,_.useEffect)(function(){return f},[f]),_.default.createElement("div",zs({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),Ys=function(e){return e.filter(Boolean).join(" ")},Xs=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=Ys(["react-colorful__pointer",e.className]);return _.default.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},_.default.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Zs=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Js=(Math.PI,function(e){return oc(Qs(e))}),Qs=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Zs(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?Zs(parseInt(e.substring(6,8),16)/255,2):1}},ec=function(e){var t=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Zs(e.h),s:Zs(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Zs(o/2),a:Zs(r,2)}}(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},tc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),l=r*(1-n),a=r*(1-(t-i)*n),s=r*(1-(1-t+i)*n),c=i%6;return{r:Zs(255*[r,a,l,l,s,r][c]),g:Zs(255*[s,r,r,a,l,l][c]),b:Zs(255*[l,l,s,r,r,a][c]),a:Zs(o,2)}},nc=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},rc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?nc(Zs(255*o)):"";return"#"+nc(t)+nc(n)+nc(r)+i},oc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),l=i-Math.min(t,n,r),a=l?i===t?(n-r)/l:i===n?2+(r-t)/l:4+(t-n)/l:0;return{h:Zs(60*(a<0?a+6:a)),s:Zs(i?l/i*100:0),v:Zs(i/255*100),a:o}},ic=_.default.memo(function(e){var t=e.hue,n=e.onChange,r=Ys(["react-colorful__hue",e.className]);return _.default.createElement("div",{className:r},_.default.createElement(Ks,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:Bs(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Zs(t),"aria-valuemax":"360","aria-valuemin":"0"},_.default.createElement(Xs,{className:"react-colorful__hue-pointer",left:t/360,color:ec({h:t,s:100,v:100,a:1})})))}),lc=_.default.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:ec({h:t.h,s:100,v:100,a:1})};return _.default.createElement("div",{className:"react-colorful__saturation",style:r},_.default.createElement(Ks,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:Bs(t.s+100*e.left,0,100),v:Bs(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Zs(t.s)+"%, Brightness "+Zs(t.v)+"%"},_.default.createElement(Xs,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:ec(t)})))}),ac=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function sc(e,t,n){var r=Hs(n),o=(0,_.useState)(function(){return e.toHsva(t)}),i=o[0],l=o[1],a=(0,_.useRef)({color:t,hsva:i});(0,_.useEffect)(function(){if(!e.equal(t,a.current.color)){var n=e.toHsva(t);a.current={hsva:n,color:t},l(n)}},[t,e]),(0,_.useEffect)(function(){var t;ac(i,a.current.hsva)||e.equal(t=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:t},r(t))},[i,e,r]);var s=(0,_.useCallback)(function(e){l(function(t){return Object.assign({},t,e)})},[]);return[i,s]}var cc="undefined"!=typeof window?_.useLayoutEffect:_.useEffect,uc=new Map,dc=function(e){var t,n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,l=e.onChange,a=$s(e,["className","colorModel","color","onChange"]),c=(0,_.useRef)(null);t=c,cc(function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!uc.has(e)){var n=e.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',uc.set(e,n);var r=s.nc;r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[]);var u=sc(r,i,l),d=u[0],f=u[1],p=Ys(["react-colorful",n]);return _.default.createElement("div",zs({},a,{ref:c,className:p}),_.default.createElement(lc,{hsva:d,onChange:f}),_.default.createElement(ic,{hue:d.h,onChange:f,className:"react-colorful__last-control"}))},fc={defaultColor:"000",toHsva:Js,fromHsva:function(e){return function(e){return rc(tc(e))}({h:e.h,s:e.s,v:e.v,a:1})},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||ac(Qs(e),Qs(t))}},pc=function(e){return _.default.createElement(dc,zs({},e,{colorModel:fc}))};const gc=["variant","componentSize","fullWidth","label","classes","placeholder","ref","disabled","defaultValue","id","onValueChange"];function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hc(Object(n),!0).forEach(function(t){bc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vc=e=>{const{variant:t="outlined",componentSize:o="medium",fullWidth:i,label:l,classes:a,placeholder:s,ref:c,disabled:u,defaultValue:d,id:f,onValueChange:p}=e,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,gc),[h,m]=(0,_.useState)(d?.toString()??"#AABBCC"),b=(0,_.useRef)(null),v=(0,_.useRef)(null),y=(0,_.useCallback)(e=>{m(e.toUpperCase()),p?.(e.toUpperCase())},[]),w=(0,_.useCallback)(e=>{e.preventDefault(),u||v?.current?.click()},[v]),O=f??Le();return r(Ve,{variant:t,componentSize:o,fullWidth:i,label:l,inputId:O,onLabelClick:w,hasStartIcon:!0,hasArrow:!0,classes:mc(mc({},a),{},{root:S()("colorPicker-module__root__yWPxF",a?.root)}),children:[n("input",mc(mc({ref:G([b,c]),id:O,className:S()(Fe,"colorPicker-module__input__gaesN",a?.input),placeholder:s},g),{},{value:h,onChange:()=>{},onClick:w,disabled:u})),n("span",{onClick:w,className:S()("colorPicker-module__swatch__MvnQ3",a?.icon),style:{backgroundColor:h}}),n("span",{onClick:w,className:S()(Ne,a?.arrow),children:n(Na,{})}),n(Wo,{placement:"bottom-start",classes:mc({content:S()("colorPicker-module__popover-content__lql7r",a?.popoverContent)},a?.popover),containerOffset:4,description:n(pc,{color:h,onChange:y}),children:n("div",{ref:v,className:S()("colorPicker-module__popover-target__M5buG")})})]})};var yc="input-module__field-icon__OVtdo";const wc=["variant","componentSize","fullWidth","label","startIcon","endIcon","classes","placeholder","id","type","onChange"];function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach(function(t){_c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _c(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pc=(0,_.forwardRef)((e,o)=>{let{variant:i="outlined",componentSize:l="medium",fullWidth:a,label:s,startIcon:c,endIcon:u,classes:d,placeholder:f,id:p,type:g,onChange:h}=e,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,wc);const b=(0,_.useRef)(null),[v,y]=(0,_.useState)(""),w=de(),O=p??w,P="file"===g,j=()=>{b.current?.focus()};return r(Ve,{variant:i,componentSize:l,fullWidth:a,label:s,inputId:O,hasStartIcon:!P&&!!c,hasEndIcon:!P&&!!u,classes:d,children:[P?r(t,{children:[n("input",Sc({ref:G([b,o]),id:O,className:S()("input-module__file-input__Hj1fC",d?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];y(t?.name??""),h?.(e)}},m)),r("div",{role:"button",tabIndex:0,className:S()(Fe,"input-module__file-display__GKw0F",d?.input),onClick:()=>b.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),b.current?.click())},children:[n("span",{className:S()("input-module__file-name__AVwRH",!v&&"input-module__placeholder__QpTXt"),children:v||f}),n(li,{size:20,className:"input-module__attach-icon__W3URr"})]})]}):n("input",Sc({ref:G([b,o]),id:O,className:S()(Fe,"input-module__input__Xce3x",d?.input),placeholder:f,type:g,autoComplete:"off",onChange:h},m)),!!c&&!P&&n("span",{onClick:j,className:S()("fieldShell-module__start-icon__FNrDk",yc,d?.startIcon),children:c}),!!u&&!P&&n("span",{onClick:j,className:S()("fieldShell-module__end-icon__ajeP3",yc,d?.endIcon),children:u})]})}),jc=e=>"string"==typeof e,xc=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Cc=e=>null==e?"":String(e),Ec=/###/g,Rc=e=>e&&e.includes("###")?e.replace(Ec,"."):e,kc=e=>!e||jc(e),Dc=(e,t,n)=>{const r=jc(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(kc(e))return{};const t=Rc(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return kc(e)?{}:{obj:e,k:Rc(r[o])}},Mc=(e,t,n)=>{const{obj:r,k:o}=Dc(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],l=t.slice(0,t.length-1),a=Dc(e,l,Object);for(;void 0===a.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),a=Dc(e,l,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},Ic=(e,t)=>{const{obj:n,k:r}=Dc(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Lc=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?jc(e[r])||e[r]instanceof String||jc(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Lc(e[r],t[r],n):e[r]=t[r]);return e},Nc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Tc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Fc=e=>jc(e)?e.replace(/[&<>"'\/]/g,e=>Tc[e]):e,Vc=[" ",",","?","!",";"],Ac=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),zc=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let l=e;l<r.length;++l)if(l!==e&&(i+=n),i+=r[l],t=o[i],void 0!==t){if(["string","number","boolean"].includes(typeof t)&&l<r.length-1)continue;e+=l-e+1;break}o=t}return o},$c=e=>e?.replace(/_/g,"-"),Hc={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Bc{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Hc,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>jc(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),jc(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Bc(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Bc(this.logger,e)}}var Wc=new Bc;class Gc{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){const n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n(e,...t)})}}class qc extends Gc{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.includes(".")?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):jc(n)&&o?l.push(...n.split(o)):l.push(n)));const a=Ic(this.data,l);return a||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!a&&i&&jc(n)?zc(this.data?.[e]?.[t],n,o):a}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(i?n.split(i):n)),e.includes(".")&&(l=e.split("."),r=t,t=l[1]),this.addNamespaces(t),Mc(this.data,l,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(jc(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let l=[e,t];e.includes(".")&&(l=e.split("."),r=n,n=t,t=l[1]),this.addNamespaces(t);let a=Ic(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Lc(a,n,o):a={...a,...n},Mc(this.data,l,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Uc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,o)??t}),t}};const Kc=Symbol("i18next/PATH_KEY");function Yc(e,t){const{[Kc]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Kc?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",o=t?.nsSeparator??":";if(n.length>1&&o){const e=t?.ns,i=Array.isArray(e)?e:null;if(i&&i.length>1&&i.slice(1).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const Xc=e=>!jc(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Zc extends Gc{constructor(e,t={}){super(),((e,t,n)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(n[e]=t[e])})})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Wc.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const o=Xc(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.includes(n),l=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=Vc.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=Ac.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!l){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:jc(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.includes(i[0]))&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:jc(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=Yc(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?Yc(e,{...this.options,...r}):String(e));const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:l,namespaces:a}=this.extractFromKey(e[e.length-1],r),s=a[a.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return d?o?{res:`${s}${c}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${c}${l}`:o?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:l;const f=this.resolve(e,r);let p=f?.res;const g=f?.usedKey||l,h=f?.exactUsedKey||l,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!jc(r.count),y=Zc.hasDefaultValue(r),w=v?this.pluralResolver.getSuffix(u,r.count,r):"",O=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",S=v&&!r.ordinal&&0===r.count,_=S&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${O}`]||r.defaultValue;let P=p;b&&!p&&y&&(P=_);const j=Xc(P),x=Object.prototype.toString.apply(P);if(!(b&&P&&j)||["[object Number]","[object Function]","[object RegExp]"].includes(x)||jc(m)&&Array.isArray(P))if(b&&jc(m)&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&y&&(t=!0,p=_),this.isValidLookup(p)||(o=!0,p=l);const a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=y&&_!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,s,v&&!d?`${l}${this.pluralResolver.getSuffix(u,r.count,r)}`:l,d?_:p),i){const e=this.resolve(l,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=y&&n!==p?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,o,d,r),this.emit("missingKey",e,s,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);S&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],l+t,r[`defaultValue${t}`]||_)})}):n(e,l,_))}p=this.extendTranslation(p,e,r,f,n),o&&p===l&&this.options.appendNamespaceToMissingKey&&(p=`${s}${c}${l}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${l}`:l,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,P,{...r,ns:a}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(i){const e=Array.isArray(P),t=e?[]:{},n=e?h:g;for(const e in P)if(Object.prototype.hasOwnProperty.call(P,e)){const o=`${n}${i}${e}`;t[e]=y&&!p?this.translate(o,{...r,defaultValue:Xc(_)?_[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...r,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=P[e])}p=t}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(r),f):p}extendTranslation(e,t,n,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=jc(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(i){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let a=n.replace&&!jc(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),e=this.interpolator.interpolate(e,a,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,l=jc(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=Uc.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,l;return jc(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?Yc(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const a=this.extractFromKey(e,t),s=a.key;r=s;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!jc(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(jc(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(l=e,this.checkedLoadedFor[`${p[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(l)||(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{if(this.isValidLookup(n))return;i=r;const l=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(o)&&l.push(s+e.replace(o,this.options.pluralSeparator)),l.push(s+e),d&&l.push(s+n)),f){const r=`${s}${this.options.contextSeparator||"_"}${t.context}`;l.push(r),u&&(t.ordinal&&e.startsWith(o)&&l.push(r+e.replace(o,this.options.pluralSeparator)),l.push(r+e),d&&l.push(r+n))}}let a;for(;a=l.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(r,e,a,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!jc(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class Jc{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Wc.create("languageUtils")}getScriptPartFromCode(e){if(!(e=$c(e))||!e.includes("-"))return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=$c(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(jc(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>!(e!==r&&(!e.includes("-")&&!r.includes("-")||(!e.includes("-")||r.includes("-")||e.slice(0,e.indexOf("-"))!==r)&&!(e.startsWith(r)&&r.length>1))))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),jc(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return jc(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):jc(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||o(this.formatLanguageCode(e))}),r}}const Qc={zero:0,one:1,two:2,few:3,many:4,other:5},eu={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class tu{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Wc.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=$c("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),eu;if(!e.match(/-|_/))return eu;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Qc[e]-Qc[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const nu=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=Ic(e,n);return void 0!==r?r:Ic(t,n)})(e,t,n);return!i&&o&&jc(n)&&(i=zc(e,n,r),void 0===i&&(i=zc(t,n,r))),i},ru=e=>e.replace(/\$/g,"$$$$");class ou{constructor(e={}){this.logger=Wc.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:s,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:h,maxReplaces:m,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:Fc,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?Nc(o):i||"{{",this.suffix=l?Nc(l):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u?Nc(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?Nc(c):"",this.nestingPrefix=d?Nc(d):f||Nc("$t("),this.nestingSuffix=p?Nc(p):g||Nc(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=e=>{if(!e.includes(this.formatSeparator)){const o=nu(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),l=o.join(this.formatSeparator).trim();return this.format(nu(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),l,n,{...r,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>ru(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ru(this.escape(e)):ru(e)}].forEach(t=>{for(l=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=s(n),void 0===i)if("function"==typeof c){const t=c(e,o,r);i=jc(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else jc(i)||this.useRawValueToEscape||(i=Cc(i));const a=t.safeValue(i);if(e=e.replace(o[0],a),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const l=(e,t)=>{const n=this.nestingOptionsSeparator;if(!e.includes(n))return e;const r=e.split(new RegExp(`${Nc(n)}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const l=o.match(/'/g),a=o.match(/"/g);((l?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let a=[];i={...n},i=i.replace&&!jc(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const s=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==s&&(a=r[1].slice(s).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,s)),o=t(l.call(this,r[1].trim(),i),i),o&&r[0]===e&&!jc(o))return o;jc(o)||(o=Cc(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),a.length&&(o=a.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const iu=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const l=r+JSON.stringify(i);let a=t[l];return a||(a=e($c(r),o),t[l]=a),a(n)}},lu=e=>(t,n,r)=>e($c(n),r)(t);class au{constructor(e={}){this.logger=Wc.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?iu:lu;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=iu(t)}format(e,t,n,r={}){if(!t)return e;if(null==e)return e;const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&!o[0].includes(")")&&o.find(e=>e.includes(")"))){const e=o.findIndex(e=>e.includes(")"));o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const l=r?.formatParams?.[r.interpolationkey]||{},a=l.locale||l.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...l})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class su extends Gc{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Wc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},l={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const l=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[l]=2:this.state[l]<0||(1===this.state[l]?void 0===i[l]&&(i[l]=!0):(this.state[l]=1,r=!1,void 0===i[l]&&(i[l]=!0),void 0===o[l]&&(o[l]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(l[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=Dc(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{l[e]||(l[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===l[e][t]&&(l[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const l=(l,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}l&&a&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,2*o,i)},o):i(l,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,l);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>l(null,e)).catch(l):l(null,n)}catch(e){l(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();jc(e)&&(e=this.languageUtils.toResolveHierarchy(e)),jc(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},l=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const a={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(e,t,n,r,a):s(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>l(null,e)).catch(l):l(null,o)}catch(e){l(e)}else s(e,t,n,r,l,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const cu=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),jc(e[1])&&(t.defaultValue=e[1]),jc(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),uu=e=>(jc(e.ns)&&(e.ns=[e.ns]),jc(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),jc(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),du=()=>{};class fu extends Gc{constructor(e={},t){var n;if(super(),this.options=uu(e),this.services={},this.logger=Wc,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(jc(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=cu();this.options={...n,...this.options,...uu(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?Wc.init(r(this.modules.logger),this.options):Wc.init(null,this.options),e=this.modules.formatter?this.modules.formatter:au;const t=new Jc(this.options);this.store=new qc(this.options.resources,this.options);const n=this.services;n.logger=Wc,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new tu(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new ou(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new su(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Zc(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=du),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const o=xc(),i=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),o}loadResources(e,t=du){let n=t;const r=jc(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=xc();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=du),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Uc.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}this.resolvedLanguage||this.languages.includes(e)||!this.store.hasLanguageSomeTranslations(e)||(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=xc();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=jc(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(jc(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...o)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const l={...this.options,...i};"function"==typeof i.keyPrefix&&(i.keyPrefix=Yc(i.keyPrefix,l));const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=Yc(e,l)),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=Yc(e,l)),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return jc(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=xc();return this.options.ns?(jc(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=xc();jc(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new Jc(cu());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new fu(e,t);return n.createInstance=fu.createInstance,n}cloneInstance(e={},t=du){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new fu(r);if(void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new qc(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...cu().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new ou(n)}return o.translator=new Zc(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const pu=fu.createInstance();pu.createInstance,pu.dir,pu.init,pu.loadResources,pu.reloadResources,pu.use,pu.changeLanguage,pu.getFixedT,pu.t,pu.exists,pu.setDefaultNamespace,pu.hasLoadedNamespace,pu.loadNamespaces,pu.loadLanguages,s(915),Object.create(null);const gu=(e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);wu(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},hu={},mu=(e,t,n,r)=>{wu(n)&&hu[n]||(wu(n)&&(hu[n]=new Date),gu(e,t,n,r))},bu=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},vu=(e,t,n)=>{e.loadNamespaces(t,bu(e,n))},yu=(e,t,n,r)=>{if(wu(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return vu(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,bu(e,r))},wu=e=>"string"==typeof e,Ou=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Su={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},_u=e=>Su[e];let Pu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Ou,_u),transDefaultProps:void 0};const ju=(0,_.createContext)();class xu{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}Error;const Cu={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"};new RegExp(Object.keys(Cu).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var Eu=s(888);const Ru={t:(e,t)=>{if(wu(t))return t;if("object"==typeof(n=t)&&null!==n&&wu(t.defaultValue))return t.defaultValue;var n;if("function"==typeof e)return"";if(Array.isArray(e)){const t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},ku=()=>()=>{},Du=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=(0,_.useContext)(ju)||{},i=n||r||void 0;i&&!i.reportNamespaces&&(i.reportNamespaces=new xu),i||mu(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=(0,_.useMemo)(()=>({...Pu,...i?.options?.react,...t}),[i,t]),{useSuspense:a,keyPrefix:s}=l,c=e||o||i?.options?.defaultNS,u=wu(c)?[c]:c||["translation"],d=(0,_.useMemo)(()=>u,u);i?.reportNamespaces?.addUsedNamespaces?.(d);const f=(0,_.useRef)(0),p=(0,_.useCallback)(e=>{if(!i)return ku;const{bindI18n:t,bindI18nStore:n}=l,r=()=>{f.current+=1,e()};return t&&i.on(t,r),n&&i.store.on(n,r),()=>{t&&t.split(" ").forEach(e=>i.off(e,r)),n&&n.split(" ").forEach(e=>i.store.off(e,r))}},[i,l]),g=(0,_.useRef)(),h=(0,_.useCallback)(()=>{if(!i)return Ru;const e=!(!i.isInitialized&&!i.initializedStoreOnce)&&d.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(mu(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,l)),n=t.lng||i.language,r=f.current,o=g.current;if(o&&o.ready===e&&o.lng===n&&o.keyPrefix===s&&o.revision===r)return o;const a={t:i.getFixedT(n,"fallback"===l.nsMode?d:d[0],s),ready:e,lng:n,keyPrefix:s,revision:r};return g.current=a,a},[i,d,s,l,t.lng]),[m,b]=(0,_.useState)(0),{t:v,ready:y}=(0,Eu.useSyncExternalStore)(p,h,h);(0,_.useEffect)(()=>{if(i&&!y&&!a){const e=()=>b(e=>e+1);t.lng?yu(i,t.lng,d,e):vu(i,d,e)}},[i,t.lng,d,y,a,m]);const w=i||{},O=(0,_.useRef)(null),S=(0,_.useRef)(),P=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},j=(0,_.useMemo)(()=>{const e=w,t=e?.language;let n=e;e&&(O.current&&O.current.__original===e?S.current!==t?(n=P(e),O.current=n,S.current=t):n=O.current:(n=P(e),O.current=n,S.current=t));const r=y||a?v:(...e)=>(mu(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...e)),o=[r,n,y];return o.t=r,o.i18n=n,o.ready=y,o},[v,w,y,w.resolvedLanguage,w.language,w.languages]);if(i&&a&&!y)throw new Promise(e=>{const n=()=>e();t.lng?yu(i,t.lng,d,n):vu(i,d,n)});return j},Mu=()=>{const{t:e,i18n:t}=Du();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}},Iu=["variant","disableIcon","placeholder","ref"];function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tu(e){const{variant:t="filled",disableIcon:r,placeholder:o,ref:i}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Iu),{t:a}=Mu();return n(Pc,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach(function(t){Nu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:i,variant:t,startIcon:r?void 0:n(Pl,{}),placeholder:o??a("Поиск...")},l))}var Fu="wrapForLabel-module__medium__xK1gW",Vu="wrapForLabel-module__root__qo0J8",Au="wrapForLabel-module__small__esSsd";const zu=e=>{const{componentSize:t="medium",children:r,classes:o}=e;return n("div",{className:S()(Vu,g[t],o?.root),children:r})};function $u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bu(Object(n),!0).forEach(function(t){Gu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qu(e){const{items:o,selected:i,disableSearch:l,isDisabled:a,actionWithSelected:s,onChangeItem:c,classes:u}=e,{t:d}=Mu(),[f,p]=(0,_.useState)(""),g=(0,_.useMemo)(()=>((e,t,n)=>t?e.reduce((e,r)=>(r.name.toUpperCase().includes(t.toUpperCase())&&!n[r.value]&&e.push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$u(Object(n),!0).forEach(function(t){Hu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]))(o,f,i),[o,f,i]),h=(0,_.useMemo)(()=>o.filter(e=>!!i[e.value]),[o,i]),m=(0,_.useCallback)(e=>{const t=!i[e.value];c&&c(e);const n=Wu(Wu({},i),{},{[e.value]:t});s(n)},[i,c,s]),b=(0,_.useCallback)(()=>{const e=Wu({},i);g.forEach(t=>{e[t.value]=!0}),s(e)},[i,g,s]),v=(0,_.useCallback)(()=>{const e=Wu({},i);h.forEach(t=>{delete e[t.value]}),s(e)},[i,h,s]),y=(0,_.useCallback)(e=>{p(e.target.value)},[]),w=(0,_.useCallback)(e=>t=>{t.stopPropagation(),m(e)},[m]);return r("div",{className:S()("checklist-module__root__AKDzG",u?.root),children:[!l&&n(Tu,{variant:"outlined",disabled:a,value:f,fullWidth:!0,classes:u?.searchInput,onChange:y}),r("div",{className:S()("checklist-module__scrolled__mpmGi","styledScroll",u?.scrolled),children:[h.length>0&&r(t,{children:[r("div",{className:S()("checklist-module__action-wrap__rW_zg",u?.actionWrap),children:[n(ue,{className:S()(u?.typography),children:d("Выбранное")}),n(B,{variant:"link",size:"small",disabled:a,onClick:v,className:S()(u?.button),children:d("Отменить")})]}),n("div",{children:h.map(e=>n(De,{label:e.name,checked:!!i[e.value],onChange:w(e),disabled:a,classes:u?.checkbox},`selected-${e.value}`))})]}),!a&&!!g.length&&n(B,{variant:"link",size:"small",disabled:a,onClick:b,className:S()(u?.button),children:d("Выбрать все")}),n("div",{children:g.map(e=>n(De,{label:e.name,checked:!!i[e.value],onChange:w(e),disabled:a,classes:u?.checkbox},`filtered-${e.value}`))})]})]})}const Uu=["checklistWrapper"];function Ku(e){const{items:t,selected:r,onSelectedChange:o,classes:i,enableSearch:l=!1,disabled:a}=e,s=(0,_.useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),c=(0,_.useMemo)(()=>{const e={};return r?.forEach(t=>{e[t]=!0}),e},[r]),u=(0,_.useCallback)(e=>{const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const r=t.find(e=>e.value===n);r&&e.push(r)}return e},[]);o(n)},[o,t]),d=i??{},{checklistWrapper:f}=d,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(d,Uu);return n("div",{className:S()(f),children:n(qu,{disableSearch:!l,isDisabled:a,items:s,selected:c,actionWithSelected:u,classes:p})})}const Yu=["variant","componentSize","icon","fullWidth","label","placeholder","items","onValueChange","selected","classes","ref","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];function Xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xu(Object(n),!0).forEach(function(t){Ju(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ju(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qu(e){const{variant:t="filled",componentSize:o="medium",icon:i,fullWidth:l,label:a,placeholder:s,items:c,onValueChange:u,selected:d,classes:f,ref:p,disabled:g,id:h,titleType:m="allValue",showSelectedCount:b=!1,enableSearch:v=!1,popoverInComponent:y=!1}=e,w=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Yu),O="chips"===m,{t:P}=Du(),j=(0,_.useRef)(null),x=(0,_.useRef)(null),C=(0,_.useRef)(null),[E,R]=(0,_.useState)(!1),[k,D]=(0,_.useState)(),[M,I]=(0,_.useState)(0),L=(0,_.useMemo)(()=>c.filter(e=>d?.includes(e.value)),[d,c]);(0,_.useLayoutEffect)(()=>{const e=j.current;if(!e)return;const t=()=>{const{width:t}=e.getBoundingClientRect();D(t),I(e=>e+1)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),(0,_.useLayoutEffect)(()=>{O&&I(e=>e+1)},[O,L.length]);const N=(0,_.useCallback)(e=>{e.preventDefault(),g||R(e=>!e)},[g]),T=(0,_.useCallback)(e=>{u?.(e)},[u]),F=(0,_.useMemo)(()=>L.length?((e,t,n)=>{switch(e){case"allValue":return t.map(e=>e.name).join(", ");case"numberValue":return`${n("Выбрано элементов")}: `+t.length;case"firstValue":return`${t[0]?.name} ${t.length>1?" +"+(t.length-1):""}`;case"chips":return""}})(m,L,P):"",[m,L,P]),V=h??Le();return r(Ve,{variant:t,componentSize:o,fullWidth:l,label:a,labelExtra:b&&L.length>0?n("span",{className:S()("multiSelect-module__label-selected-count__gCPqL",f?.labelSelectedCount),children:` (${L.length})`}):void 0,inputId:V,onLabelClick:N,wrapperRef:j,hasStartIcon:!!i,hasArrow:!0,chipsMode:O,classes:f,children:[n("input",Zu(Zu({ref:G([x,p]),id:V,className:S()(Fe,"multiSelect-module__input__Hk3TU",f?.input),placeholder:O&&L.length?void 0:s},w),{},{value:O?"":F,onClick:N,disabled:g,readOnly:!0,title:O?void 0:L.map(e=>e.name).join(", "),autoComplete:"off"})),O&&!!L.length&&n("span",{className:S()(Te,"multiSelect-module__chips__CUViE",f?.chips),children:L.map(e=>n(tt,{componentSize:o,disabled:g,onClick:()=>{g||R(e=>!e)},onRemove:()=>{const t=L.filter(t=>t.value!==e.value);u?.(t.length?t:null)},children:e.name},e.value))}),!!i&&n("span",{onClick:N,className:S()("multiSelect-module__icon__TnLPX",f?.icon),children:i}),!!L.length&&n("span",{onClick:()=>{u?.(null)},className:S()("multiSelect-module__clear__CwQiH",f?.clear),children:n(He,{})}),n("span",{onClick:N,className:S()(Ne,f?.arrow),children:n(Na,{})}),n(Wo,{placement:"bottom-start",open:E,onOpenChange:R,contentStyle:k?{width:k,minWidth:k,maxWidth:k}:void 0,classes:Zu({content:S()("multiSelect-module__popover-content__p_jyb",f?.popoverContent)},f?.popover),containerOffset:4,layoutVersion:M,root:y?j.current:void 0,description:n(Ku,{items:c,classes:Zu({searchInput:Zu({root:"multiSelect-module__search-input-root__rCmDl"},f?.selectPopover?.searchInput),root:"multiSelect-module__checklist-root__hidSo",checklistWrapper:S()("multiSelect-module__checklist-wrapper__EDrnx"),scrolled:"multiSelect-module__checklist-scrolled__KC8yS"},f?.selectPopover),componentSize:"large"===o?"medium":o,selected:d,onSelectedChange:T,enableSearch:v,disabled:g}),children:n("div",{ref:C,className:S()("multiSelect-module__popover-target__x51qe")})})]})}var ed="radioButton-module__pressed__n_bXs",td="radioButton-module__radio__fDsQH";const nd=["label","componentSize","canUncheck","onUncheck","classes","id","ref","onClick"];function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(n),!0).forEach(function(t){id(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function id(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ld(e){const{label:t,componentSize:o="medium",canUncheck:i,onUncheck:l,classes:a,id:s,ref:c,onClick:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,nd),f=(0,_.useRef)(null),p=(0,_.useRef)(!1),g=de(),h=s??g;(0,_.useEffect)(()=>{const e=f.current;if(!e)return;const t=()=>e.classList.remove(ed),n=()=>{e.classList.add(ed),p.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const m=(0,_.useCallback)(e=>{i&&p.current&&(f.current.checked=!1,l?.()),u?.(e)},[i,l,u]),b="large"===o?"subtitle1":"subtitle2";return r("div",{className:S()("radioButton-module__root__fxVmv",a?.root),children:[n("input",od({ref:G([f,c]),type:"radio",className:S()("radioButton-module__input__O_xQT",a?.input),id:h,title:t,onClick:m},d)),r("label",{htmlFor:h,className:S()("radioButton-module__label__A9fWR",a?.label),title:t,children:[n("span",{className:S()(td,"radioButton-module__deselected__kGeIi",a?.radio),children:n(gi,{})}),n("span",{className:S()(td,"radioButton-module__selected__atkc_",a?.radio),children:n(vi,{})}),!!t&&n(ue,{variant:b,className:S()("radioButton-module__label-text__KSEbB",a?.labelText),children:t})]})]})}var ad="surface-module__modal__CtpUb",sd="surface-module__panel__WAxUP",cd="surface-module__primary__k8467",ud="surface-module__root__h8d8c";function dd(e){const{type:t="primary",children:r,classes:o}=e;return n("div",{className:S()(ud,o?.root,h[t]),children:r})}function fd(e){const{withoutHeader:t,children:r,classes:o}=e;return n("div",{className:S()("layout-module__root__I9KVI",t?void 0:"layout-module__with-header___aKcB",o?.root),children:r})}var pd="tooltip-module__arrow__SONUP",gd="tooltip-module__bottom-arrow__GdFYs",hd="tooltip-module__content__nH6p2",md="tooltip-module__error__XWI8s",bd="tooltip-module__info__un5n7",vd="tooltip-module__left-arrow__BFwGV",yd="tooltip-module__right-arrow__ZFRBE",wd="tooltip-module__success__OXBJT",Od="tooltip-module__top-arrow__UHvch",Sd="tooltip-module__trigger__PIfJx",_d="tooltip-module__warning__Xb_Wr";const Pd=(0,_.createContext)(null),jd=["styles","style","children"],xd=["context"];function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(n),!0).forEach(function(t){Rd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Dd=(0,_.forwardRef)(function(e,t){let{styles:o,style:i,children:l}=e,a=kd(e,jd);const s=(0,_.useContext)(Pd);if(!s)return null;const{context:c}=s,u=kd(s,xd),d=wr([u.refs.setFloating,t]);if(!c.open)return null;let f="",p=null,g=null;switch(u.placement){case"top":case"top-end":case"top-start":f="topArrow",g=!1;break;case"bottom":case"bottom-end":case"bottom-start":f="bottomArrow",g=!0;break;case"left":case"left-end":case"left-start":f="leftArrow",p=!0;break;case"right":case"right-end":case"right-start":f="rightArrow",p=!1}return n(Qr,{root:u.root,children:r("div",Ed(Ed({ref:d,style:Ed(Ed({},u.floatingStyles),i)},u.getFloatingProps(a)),{},{children:[l,!u.withoutArrow&&n("div",{className:o&&S()(o.arrow,o[f]),ref:u.arrowRef,style:{position:"absolute",left:null===g&&!1===p?0:u.middlewareData.arrow?.x,right:null===g&&!0===p?0:u.middlewareData.arrow?.x,top:null===p&&!0===g?0:u.middlewareData.arrow?.y,bottom:null===p&&!1===g?0:u.middlewareData.arrow?.y}})]}))})});function Md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Md(Object(n),!0).forEach(function(t){Ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Md(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ld(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nd=["children"],Td=e=>{const{children:t}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Nd),o=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:o,withoutArrow:i,arrowRef:l,root:a}=e,[s,c]=(0,_.useState)(t),u=r??s,d=o??c,f=mo({placement:n,open:u,onOpenChange:d,whileElementsMounted:ar,middleware:[mr(12),vr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),br({padding:5}),...!i&&l?.current?[yr({element:l})]:[]]}),{context:p}=f,g=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:l}=e,{enabled:a=!0,delay:s=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=Mr(),g=Dr(),h=un(c),m=un(s),b=un(n),v=un(d),y=_.useRef(),w=_.useRef(-1),O=_.useRef(),S=_.useRef(-1),P=_.useRef(!0),j=_.useRef(!1),x=_.useRef(()=>{}),C=_.useRef(!1),E=fn(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});_.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(Lr(w),Lr(S),P.current=!0,C.current=!1)}},[a,i]),_.useEffect(()=>{if(!a)return;if(!h.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=en(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[l.floating,n,r,a,h,E]);const R=_.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Tr(m.current,"close",y.current);o&&!O.current?(Lr(w),w.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(Lr(w),r(!1,e,n))},[m,r]),k=fn(()=>{x.current(),O.current=void 0}),D=fn(()=>{if(j.current){const e=en(l.floating).body;e.style.pointerEvents="",e.removeAttribute(Nr),j.current=!1}}),M=fn(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));_.useEffect(()=>{if(a&&at(l.domReference)){const r=l.domReference,o=l.floating;return n&&r.addEventListener("mouseleave",i),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c)),()=>{n&&r.removeEventListener("mouseleave",i),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",i),o.removeEventListener("mouseenter",s),o.removeEventListener("mouseleave",c))}}function e(e){if(Lr(w),P.current=!1,u&&!sn(y.current)||Fr(v.current)>0&&!Tr(m.current,"open"))return;const t=Tr(m.current,"open",y.current);t?w.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(M())return void D();x.current();const t=en(l.floating);if(Lr(S),C.current=!1,h.current&&o.current.floatingContext){n||Lr(w),O.current=h.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e,!0,"safe-polygon")}});const r=O.current;return t.addEventListener("mousemove",r),void(x.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Zt(l.floating,e.relatedTarget))&&R(e)}function i(e){M()||o.current.floatingContext&&(null==h.current||h.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e)}})(e))}function s(){Lr(w)}function c(e){M()||R(e,!1)}},[l,a,e,u,f,R,k,D,r,n,b,p,m,h,o,M,v]),cn(()=>{var e;if(a&&n&&null!=(e=h.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&E()){j.current=!0;const e=l.floating;if(at(l.domReference)&&e){var t;const n=en(l.floating).body;n.setAttribute(Nr,"");const r=l.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===g))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[a,n,g,l,p,h,E]),cn(()=>{n||(y.current=void 0,C.current=!1,k(),D())},[n,k,D]),_.useEffect(()=>()=>{k(),Lr(w),Lr(S),D()},[a,l.domReference,k,D]);const I=_.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){P.current||b.current||r(!0,t,"hover")}u&&!sn(y.current)||n||0===Fr(v.current)||C.current&&e.movementX**2+e.movementY**2<2||(Lr(S),"touch"===y.current?o():(C.current=!0,S.current=window.setTimeout(o,Fr(v.current))))}}},[u,r,n,b,v]);return _.useMemo(()=>a?{reference:I}:{},[a,I])}(p,{move:!1,enabled:null==r}),h=wo([g,vo(p,{enabled:null==r}),ho(p),So(p,{role:"tooltip"})]);return(0,_.useMemo)(()=>Id(Id({open:u,setOpen:d,withoutArrow:i,arrowRef:l,root:a},h),f),[u,d,h,f,a])}(r);return n(Pd.Provider,{value:o,children:t})},Fd=["children","wrapTrigger"];function Vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vd(Object(n),!0).forEach(function(t){zd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $d=(0,_.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Fd);const l=(0,_.useContext)(Pd),a=r.ref,s=wr([l?.refs.setReference,t,a]);return l?!o&&(0,_.isValidElement)(r)?(0,_.cloneElement)(r,l.getReferenceProps(Ad(Ad(Ad({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",Ad(Ad({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function Hd(e){const{label:o,clickable:i,initialOpen:l,placement:a,withoutArrow:s,wrapTrigger:c,alertType:u="default",root:d,children:f,classes:p}=e,[g,h]=(0,_.useState)(!1),b=(0,_.useRef)(null);return o?f?r(Td,{placement:a,initialOpen:l,open:i?g:void 0,onOpenChange:i?h:void 0,withoutArrow:s,arrowRef:b,root:d,children:[n($d,{wrapTrigger:c,onClick:i?()=>h(e=>!e):void 0,className:c?S()(Sd,p?.trigger):void 0,children:f}),n(Dd,{className:S()(hd,m[u],p?.content),styles:m,children:o})]}):null:f?n(t,{children:f}):null}var Bd="tabs-module__disable-border__Vw9nt",Wd="tabs-module__disabled__e_X85",Gd="tabs-module__filled__Kzrnb",qd="tabs-module__icon-only__qDPjH",Ud="tabs-module__medium__dvN0f",Kd="tabs-module__root__m7YiQ",Yd="tabs-module__selected__YEXTT",Xd="tabs-module__selected-filled__MkMIt",Zd="tabs-module__small__hiwdI",Jd="tabs-module__tab__NoNie",Qd="tabs-module__tab-border__tvFwj",ef="tabs-module__tab-border-vertical__TVo15",tf="tabs-module__tab-filled__Gmwpo",nf="tabs-module__tab-icon__Kj5Oa",rf="tabs-module__tab-title__XsuJP",of="tabs-module__tab-vertical__WQDkd",lf="tabs-module__vertical__sPO6h";function af(e){const{items:t,defaultSelected:o,onChange:i,size:l="medium",filled:a=!1,isVertical:s=!1,disableBorder:c=!1,allowDeselect:u=!1,showTooltips:d=!1,useExternalState:f=!1,value:p,classes:g}=e,[h,m]=(0,_.useState)(!1),[v,y]=(0,_.useState)(o),w=f?p:v,O=e=>()=>{e.isDisabled||(e.onClick?e.onClick():f?u&&w===e.value?i?.(void 0):i?.(e.value):u&&v===e.value?y(void 0):y(e.value))};return(0,_.useEffect)(()=>{h&&!f&&i?.(v),h||m(!0)},[v,f]),n("div",{className:S()(Kd,a&&Gd,s&&lf,c&&Bd,b[l],g?.root),children:t.map(e=>{const t=!e.onClick&&w===e.value,o=r("div",{className:S()(Jd,a&&tf,s&&of,c&&Bd,t?Yd:void 0,t&&a?Xd:void 0,e.isDisabled&&Wd,g?.tab,t?g?.tabSelected:void 0,e.isDisabled?g?.tabDisabled:void 0),onClick:O(e),children:[r("div",{className:S()(rf,d&&e.icon&&qd,g?.tabTitle,t?g?.tabSelectedTitle:void 0),children:[e.icon&&n("span",{className:nf,children:"string"==typeof e.icon?n("span",{className:nf,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!d&&e.name&&n("span",{title:e.name,children:e.name})]}),n("div",{className:S()(Qd,s&&ef,c&&Bd,g?.tabBorder,t?g?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return d&&e.name?n(Hd,{label:e.name,placement:s?"right":"top",children:o},`tab-${e.value}`):o})})}function sf(e,t){return"function"==typeof e?e(t):e}function cf(e,t){return n=>{t.setState(t=>({...t,[e]:sf(n,t[e])}))}}function uf(e){return e instanceof Function}function df(e,t,n){let r,o=[];return i=>{let l;n.key&&n.debug&&(l=Date.now());const a=e(i),s=a.length!==o.length||a.some((e,t)=>o[t]!==e);if(!s)return r;let c;if(o=a,n.key&&n.debug&&(c=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-c))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function ff(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const pf="debugHeaders";function gf(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}const hf={createTable:e=>{e.getHeaderGroups=df(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,l;const a=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],s=null!=(l=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[];return mf(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...s],e)},ff(e.options,pf)),e.getCenterHeaderGroups=df(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>mf(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),ff(e.options,pf)),e.getLeftHeaderGroups=df(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return mf(t,i,e,"left")},ff(e.options,pf)),e.getRightHeaderGroups=df(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return mf(t,i,e,"right")},ff(e.options,pf)),e.getFooterGroups=df(()=>[e.getHeaderGroups()],e=>[...e].reverse(),ff(e.options,pf)),e.getLeftFooterGroups=df(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),ff(e.options,pf)),e.getCenterFooterGroups=df(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),ff(e.options,pf)),e.getRightFooterGroups=df(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),ff(e.options,pf)),e.getFlatHeaders=df(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),ff(e.options,pf)),e.getLeftFlatHeaders=df(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),ff(e.options,pf)),e.getCenterFlatHeaders=df(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),ff(e.options,pf)),e.getRightFlatHeaders=df(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),ff(e.options,pf)),e.getCenterLeafHeaders=df(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),ff(e.options,pf)),e.getLeftLeafHeaders=df(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),ff(e.options,pf)),e.getRightLeafHeaders=df(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),ff(e.options,pf)),e.getLeafHeaders=df(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,l,a,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},ff(e.options,pf))}};function mf(e,t,n,r){var o,i;let l=0;const a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const l=[...i].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),l&&(null==l?void 0:l.column)===a)l.subHeaders.push(e);else{const o=gf(n,a,{id:[r,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),s.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>gf(n,e,{depth:l,index:t}));c(u,l-1),s.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const bf=(e,t,n,r,o,i,l)=>{let a={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,r),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}(a.subRows,e=>e.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:df(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:df(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),ff(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),ff(e.options,"debugRows")),_getAllCellsByColumnId:df(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),ff(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a},vf={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},yf=(e,t,n)=>{var r,o;const i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))};yf.autoRemove=e=>Rf(e);const wf=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};wf.autoRemove=e=>Rf(e);const Of=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Of.autoRemove=e=>Rf(e);const Sf=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Sf.autoRemove=e=>Rf(e);const _f=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});_f.autoRemove=e=>Rf(e)||!(null!=e&&e.length);const Pf=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});Pf.autoRemove=e=>Rf(e)||!(null!=e&&e.length);const jf=(e,t,n)=>e.getValue(t)===n;jf.autoRemove=e=>Rf(e);const xf=(e,t,n)=>e.getValue(t)==n;xf.autoRemove=e=>Rf(e);const Cf=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Cf.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,l=null===n||Number.isNaN(o)?1/0:o;if(i>l){const e=i;i=l,l=e}return[i,l]},Cf.autoRemove=e=>Rf(e)||Rf(e[0])&&Rf(e[1]);const Ef={includesString:yf,includesStringSensitive:wf,equalsString:Of,arrIncludes:Sf,arrIncludesAll:_f,arrIncludesSome:Pf,equals:jf,weakEquals:xf,inNumberRange:Cf};function Rf(e){return null==e||""===e}const kf={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:cf("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?Ef.includesString:"number"==typeof r?Ef.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?Ef.equals:Array.isArray(r)?Ef.arrIncludes:Ef.weakEquals},e.getFilterFn=()=>{var n,r;return uf(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:Ef[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),i=sf(n,o?o.value:void 0);var l;if(Df(r,i,e))return null!=(l=null==t?void 0:t.filter(t=>t.id!==e.id))?l:[];const a={id:e.id,value:i};var s;return o?null!=(s=null==t?void 0:t.map(t=>t.id===e.id?a:t))?s:[]:null!=t&&t.length?[...t,a]:[a]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=sf(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!Df(t.getFilterFn(),e.value,t)})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Df(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Mf={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(!function(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},If={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:cf("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?Mf.sum:"[object Date]"===Object.prototype.toString.call(r)?Mf.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return uf(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:Mf[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},Lf={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:cf("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=df(e=>[$f(t,e)],t=>t.findIndex(t=>t.id===e.id),ff(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=$f(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=$f(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=df(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;const o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...r]}(o,t,n)},ff(e.options,"debugTable"))}},Nf={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:cf("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,l,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!l&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=df(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},ff(t.options,"debugRows")),e.getLeftVisibleCells=df(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},ff(t.options,"debugRows")),e.getRightVisibleCells=df(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},ff(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=df(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),ff(e.options,"debugColumns")),e.getRightLeafColumns=df(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),ff(e.options,"debugColumns")),e.getCenterLeafColumns=df(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},ff(e.options,"debugColumns"))}},Tf={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Ff={getDefaultColumnDef:()=>Tf,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:cf("columnSizing",e),onColumnSizingInfoChange:cf("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:Tf.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:Tf.size),null!=(o=e.columnDef.maxSize)?o:Tf.maxSize)},e.getStart=df(e=>[e,$f(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),ff(t.options,"debugColumns")),e.getAfter=df(e=>[e,$f(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),ff(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o)return;if(null==i.persist||i.persist(),Af(i)&&i.touches&&i.touches.length>1)return;const l=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],s=Af(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,l=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,a=Math.max(l/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*a,0))/100}),{...e,deltaOffset:l,deltaPercentage:a}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...c})))},d=e=>u("move",e),f=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("undefined"!=typeof document?document:null),g={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",g.moveHandler),null==p||p.removeEventListener("mouseup",g.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",h.moveHandler),null==p||p.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof Vf)return Vf;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return Vf=e,Vf}()&&{passive:!1};Af(i)?(null==p||p.addEventListener("touchmove",h.moveHandler,m),null==p||p.addEventListener("touchend",h.upHandler,m)):(null==p||p.addEventListener("mousemove",g.moveHandler,m),null==p||p.addEventListener("mouseup",g.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:s,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let Vf=null;function Af(e){return"touchstart"===e.type}const zf={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:cf("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=df(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),ff(t.options,"debugRows")),e.getVisibleCells=df(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],ff(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>df(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),ff(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function $f(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Hf={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:cf("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>sf(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=sf(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,sf(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=sf(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=df(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},ff(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},Bf={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:cf("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],l=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...l,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,l,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!l&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=df(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),ff(e.options,"debugRows")),e.getBottomRows=df(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),ff(e.options,"debugRows")),e.getCenterRows=df(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},ff(e.options,"debugRows"))}},Wf={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:cf("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{Gf(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=df(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?qf(e,n):{rows:[],flatRows:[],rowsById:{}},ff(e.options,"debugTable")),e.getFilteredSelectedRowModel=df(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?qf(e,n):{rows:[],flatRows:[],rowsById:{}},ff(e.options,"debugTable")),e.getGroupedSelectedRowModel=df(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?qf(e,n):{rows:[],flatRows:[],rowsById:{}},ff(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var l;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return Gf(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Uf(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Kf(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Kf(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},Gf=(e,t,n,r,o)=>{var i;const l=o.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=l.subRows)&&i.length&&l.getCanSelectSubRows()&&l.subRows.forEach(t=>Gf(e,t.id,n,r,o))};function qf(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=Uf(e,n);if(l&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),l)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Uf(e,t){var n;return null!=(n=t[e.id])&&n}function Kf(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(Uf(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=Kf(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const Yf=/([0-9]+)/gm;function Xf(e,t){return e===t?0:e>t?1:-1}function Zf(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Jf(e,t){const n=e.split(Yf).filter(Boolean),r=t.split(Yf).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),l=[o,i].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const Qf={alphanumeric:(e,t,n)=>Jf(Zf(e.getValue(n)).toLowerCase(),Zf(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Jf(Zf(e.getValue(n)),Zf(t.getValue(n))),text:(e,t,n)=>Xf(Zf(e.getValue(n)).toLowerCase(),Zf(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Xf(Zf(e.getValue(n)),Zf(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>Xf(e.getValue(n),t.getValue(n))},ep={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:cf("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return Qf.datetime;if("string"==typeof n&&(r=!0,n.split(Yf).length>1))return Qf.alphanumeric}return r?Qf.text:Qf.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return uf(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:Qf[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting(l=>{const a=null==l?void 0:l.find(t=>t.id===e.id),s=null==l?void 0:l.findIndex(t=>t.id===e.id);let c,u=[],d=i?n:"desc"===o;var f;return c=null!=l&&l.length&&e.getCanMultiSort()&&r?a?"toggle":"add":null!=l&&l.length&&s!==l.length-1?"replace":a?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c?(u=[...l,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):u="toggle"===c?l.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===c?l.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],u})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?!!(l===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===l?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},tp=[hf,zf,Lf,Nf,vf,kf,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:cf("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Ef.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return uf(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Ef[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},ep,If,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:cf("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(o=n)?o:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=l;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Hf,Bf,Wf,Ff];function np(e){var t,n;const r=[...tp,...null!=(t=e._features)?t:[]];let o={_features:r};const i=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{});let l={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;l=null!=(t=null==e.getInitialState?void 0:e.getInitialState(l))?t:l});const a=[];let s=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:e=>{a.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=sf(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:df(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},ff(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:df(()=>[o._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const i=function(e,t,n,r){var o,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let s,c=null!=(o=null!=(i=l.id)?i:a?"function"==typeof String.prototype.replaceAll?a.replaceAll(".","_"):a.replace(/\./g,"_"):void 0)?o:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?s=l.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[l.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:s,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:df(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},ff(e.options,"debugColumns")),getLeafColumns:df(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[u]},ff(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),l=e;return i.columns=l.columns?t(l.columns,i,r+1):[],i})};return t(e)},ff(e,"debugColumns")),getAllFlatColumns:df(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),ff(e,"debugColumns")),_getAllFlatColumnsById:df(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),ff(e,"debugColumns")),getAllLeafColumns:df(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),ff(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function rp(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?_.createElement(e,t):e:null;var n}function op(e,t,n){let r,o=n.initialDeps??[],i=!0;function l(){var l,a,s;let c;n.key&&(null==(l=n.debug)?void 0:l.call(n))&&(c=Date.now());const u=e(),d=u.length!==o.length||u.some((e,t)=>o[t]!==e);if(!d)return r;let f;if(o=u,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(f=Date.now()),r=t(...u),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-f))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return!(null==n?void 0:n.onChange)||i&&n.skipInitialOnChange||n.onChange(r),i=!1,r}return l.updateDeps=e=>{o=e},l}function ip(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const lp=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},ap=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},sp=e=>e,cp=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},up=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(ap(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(ap(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},dp={passive:!0},fp="undefined"==typeof window||"onscrollend"in window,pp=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&fp?()=>{}:lp(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=r=>()=>{const{horizontal:l,isRtl:a}=e.options;o=l?n.scrollLeft*(a?-1:1):n.scrollTop,i(),t(o,r)},a=l(!0),s=l(!1);n.addEventListener("scroll",a,dp);const c=e.options.useScrollendEvent&&fp;return c&&n.addEventListener("scrollend",s,dp),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",s)}},gp=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},hp=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const l=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class mp{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,n=this.indexFromElement(t);t.isConnected?this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this)):this.observer.unobserve(t)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:sp,rangeExtractor:cp,onChange:()=>{},measureElement:gp,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=op(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=op(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,t,n,r,o,i,l)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l}),{key:!1}),this.getMeasurements=op(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l},a)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const c=this.measurementsCache.slice(0,s),u=new Array(i).fill(void 0);for(let e=0;e<s;e++){const t=c[e];t&&(u[t.lane]=e)}for(let o=s;o<e;o++){const e=r(o),i=this.laneAssignments.get(o);let s,d;const f="estimate"===l||a.has(e);if(void 0!==i&&this.options.lanes>1){s=i;const e=u[s],r=void 0!==e?c[e]:void 0;d=r?r.end+this.options.gap:t+n}else{const e=1===this.options.lanes?c[o-1]:this.getFurthestMeasurement(c,o);d=e?e.end+this.options.gap:t+n,s=e?e.lane:o%this.options.lanes,this.options.lanes>1&&f&&this.laneAssignments.set(o,s)}const p=a.get(e),g="number"==typeof p?p:this.options.estimateSize(o),h=d+g;c[o]={index:o,start:d,size:g,end:h,key:e,lane:s},u[s]=o}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=op(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:o};let i=bp(0,o,t=>e[t].start,n),l=i;if(1===r)for(;l<o&&e[l].end<n+t;)l++;else if(r>1){const a=Array(r).fill(0);for(;l<o&&a.some(e=>e<n+t);){const t=e[l];a[t.lane]=t.end,l++}const s=Array(r).fill(n+t);for(;i>=0&&s.some(e=>e>=n);){const t=e[i];s[t.lane]=t.start,i--}i=Math.max(0,i-i%r),l=Math.min(o,l+(r-1-l%r))}return{startIndex:i,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=op(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),o=Math.min(this.options.count-1,n+t);return e>=r&&e<=o}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n;const r=this.measurementsCache[e];if(!r)return;const o=t-(this.itemSizeCache.get(r.key)??r.size);0!==o&&("smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,o,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,t)),this.notify(!1))},this.getVirtualItems=op(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return ip(t[bp(0,t.length-1,e=>ip(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),o=this.measurementsCache[e];if(!o)return;if("auto"===t)if(o.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(o.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const i="end"===t?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,o.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{const r=this.getOffsetForAlignment(e,t),o=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:o,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,t);if(!r)return;const[o,i]=r,l=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&((e,t)=>Math.abs(e-t)<1.01)(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return void(this.scrollState=null)}else this.scrollState.stableFrames=0,n&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior="auto",this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const bp=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},vp="undefined"!=typeof document?_.useLayoutEffect:_.useEffect;function yp(e){return function({useFlushSync:e=!0,...t}){const n=_.useReducer(()=>({}),{})[1],r={...t,onChange:(r,o)=>{var l;e&&o?i(n):n(),null==(l=t.onChange)||l.call(t,r,o)}},[o]=_.useState(()=>new mp(r));return o.setOptions(r),vp(()=>o._didMount(),[]),vp(()=>o._willUpdate()),o}({observeElementRect:up,observeElementOffset:pp,scrollToFn:hp,...e})}const wp=32,Op=["open","onClose","root","children"];function Sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sp(Object(n),!0).forEach(function(t){Pp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jp=(0,_.forwardRef)(function(e,t){let{open:r,onClose:i,root:l=document.body,children:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Op);const c=(0,_.useRef)(null),u=(0,_.useRef)(null);if(!r||!a)return null;const d=n("div",_p(_p({ref:c,className:"modal-module__overlay__qGmy7",onClick:e=>{e.target!==c.current&&u.current?.contains(e.target)||(e.stopPropagation(),i?.())}},s),{},{children:n("div",{ref:e=>{e&&(u.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:"modal-module__modal__SyCF2",onClick:e=>e.stopPropagation(),children:a})}));return o(d,l)});var xp="virtualTable-module__align-center__GE7hn",Cp="virtualTable-module__align-left__UwmQP",Ep="virtualTable-module__align-right__BgN21",Rp="virtualTable-module__borders-all__4E7iX",kp="virtualTable-module__borders-horizontal__sJHrp",Dp="virtualTable-module__borders-vertical__vW5hC",Mp="virtualTable-module__bottom-border__Aqyxx",Ip="virtualTable-module__clickable__rairY",Lp="virtualTable-module__editable__vHC_D",Np="virtualTable-module__error__Pc_YH",Tp="virtualTable-module__even-row__UtfmY",Fp="virtualTable-module__first-th-row__Ic3VG",Vp="virtualTable-module__input__URGVM",Ap="virtualTable-module__label__RRtAL",zp="virtualTable-module__margin-left-changing__DeOwh",$p="virtualTable-module__medium__fWjBj",Hp="virtualTable-module__modal-content__y8dAa",Bp="virtualTable-module__right-border___sLGh",Wp="virtualTable-module__root__oT8Aa",Gp="virtualTable-module__row-button-trigger__qLWa9",qp="virtualTable-module__rowspan-content__uNqDw",Up="virtualTable-module__selected__LXpK4",Kp="virtualTable-module__show-in-modal__v55Sn",Yp="virtualTable-module__small__Pbe1H",Xp="virtualTable-module__sticky__kLGF2",Zp="virtualTable-module__success__xPKub",Jp="virtualTable-module__table__GccG7",Qp="virtualTable-module__table-container__Z27Uv",eg="virtualTable-module__td__INgoI",tg="virtualTable-module__th__xeEGg",ng="virtualTable-module__th-cell__r6ckx",rg="virtualTable-module__th-hidden-column__jr_ZK",og="virtualTable-module__th-left-border__Ns0MX",ig="virtualTable-module__th-right-border__PR4eS",lg="virtualTable-module__tr__chmfp",ag="virtualTable-module__vertical-align-center__Xun5O",sg="virtualTable-module__vertical-align-flex-end__wOSxq",cg="virtualTable-module__vertical-align-flex-start__uBUX9",ug="virtualTable-module__view-cell__bXl8D",dg="virtualTable-module__view-span__HfOpN";const fg={cell:({getValue:e,row:{index:o,original:i},column:{id:l,columnDef:a},table:s})=>{const c=e(),{meta:u}=a,d=s.options.meta,[f,p]=(0,_.useState)(c),[g,h]=(0,_.useState)(!1),[m,b]=(0,_.useState)(!1),y=(0,_.useRef)();y.current=()=>{b(!1)},(0,_.useEffect)(()=>{p(c)},[c]);const w=d?.additionalColumnsViews?.(l,c,i[l]?.payload);if(g&&u?.editable){const e=()=>{d?.updateData(o,l,f,i),h(!1)},r=(e,t)=>{p(e),t&&(d?.updateData(o,l,e,i),h(!1))};return n(Hd,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:null!=w?.edit?w.edit(r,e):n(t,{children:n(Pc,{classes:{input:Vp},componentSize:"small",variant:"outlined",onChange:e=>r(e.target.value),onBlur:e,value:f??"",type:u.inputType,fullWidth:!0,autoFocus:!0})})})}const O=null!=w?.view?w.view:u?.valueFormat?u.valueFormat(c):void 0===u?.toFixed||Number.isNaN(parseFloat(c))?c:parseFloat(Number(c).toFixed(u.toFixed));return n(Hd,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:r("div",{className:S()(ug,u?.rowsAlign?v[`align${u?.rowsAlign}`]:void 0,u?.showInModal?Kp:void 0,u?.onClick&&i[l]?.payload?Ip:void 0,i[l]?.fill?v[i[l].fill]:void 0,u?.editable?Lp:void 0,u?.verticalAlign?v[`verticalAlign${u?.verticalAlign}`]:void 0),onClick:u?.editable?()=>{h(!0)}:u?.showInModal?()=>{b(!0)}:u?.onClick&&i[l]?.payload?()=>u?.onClick?.(i[l]?.payload??{}):void 0,children:[n("span",{className:dg,children:O}),m&&n(jp,{root:d?.tableContainerRef?.current,open:m,onClose:()=>y.current?.(),children:n(dd,{type:"panel",children:n("div",{className:Hp,children:O})})})]})})}},pg=(e,t)=>{const n=e.match(/(\d+|\D+)/g)||[],r=t.match(/(\d+|\D+)/g)||[],o=Math.max(n.length,r.length);for(let e=0;e<o;e++){const t=n[e]||"",o=r[e]||"",i=/^\d+$/.test(t),l=/^\d+$/.test(o);if(i&&l){const e=parseInt(t,10),n=parseInt(o,10);if(e!==n)return e-n}else{const e=t.localeCompare(o);if(0!==e)return e}}return 0};function gg(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:o}=e,[i,l]=(0,_.useState)(t);(0,_.useEffect)(()=>{o(i)},[i]);const a=(0,_.useCallback)(()=>{l([void 0,void 0]),o([void 0,void 0])},[]);return r("div",{className:S()("dateFiltration-module__root__hOXOU"),children:[n(As,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:i,onValueChange:e=>{l(e)},tabIndex:-1}),n(Hd,{label:"Сбросить",children:n(B,{onClick:a,className:S()("dateFiltration-module__button__kboWN"),variant:"text",size:"small",textSecondary:!0,icon:n(He,{})})})]})}var hg="numberFiltration-module__input___94YM";const mg=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function bg(e){const{defaultValues:o=[-1/0,1/0],actionWithSelected:i}=e,[l,a]=(0,_.useState)(o[0]===-1/0&&o[1]===1/0?mg[0]:o[0]===o[1]?mg[3]:o[0]===-1/0?mg[2]:o[1]===1/0?mg[1]:mg[0]),[s,c]=(0,_.useState)(o),u=(e,t)=>{c(n=>"equal"===e?[t.length?+t:-1/0,t.length?+t:1/0]:"more"===e?[t.length?+t:-1/0,n[1]]:[n[0],t.length?+t:1/0])},d=(0,_.useCallback)(()=>{c([-1/0,1/0]),i([-1/0,1/0])},[]);return r("div",{className:S()("numberFiltration-module__root__k2DSM"),children:[n(rs,{items:mg,componentSize:"small",variant:"filled",selected:l,onValueChange:e=>{if(e){const t=[...s];switch(e.value){case"more":t[1]=1/0;break;case"less":t[0]=-1/0;break;case"equal":const e=t[0]!==-1/0?t[0]:t[1];t[0]=e,t[1]=e}c(t),i(t),a(e)}},classes:{root:"numberFiltration-module__select__vQqEg"},tabIndex:-1}),n("div",{className:S()("numberFiltration-module__inputs-container__tjcwf"),children:"range"===l.value?r(t,{children:[n(Pc,{componentSize:"small",variant:"outlined",type:"number",classes:{root:hg},value:s[0]>-1/0&&s[0]<1/0?s[0]:"",onChange:e=>{u("more",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}}),n(Pc,{componentSize:"small",variant:"outlined",type:"number",classes:{root:hg},value:s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u("less",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})]}):n(Pc,{componentSize:"small",variant:"outlined",type:"number",classes:{root:hg},value:"more"===l.value?s[0]>-1/0&&s[0]<1/0?s[0]:"":s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u(l.value,e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})}),n(Hd,{label:"Сбросить",children:n(B,{onClick:d,className:S()("numberFiltration-module__button__GIxRq"),variant:"text",size:"small",textSecondary:!0,icon:n(He,{})})})]})}function vg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vg(Object(n),!0).forEach(function(t){wg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Og(e){const{headerMeta:{sortable:o=!1,selectUnique:i=!1,sortType:l,sortAnotherName:a,filtrationByNumber:s=!1,filtrationByDate:c=!1,filtrationByValue:u=!1,valueFormat:d,toFixed:f},sortBy:p,setSortBy:g,filterBy:h,setFilterBy:m,headerName:b,containerRef:v,showUniqueValuesCount:y,leftAdditionalContent:w,rightAdditionalContent:O,children:P,rows:j,rowsForUniqueCount:x}=e,C=a??b,E=(0,_.useMemo)(()=>{const e=j.map(e=>({name:e[C]?d?d(e[C].value):void 0===f||Number.isNaN(parseFloat(e[C].value))?e[C].value?.toString()||"< нет значения >":parseFloat(Number(e[C].value).toFixed(f)).toString():"< нет значения >",value:e[C]?.value?.toString()||""})).sort((e,t)=>{const n=e.name.toString(),r=t.name.toString(),o="< нет значения >";return n===o?-1:r===o?1:pg(n,r)}),t=[...e.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()];return t},[j,C,d,f]),R=(0,_.useMemo)(()=>{const e=x??j,t=new Set;e.forEach(e=>{const n=e?.[C];t.add(n?(n.value??"")?.toString():"")});const n=h.find(e=>e.columnName===C&&"value"===e.type),r=(n?.values??[]).map(e=>(e??"")?.toString());if(r.length>0){const e=new Set(r);let n=0;return t.forEach(t=>{e.has(t)&&(n+=1)}),n}return t.size},[x,j,C,h]),k=(0,_.useMemo)(()=>{const e={};return h.find(e=>e.columnName===C)?.values.forEach(t=>{e[t]=!0}),e},[h,C]),D=(0,_.useMemo)(()=>h.find(e=>e.columnName===C&&"numberRange"===e.type)?.values,[h,C]),M=(0,_.useMemo)(()=>h.find(e=>e.columnName===C&&"dateRange"===e.type)?.values,[h,C]),I=e=>()=>{g(t=>t.some(t=>t.columnName===C&&t.direction===e)?t.filter(t=>!(t.columnName===C&&t.direction===e)):t.some(e=>e.columnName===C)?t.map(t=>t.columnName===C?yg(yg({},t),{},{direction:e}):yg({},t)):t.concat([{columnName:C,direction:e,sortType:l}]))},L=h.some(e=>e.columnName===C&&"value"===e.type&&e.uniqueFirstPerValue),N=Object.keys(k).length>0||L,T=p.some(e=>e.columnName===C&&"desc"===e.direction),F=p.some(e=>e.columnName===C&&"asc"===e.direction),{t:V}=Mu(),A=[];return i&&(A.push({type:"divider",name:V("Уникальность значений")}),A.push({type:"item",name:V("Только уникальные"),icon:n(El,{}),selected:L,onClick:()=>{m(e=>{const t=e.findIndex(e=>e.columnName===C&&"value"===e.type);if(-1!==t){const n=e[t],r=!n.uniqueFirstPerValue;return r||0!==n.values.length?e.map((e,n)=>n!==t?e:r?yg(yg({},e),{},{uniqueFirstPerValue:!0}):{columnName:e.columnName,type:e.type,values:e.values}):e.filter((e,n)=>n!==t)}return[...e,{columnName:C,type:"value",values:[],uniqueFirstPerValue:!0}]})}})),o&&(A.push({type:"divider",name:V("Сортировка")}),A.push({type:"item",name:V("По возрастанию"),icon:n(Tl,{}),selected:p.some(e=>e.columnName===C&&"asc"===e.direction),onClick:I("asc")}),A.push({type:"item",name:V("По убыванию"),icon:n(zl,{}),selected:p.some(e=>e.columnName===C&&"desc"===e.direction),onClick:I("desc")})),r("div",{className:S()("headerDropdown-module__root__vO30T"),children:[w?.(C),P?.(y&&n("div",{children:`(${R})`})),O?.(C),(o||i||u||c||s)&&n(Wo,{placement:"bottom-end",wrapTrigger:!0,root:v,description:r(t,{children:[s&&n(bg,{defaultValues:D,actionWithSelected:e=>{m(t=>{if(e[0]===-1/0&&e[1]===1/0)return[...t.filter(e=>!(e.columnName===C&&"numberRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===C&&"numberRange"===e.type);return-1!==r?n[r]=yg(yg({},n[r]),{},{values:e}):n.push({columnName:C,type:"numberRange",values:e}),n}})}}),c&&n(gg,{defaultValues:M,actionWithSelected:e=>{m(t=>{if(void 0===e[0]||void 0===e[1])return[...t.filter(e=>!(e.columnName===C&&"dateRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===C&&"dateRange"===e.type);return-1!==r?n[r]=yg(yg({},n[r]),{},{values:e}):n.push({columnName:C,type:"dateRange",values:e}),n}})}}),u&&n("div",{className:S()("headerDropdown-module__checklist-wrap__7C0pz"),children:n(qu,{items:E,selected:k,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e);m(e=>{if(0===t.length)return e.map(e=>e.columnName!==C||"value"!==e.type?e:e.uniqueFirstPerValue?yg(yg({},e),{},{values:[]}):null).filter(e=>null!==e);const n=[...e],r=n.findIndex(e=>e.columnName===C&&"value"===e.type);return-1!==r?n[r]=yg(yg({},n[r]),{},{values:t}):n.push({columnName:C,type:"value",values:t}),n})}})}),(o||i)&&n("div",{children:n(Za,{items:A})})]}),children:n(Hd,{label:V("Сортировка и фильтрация"),placement:"bottom-end",root:v,children:n(B,{size:"small",variant:"text",textSecondary:!N&&!T&&!F,icon:n(N?Xi:T?zl:F?Tl:Jo,{})})})})]})}function Sg(e,t){const n=new Set,r=[];return e.forEach(e=>{const o=e[t]?(e[t].value||"")?.toString():"";n.has(o)||(n.add(o),r.push(e))}),r}const _g=e=>{if(e)return{editable:e.editable,sortable:e.sortable,sortType:e.sortType,sortAnotherName:e.sortAnotherName,filtrationByNumber:e.filtrationByNumber,filtrationByDate:e.filtrationByDate,filtrationByValue:e.filtrationByValue,selectUnique:e.selectUnique,width:e.width,headerAlign:e.headerAlign,rowsAlign:e.rowsAlign,valueFormat:e.valueFormat,showInModal:e.showInModal,onClick:e.onClick,label:e.label,verticalAlign:e.verticalAlign,toFixed:e.toFixed,inputType:e.inputType}},Pg=(e,t)=>e.map(e=>({id:e.id,accessorKey:e.accessorKey,accessorFn:e.accessorKey?t=>t[e.accessorKey]?.value:void 0,header:()=>e.label,meta:_g(t?.accessorKey?t:e),columns:e.columns?Pg(e.columns,e):void 0})),jg=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(jg(e,t+1,n)):[],xg=(e,t,n)=>e[t-1]&&!e[t-1].headers[n].column.columnDef.meta?.label&&e[t-1].headers[n].column.columnDef.id!==e[t].headers[n].column.columnDef.id?[e[t-1].headers[n]].concat(xg(e,t-1,n)):[],Cg=(e,t,n)=>e[t+1]&&xg(e,t+1,n).length?[e[t+1].headers[n]].concat(Cg(e,t+1,n)):[],Eg=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(Eg(e,t-1)):[],Rg=(e,t)=>{if(t.length){const n=t[t.length-1],r="dateRange"===n.type?is()(n.values[0]):null,o="dateRange"===n.type?is()(n.values[1]):null,i=n.values.length?e.filter(e=>{const t="dateRange"===n.type?is()(e[n.columnName].value):null;return(e[n.columnName]?"dateRange"===n.type?(t.isAfter(r)||t.isSame(r))&&(t.isBefore(o)||t.isSame(o)):"numberRange"===n.type?e[n.columnName].value>=n.values[0]&&e[n.columnName].value<=n.values[1]:n.values.includes((e[n.columnName].value||"")?.toString()):n.values.includes(""))||1===e.isNew?.value}):e;return Rg(i,t.slice(0,t.length-1))}return e},kg=(e,t)=>{if(t.length){const n=t[t.length-1],r=e.sort((e,t)=>{const r=e[n.columnName]?.value?.toString()??"",o=t[n.columnName]?.value?.toString()??"";if("alphanumeric"===n.sortType){const e=pg(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return kg(r,t.slice(0,t.length-1))}return e};function Dg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dg(Object(n),!0).forEach(function(t){Ig(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ig(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lg=(0,_.forwardRef)((e,o)=>{const{rows:i,columns:l,additionalColumnsViews:a,onChangeCell:s,cellWidth:c,rowButtons:u,fixedColumnsCount:d=0,headerRowHeight:f=[wp],bodyRowHeight:p=wp,rowActionWidth:g=77,classes:h,dynamicRowHeight:m=!1,height:b,scrollToBottom:y,useTableContainerAsRootForPopup:w,size:O="small",borders:P="horizontal",showUniqueValuesCount:j=!1,globalFilters:x,globalSorts:C,onFiltersChange:E,onSortsChange:R,leftAdditionalHeaderContent:k,rightAdditionalHeaderContent:D,showRowsNumbers:M}=e,I=d+(M?1:0),[L,N]=(0,_.useState)(x??[]),[T,F]=(0,_.useState)([...C??[],{columnName:"isNew",direction:"desc"}]),V=(0,_.useRef)(null),A=(0,_.useMemo)(()=>M?`rowNumber_${Le()}`:null,[M]),z=(0,_.useMemo)(()=>{if(!A)return Pg(l);const e=t=>Mg(Mg({id:A},t?.columns?.length?void 0:{accessorKey:A}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(l[0]),...l];return Pg(t)},[l,A]),$=(0,_.useMemo)(()=>{const e=[...i],t=L.filter(e=>{if("value"===e.type&&e.uniqueFirstPerValue&&0===e.values.length)return!0;const t="dateRange"===e.type?is()(e.values[0]):null,n="dateRange"===e.type?is()(e.values[1]):null;return i.some(r=>{const o="dateRange"===e.type?is()(r[e.columnName].value):null;return r[e.columnName]?"dateRange"===e.type?(o.isAfter(t)||o.isSame(t))&&(o.isBefore(n)||o.isSame(n)):"numberRange"===e.type?r[e.columnName].value>=e.values[0]&&r[e.columnName].value<=e.values[1]:e.values.includes((r[e.columnName].value||"")?.toString()):e.values.includes("")})}),n=t.length?Rg(e,t):L.some(e=>"numberRange"===e.type&&e.values.some(e=>e!==1/0&&e!==-1/0)||"dateRange"===e.type&&e.values.some(e=>!is()(e).isSame(is()(0))&&!is()(e).isSame(is()(Number.MAX_SAFE_INTEGER))))?[]:e;let r=T.length?kg(n,T):n;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(r=Sg(r,e.columnName));const o=A?r.map((e,t)=>Mg(Mg({},e),{},{[A]:{value:t+1}})):r;return window.dispatchEvent(new CustomEvent("filteringRows",{detail:o})),o},[i,T,L,A]),H=(0,_.useMemo)(()=>{const e=[...i];return Array.from({length:L.length+1},(t,n)=>Rg(e,L.slice(0,n)))},[i,L]),W=(0,_.useMemo)(()=>c??(e=>A&&0===e?8*$.length.toString().length+24:z[e]?.meta?.width??200),[c,z,$,A]),G=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=_.useState(()=>({current:np(t)})),[r,o]=_.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:$,columns:z,defaultColumn:fg,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>df(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const l=[];for(let s=0;s<t.length;s++){const c=bf(e,e._getRowId(t[s],s,i),t[s],s,o,void 0,null==i?void 0:i.id);var a;n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return l};return n.rows=r(t),n},ff(e.options,"debugTable",0,()=>e._autoResetPageIndex())),initialState:{columnPinning:{left:z.filter((e,t)=>t<I).map(e=>e.id).filter(e=>e).map(e=>e)??[]}},meta:{updateData:(e,t,n,r)=>{s?.(e,t,n,r)},tableContainerRef:V,additionalColumnsViews:a}}),{rows:q}=G.getRowModel(),U=G.getHeaderGroups(),K=yp({count:q.length,getScrollElement:()=>V?.current,estimateSize:()=>p,overscan:5}),Y=yp({horizontal:!0,count:U[0]?.headers.length??1,rangeExtractor:(0,_.useCallback)(e=>{const t=[...Array(I)].map((e,t)=>t);return[...new Set([...t,...cp(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>V?.current,estimateSize:W,overscan:5}),X=(0,_.useMemo)(()=>[...Array(I)].reduce((e,t,n)=>e+W(n),0),[I,W]),Z=(0,_.useMemo)(()=>{const e=U.length-f.length,t=[...f];if(e>0)for(let n=0;n<e;n++)t.push(wp);return t},[f,U]),J=(0,_.useMemo)(()=>Z.reduce((e,t,n)=>n<U.length?e+t:e,0),[Z,U]),Q=(0,_.useCallback)(e=>Z.reduce((t,n,r)=>r<e?t+n:t,0),[Z,U]),ee=K.getTotalSize(),te=Y.getTotalSize(),ne=()=>{N([])},re=()=>{F([{columnName:"isNew",direction:"desc"}])};(0,_.useImperativeHandle)(o,()=>({resetFilters:ne,resetSorts:re})),(0,_.useEffect)(()=>{if(V?.current){const e=V?.current,t=e.querySelector(`.${Bp}`);if(t){const n=e.clientWidth,r=te+(u?g:0);t.style.left=`${n>r?r:n}px`}}},[V?.current?.clientWidth,te,u,g]),(0,_.useEffect)(()=>{if(V?.current){const e=V?.current,t=e.querySelector(`.${Mp}`);if(t){const n=e.clientHeight,r=ee+J;t.style.top=`${n>r?r:n}px`}}},[V?.current?.clientHeight,ee]),(0,_.useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${zp}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return V?.current&&(V.current.addEventListener("scroll",e),y&&V.current.scrollTo(0,V.current.scrollHeight)),()=>{V?.current&&V.current.removeEventListener("scroll",e)}},[V,y]);const oe=K.getVirtualItems(),ie=Y.getVirtualItems(),le=ie[ie.length-1]?.index,ae=(0,_.useMemo)(()=>new Map(oe.map(e=>[e.index,e.size])),[oe]),se=(0,_.useCallback)(e=>ae.get(e)??p,[p,ae]),ce=(0,_.useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=Math.min(q.length-1,e+n-1),o=r-e+1;let i=0;for(let t=e;t<=r;t+=1)i+=se(t);const l="all"===P||"horizontal"===P?Math.max(0,o-1):0;return Math.max(0,i-l)},[P,se,q.length]),ue=(0,_.useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=q[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[q]),de=(0,_.useCallback)((e,t)=>1===e?.isNew?.value?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[]),fe=(0,_.useMemo)(()=>{const e=q.length,t=new Map;return q.forEach((n,r)=>{const o=(n.getAllCells().reduce((e,t)=>Math.max(e,Math.max(1,n.original?.[t.column.id]?.rowspan??1)),1)-1)*(e+1)+(e-r+1);t.set(r,o)}),t},[q]),pe=(0,_.useMemo)(()=>q.length*q.length+q.length+10,[q.length]),ge=e=>{const o=e.column.columnDef.meta?.label;if("string"==typeof o){const i=o.split(/\r\n|\\r\\n|\n|\\n/);if(i.length>1)return n(t,{children:i.map((t,o)=>r(_.Fragment,{children:[t,o<i.length-1&&n("br",{})]},`${e.id}_${o}`))})}return rp(e.column.columnDef.header,e.getContext())},[he,me]=ie.length>0?[I&&ie[I].index!==I?ie[I].start-X:ie[0].start,te-ie[ie.length-1].end]:[0,0];return(0,_.useEffect)(()=>{E?.(L)},[L]),(0,_.useEffect)(()=>{R?.(T.filter(e=>"isNew"!==e.columnName))},[T]),n("div",{className:S()(Wp,v[O],v[`borders${be=P,be[0].toUpperCase()+be.substring(1)}`],h?.root),style:b?{height:b}:void 0,children:r("div",{ref:V,className:S()(Qp,"styledScroll"),children:[r("div",{className:Jp,style:{height:`${ee+J}px`},children:[n("div",{style:{position:"sticky",top:0,zIndex:pe},children:U.map((e,t)=>{const o=e=>{const t=e.column.columnDef.meta,o=t?.sortAnotherName??e.column.columnDef.id??e.id,i=L.findIndex(e=>e.columnName===o),l=-1===i?$:H[i];return n("div",{className:S()(ng),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==A&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&j)?n(Og,{headerMeta:t,sortBy:T,setSortBy:F,filterBy:L,setFilterBy:N,rows:l,rowsForUniqueCount:$,headerName:e.column.columnDef.id??e.id,containerRef:w?V:void 0,showUniqueValuesCount:j,leftAdditionalContent:k,rightAdditionalContent:D,children:n=>r("div",{className:S()(Ap,t?.headerAlign?v[`align${t?.headerAlign}`]:Cp),children:[ge(e),n]})}):n("div",{className:S()(Ap,t?.headerAlign?v[`align${t?.headerAlign}`]:Cp),children:ge(e)})})};return r(_.Fragment,{children:[[...Array(I)].map((r,i)=>{const l=e.headers[i],a=jg(e.headers,i,le),s=Cg(U,t,i);return n("div",{className:S()(tg,0===t?Fp:void 0,!s.length&&i!==e.headers.length-1&&ig,0===i&&og,s.length&&!a.length&&rg,zp),style:{zIndex:pe+1,width:`${W(i)}px`,height:`${Z[t]}px`,transform:`translateX(${Array.from({length:i},(e,t)=>W(t)).reduce((e,t)=>e+t,0)}px) translateY(${Q(t)}px)`},children:o(l)},`${e.id}-${l.id}`)}),ie.map(r=>{if(r.index>I-1){const i=e.headers[r.index],l=jg(e.headers,r.index,le),a=Eg(e.headers,r.index),s=Cg(U,t,r.index),c=xg(U,t,r.index),u=l.length||a.length?r.size+l.reduce((e,t)=>e+(t.column.columnDef.meta?.width??0),0):r.size,d=l.length||a.length?pe+l.length+2:void 0,f=c.length?Z[t]+c.reduce((e,n,r)=>e+(Z[t-r-1]??0),0):Z[t],p=c.length?Q(t)-c.reduce((e,n,r)=>e+(Z[t-r-1]??0),0):Q(t);return n("div",{className:S()(tg,0===t&&Fp,!s.length&&r.index!==e.headers.length-1&&ig,0===r.index&&og,s.length&&!l.length&&rg),style:{width:`${u}px`,zIndex:d,height:`${f}px`,transform:`translateX(${r.start+(I?-1:0)}px) translateY(${p}px)`,borderTop:"none"!==P&&0===p?"1px solid var(--border-color)":void 0},children:o(i)},`${e.id}-${i.id}`)}return null}),!!u&&n("div",{className:S()(tg,0===t?Fp:void 0),style:{width:`${g}px`,height:`${Z[t]}px`,transform:`translateX(${te+(I?-2:0)}px) translateY(${Q(t)}px)`}})]},e.id)})}),oe.map(e=>{const t=q[e.index];return r("div",{"data-index":e.index,ref:m?K.measureElement:void 0,className:S()(lg,e.index%2!=0&&Tp,1===t.original?.isNew?.value&&Up),style:Mg(Mg({zIndex:fe.get(e.index)??1},!m&&{height:e.size}),{},{transform:"translateY("+(J+e.start-K.options.scrollMargin)+"px)"}),children:[n("div",{style:{width:`${he}px`}}),ie.map(r=>{const o=t.getAllCells()[r.index],i="left"===o.column.getIsPinned(),l=t.original?.[o.column.id],a=Math.max(1,l?.rowspan??1),s=ue(e.index,o.column.id),c=a>1&&!s;return n("div",{"data-col-index":r.index,className:S()(eg,i&&Xp),style:Mg(Mg({},i&&{left:r.start,marginLeft:0===r.index?-1:0}),{},{width:`${r.size}px`},!m&&!c&&{overflow:"hidden"}),"data-index":e.index,children:!s&&(c?n("div",{className:qp,style:{height:`${ce(e.index,a)}px`,backgroundColor:de(t.original,e.index)},children:rp(o.column.columnDef.cell,o.getContext())}):rp(o.column.columnDef.cell,o.getContext()))},`cell-${e.key}-${r.key}`)}),!!u&&n("div",{className:S()(eg),style:Mg({width:`${g}px`,justifyContent:"flex-start",padding:"4px"},!m&&{overflow:"hidden"}),children:u?.(t.original)?.map(r=>n(_.Fragment,{children:r.template?r.template(r):n(Hd,{label:r.title,placement:"top",wrapTrigger:!0,classes:{trigger:Gp},children:n(B,{onClick:()=>r.onClick?.(e.index,t.original),size:"small",variant:"text",icon:r.icon})})},r.title))}),n("div",{style:{width:`${me}px`}})]},`row-${e.key}`)})]}),"none"!==P&&r(t,{children:[n("div",{className:Bp,style:{height:`${ee+J}px`}}),n("div",{className:Mp,style:{width:`${te}px`}})]})]})});var be});var Ng="treeViewItem-module__selectable__ZnWqc",Tg="treeViewItem-module__selected__uwOfq";const Fg=(0,_.memo)(function e({title:t,value:o,searchValue:i,selected:l,onSelect:a,type:s,isSelectable:c,startIcons:u,children:d}){const[f,p]=(0,_.useState)(!1);(0,_.useEffect)(()=>{p(!!i)},[i]);const g=!!d?.length,h=s&&u?.[s],m=l[o];return r("div",{children:[r("div",{className:S()("treeViewItem-module__item__Ddenr",{[Ng]:c}),onClick:()=>{c&&a?a(o):p(!f)},children:[g&&n(fl,{}),r("div",{className:S()("treeViewItem-module__title___JZMU",{[Tg]:m}),children:[h,n(ue,{variant:"subtitle2",children:t}),c&&n("span",{className:"treeViewItem-module__select-icon__Ma7T6",children:n(m?Hi:Ko,{})})]})]}),f&&g&&n("div",{className:"treeViewItem-module__children__SBb_p",children:d.map(t=>n(e,{title:t.name,value:t.id,children:t.children,selected:l,searchValue:i,type:t.type,isSelectable:t.isSelectable,startIcons:u,onSelect:a},t.id))})]})});function Vg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ag(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vg(Object(n),!0).forEach(function(t){zg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $g=(0,_.memo)(function({data:e,selected:o,startIcons:i,onSelect:l,withSearch:a=!1}){const[s,c]=(0,_.useState)(""),u=(0,_.useCallback)(e=>c(e.target.value),[]),d=(0,_.useMemo)(()=>o.reduce((e,t)=>(e[t]=!0,e),{}),[o]),f=(0,_.useMemo)(()=>((e,t)=>{const n=t.toLowerCase(),r=(e,t)=>{if(t.name.toLowerCase().includes(n))return e.push(t),e;if(Array.isArray(t.children)){const n=t.children.reduce(r,[]);n.length&&e.push(Ag(Ag({},t),{},{children:n}))}return e};return e.reduce(r,[])})(e,s),[e,s]);return r(t,{children:[a&&n(Tu,{variant:"outlined",value:s,fullWidth:!0,onChange:u,classes:{root:"treeView-module__search__CptHY"}}),n("div",{className:"styledScroll",children:f.map(({id:e,name:t,children:r})=>n(Fg,{title:t,value:e,searchValue:s,children:r,startIcons:i,onSelect:l,selected:d},e))})]})});var Hg="pairs-module__labels-with-borders__iC6y_",Bg="pairs-module__row-container-borders__H3rCB",Wg="pairs-module__values-with-borders__ssGZ0";function Gg(e){const{label:t}=e,[r,o]=(0,_.useState)(t);return n(Hd,{label:r,children:n(ue,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{o(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}function qg(e){const{pairs:o,column1Width:i="50%",column2Width:l="50%",showBorder:a,minRowHeight:s,classes:c}=e;return n("div",{className:S()(c?.root),children:o.map((e,o)=>n("div",{style:{minHeight:s,display:"flex"},className:S()(c?.rowContainer,{[Bg]:a}),children:e&&r(t,{children:[n("div",{className:S()("pairs-module__labels-container__AKW8x",c?.labelsContainer,{[Hg]:a}),style:{width:i,minWidth:i},children:n(ue,{className:"pairs-module__dim-typography__CX_Sf",children:e.label})}),n("div",{style:{width:l,minWidth:l},className:S()("pairs-module__values-container__a4t60",c?.valuesContainer,{[Wg]:a}),children:n(Gg,{label:e.value})})]})},o))})}var Ug="card-module__actions__ctfFt",Kg="card-module__body__P4SYk",Yg="card-module__header__NdV6G",Xg="card-module__root__uGlLT",Zg="card-module__small__liJkd";function Jg(e){const{surfaceType:t="primary",componentSize:o="medium",title:i,actions:l,children:a,classes:s}=e;return r(dd,{type:t,classes:{root:S()(Xg,y[o],s?.root)},children:[(!!i||!!l)&&r("div",{className:S()(Yg,s?.header),children:[i??n("div",{}),!!l&&n("div",{className:S()(Ug,s?.actions),children:l})]}),n("div",{className:S()(Kg,s?.body),children:a})]})}var Qg="chip-module__clickable__dOcCr",eh="chip-module__filled__LKP4O",th="chip-module__icon__yybCP",nh="chip-module__icon-clickable__BPoAa",rh="chip-module__icon-left__LhniG",oh="chip-module__icon-right__CnqJ6",ih="chip-module__icon-right-slot__p8bmk",lh="chip-module__label__RySGy",ah="chip-module__medium__RRnyf",sh="chip-module__outlined__HHje4",ch="chip-module__root__QN7P0",uh="chip-module__secondary__yquCM",dh="chip-module__small__UbquU",fh="chip-module__with-icon__ORESD";const ph=e=>{const{variant:t="filled",size:o="medium",icon:i,iconPlacement:l="right",secondary:a,onClick:s,onIconClick:c,children:u,classes:d}=e,f=e=>{e.stopPropagation(),c?.()},p=c?"button":"span",g=!!i&&"left"===l,h=!!i&&"right"===l;return r("div",{className:S()(ch,w[t],w[o],!!i&&fh,g&&rh,h&&oh,a&&uh,s&&Qg,d?.root),tabIndex:s?0:void 0,role:s?"button":void 0,onClick:s,children:[g&&n(p,{className:S()(th,c&&nh,d?.icon),onClick:c?f:void 0,"aria-label":c?"Удалить":void 0,children:i}),u&&n("span",{className:S()(lh,d?.label),children:u}),h&&n(p,{className:S()(th,ih,c&&nh,d?.icon),onClick:c?f:void 0,"aria-label":c?"Удалить":void 0,children:i})]})},gh="nntc-ui-base-styles",hh=(0,_.createContext)(void 0);function mh(){return(0,_.useContext)(hh)??null}function bh(){return mh()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function vh({children:e}){const[t,r]=(0,_.useState)(()=>function(){if("undefined"==typeof window)return"light";try{const e=localStorage.getItem("theme");if("light"===e||"dark"===e||"darkBlue"===e)return e}catch{}return window.matchMedia?.("(prefers-color-scheme: dark)")?.matches?"dark":"light"}());(0,_.useEffect)(()=>{let e=document.getElementById(gh);e||(e=document.createElement("style"),e.id=gh,document.head.appendChild(e)),e.textContent=":root {\n --text-headline1-size: 96px;\n --text-headline1-weight: 300;\n --text-headline1-height: 112px;\n --text-headline1-letter: -1.5px;\n\n --text-headline2-size: 60px;\n --text-headline2-weight: 300;\n --text-headline2-height: 72px;\n --text-headline2-letter: -0.5px;\n\n --text-headline3-size: 48px;\n --text-headline3-weight: 400;\n --text-headline3-height: 56px;\n --text-headline3-letter: normal;\n\n --text-headline4-size: 34px;\n --text-headline4-weight: 400;\n --text-headline4-height: 36px;\n --text-headline4-letter: normal;\n\n --text-headline5-size: 24px;\n --text-headline5-weight: 400;\n --text-headline5-height: 24px;\n --text-headline5-letter: 0.18px;\n\n --text-headline6-size: 20px;\n --text-headline6-weight: 500;\n --text-headline6-height: 24px;\n --text-headline6-letter: 0.15px;\n\n --text-headline7-size: 20px;\n --text-headline7-weight: 400;\n --text-headline7-height: 24px;\n --text-headline7-letter: 0.15px;\n\n --text-subtitle1-size: 16px;\n --text-subtitle1-weight: 400;\n --text-subtitle1-height: 24px;\n --text-subtitle1-letter: 0.15px;\n\n --text-subtitle2-size: 14px;\n --text-subtitle2-weight: 400;\n --text-subtitle2-height: 24px;\n --text-subtitle2-letter: 0.1px;\n\n --text-body1-size: 16px;\n --text-body1-weight: 400;\n --text-body1-height: 24px;\n --text-body1-letter: 0.5px;\n\n --text-body2-size: 14px;\n --text-body2-weight: 400;\n --text-body2-height: 20px;\n --text-body2-letter: 0.25px;\n\n --text-button-size: 14px;\n --text-button-weight: 500;\n --text-button-height: 20px;\n --text-button-letter: 0.1px;\n\n --text-caption-size: 12px;\n --text-caption-weight: 400;\n --text-caption-height: 16px;\n --text-caption-letter: 0.4px;\n\n --text-overline-size: 10px;\n --text-overline-weight: 500;\n --text-overline-height: 16px;\n --text-overline-letter: 1.5px;\n}\n\n* {\n box-sizing: border-box;\n}\n\ninput[type='password']::-ms-reveal {\n display: none;\n height: 100%;\n opacity: 1;\n}\n\n.styledScroll {\n margin-right: -16px !important;\n margin-bottom: -16px !important;\n overflow: scroll;\n}\n\n/* общая зона скроллбара */\n.styledScroll::-webkit-scrollbar {\n width: 16px;\n height: 16px;\n background-color: transparent;\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n\n/* зона перетаскивания */\n.styledScroll::-webkit-scrollbar-thumb {\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n\n/* уголок между горизонтальным и вертикальным скроллбарами */\n.styledScroll::-webkit-scrollbar-corner {\n background: transparent;\n}\n\n/* зона трека */\n.styledScroll::-webkit-scrollbar-track {\n background-color: transparent;\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n\nhtml,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n color: var(--theme-text-primary);\n background-color: var(--theme-surface-layout);\n transition:\n background-color 0.3s ease,\n color 0.3s ease;\n}\n\nbody {\n font-family: Roboto, sans-serif;\n font-size: var(--text-body2-size);\n font-weight: var(--text-body2-weight);\n line-height: var(--text-body2-height);\n letter-spacing: var(--text-body2-letter);\n}\n"},[]),(0,_.useEffect)(()=>{const e={light:":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-background: #ffffff;\n --theme-surface-modal: #ffffff;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: #ffffff;\n\n --theme-modal-shadow-background: rgba(255, 255, 255, 0.5);\n --theme-modal-background: #ffffff;\n\n --theme-divider: rgba(0, 0, 0, 0.12);\n\n --theme-text-primary: rgba(0, 0, 0, 0.87);\n --theme-text-secondary: rgba(0, 0, 0, 0.64);\n --theme-text-inactive: rgba(0, 0, 0, 0.32);\n --theme-text-button-primary: rgba(0, 0, 0, 0.72);\n --theme-text-button-invert: #ffffff;\n\n --theme-icon-primary: rgba(0, 0, 0, 0.64);\n --theme-icon-secondary: rgba(0, 0, 0, 0.32);\n --theme-icon-hover: #eeeeee;\n --theme-icon-hover-on-selected: #e0e0e0;\n\n --theme-accent: #03a9f4;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #03a9f4;\n\n --theme-table-background: #ffffff;\n --theme-table-header: #f5f5f5;\n --theme-table-even-row: #f5f5f5;\n --theme-table-hover-row: #f5f5f5;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(215, 215, 215, 0.9);\n\n --theme-alert-default-color: rgba(0, 0, 0, 0.87);\n --theme-alert-default-background: #ffffff;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: ##fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(255, 255, 255, 0.04);\n --theme-overlay-8: rgba(255, 255, 255, 0.08);\n --theme-overlay-10: rgba(255, 255, 255, 0.1);\n --theme-overlay-12: rgba(255, 255, 255, 0.12);\n\n --theme-button-elevated: rgba(3, 169, 244, 0.04);\n --theme-button-tonal: rgba(3, 169, 244, 0.16);\n\n --theme-input-filled: #f5f5f5;\n --theme-input-filled-hover: #eeeeee;\n\n --theme-input-border: rgba(0, 0, 0, 0.4);\n --theme-input-border-hover: rgba(0, 0, 0, 0.8);\n\n --theme-selection-border: rgba(0, 0, 0, 0.6);\n --theme-selection-border-disabled: rgba(0, 0, 0, 0.32);\n --theme-selection-hover: rgba(0, 0, 0, 0.04);\n --theme-selection-focused: rgba(0, 0, 0, 0.12);\n --theme-selection-pressed: rgba(0, 0, 0, 0.1);\n --theme-selection-selected-hover: rgba(3, 169, 244, 0.04);\n --theme-selection-selected-focused: rgba(3, 169, 244, 0.12);\n --theme-selection-selected-pressed: rgba(3, 169, 244, 0.1);\n\n --theme-date-range: rgba(3, 169, 244, 0.12);\n\n --theme-thumb: rgba(0, 0, 0, 0.16);\n\n --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(0, 0, 0, 0.08);\n --theme-chip-subtle-hover: rgba(0, 0, 0, 0.12);\n --theme-chip-subtle-focus: rgba(0, 0, 0, 0.16);\n --theme-chip-subtle-disabled-bg: rgba(0, 0, 0, 0.08);\n\n --theme-input-chip-bg: var(--theme-chip-accent-bg);\n --theme-input-chip-hover: var(--theme-chip-accent-hover);\n --theme-input-chip-focus: var(--theme-chip-accent-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n",dark:":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-background: #2b2b2b;\n --theme-surface-modal: #373737;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: #515151;\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #373737;\n\n --theme-divider: rgba(255, 255, 255, 0.24);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.24);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #424242;\n --theme-table-header: #515151;\n --theme-table-even-row: #494949;\n --theme-table-hover-row: #494949;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n\n --theme-button-elevated: #424242;\n --theme-button-tonal: #435864;\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.16);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n\n --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(255, 255, 255, 0.12);\n --theme-chip-subtle-hover: rgba(255, 255, 255, 0.24);\n --theme-chip-subtle-focus: rgba(255, 255, 255, 0.32);\n --theme-chip-subtle-disabled-bg: rgba(255, 255, 255, 0.16);\n\n --theme-input-chip-bg: var(--theme-chip-subtle-bg);\n --theme-input-chip-hover: var(--theme-chip-subtle-hover);\n --theme-input-chip-focus: var(--theme-chip-subtle-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n",darkBlue:":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-background: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: #27333f;\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #14212e;\n\n --theme-divider: rgba(255, 255, 255, 0.12);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.12);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #14212e;\n --theme-table-header: #28323e;\n --theme-table-even-row: #1f2a36;\n --theme-table-hover-row: #1f2a36;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n\n --theme-button-elevated: #14212e;\n --theme-button-tonal: #435864;\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.16);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n\n --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(255, 255, 255, 0.12);\n --theme-chip-subtle-hover: rgba(255, 255, 255, 0.24);\n --theme-chip-subtle-focus: rgba(255, 255, 255, 0.32);\n --theme-chip-subtle-disabled-bg: rgba(255, 255, 255, 0.16);\n\n --theme-input-chip-bg: var(--theme-chip-subtle-bg);\n --theme-input-chip-hover: var(--theme-chip-subtle-hover);\n --theme-input-chip-focus: var(--theme-chip-subtle-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n"};let n=document.getElementById("theme-style");n||(n=document.createElement("style"),n.id="theme-style",document.head.appendChild(n)),n.textContent=e[t]??e.light},[t]),(0,_.useEffect)(()=>{let e=null;try{e=localStorage.getItem("theme")}catch{}if("light"===e||"dark"===e||"darkBlue"===e)return;const t=window.matchMedia?.("(prefers-color-scheme: dark)");if(!t)return;const n=e=>{r(e.matches?"dark":"light")};return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]);const o={theme:t,toggleTheme:()=>{r(e=>{const t="light"===e?"dark":"dark"===e?"darkBlue":"light";try{localStorage.setItem("theme",t)}catch{}return t})},setTheme:e=>{r(e);try{localStorage.setItem("theme",e)}catch{}}};return n(hh.Provider,{value:o,children:e})}export{Ko as AddIcon,sl as AlertIcon,Jo as ArrowDropDownIcon,ni as ArrowDropUpIcon,li as AttachIcon,ui as BarChartIcon,va as BookmarkAddIcon,ga as BookmarkIcon,B as Button,Ta as ButtonsGroup,Jg as Card,De as Checkbox,me as CheckboxDeselectedIcon,we as CheckboxIcon,Pe as CheckboxSeveralIcon,qu as Checklist,Si as ChevronLeftIcon,xi as ChevronRightIcon,ph as Chip,ki as CircleFilledIcon,He as CloseIcon,vc as ColorPicker,Li as DateRangeIcon,As as DateTime,Vi as DeleteIcon,Hi as DoneIcon,xa as DownloadIcon,na as EditIcon,Sa as ExportTableIcon,qi as FileUploadIcon,el as FilterClearIcon,Xi as FilterIcon,ua as FullScreenOffIcon,la as FullScreenOnIcon,ol as InfoIcon,Pc as Input,tt as InputChip,fl as KeyboardArrowDownIcon,fd as Layout,ml as ListIcon,Za as Menu,jp as Modal,wl as MoreVerticalIcon,Qu as MultiSelect,qg as Pairs,La as PointIcon,Wo as Popover,ld as RadioButton,gi as RadioDeselectedIcon,vi as RadioSelectedIcon,Pl as SearchIcon,Tu as SearchInput,rs as Select,El as SelectUniqueIcon,Ml as SettingsIcon,Tl as SortDownIcon,zl as SortUpIcon,dd as Surface,Wl as TableChartIcon,af as Tabs,vh as ThemeProvider,Hd as Tooltip,$g as TreeView,ue as Typography,Kl as UploadIcon,Lg as VirtualTable,ka as VisibilityIcon,Jl as WellIcon,zu as WrapForLabel,mh as useTheme,bh as useThemeWithFallback,wp as virtualTableDefaultRowHeight};
3
3
  //# sourceMappingURL=index.mjs.map