nntc-ui 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e,t,n={353(e){e.exports=function(){"use strict";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+)?$/,h=/\[([^\]]+)]|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,g={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]=g;var w="$isDayjsObject",O=function(e){return e instanceof P||!(!e||!e[w])},j=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},x=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new P(n)},S=b;S.l=j,S.i=O,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function g(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=g.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(S.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 S},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return x(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<x(e)},m.$g=function(e,t,n){return S.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=!!S.u(t)||t,f=S.p(e),p=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(l)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=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=(g<y?g+7:g)-y;return p(c?b-w:b+(6-w),m);case l:case d:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var a,c=S.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],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===u){var g=this.clone().set(d,1);g.$d[p](h),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[S.p(e)]()},m.add=function(n,c){var d,f=this;n=Number(n);var p=S.p(c),h=function(e){var t=x(f);return S.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 h(1);if(p===a)return h(7);var g=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,m=this.$d.getTime()+n*g;return S.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=S.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 S.s(i%12||12,e,"0")},g=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return a+1;case"MM":return S.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 S.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 S.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(i,l,!0);case"A":return g(i,l,!1);case"m":return String(l);case"mm":return S.s(l,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.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,h=this,g=S.p(d),m=x(n),b=(m.utcOffset()-this.utcOffset())*e,v=this-m,y=function(){return S.m(h,m)};switch(g){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:S.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=j(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return S.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()},g}(),_=P.prototype;return x.prototype=_,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",s],["$y",u],["$D",d]].forEach(function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),x.extend=function(e,t){return e.$i||(e(t,P,x),e.$i=!0),x},x.locale=j,x.isDayjs=O,x.unix=function(e){return x(1e3*e)},x.en=y[v],x.Ls=y,x.p={},x}()},493(e,t,n){"use strict";var r=n(953),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){"use strict";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}},953(e){"use strict";e.exports=require("react")},942(e,t){var n;!function(){"use strict";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)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var l={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>l[e]=()=>n[e]);return l.default=()=>n,o.d(i,l),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{AddIcon:()=>Ki,AlertIcon:()=>ca,ArrowDropDownIcon:()=>Qi,ArrowDropUpIcon:()=>$i,AttachIcon:()=>rl,BarChartIcon:()=>al,BookmarkAddIcon:()=>xs,BookmarkIcon:()=>ys,Button:()=>V,ButtonsGroup:()=>Qs,Card:()=>Cm,Checkbox:()=>Me,CheckboxDeselectedIcon:()=>ve,CheckboxIcon:()=>je,CheckboxSeveralIcon:()=>_e,Checklist:()=>hf,ChevronDownIcon:()=>ba,ChevronLeftIcon:()=>yl,ChevronRightIcon:()=>xl,ChevronUpIcon:()=>pa,Chip:()=>Gm,CircleFilledIcon:()=>Cl,CloseIcon:()=>$o,ColorPicker:()=>Tu,DateRangeIcon:()=>kl,DateTime:()=>iu,DeleteIcon:()=>Il,DoneIcon:()=>Fl,DownloadIcon:()=>ks,DragIcon:()=>Bl,EditIcon:()=>as,ErrorOutlineIcon:()=>Uo,ExportTableIcon:()=>Cs,FileUploadIcon:()=>Ul,FilterClearIcon:()=>ta,FilterIcon:()=>Zl,FullScreenOffIcon:()=>gs,FullScreenOnIcon:()=>ds,InfoIcon:()=>ia,Input:()=>Wu,InputChip:()=>bi,Layout:()=>Gf,ListIcon:()=>Oa,Loader:()=>Jm,Menu:()=>mc,Modal:()=>Mh,MoreVerticalIcon:()=>Pa,MultiSelect:()=>Of,Pairs:()=>pm,PointIcon:()=>Fs,Popover:()=>Hi,RadioButton:()=>Af,RadioDeselectedIcon:()=>dl,RadioSelectedIcon:()=>gl,SaveIcon:()=>Bs,SearchIcon:()=>Ea,Select:()=>jc,SelectUniqueIcon:()=>Ma,SettingsIcon:()=>za,SortDownIcon:()=>Ha,SortUpIcon:()=>Ka,Surface:()=>Hf,TableChartIcon:()=>Qa,Tabs:()=>gp,ThemeProvider:()=>sb,Tooltip:()=>Lo,TreeView:()=>om,Typography:()=>fe,UploadIcon:()=>$a,VirtualTable:()=>Gg,VisibilityIcon:()=>Is,WellIcon:()=>rs,WrapForLabel:()=>Xu,createCalendarDate:()=>Xc,useTheme:()=>lb,useThemeWithFallback:()=>ab,virtualTableDefaultRowHeight:()=>Ah});var e={};o.r(e),o.d(e,{active:()=>v,compact:()=>y,elevated:()=>w,extraLarge:()=>O,filled:()=>j,large:()=>x,medium:()=>S,onlyIcon:()=>P,outlined:()=>_,root:()=>C,small:()=>A,stateLayer:()=>E,text:()=>R,textSecondary:()=>k,tonal:()=>D,withIcon:()=>M,withoutIcon:()=>L});var t={};o.r(t),o.d(t,{body1:()=>B,body2:()=>W,body3:()=>K,button:()=>G,caption:()=>U,caption2:()=>Y,doubleCaption:()=>Q,h1:()=>J,h2:()=>Z,h3:()=>X,h4:()=>$,h5:()=>ee,h6:()=>te,h7:()=>ne,label:()=>re,overline:()=>oe,subtitle1:()=>ie,subtitle2:()=>le,subtitle3:()=>ae});var n={};o.r(n),o.d(n,{arrow:()=>ze,bottomArrow:()=>Te,content:()=>Fe,error:()=>Ve,info:()=>He,leftArrow:()=>qe,rightArrow:()=>Be,success:()=>We,topArrow:()=>Ke,trigger:()=>Ge,warning:()=>Ue});var r={};o.r(r),o.d(r,{clickable:()=>ei,disabled:()=>ti,extraLarge:()=>ni,filled:()=>ri,icon:()=>oi,large:()=>ii,medium:()=>li,outlined:()=>ai,remove:()=>si,root:()=>ci,small:()=>ui,text:()=>di,withIcon:()=>fi});var l={};o.r(l),o.d(l,{divider:()=>Js,extraLarge:()=>Zs,item:()=>Xs,itemActions:()=>$s,itemDescription:()=>ec,itemDisabled:()=>tc,itemIcon:()=>nc,itemSelected:()=>rc,itemTextBlock:()=>oc,itemTitle:()=>ic,itemTitleTop:()=>lc,large:()=>ac,medium:()=>sc,root:()=>cc,small:()=>uc,stateLayer:()=>dc});var a={};o.r(a),o.d(a,{button:()=>Pc,buttonsContainer:()=>_c,calendarContainer:()=>Cc,cell:()=>Ac,cellCircle:()=>Ec,cellData:()=>Rc,cellSelection:()=>kc,cellSelectionFirst:()=>Dc,cellSelectionLast:()=>Mc,cellsContainer:()=>Lc,dateTimeMode:()=>Ic,medium:()=>Nc,month:()=>zc,monthCellSelection:()=>Tc,monthCellSelectionFirst:()=>Fc,monthCellSelectionLast:()=>Vc,monthView:()=>Hc,navigationArrow:()=>qc,navigationContainer:()=>Bc,navigationTitle:()=>Wc,navigationValue:()=>Kc,root:()=>Gc,small:()=>Uc,timeContainer:()=>Yc,timeDivider:()=>Qc,timeSelectionMarker:()=>Jc,year:()=>Zc});var s={};o.r(s),o.d(s,{medium:()=>Ku,root:()=>Gu,small:()=>Uu});var c={};o.r(c),o.d(c,{medium:()=>Ef,modal:()=>Rf,overlay1:()=>kf,overlay2:()=>Df,panel:()=>Mf,primary:()=>Lf,root:()=>If,small:()=>Nf});var u={};o.r(u),o.d(u,{disableBorder:()=>Uf,disabled:()=>Yf,filled:()=>Qf,iconOnly:()=>Jf,medium:()=>Zf,root:()=>Xf,selected:()=>$f,selectedFilled:()=>ep,small:()=>tp,tab:()=>np,tabBorder:()=>rp,tabBorderVertical:()=>op,tabFilled:()=>ip,tabIcon:()=>lp,tabTitle:()=>ap,tabVertical:()=>sp,vertical:()=>cp});var d={};o.r(d),o.d(d,{alignCenter:()=>Lh,alignLeft:()=>Ih,alignRight:()=>Nh,bordersAll:()=>zh,bordersHorizontal:()=>Th,bordersVertical:()=>Fh,bottomBorder:()=>Vh,clickable:()=>Hh,editable:()=>qh,error:()=>Bh,evenRow:()=>Wh,firstThRow:()=>Kh,input:()=>Gh,label:()=>Uh,marginLeftChanging:()=>Yh,medium:()=>Qh,modalContent:()=>Jh,rightBorder:()=>Zh,root:()=>Xh,rowButtonTrigger:()=>$h,rowspanContent:()=>eg,selectRows:()=>tg,selected:()=>ng,showInModal:()=>rg,small:()=>og,sticky:()=>ig,success:()=>lg,table:()=>ag,tableContainer:()=>sg,td:()=>cg,th:()=>ug,thCell:()=>dg,thHiddenColumn:()=>fg,thLeftBorder:()=>pg,thRightBorder:()=>hg,tr:()=>gg,verticalAlignCenter:()=>mg,verticalAlignFlexEnd:()=>bg,verticalAlignFlexStart:()=>vg,viewCell:()=>yg,viewSpan:()=>wg});var f={};o.r(f),o.d(f,{actions:()=>hm,bodyFullSize:()=>gm,bodyPadded:()=>mm,bodyPaddedNoHeader:()=>bm,header:()=>vm,headerOverlay:()=>ym,medium:()=>wm,root:()=>Om,small:()=>jm});var p={};o.r(p),o.d(p,{clickable:()=>Am,filled:()=>Em,icon:()=>Rm,iconClickable:()=>km,iconLeft:()=>Dm,iconRight:()=>Mm,iconRightSlot:()=>Lm,label:()=>Im,medium:()=>Nm,outlined:()=>zm,root:()=>Tm,secondary:()=>Fm,small:()=>Vm,withIcon:()=>Hm});var h=o(942),g=o.n(h),m=o(953),b=o.t(m,2),v="button-module__active__hSEWs",y="button-module__compact__nfUBM",w="button-module__elevated__nAlrD",O="button-module__extraLarge__ycvek",j="button-module__filled__D7eAr",x="button-module__large__gt0K2",S="button-module__medium__v66y0",P="button-module__only-icon__zOzfl",_="button-module__outlined__c_PHO",C="button-module__root__gX6OQ",A="button-module__small__HHNmk",E="button-module__state-layer__t1MJf",R="button-module__text__rG7nD",k="button-module__text-secondary__jXFdx",D="button-module__tonal__u6w_G",M="button-module__with-icon__C4Cw6",L="button-module__without-icon__GOGFF";const I=require("react/jsx-runtime"),N=["variant","componentSize","icon","textSecondary","isActive","compact","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 T(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){F(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 F(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 V=(0,m.forwardRef)(function(t,n){let{variant:r="filled",componentSize:o="medium",icon:i,textSecondary:l,isActive:a,compact:s,className:c,children:u,classes:d}=t,f=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}(t,N);return(0,I.jsx)("button",T(T({className:g()(C,e[r],e[o],i?u?M:P:L,a?v:void 0,l?k:void 0,s?y:void 0,c,d?.root)},f),{},{ref:n,children:(0,I.jsxs)("span",{className:g()(E,d?.stateLayer),children:[i,u]})}))});function H(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var q=parseInt(m.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=H(r,t),o="function"==typeof e;n.push(o?e:()=>H(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)H(n,t)}},B="typography-module__body1__x76Hw",W="typography-module__body2__xQKKj",K="typography-module__body3__yogkL",G="typography-module__button__dx69P",U="typography-module__caption__cWpWz",Y="typography-module__caption2__EqwAG",Q="typography-module__doubleCaption__uInp1",J="typography-module__h1__pRuCD",Z="typography-module__h2__tNSpQ",X="typography-module__h3__YqCF_",$="typography-module__h4__BCkqi",ee="typography-module__h5__z84mf",te="typography-module__h6__C2Wqz",ne="typography-module__h7__B6VO6",re="typography-module__label__C1Tlg",oe="typography-module__overline__IkqBV",ie="typography-module__subtitle1__NO_el",le="typography-module__subtitle2__TKKn5",ae="typography-module__subtitle3__FK3eb";const se=["variant","component","children","className"];function ce(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 ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach(function(t){de(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function de(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 fe=(0,m.forwardRef)(function(e,n){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,se);const s=o||"span";return(0,I.jsx)(s,ue(ue({className:g()(t[r],l)},a),{},{ref:n,children:i}))});function pe(){const e=m;return"function"==typeof e.useId?e.useId():(0,m.useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const he=({size:e=24,color:t="currentColor",className:n,children:r})=>(0,I.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,className:n,xmlns:"http://www.w3.org/2000/svg",children:r});function ge(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach(function(t){be(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function be(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 ve=e=>(0,I.jsx)(he,me(me({},e),{},{children:(0,I.jsx)("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 ye(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 we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach(function(t){Oe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oe(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 je=e=>(0,I.jsx)(he,we(we({},e),{},{children:(0,I.jsx)("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 xe(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?xe(Object(n),!0).forEach(function(t){Pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(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 _e=e=>(0,I.jsx)(he,Se(Se({},e),{},{children:(0,I.jsx)("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 Ce="checkbox-module__checkbox__x6SCC",Ae="checkbox-module__pressed__mLWO0";const Ee=["label","several","componentSize","classes","id"];function Re(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 ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach(function(t){De(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function De(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=(0,m.forwardRef)(function(e,t){const{label:n,several:r,componentSize:o="medium",classes:i,id: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,Ee),s=(0,m.useRef)(null),c=pe(),u=l??c;(0,m.useEffect)(()=>{const e=s.current;if(!e)return;const t=()=>e.classList.remove(Ae),n=()=>e.classList.add(Ae);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const d="large"===o?"subtitle1":"subtitle2";return(0,I.jsxs)("div",{className:g()("checkbox-module__root__xJtJG",i?.root),children:[(0,I.jsx)("input",ke({ref:q([s,t]),type:"checkbox",className:g()("checkbox-module__input__SjKVz",i?.input),id:u,title:n},a)),(0,I.jsxs)("label",{htmlFor:u,className:g()("checkbox-module__label__tkrMd",i?.label),title:n,children:[r?(0,I.jsx)("span",{className:g()(Ce,"checkbox-module__several__TYjeg",i?.checkbox),children:(0,I.jsx)(_e,{})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{className:g()(Ce,"checkbox-module__deselected__ZuA24",i?.checkbox),children:(0,I.jsx)(ve,{})}),(0,I.jsx)("span",{className:g()(Ce,"checkbox-module__selected__pLwVq",i?.checkbox),children:(0,I.jsx)(je,{})})]}),!!n&&(0,I.jsx)(fe,{variant:d,className:g()("checkbox-module__label-text__kXha_",i?.labelText),children:n})]})]})}),Le=new Uint8Array(16),Ie=[];for(let e=0;e<256;++e)Ie.push((e+256).toString(16).slice(1));const Ne=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(Le);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 ze="tooltip-module__arrow__SONUP",Te="tooltip-module__bottom-arrow__GdFYs",Fe="tooltip-module__content__nH6p2",Ve="tooltip-module__error__XWI8s",He="tooltip-module__info__un5n7",qe="tooltip-module__left-arrow__BFwGV",Be="tooltip-module__right-arrow__ZFRBE",We="tooltip-module__success__OXBJT",Ke="tooltip-module__top-arrow__UHvch",Ge="tooltip-module__trigger__PIfJx",Ue="tooltip-module__warning__Xb_Wr";function Ye(){return"undefined"!=typeof window}function Qe(e){return Xe(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ze(e){var t;return null==(t=(Xe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Xe(e){return!!Ye()&&(e instanceof Node||e instanceof Je(e).Node)}function $e(e){return!!Ye()&&(e instanceof Element||e instanceof Je(e).Element)}function et(e){return!!Ye()&&(e instanceof HTMLElement||e instanceof Je(e).HTMLElement)}function tt(e){return!(!Ye()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot)}function nt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function rt(e){return/^(table|td|th)$/.test(Qe(e))}function ot(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const it=/transform|translate|scale|rotate|perspective|filter/,lt=/paint|layout|strict|content/,at=e=>!!e&&"none"!==e;let st;function ct(e){const t=$e(e)?ft(e):e;return at(t.transform)||at(t.translate)||at(t.scale)||at(t.rotate)||at(t.perspective)||!ut()&&(at(t.backdropFilter)||at(t.filter))||it.test(t.willChange||"")||lt.test(t.contain||"")}function ut(){return null==st&&(st="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),st}function dt(e){return/^(html|body|#document)$/.test(Qe(e))}function ft(e){return Je(e).getComputedStyle(e)}function pt(e){return $e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ht(e){if("html"===Qe(e))return e;const t=e.assignedSlot||e.parentNode||tt(e)&&e.host||Ze(e);return tt(t)?t.host:t}function gt(e){const t=ht(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:et(t)&&nt(t)?t:gt(t)}function mt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=gt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=Je(o);if(i){const e=bt(l);return t.concat(l,l.visualViewport||[],nt(o)?o:[],e&&n?mt(e):[])}return t.concat(o,mt(o,[],n))}function bt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var vt=["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(","),yt="undefined"==typeof Element,wt=yt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ot=!yt&&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},jt=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]"):jt(e.parentNode))},xt=function(e,t,n){if(jt(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(vt));return t&&wt.call(e,vt)&&r.unshift(e),r.filter(n)},St=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!jt(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),a=l.length?l:i.children,s=St(a,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{wt.call(i,vt)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!jt(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=St(!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},Pt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},_t=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))&&!Pt(e)?0:e.tabIndex},Ct=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},At=function(e){return"INPUT"===e.tagName},Et=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Rt=function(e,t){return!(t.disabled||function(e){return At(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=wt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(wt.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Et(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,a=Ot(e);if(l&&!l.shadowRoot&&!0===r(l))return Et(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&&Ot(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=Ot(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!!wt.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},kt=function(e,t){return!(function(e){return function(e){return At(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ot(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)||_t(t)<0||!Rt(e,t))},Dt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Mt=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=_t(e);return n<0&&t&&!Pt(e)?0:n}(i,o),a=o?Mt(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(Ct).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Lt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?St([e],t.includeContainer,{filter:kt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Dt}):xt(e,t.includeContainer,kt.bind(null,t)),Mt(n)},It=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==wt.call(e,vt)&&kt(t,e)};function Nt(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function zt(){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 Tt(){return/apple/i.test(navigator.vendor)}function Ft(){const e=/android/i;return e.test(Nt())||e.test(zt())}function Vt(){return zt().includes("jsdom/")}const Ht="data-floating-ui-focusable";function qt(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 Bt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tt(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Wt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Kt(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 Gt(e){return(null==e?void 0:e.ownerDocument)||document}function Ut(e){return et(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Yt(e){return!!e&&"combobox"===e.getAttribute("role")&&Ut(e)}function Qt(e){return e?e.hasAttribute(Ht)?e:e.querySelector("["+Ht+"]")||e:null}function Jt(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,...Jt(e,t.id,n)])}function Zt(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 Xt(e){e.preventDefault(),e.stopPropagation()}function $t(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var en="undefined"!=typeof document?m.useLayoutEffect:function(){};function tn(e){const t=m.useRef(e);return en(()=>{t.current=e}),t}const nn={...b}.useInsertionEffect||(e=>e());function rn(e){const t=m.useRef(()=>{});return nn(()=>{t.current=e}),m.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 on=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ln(e,t){const n=Lt(e,on()),r=n.length;if(0===r)return;const o=qt(Gt(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function an(e){return ln(Gt(e).body,1)||e}function sn(e){return ln(Gt(e).body,-1)||e}function cn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Bt(n,r)}function un(e){Lt(e,on()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function dn(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 fn=require("react-dom"),pn=Math.min,hn=Math.max,gn=Math.round,mn=Math.floor,bn=e=>({x:e,y:e}),vn={left:"right",right:"left",bottom:"top",top:"bottom"};function yn(e,t,n){return hn(e,pn(t,n))}function wn(e,t){return"function"==typeof e?e(t):e}function On(e){return e.split("-")[0]}function jn(e){return e.split("-")[1]}function xn(e){return"x"===e?"y":"x"}function Sn(e){return"y"===e?"height":"width"}function Pn(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function _n(e){return xn(Pn(e))}function Cn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const An=["left","right"],En=["right","left"],Rn=["top","bottom"],kn=["bottom","top"];function Dn(e){const t=On(e);return vn[t]+e.slice(t.length)}function Mn(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 Ln(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 In(e,t,n){let{reference:r,floating:o}=e;const i=Pn(t),l=_n(t),a=Sn(l),s=On(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(jn(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function Nn(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}=wn(t,e),h=Mn(p),g=a[f?"floating"===d?"reference":"floating":d],m=Ln(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.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=Ln(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:s}):b);return{top:(m.top-w.top+h.top)/y.y,bottom:(w.bottom-m.bottom+h.bottom)/y.y,left:(m.left-w.left+h.left)/y.x,right:(w.right-m.right+h.right)/y.x}}const zn=new Set(["left","top"]);function Tn(e){const t=ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=et(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=gn(n)!==i||gn(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Fn(e){return $e(e)?e:e.contextElement}function Vn(e){const t=Fn(e);if(!et(t))return bn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tn(t);let l=(i?gn(n.width):n.width)/r,a=(i?gn(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Hn=bn(0);function qn(e){const t=Je(e);return ut()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Hn}function Bn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Fn(e);let l=bn(1);t&&(r?$e(r)&&(l=Vn(r)):l=Vn(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Je(e))&&t}(i,n,r)?qn(i):bn(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=Je(i),t=r&&$e(r)?Je(r):r;let n=e,o=bt(n);for(;o&&r&&t!==n;){const e=Vn(o),t=o.getBoundingClientRect(),r=ft(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=Je(o),o=bt(n)}}return Ln({width:u,height:d,x:s,y:c})}function Wn(e,t){const n=pt(e).scrollLeft;return t?t.left+n:Bn(Ze(e)).left+n}function Kn(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Wn(e,n),y:n.top+t.scrollTop}}function Gn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Je(e),r=Ze(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=ut();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}const c=Wn(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=Ze(e),n=pt(e),r=e.ownerDocument.body,o=hn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=hn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Wn(e);const a=-n.scrollTop;return"rtl"===ft(r).direction&&(l+=hn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(Ze(e));else if($e(t))r=function(e,t){const n=Bn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=et(e)?Vn(e):bn(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=qn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ln(r)}function Un(e,t){const n=ht(e);return!(n===t||!$e(n)||dt(n))&&("fixed"===ft(n).position||Un(n,t))}function Yn(e,t,n){const r=et(t),o=Ze(t),i="fixed"===n,l=Bn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=bn(0);function c(){s.x=Wn(o)}if(r||!r&&!i)if(("body"!==Qe(t)||nt(o))&&(a=pt(t)),r){const e=Bn(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?bn(0):Kn(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 Qn(e){return"static"===ft(e).position}function Jn(e,t){if(!et(e)||"fixed"===ft(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ze(e)===n&&(n=n.ownerDocument.body),n}function Zn(e,t){const n=Je(e);if(ot(e))return n;if(!et(e)){let t=ht(e);for(;t&&!dt(t);){if($e(t)&&!Qn(t))return t;t=ht(t)}return n}let r=Jn(e,t);for(;r&&rt(r)&&Qn(r);)r=Jn(r,t);return r&&dt(r)&&Qn(r)&&!ct(r)?n:r||function(e){let t=ht(e);for(;et(t)&&!dt(t);){if(ct(t))return t;if(ot(t))return null;t=ht(t)}return null}(e)||n}const Xn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=Ze(r),a=!!t&&ot(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=bn(1);const u=bn(0),d=et(r);if((d||!d&&!i)&&(("body"!==Qe(r)||nt(l))&&(s=pt(r)),d)){const e=Bn(r);c=Vn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?bn(0):Kn(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:Ze,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ot(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=mt(e,[],!1).filter(e=>$e(e)&&"body"!==Qe(e)),o=null;const i="fixed"===ft(e).position;let l=i?ht(e):e;for(;$e(l)&&!dt(l);){const t=ft(l),n=ct(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||nt(l)&&!n&&Un(e,l))?r=r.filter(e=>e!==l):o=t,l=ht(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=Gn(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=Gn(t,i[e],o);a=hn(n.top,a),s=pn(n.right,s),c=pn(n.bottom,c),u=hn(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:Zn,getElementRects:async function(e){const t=this.getOffsetParent||Zn,n=this.getDimensions,r=await n(e.floating);return{reference:Yn(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}=Tn(e);return{width:t,height:n}},getScale:Vn,isElement:$e,isRTL:function(e){return"rtl"===ft(e).direction}};function $n(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function er(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=Fn(e),u=o||i?[...c?mt(c):[],...t?mt(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=Ze(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 h={rootMargin:-mn(d)+"px "+-mn(o.clientWidth-(u+f))+"px "+-mn(o.clientHeight-(d+p))+"px "+-mn(u)+"px",threshold:hn(0,pn(1,s))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==s){if(!g)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||$n(c,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!s&&h.observe(c),t&&h.observe(t));let g=s?Bn(e):null;return s&&function t(){const r=Bn(e);g&&!$n(g,r)&&n(),g=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=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const tr=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:h="none",flipAlignment:g=!0,...m}=wn(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=On(o),v=Pn(a),y=On(a)===a,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),O=f||(y||!g?[Dn(a)]:function(e){const t=Dn(e);return[Cn(e),t,Cn(t)]}(a)),j="none"!==h;!f&&j&&O.push(...function(e,t,n,r){const o=jn(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?En:An:t?An:En;case"left":case"right":return t?Rn:kn;default:return[]}}(On(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Cn)))),i}(a,g,h,w));const x=[a,...O],S=await s.detectOverflow(t,m),P=[];let _=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&P.push(S[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=jn(e),o=_n(e),i=Sn(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Dn(l)),[l,Dn(l)]}(o,l,w);P.push(S[e[0]],S[e[1]])}if(_=[..._,{placement:o,overflows:P}],!P.every(e=>e<=0)){var C,A;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=x[e];if(t&&("alignment"!==d||v===Pn(t)||_.every(e=>Pn(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(A=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var E;const e=null==(E=_.filter(e=>{if(j){const t=Pn(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:E[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},nr=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}=wn(e,t)||{};if(null==c)return{};const d=Mn(u),f={x:n,y:r},p=_n(o),h=Sn(p),g=await l.getDimensions(c),m="y"===p,b=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],O=f[p]-i.reference[p],j=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let x=j?j[y]:0;x&&await(null==l.isElement?void 0:l.isElement(j))||(x=a.floating[y]||i.floating[h]);const S=w/2-O/2,P=x/2-g[h]/2-1,_=pn(d[b],P),C=pn(d[v],P),A=_,E=x-g[h]-C,R=x/2-g[h]/2+S,k=yn(A,R,E),D=!s.arrow&&null!=jn(o)&&R!==k&&i.reference[h]/2-(R<A?_:C)-g[h]/2<0,M=D?R<A?R-A:R-E:0;return{[p]:f[p]+M,data:{[p]:k,centerOffset:R-k-M,...D&&{alignmentOffset:M}},reset:D}}}),rr=(e,t,n)=>{const r=new Map,o={platform:Xn,...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:Nn},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}=In(c,r,s),f=r,p=0;const h={};for(let n=0;n<i.length;n++){const g=i[n];if(!g)continue;const{name:m,fn:b}=g,{x:v,y,data:w,reset:O}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,h[m]={...h[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}=In(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var or="undefined"!=typeof document?m.useLayoutEffect:function(){};function ir(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(!ir(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||ir(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function lr(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ar(e,t){const n=lr(e);return Math.round(t*n)/n}function sr(e){const t=m.useRef(e);return or(()=>{t.current=e}),t}const cr=(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=On(n),a=jn(n),s="y"===Pn(n),c=zn.has(l)?-1:1,u=i&&s?-1:1,d=wn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),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]}},ur=(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}=wn(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=Pn(On(o)),p=xn(f);let h=u[p],g=u[f];if(l){const e="y"===p?"bottom":"right";h=yn(h+d["y"===p?"top":"left"],h,h-d[e])}if(a){const e="y"===f?"bottom":"right";g=yn(g+d["y"===f?"top":"left"],g,g-d[e])}const m=s.fn({...t,[p]:h,[f]:g});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]}},dr=(e,t)=>{const n=tr(e);return{name:n.name,fn:n.fn,options:[e,t]}},fr=(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?nr({element:n.current,padding:r}).fn(t):{}:n?nr({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function pr(e){const t=m.useRef(void 0),n=m.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 m.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const hr="data-floating-ui-focusable",gr="active",mr="selected",br={...b};let vr=!1,yr=0;const wr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+yr++,Or=br.useId||function(){const[e,t]=m.useState(()=>vr?wr():void 0);return en(()=>{null==e&&t(wr())},[]),m.useEffect(()=>{vr=!0},[]),e};const jr=m.createContext(null),xr=m.createContext(null),Sr=()=>{var e;return(null==(e=m.useContext(jr))?void 0:e.id)||null},Pr=()=>m.useContext(xr);function _r(e){return"data-floating-ui-"+e}function Cr(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const Ar=_r("safe-polygon");function Er(e,t,n){if(n&&!$t(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 Rr(e){return"function"==typeof e?e():e}let kr=0;function Dr(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(kr);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():kr=requestAnimationFrame(i)}const Mr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Lr(e){return"inert"===e?Mr.inert:"aria-hidden"===e?Mr["aria-hidden"]:Mr.none}let Ir=new WeakSet,Nr={},zr=0;function Tr(e){return e?tt(e)?e.host:Tr(e.parentNode):null}const Fr=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Tr(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Vr(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=Fr(t,e),a=new Set,s=new Set(l),c=[];Nr[o]||(Nr[o]=new WeakMap);const u=Nr[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"!==Qe(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=Lr(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&&Ir.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),a.clear(),zr++,()=>{c.forEach(e=>{const t=Lr(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!Ir.has(e)&&i&&e.removeAttribute(i),Ir.delete(e)),r||e.removeAttribute(o)}),zr--,zr||(Mr.inert=new WeakMap,Mr["aria-hidden"]=new WeakMap,Mr.none=new WeakMap,Ir=new WeakSet,Nr={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Hr={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},qr=m.forwardRef(function(e,t){const[n,r]=m.useState();en(()=>{Tt()&&r("button")},[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[_r("focus-guard")]:"",style:Hr};return(0,I.jsx)("span",{...e,...o})}),Br={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Wr=m.createContext(null),Kr=_r("portal");function Gr(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Or(),o=Ur(),[i,l]=m.useState(null),a=m.useRef(null);return en(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),en(()=>{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(Kr,""),e.appendChild(n),a.current=n,l(n)},[t,r]),en(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Xe(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(Kr,""),e=i||e,e.appendChild(s),a.current=s,l(s)},[t,n,r,o]),i}({id:n,root:r}),[l,a]=m.useState(null),s=m.useRef(null),c=m.useRef(null),u=m.useRef(null),d=m.useRef(null),f=null==l?void 0:l.modal,p=null==l?void 0:l.open,h=!!l&&!l.modal&&l.open&&o&&!(!r&&!i);return m.useEffect(()=>{if(i&&o&&!f)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&cn(e)&&("focusin"===e.type?dn:un)(i)}},[i,o,f]),m.useEffect(()=>{i&&(p||dn(i))},[p,i]),(0,I.jsxs)(Wr.Provider,{value:m.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:i,setFocusManagerState:a}),[o,i]),children:[h&&i&&(0,I.jsx)(qr,{"data-type":"outside",ref:s,onFocus:e=>{if(cn(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=sn(l?l.domReference:null);null==e||e.focus()}}}),h&&i&&(0,I.jsx)("span",{"aria-owns":i.id,style:Br}),i&&fn.createPortal(t,i),h&&i&&(0,I.jsx)(qr,{"data-type":"outside",ref:c,onFocus:e=>{if(cn(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=an(l?l.domReference:null);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Ur=()=>m.useContext(Wr);function Yr(e){return m.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Qr=[];function Jr(){Qr=Qr.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function Zr(){Jr();const e=Qr[Qr.length-1];return null==e?void 0:e.deref()}function Xr(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=on(),o=function(e,t){return(t=t||{}).getShadowRoot?St([e],t.includeContainer,{filter:Rt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):xt(e,t.includeContainer,Rt.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return It(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 $r=m.forwardRef(function(e,t){return(0,I.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:Hr})});function eo(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:l=0,returnFocus:a=!0,restoreFocus:s=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0,outsideElementsInert:f=!1,getInsideElements:p=()=>[]}=e,{open:h,onOpenChange:g,events:b,dataRef:v,elements:{domReference:y,floating:w}}=t,O=rn(()=>{var e;return null==(e=v.current.floatingContext)?void 0:e.nodeId}),j=rn(p),x="number"==typeof l&&l<0,S=Yt(y)&&x,P="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,_=!P||i,C=!_||P&&f,A=tn(o),E=tn(l),R=tn(a),k=Pr(),D=Ur(),M=m.useRef(null),L=m.useRef(null),N=m.useRef(!1),z=m.useRef(!1),T=m.useRef(-1),F=m.useRef(-1),V=null!=D,H=Qt(w),q=rn(function(e){return void 0===e&&(e=H),e?Lt(e,on()):[]}),B=rn(e=>{const t=q(e);return A.current.map(e=>y&&"reference"===e?y:H&&"floating"===e?H:t).filter(Boolean).flat()});m.useEffect(()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){Bt(H,qt(Gt(H)))&&0===q().length&&!S&&Xt(e);const t=B(),n=Wt(e);"reference"===A.current[0]&&n===y&&(Xt(e),e.shiftKey?Dr(t[t.length-1]):Dr(t[1])),"floating"===A.current[1]&&n===H&&e.shiftKey&&(Xt(e),Dr(t[0]))}}const t=Gt(H);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,y,H,c,A,S,q,B]),m.useEffect(()=>{if(!r&&w)return w.addEventListener("focusin",e),()=>{w.removeEventListener("focusin",e)};function e(e){const t=Wt(e),n=q().indexOf(t);-1!==n&&(T.current=n)}},[r,w,q]),m.useEffect(()=>{if(r)return;if(!d)return;function e(){z.current=!0,setTimeout(()=>{z.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Wt(e);queueMicrotask(()=>{const o=O(),i=!(Bt(y,t)||Bt(w,t)||Bt(t,w)||Bt(null==D?void 0:D.portalNode,t)||null!=t&&t.hasAttribute(_r("focus-guard"))||k&&(Jt(k.nodesRef.current,o).find(e=>{var n,r;return Bt(null==(n=e.context)?void 0:n.elements.floating,t)||Bt(null==(r=e.context)?void 0:r.elements.domReference,t)})||Zt(k.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,Qt(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===y&&H&&Xr(H,A),s&&n!==y&&(null==r||!r.isConnected)&&qt(Gt(H))===Gt(H).body){et(H)&&H.focus();const e=T.current,t=q(),n=t[e]||t[t.length-1]||H;et(n)&&n.focus()}v.current.insideReactTree?v.current.insideReactTree=!1:!S&&c||!t||!i||z.current||t===Zr()||(N.current=!0,g(!1,e,"focus-out"))})}const n=Boolean(!k&&D);function o(){Cr(F),v.current.insideReactTree=!0,F.current=window.setTimeout(()=>{v.current.insideReactTree=!1})}return w&&et(y)?(y.addEventListener("focusout",t),y.addEventListener("pointerdown",e),w.addEventListener("focusout",t),n&&w.addEventListener("focusout",o,!0),()=>{y.removeEventListener("focusout",t),y.removeEventListener("pointerdown",e),w.removeEventListener("focusout",t),n&&w.removeEventListener("focusout",o,!0)}):void 0},[r,y,w,H,c,k,D,g,d,s,q,S,O,A,v]);const W=m.useRef(null),K=m.useRef(null),G=Yr([W,null==D?void 0:D.beforeInsideRef]),U=Yr([K,null==D?void 0:D.afterInsideRef]);function Y(e){return!r&&u&&c?(0,I.jsx)($r,{ref:"start"===e?M:L,onClick:e=>g(!1,e.nativeEvent),children:"string"==typeof u?u:"Dismiss"}):null}m.useEffect(()=>{var e,t;if(r)return;if(!w)return;const n=Array.from((null==D||null==(e=D.portalNode)?void 0:e.querySelectorAll("["+_r("portal")+"]"))||[]),o=null==(t=(k?Zt(k.nodesRef.current,O()):[]).find(e=>{var t;return Yt((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[w,o,...n,...j(),M.current,L.current,W.current,K.current,null==D?void 0:D.beforeOutsideRef.current,null==D?void 0:D.afterOutsideRef.current,A.current.includes("reference")||S?y:null].filter(e=>null!=e),l=c||S?Vr(i,!C,C):Vr(i);return()=>{l()}},[r,y,w,c,A,D,S,_,C,k,O,j]),en(()=>{if(r||!et(H))return;const e=qt(Gt(H));queueMicrotask(()=>{const t=B(H),n=E.current,r=("number"==typeof n?t[n]:n.current)||H,o=Bt(H,e);x||o||!h||Dr(r,{preventScroll:r===H})})},[r,h,H,x,B,E]),en(()=>{if(r||!H)return;const e=Gt(H);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(N.current=!0),"outside-press"===t)if(r)N.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ft()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!Vt()&&(!Ft()&&0===e.width&&0===e.height||Ft()&&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))N.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),N.current=!e}}t=qt(e),Jr(),t&&"body"!==Qe(t)&&(Qr.push(new WeakRef(t)),Qr.length>20&&(Qr=Qr.slice(-20))),b.on("openchange",n);const o=e.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,Hr),V&&y&&y.insertAdjacentElement("afterend",o),()=>{b.off("openchange",n);const t=qt(e),r=Bt(w,t)||k&&Jt(k.nodesRef.current,O(),!1).some(e=>{var n;return Bt(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof R.current){const e=y||Zr();return e&&e.isConnected?e:o}return R.current.current||o}();queueMicrotask(()=>{const n=function(e){const t=on();return It(e,t)?e:Lt(e,t)[0]||e}(i);R.current&&!N.current&&et(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),o.remove()})}},[r,w,H,R,v,b,k,V,y,O]),m.useEffect(()=>(queueMicrotask(()=>{N.current=!1}),()=>{queueMicrotask(Jr)}),[r]),en(()=>{if(!r&&D)return D.setFocusManagerState({modal:c,closeOnFocusOut:d,open:h,onOpenChange:g,domReference:y}),()=>{D.setFocusManagerState(null)}},[r,D,c,h,g,d,y]),en(()=>{r||H&&Xr(H,A)},[r,H,A]);const Q=!r&&_&&(!c||!S)&&(V||c);return(0,I.jsxs)(I.Fragment,{children:[Q&&(0,I.jsx)(qr,{"data-type":"inside",ref:G,onFocus:e=>{if(c){const e=B();Dr("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(N.current=!1,cn(e,D.portalNode)){const e=an(y);null==e||e.focus()}else{var t;null==(t=D.beforeOutsideRef.current)||t.focus()}}}),!S&&Y("start"),n,Y("end"),Q&&(0,I.jsx)(qr,{"data-type":"inside",ref:U,onFocus:e=>{if(c)Dr(B()[0]);else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(d&&(N.current=!0),cn(e,D.portalNode)){const e=sn(y);null==e||e.focus()}else{var t;null==(t=D.afterOutsideRef.current)||t.focus()}}})]})}function to(e){return et(e.target)&&"BUTTON"===e.target.tagName}function no(e){return Ut(e)}function ro(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=m.useRef(),p=m.useRef(!1),h=m.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&($t(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:$t(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||to(e)||(" "!==e.key||no(i)||(e.preventDefault(),p.current=!0),function(e){return et(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||to(e)||no(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,s]);return m.useMemo(()=>l?{reference:h}:{},[l,h])}const oo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},io={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},lo=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 ao(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:h}=t,g=Pr(),b=rn("function"==typeof s?s:()=>!1),v="function"==typeof s?b:s,y=m.useRef(!1),{escapeKey:w,outsidePress:O}=lo(p),{escapeKey:j,outsidePress:x}=lo(h),S=m.useRef(!1),P=rn(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=g?Jt(g.nodesRef.current,o):[];if(!w&&(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")}),_=rn(e=>{var t;const n=()=>{var t;P(e),null==(t=Wt(e))||t.removeEventListener("keydown",n)};null==(t=Wt(e))||t.addEventListener("keydown",n)}),C=rn(e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const l=y.current;if(y.current=!1,"click"===c&&l)return;if(n)return;if("function"==typeof v&&!v(e))return;const a=Wt(e),s="["+_r("inert")+"]",u=Gt(o.floating).querySelectorAll(s);let d=$e(a)?a:null;for(;d&&!dt(d);){const e=ht(d);if(dt(e)||!$e(e))break;d=e}if(u.length&&$e(a)&&!a.matches("html,body")&&!Bt(a,o.floating)&&Array.from(u).every(e=>!Bt(d,e)))return;if(et(a)&&R){const t=dt(a),n=ft(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=g&&Jt(g.nodesRef.current,f).some(t=>{var n;return Kt(e,null==(n=t.context)?void 0:n.elements.floating)});if(Kt(e,o.floating)||Kt(e,o.domReference)||p)return;const h=g?Jt(g.nodesRef.current,f):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),A=rn(e=>{var t;const n=()=>{var t;C(e),null==(t=Wt(e))||t.removeEventListener(c,n)};null==(t=Wt(e))||t.addEventListener(c,n)});m.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=w,i.current.__outsidePressBubbles=O;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},ut()?5:0)}const d=Gt(o.floating);a&&(d.addEventListener("keydown",j?_:P,j),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),v&&d.addEventListener(c,x?A:C,x);let p=[];return f&&($e(o.domReference)&&(p=mt(o.domReference)),$e(o.floating)&&(p=p.concat(mt(o.floating))),!$e(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(mt(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",j?_:P,j),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),v&&d.removeEventListener(c,x?A:C,x),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,v,c,n,r,f,l,w,O,P,j,_,C,x,A]),m.useEffect(()=>{i.current.insideReactTree=!1},[i,v,c]);const E=m.useMemo(()=>({onKeyDown:P,...u&&{[oo[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[P,r,u,d]),R=m.useMemo(()=>{function e(e){0===e.button&&(y.current=!0)}return{onKeyDown:P,onMouseDown:e,onMouseUp:e,[io[c]]:()=>{i.current.insideReactTree=!0}}},[P,c,i]);return m.useMemo(()=>l?{reference:E,floating:R}:{},[l,E,R])}function so(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Or(),i=m.useRef({}),[l]=m.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!=Sr(),[s,c]=m.useState(r.reference),u=rn((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=m.useMemo(()=>({setPositionReference:c}),[]),f=m.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return m.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,[i,l]=m.useState(null),[a,s]=m.useState(null),c=(null==o?void 0:o.domReference)||i,u=m.useRef(null),d=Pr();en(()=>{c&&(u.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:s,open:c}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=m.useState(r);ir(f,r)||p(r);const[h,g]=m.useState(null),[b,v]=m.useState(null),y=m.useCallback(e=>{e!==x.current&&(x.current=e,g(e))},[]),w=m.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),O=i||h,j=l||b,x=m.useRef(null),S=m.useRef(null),P=m.useRef(u),_=null!=s,C=sr(s),A=sr(o),E=sr(c),R=m.useCallback(()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};A.current&&(e.platform=A.current),rr(x.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==E.current};k.current&&!ir(P.current,t)&&(P.current=t,fn.flushSync(()=>{d(t)}))})},[f,t,n,A,E]);or(()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const k=m.useRef(!1);or(()=>(k.current=!0,()=>{k.current=!1}),[]),or(()=>{if(O&&(x.current=O),j&&(S.current=j),O&&j){if(C.current)return C.current(O,j,R);R()}},[O,j,R,C,_]);const D=m.useMemo(()=>({reference:x,floating:S,setReference:y,setFloating:w}),[y,w]),M=m.useMemo(()=>({reference:O,floating:j}),[O,j]),L=m.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=ar(M.floating,u.x),r=ar(M.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...lr(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,M.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:R,refs:D,elements:M,floatingStyles:L}),[u,R,D,M,L])}({...e,elements:{...o,...a&&{reference:a}}}),p=m.useCallback(e=>{const t=$e(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),h=m.useCallback(e=>{($e(e)||null===e)&&(u.current=e,l(e)),($e(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!$e(e))&&f.refs.setReference(e)},[f.refs]),g=m.useMemo(()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u}),[f.refs,h,p]),b=m.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),v=m.useMemo(()=>({...f,...r,refs:g,elements:b,nodeId:t}),[f,g,b,t,r]);return en(()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),m.useMemo(()=>({...f,context:v,refs:g,elements:b}),[f,g,b,v])}function co(){return Nt().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&Tt()}function uo(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=m.useRef(!1),u=m.useRef(-1),d=m.useRef(!0);m.useEffect(()=>{if(!a)return;const e=Je(l.domReference);function t(){!n&&et(l.domReference)&&l.domReference===qt(Gt(l.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),co()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),co()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[l.domReference,n,a]),m.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]),m.useEffect(()=>()=>{Cr(u)},[]);const f=m.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Wt(e.nativeEvent);if(s&&$e(t))if(co()&&!e.relatedTarget){if(!d.current&&!Ut(t))return}else if(!function(e){if(!e||Vt())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=$e(t)&&t.hasAttribute(_r("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=qt(l.domReference?l.domReference.ownerDocument:document);(t||a!==l.domReference)&&(Bt(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Bt(l.domReference,a)||o||r(!1,n,"focus"))})}}),[i,l.domReference,r,s]);return m.useMemo(()=>a?{reference:f}:{},[a,f])}function fo(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[gr]:t,[mr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[hr]:""},...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&&[gr,mr].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 po(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=m.useCallback(t=>fo(t,e,"reference"),t),i=m.useCallback(t=>fo(t,e,"floating"),n),l=m.useCallback(t=>fo(t,e,"item"),r);return m.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}const ho=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function go(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=Or(),u=(null==(n=i.domReference)?void 0:n.id)||c,d=m.useMemo(()=>{var e;return(null==(e=Qt(i.floating))?void 0:e.id)||l},[i.floating,l]),f=null!=(r=ho.get(s))?r:s,p=null!=Sr(),h=m.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]),g=m.useMemo(()=>{const e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),b=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 m.useMemo(()=>a?{reference:h,floating:g,item:b}:{},[a,h,g,b])}const mo=(0,m.createContext)(null),bo=["styles","style","children"],vo=["context"];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 wo(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){Oo(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 Oo(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 jo(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 xo=(0,m.forwardRef)(function(e,t){let{styles:n,style:r,children:o}=e,i=jo(e,bo);const l=(0,m.useContext)(mo);if(!l)return null;const{context:a}=l,s=jo(l,vo),c=pr([s.refs.setFloating,t]);if(!a.open)return null;let u="",d=null,f=null;switch(s.placement){case"top":case"top-end":case"top-start":u="topArrow",f=!1;break;case"bottom":case"bottom-end":case"bottom-start":u="bottomArrow",f=!0;break;case"left":case"left-end":case"left-start":u="leftArrow",d=!0;break;case"right":case"right-end":case"right-start":u="rightArrow",d=!1}return(0,I.jsx)(Gr,{root:s.root,children:(0,I.jsxs)("div",wo(wo({ref:c,style:wo(wo({},s.floatingStyles),r)},s.getFloatingProps(i)),{},{children:[o,!s.withoutArrow&&(0,I.jsx)("div",{className:n&&g()(n.arrow,n[u]),ref:s.arrowRef,style:{position:"absolute",left:null===f&&!1===d?0:s.middlewareData.arrow?.x,right:null===f&&!0===d?0:s.middlewareData.arrow?.x,top:null===d&&!0===f?0:s.middlewareData.arrow?.y,bottom:null===d&&!1===f?0:s.middlewareData.arrow?.y}})]}))})});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 Po(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){_o(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 _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 Co=["children"],Ao=e=>{const{children:t}=e,n=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,Co),r=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:o,withoutArrow:i,arrowRef:l,root:a}=e,[s,c]=(0,m.useState)(t),u=r??s,d=o??c,f=so({placement:n,open:u,onOpenChange:d,whileElementsMounted:er,middleware:[cr(12),dr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),ur({padding:5}),...!i&&l?.current?[fr({element:l})]:[]]}),{context:p}=f,h=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=Pr(),h=Sr(),g=tn(c),b=tn(s),v=tn(n),y=tn(d),w=m.useRef(),O=m.useRef(-1),j=m.useRef(),x=m.useRef(-1),S=m.useRef(!0),P=m.useRef(!1),_=m.useRef(()=>{}),C=m.useRef(!1),A=rn(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});m.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(Cr(O),Cr(x),S.current=!0,C.current=!1)}},[a,i]),m.useEffect(()=>{if(!a)return;if(!g.current)return;if(!n)return;function e(e){A()&&r(!1,e,"hover")}const t=Gt(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[l.floating,n,r,a,g,A]);const E=m.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Er(b.current,"close",w.current);o&&!j.current?(Cr(O),O.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(Cr(O),r(!1,e,n))},[b,r]),R=rn(()=>{_.current(),j.current=void 0}),k=rn(()=>{if(P.current){const e=Gt(l.floating).body;e.style.pointerEvents="",e.removeAttribute(Ar),P.current=!1}}),D=rn(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));m.useEffect(()=>{if(a&&$e(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(Cr(O),S.current=!1,u&&!$t(w.current)||Rr(y.current)>0&&!Er(b.current,"open"))return;const t=Er(b.current,"open",w.current);t?O.current=window.setTimeout(()=>{v.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(D())return void k();_.current();const t=Gt(l.floating);if(Cr(x),C.current=!1,g.current&&o.current.floatingContext){n||Cr(O),j.current=g.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){k(),R(),D()||E(e,!0,"safe-polygon")}});const r=j.current;return t.addEventListener("mousemove",r),void(_.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==w.current||!Bt(l.floating,e.relatedTarget))&&E(e)}function i(e){D()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){k(),R(),D()||E(e)}})(e))}function s(){Cr(O)}function c(e){D()||E(e,!1)}},[l,a,e,u,f,E,R,k,r,n,v,p,b,g,o,D,y]),en(()=>{var e;if(a&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&A()){P.current=!0;const e=l.floating;if($e(l.domReference)&&e){var t;const n=Gt(l.floating).body;n.setAttribute(Ar,"");const r=l.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===h))||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,h,l,p,g,A]),en(()=>{n||(w.current=void 0,C.current=!1,R(),k())},[n,R,k]),m.useEffect(()=>()=>{R(),Cr(O),Cr(x),k()},[a,l.domReference,R,k]);const M=m.useMemo(()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||v.current||r(!0,t,"hover")}u&&!$t(w.current)||n||0===Rr(y.current)||C.current&&e.movementX**2+e.movementY**2<2||(Cr(x),"touch"===w.current?o():(C.current=!0,x.current=window.setTimeout(o,Rr(y.current))))}}},[u,r,n,v,y]);return m.useMemo(()=>a?{reference:M}:{},[a,M])}(p,{move:!1,enabled:null==r}),g=po([h,uo(p,{enabled:null==r}),ao(p),go(p,{role:"tooltip"})]);return(0,m.useMemo)(()=>Po(Po({open:u,setOpen:d,withoutArrow:i,arrowRef:l,root:a},g),f),[u,d,g,f,a])}(n);return(0,I.jsx)(mo.Provider,{value:r,children:t})},Eo=["children","wrapTrigger"];function Ro(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?Ro(Object(n),!0).forEach(function(t){Do(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Do(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 Mo=(0,m.forwardRef)(function(e,t){let{children:n,wrapTrigger: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,Eo);const i=(0,m.useContext)(mo),l=n.ref,a=pr([i?.refs.setReference,t,l]);return i?!r&&(0,m.isValidElement)(n)?(0,m.cloneElement)(n,i.getReferenceProps(ko(ko(ko({ref:a},o),n.props),{},{"data-state":i.open?"open":"closed"}))):(0,I.jsx)("div",ko(ko({ref:a,"data-state":i.open?"open":"closed"},i.getReferenceProps(o)),{},{children:n})):null});function Lo(e){const{label:t,clickable:r,initialOpen:o,placement:i,withoutArrow:l,wrapTrigger:a,alertType:s="default",root:c,children:u,classes:d}=e,[f,p]=(0,m.useState)(!1),h=(0,m.useRef)(null);return t?u?(0,I.jsxs)(Ao,{placement:i,initialOpen:o,open:r?f:void 0,onOpenChange:r?p:void 0,withoutArrow:l,arrowRef:h,root:c,children:[(0,I.jsx)(Mo,{wrapTrigger:a,onClick:r?()=>p(e=>!e):void 0,className:a?g()(Ge,d?.trigger):void 0,children:u}),(0,I.jsx)(xo,{className:g()(Fe,n[s],d?.content),styles:n,children:t})]}):null:u?(0,I.jsx)(I.Fragment,{children:u}):null}var Io="fieldShell-module__arrow__dXtPp",No="fieldShell-module__chips__Eyi_K",zo="fieldShell-module__end-icon__ajeP3",To="fieldShell-module__input__mpHQB";const Fo=["variant","componentSize","fullWidth","label","error","labelExtra","inputId","onLabelClick","hasStartIcon","hasEndIcon","hasDualEndIcon","hasErrorIcon","hasClearButton","hasArrow","chipsMode","children","classes","className"];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 Ho(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){qo(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}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 Bo=(0,m.forwardRef)(function(e,t){let{variant:n="outlined",componentSize:r="medium",fullWidth:o,label:i,error:l,labelExtra:a,inputId:s,onLabelClick:c,hasStartIcon:u,hasEndIcon:d,hasDualEndIcon:f,hasErrorIcon:p,hasClearButton:h,hasArrow:m,chipsMode:b,children:v,classes:y,className: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,Fo);return(0,I.jsxs)("div",{"data-size":r,className:g()("fieldShell-module__root__vQ9PI",o&&"fieldShell-module__full-width__bYt_Z",y?.root),children:[!!i&&(0,I.jsxs)("div",{className:g()("fieldShell-module__label-row__bOAYh",y?.labelRow),children:[(0,I.jsxs)(fe,{className:g()("fieldShell-module__label__fdgQq",y?.label),component:"label",variant:"caption",htmlFor:s,onClick:c,children:[i,a]}),!!l&&(0,I.jsx)(Lo,{label:l.description,alertType:"error",children:(0,I.jsx)("span",{className:g()("fieldShell-module__error-name__LUg8D",y?.errorName),children:l.name})})]}),(0,I.jsx)("div",Ho(Ho({ref:t,"data-variant":n,"data-error":l?"":void 0,"data-start-icon":u?"":void 0,"data-end-icon":d?"":void 0,"data-dual-end-icon":f?"":void 0,"data-error-icon":p?"":void 0,"data-clear":h?"":void 0,"data-arrow":m?"":void 0,"data-chips":b?"":void 0,className:g()("fieldShell-module__wrapper__OLPGQ",w,y?.wrapper)},O),{},{children:v}))]})});function Wo(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?Wo(Object(n),!0).forEach(function(t){Go(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Go(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 Uo=e=>(0,I.jsx)(he,Ko(Ko({},e),{},{children:(0,I.jsx)("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm1-5C6.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 8z"})}));function Yo(e){return(0,I.jsxs)(I.Fragment,{children:[e.name,(0,I.jsx)("br",{}),e.description]})}function Qo(e){const{error:t,componentSize:n="medium",className:r}=e,o="large"===n||"extraLarge"===n?24:20;return(0,I.jsx)(Lo,{label:Yo(t),alertType:"error",children:(0,I.jsx)("span",{className:g()(zo,"fieldShell-module__error-icon__Nyh0h",r),children:(0,I.jsx)(Uo,{size:o})})})}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){Xo(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 Xo(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 $o=e=>(0,I.jsx)(he,Zo(Zo({},e),{},{children:(0,I.jsx)("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 ei="inputChip-module__clickable__XZjD7",ti="inputChip-module__disabled__Zk_O4",ni="inputChip-module__extraLarge__s_SFd",ri="inputChip-module__filled__mSiU7",oi="inputChip-module__icon__phvLA",ii="inputChip-module__large__PPvr0",li="inputChip-module__medium__VruGz",ai="inputChip-module__outlined__j4EHe",si="inputChip-module__remove__Z6QBd",ci="inputChip-module__root__DWnVf",ui="inputChip-module__small__XrLEF",di="inputChip-module__text__dhqTV",fi="inputChip-module__with-icon__DZMe4";const pi=["variant","componentSize","icon","disabled","onClick","onRemove","children","classes","className"];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 gi(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){mi(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 mi(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 bi=(0,m.forwardRef)(function(e,t){let{variant:n="filled",componentSize:o="medium",icon:i,disabled:l,onClick:a,onRemove:s,children:c,classes:u,className:d}=e,f=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,pi);return(0,I.jsxs)("div",gi(gi({ref:t,className:g()(ci,r[n],r[o],!!i&&fi,l&&ti,a&&!l&&ei,d,u?.root),tabIndex:a&&!l?0:void 0},f),{},{onClick:l?void 0:a,children:[!!i&&(0,I.jsx)("span",{className:g()(oi,u?.icon),children:i}),(0,I.jsx)("span",{className:g()(di,u?.text),children:c}),!!s&&(0,I.jsx)("button",{type:"button",className:g()(si,u?.remove),onClick:e=>{e.stopPropagation(),l||s?.()},disabled:l,"aria-label":"Удалить",children:(0,I.jsx)($o,{})})]}))});var vi="popover-module__content__cXVJ_",yi="popover-module__trigger__hYNqD";const wi=(0,m.createContext)(null),Oi=["style","children"],ji=["context"];function xi(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?xi(Object(n),!0).forEach(function(t){Pi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(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}function _i(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 Ci=(0,m.forwardRef)(function(e,t){let{style:n,children:r}=e,o=_i(e,Oi);const i=(0,m.useContext)(wi);if(!i)return null;const{context:l}=i,a=_i(i,ji),s=pr([a.refs.setFloating,t]),c=pe();return(0,m.useLayoutEffect)(()=>(i.setDescriptionId(c),()=>i.setDescriptionId(void 0)),[c,i.setDescriptionId]),l.open?(0,I.jsx)(Gr,{root:a.root,children:(0,I.jsx)(eo,{context:l,modal:a.modal,children:(0,I.jsx)("div",Si(Si({id:c,ref:s,style:Si(Si({},a.floatingStyles),n),"aria-describedby":a.descriptionId},a.getFloatingProps(o)),{},{children:r}))})}):null}),Ai=["update"];function Ei(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 Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(n),!0).forEach(function(t){ki(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ki(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 Di=["children","modal"];function Mi(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,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 Ii=e=>{const{children:t,modal:n=!1}=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,Di),o=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,m.useState)(t),[d,f]=(0,m.useState)(),p=i??c,h=l??u,g=so({placement:n,open:p,onOpenChange:h,whileElementsMounted:er,middleware:[cr(a),dr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),ur({padding:5})]}),{update:b}=g,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}(g,Ai),{context:y}=v;(0,m.useLayoutEffect)(()=>{p&&b()},[p,s,b]);const w=po([ro(y,{enabled:null==i}),ao(y),go(y)]);return(0,m.useMemo)(()=>Ri(Ri(Ri({open:p,setOpen:h},w),v),{},{update:b,modal:r,root:o,descriptionId:d,setDescriptionId:f}),[p,h,w,v,b,r,o,d])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach(function(t){Li(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:n},r));return(0,I.jsx)(wi.Provider,{value:o,children:t})},Ni=["children","wrapTrigger"];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 Ti(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){Fi(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 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=(0,m.forwardRef)(function(e,t){let{children:n,wrapTrigger: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,Ni);const i=(0,m.useContext)(wi),l=n.ref,a=pr([i?.refs.setReference,t,l]);return i?!r&&(0,m.isValidElement)(n)?(0,m.cloneElement)(n,i.getReferenceProps(Ti(Ti(Ti({ref:a},o),n.props),{},{"data-state":i.open?"open":"closed"}))):(0,I.jsx)("div",Ti(Ti({ref:a,"data-state":i.open?"open":"closed"},i.getReferenceProps(o)),{},{children:n})):null});function Hi(e){const{description:t,clickable:n,initialOpen:r,placement:o,wrapTrigger:i,containerOffset:l,root:a,open:s,onOpenChange:c,children:u,classes:d,contentStyle:f,layoutVersion:p}=e,[h,b]=(0,m.useState)(!1);return u?t?(0,I.jsxs)(Ii,{placement:o,initialOpen:r,open:void 0!==s?s:n?h:void 0,onOpenChange:void 0!==c?c:n?b:void 0,containerOffset:l,root:a,layoutVersion:p,children:[(0,I.jsx)(Vi,{wrapTrigger:i,onClick:n?()=>b(e=>!e):void 0,className:g()(i?yi:void 0,d?.trigger),children:u}),(0,I.jsx)(Ci,{className:g()(vi,d?.content),style:f,children:t})]}):u:null}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 Bi(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){Wi(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 Wi(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=>(0,I.jsx)(he,Bi(Bi({},e),{},{children:(0,I.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function Gi(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?Gi(Object(n),!0).forEach(function(t){Yi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(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 Qi=e=>(0,I.jsx)(he,Ui(Ui({},e),{},{children:(0,I.jsx)("path",{d:"M7 10l5 5 5-5z"})}));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 Zi(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){Xi(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 Xi(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 $i=e=>(0,I.jsx)(he,Zi(Zi({},e),{},{children:(0,I.jsx)("path",{d:"M7 14l5-5 5 5z"})}));function el(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?el(Object(n),!0).forEach(function(t){nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(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 rl=e=>(0,I.jsx)(he,tl(tl({},e),{},{children:(0,I.jsx)("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 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 il(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){ll(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 ll(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 al=e=>(0,I.jsx)(he,il(il({},e),{},{children:(0,I.jsx)("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})}));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 cl(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){ul(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 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 dl=e=>(0,I.jsx)(he,cl(cl({},e),{},{children:(0,I.jsx)("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 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 pl(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){hl(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 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 gl=e=>(0,I.jsx)(he,pl(pl({},e),{},{children:(0,I.jsx)("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 ml(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 bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(t){vl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vl(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 yl=e=>(0,I.jsx)(he,bl(bl({},e),{},{children:(0,I.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function wl(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?wl(Object(n),!0).forEach(function(t){jl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(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=>(0,I.jsx)(he,Ol(Ol({},e),{},{children:(0,I.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));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){_l(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 _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 Cl=e=>(0,I.jsx)(he,Pl(Pl({},e),{},{children:(0,I.jsx)("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 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 El(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){Rl(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 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=>(0,I.jsx)(he,El(El({},e),{},{children:(0,I.jsx)("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 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){Ll(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 Ll(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 Il=e=>(0,I.jsx)(he,Ml(Ml({},e),{},{children:(0,I.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM16 9V19H8V9H16ZM6 7H18V19C18 20.1 17.1 21 16 21H8C6.9 21 6 20.1 6 19V7Z"})}));function Nl(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?Nl(Object(n),!0).forEach(function(t){Tl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nl(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 Fl=e=>(0,I.jsx)(he,zl(zl({},e),{},{children:(0,I.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function Vl(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?Vl(Object(n),!0).forEach(function(t){ql(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vl(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 Bl=e=>(0,I.jsx)(he,Hl(Hl({},e),{},{children:(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM7 12C7 10.9 7.9 10 9 10C10.1 10 11 10.9 11 12C11 13.1 10.1 14 9 14C7.9 14 7 13.1 7 12ZM9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20ZM17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM13 18C13 16.9 13.9 16 15 16C16.1 16 17 16.9 17 18C17 19.1 16.1 20 15 20C13.9 20 13 19.1 13 18Z"})}));function Wl(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?Wl(Object(n),!0).forEach(function(t){Gl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gl(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=>(0,I.jsx)(he,Kl(Kl({},e),{},{children:(0,I.jsx)("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 Ql(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){Jl(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 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 Zl=e=>(0,I.jsx)(he,Ql(Ql({},e),{},{children:(0,I.jsx)("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 Xl(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 $l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xl(Object(n),!0).forEach(function(t){ea(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ea(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 ta=e=>(0,I.jsxs)(he,$l($l({},e),{},{children:[(0,I.jsx)("g",{"clip-path":"url(#clip0_851_25267)",children:(0,I.jsx)("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"})}),(0,I.jsx)("defs",{children:(0,I.jsx)("clipPath",{id:"clip0_851_25267",children:(0,I.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}));function na(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 ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach(function(t){oa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(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 ia=e=>(0,I.jsx)(he,ra(ra({},e),{},{children:(0,I.jsx)("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 la(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 aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach(function(t){sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sa(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 ca=e=>(0,I.jsx)(he,aa(aa({},e),{},{children:(0,I.jsx)("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 ua(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 da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach(function(t){fa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fa(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 pa=e=>(0,I.jsx)(he,da(da({},e),{},{children:(0,I.jsx)("path",{d:"M12 8.29498L6 14.295L7.41 15.705L12 11.125L16.59 15.705L18 14.295L12 8.29498Z"})}));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 ga(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){ma(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 ma(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 ba=e=>(0,I.jsx)(he,ga(ga({},e),{},{children:(0,I.jsx)("path",{d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z"})}));function va(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 ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach(function(t){wa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wa(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=>(0,I.jsx)(he,ya(ya({},e),{},{children:(0,I.jsx)("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function ja(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 xa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach(function(t){Sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sa(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 Pa=e=>(0,I.jsx)(he,xa(xa({},e),{},{children:(0,I.jsx)("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 _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 Ca(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){Aa(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 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 Ea=e=>(0,I.jsx)(he,Ca(Ca({},e),{},{children:(0,I.jsx)("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 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 ka(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){Da(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 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 Ma=e=>(0,I.jsx)(he,ka(ka({},e),{},{children:(0,I.jsx)("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function La(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 Ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach(function(t){Na(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Na(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 za=e=>(0,I.jsx)(he,Ia(Ia({},e),{},{children:(0,I.jsx)("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 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 Fa(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){Va(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 Va(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 Ha=e=>(0,I.jsx)(he,Fa(Fa({},e),{},{children:(0,I.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function qa(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 Ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(n),!0).forEach(function(t){Wa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wa(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=>(0,I.jsx)(he,Ba(Ba({},e),{},{children:(0,I.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function Ga(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?Ga(Object(n),!0).forEach(function(t){Ya(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ga(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 Qa=e=>(0,I.jsx)(he,Ua(Ua({},e),{},{children:(0,I.jsx)("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"})}));function Ja(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 Za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(n),!0).forEach(function(t){Xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xa(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 $a=e=>(0,I.jsx)(he,Za(Za({},e),{},{children:(0,I.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));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}const rs=e=>(0,I.jsx)(he,ts(ts({},e),{},{children:(0,I.jsx)("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 os(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 is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?os(Object(n),!0).forEach(function(t){ls(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ls(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=e=>(0,I.jsx)(he,is(is({},e),{},{children:(0,I.jsx)("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 ss(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 cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach(function(t){us(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function us(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 ds=e=>(0,I.jsx)(he,cs(cs({},e),{},{children:(0,I.jsx)("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 fs(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 ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fs(Object(n),!0).forEach(function(t){hs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hs(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 gs=e=>(0,I.jsx)(he,ps(ps({},e),{},{children:(0,I.jsx)("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function ms(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 bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){vs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(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 ys=e=>(0,I.jsx)(he,bs(bs({},e),{},{children:(0,I.jsx)("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 ws(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 Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(n),!0).forEach(function(t){js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(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 xs=e=>(0,I.jsx)(he,Os(Os({},e),{},{children:(0,I.jsx)("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 Ss(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 Ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(n),!0).forEach(function(t){_s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _s(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 Cs=e=>(0,I.jsx)(he,Ps(Ps({},e),{},{children:(0,I.jsx)("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 As(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 Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach(function(t){Rs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(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}const ks=e=>(0,I.jsx)(he,Es(Es({},e),{},{children:(0,I.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function Ds(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 Ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(n),!0).forEach(function(t){Ls(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ls(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 Is=e=>(0,I.jsx)(he,Ms(Ms({},e),{},{children:(0,I.jsx)("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 Ns(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 zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach(function(t){Ts(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ts(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 Fs=e=>(0,I.jsx)(he,zs(zs({},e),{},{children:(0,I.jsx)("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 Vs(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 Hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(n),!0).forEach(function(t){qs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qs(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 Bs=e=>(0,I.jsx)(he,Hs(Hs({},e),{},{children:(0,I.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3H17L21 7V19C21 20.1 20.1 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.89 3 5 3ZM19 19V7.83L16.17 5H5V19H19ZM12 12C10.34 12 9 13.34 9 15C9 16.66 10.34 18 12 18C13.66 18 15 16.66 15 15C15 13.34 13.66 12 12 12ZM15 6H6V10H15V6Z"})}));function Ws(){const e=(0,m.useContext)(wi);return e?.open?(0,I.jsx)($i,{}):(0,I.jsx)(Qi,{})}const Ks=["children","fillEvenly","classes","className"];function Gs(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 Us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach(function(t){Ys(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ys(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 Qs=(0,m.forwardRef)(function(e,t){let{children:n,fillEvenly:r,classes:o,className: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,Ks);return(0,I.jsx)("div",Us(Us({ref:t,className:g()("buttonsGroup-module__root__rBp1o",r&&"buttonsGroup-module__fill-evenly__J5T6H",i,o?.root)},l),{},{children:n}))});var Js="menu-module__divider__kik9c",Zs="menu-module__extraLarge__RIQUR",Xs="menu-module__item__DO2AJ",$s="menu-module__item-actions__ecU8y",ec="menu-module__item-description__BxxnF",tc="menu-module__item-disabled__E7Z4s",nc="menu-module__item-icon___HDe4",rc="menu-module__item-selected__m9VFe",oc="menu-module__item-text-block__zgpGT",ic="menu-module__item-title__gcK7P",lc="menu-module__item-title-top__PSYWj",ac="menu-module__large__jYm_Q",sc="menu-module__medium__Jev6c",cc="menu-module__root__pR_5h",uc="menu-module__small__uGqFV",dc="menu-module__state-layer__m8uMf";const fc=["items","componentSize","descriptionPosition","classes","className"];function pc(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 hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach(function(t){gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gc(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 mc=(0,m.forwardRef)(function(e,t){let{items:n,componentSize:r="medium",descriptionPosition:o="right",classes:i,className: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,fc);const c=(0,m.useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]);return(0,I.jsxs)("div",hc(hc({ref:t,className:g()(cc,l[r],a,i?.root)},s),{},{children:[" ",n.map((e,t)=>{const n="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?(0,I.jsx)(n,{tabIndex:-10,className:g()(Xs,e.selected?rc:void 0,e.disabled?tc:void 0,i?.item,e.selected?i?.itemSelected:void 0,e.disabled?i?.itemDisabled:void 0),onClick:e.disabled?void 0:c(e),title:e.name,children:(0,I.jsxs)("span",{className:g()(dc),children:[!!e.icon&&(0,I.jsx)("span",{className:g()(nc,i?.itemIcon,e.selected?i?.itemSelectedIcon:void 0,e.disabled?i?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===o&&e.description?(0,I.jsxs)("span",{className:g()(oc),children:[(0,I.jsx)("span",{className:g()(lc,ic,i?.itemTitle,e.selected?i?.itemSelectedTitle:void 0,e.disabled?i?.itemDisabledTitle:void 0),children:e.name}),(0,I.jsx)("span",{className:g()(ec,i?.itemDescription,e.selected?i?.itemSelectedDescription:void 0,e.disabled?i?.itemDisabledDescription:void 0),children:e.description})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{className:g()(ic,i?.itemTitle,e.selected?i?.itemSelectedTitle:void 0,e.disabled?i?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&(0,I.jsx)("span",{className:g()(ec,i?.itemDescription,e.selected?i?.itemSelectedDescription:void 0,e.disabled?i?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&(0,I.jsx)("div",{className:g()($s,i?.itemActions,e.selected?i?.itemSelectedActions:void 0,e.disabled?i?.itemDisabledActions:void 0),children:(0,I.jsx)(Qs,{children:e.subButtons.map((e,t)=>(0,I.jsx)(V,{variant:e.variant,componentSize:r,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${t}`):(0,I.jsx)("div",{className:g()(Js,i?.divider),children:e.name},`menu-divider-${e.name}-${t}`)})]}))});function bc(e){const{items:t,componentSize:n,selectedValue:r,changeSelectedItem:o,classes:i}=e,l=(0,m.useContext)(wi);return(0,I.jsx)(mc,{componentSize:n,classes:i?.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===r,onClick:()=>{o(e),l&&l.setOpen(!1)}})})}const vc=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","defaultValue","onValueChange","selected","chips","classes","disabled","id"];function yc(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 wc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(n),!0).forEach(function(t){Oc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oc(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 jc=(0,m.forwardRef)(function(e,t){const{variant:n="filled",componentSize:r="medium",icon:o,fullWidth:i,label:l,error:a,placeholder:s,items:c,defaultValue:u,onValueChange:d,selected:f,chips:p,classes:h,disabled:b,id:v}=e,y=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),w=u&&!f,[O,j]=(0,m.useState)(w?c.find(e=>"item"===e.type&&e.value===u):void 0),x=w?O:f,S=(0,m.useRef)(null),P=(0,m.useRef)(null),_=(0,m.useCallback)(e=>{e.preventDefault(),b||P?.current?.click()},[P]),C=e=>{w&&j(e),d?.(e)};(0,m.useEffect)(()=>{if(x){const e=c.find(e=>"item"===e.type&&e.value===x?.value);e||C(e)}},[c,x]);const A=v??Ne(),E=!!a&&!l;return(0,I.jsxs)(Bo,{variant:n,componentSize:r,fullWidth:i,label:l,error:a,inputId:A,onLabelClick:_,hasStartIcon:!!o||!!x?.icon,hasArrow:!0,hasErrorIcon:E,chipsMode:p&&!!x,classes:wc(wc({},h),{},{wrapper:g()(o?"select-module__with-icon__sdr2r":void 0,x?.icon?"select-module__with-item-icon__j4VL9":void 0,h?.wrapper)}),children:[(0,I.jsx)("input",wc(wc({ref:q([S,t]),id:A,className:g()(To,"select-module__input__ajhdt",h?.input),placeholder:p&&x?void 0:s},y),{},{value:p?"":x?.name??"",onChange:()=>{},onClick:_,disabled:b})),p&&!!x&&(0,I.jsx)("span",{className:g()(No,h?.chips),children:(0,I.jsx)(bi,{componentSize:r,disabled:b,onClick:()=>P?.current?.click(),onRemove:()=>C(void 0),children:x.name})}),!!o&&(0,I.jsx)("span",{onClick:_,className:g()("select-module__icon__eKwKi",h?.icon),children:o}),!!x?.icon&&(0,I.jsx)("span",{onClick:_,className:g()("select-module__item-icon__qWzAS",h?.itemIcon),children:x?.icon}),(0,I.jsx)("span",{onClick:_,className:g()(Io,h?.arrow),children:(0,I.jsx)(Ws,{})}),E&&a&&(0,I.jsx)(Qo,{error:a,componentSize:r,className:h?.errorIcon}),(0,I.jsx)(Hi,{placement:"bottom-start",classes:wc({content:g()("select-module__popover-content__jWbFy","styledScroll",h?.popoverContent)},h?.popover),containerOffset:4,description:(0,I.jsx)(bc,{items:c,classes:h,componentSize:r,selectedValue:x?.value,changeSelectedItem:C}),children:(0,I.jsx)("div",{ref:P,className:g()("select-module__popover-target__utEyc")})})]})});var xc=o(353),Sc=o.n(xc),Pc="calendarPopover-module__button__Dpl18",_c="calendarPopover-module__buttons-container__sW9eE",Cc="calendarPopover-module__calendar-container__fGMyq",Ac="calendarPopover-module__cell__fwBxE",Ec="calendarPopover-module__cell-circle__PykI1",Rc="calendarPopover-module__cell-data__fnxK0",kc="calendarPopover-module__cell-selection__jmUxe",Dc="calendarPopover-module__cell-selection-first__bRcBr",Mc="calendarPopover-module__cell-selection-last__hyv9Z",Lc="calendarPopover-module__cells-container__B6mTs",Ic="calendarPopover-module__date-time-mode__eJCHs",Nc="calendarPopover-module__medium__pk6es",zc="calendarPopover-module__month__FCpIG",Tc="calendarPopover-module__month-cell-selection__phhRr",Fc="calendarPopover-module__month-cell-selection-first__lSKG9",Vc="calendarPopover-module__month-cell-selection-last__IKh98",Hc="calendarPopover-module__month-view__wNOC9",qc="calendarPopover-module__navigation-arrow__oiWet",Bc="calendarPopover-module__navigation-container__Hut1m",Wc="calendarPopover-module__navigation-title__sp73c",Kc="calendarPopover-module__navigation-value__Ht40y",Gc="calendarPopover-module__root__R8QOY",Uc="calendarPopover-module__small__GlV62",Yc="calendarPopover-module__time-container__x4jnu",Qc="calendarPopover-module__time-divider__aRbbR",Jc="calendarPopover-module__time-selection-marker__bVI6A",Zc="calendarPopover-module__year__BTz_s";const Xc=(e,t,n,r=1,o=!1)=>e(o?Date.UTC(t,n,r):new Date(t,n,r));function $c(e){const{values:t,selectedValue:n,onSelect:r}=e,o=t.length,i=36*(o+n),l=(0,m.useRef)(null),a=(0,m.useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,m.useEffect)(()=>{const e=l.current;e&&(Math.abs(e.scrollTop-i)<=1||(e.scrollTop=i))},[i]);const s=(0,m.useCallback)(e=>t[(e%o+o)%o],[t,o]),c=(0,m.useCallback)(()=>{const e=l.current;if(!e)return;const t=Math.round(e.scrollTop/36),i=s(t);i!==n&&r(i),(t<o||t>=2*o)&&(e.scrollTop=36*(o+i))},[s,r,n,o]),u=(0,m.useCallback)(e=>()=>{const t=l.current;t?(t.scrollTo({top:36*(o+e),behavior:"smooth"}),r(e)):r(e)},[r,o]);return(0,I.jsx)("div",{ref:l,className:g()("timeWheelColumn-module__time-wheel__fk6Jj"),onScroll:c,tabIndex:-1,children:a.map((e,t)=>(0,I.jsx)("button",{type:"button",className:g()("timeWheelColumn-module__time-wheel-button__c61An","timeWheelColumn-module__time-wheel-item__Gjqub",e===n&&"timeWheelColumn-module__time-wheel-item-active__PLWg9"),onClick:u(e),children:(0,I.jsx)(fe,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function eu(e){const{dayjs:t,componentSize:n,isPeriod:r=!0,valueType:o="date",initStartDate:i,initEndDate:l,changeDates:s,onClear:c,useUtc:u=!1,classes:d}=e,f=t??Sc(),p="dateTime"===o&&!r,[h,b]=(0,m.useState)("year"===o?"yearsRange":"month"),[v,y]=(0,m.useState)(()=>{if(i){const e=f(i);return{year:e.year(),month:e.month()}}const e=f();return{year:e.year(),month:e.month()}}),[w,O]=(0,m.useState)(i?p?f(i).second(0).millisecond(0).valueOf():f(i).startOf("D").valueOf():void 0),[j,x]=(0,m.useState)(l?f(l).startOf("D").valueOf():void 0),[S,P]=(0,m.useState)(p&&i?f(i).hour():0),[_,C]=(0,m.useState)(p&&i?f(i).minute():0),A=(0,m.useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),E=(0,m.useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),R=(0,m.useMemo)(()=>w?f(w).startOf("D").valueOf():void 0,[w,f]),k=(0,m.useMemo)(()=>j?f(j).startOf("D").valueOf():void 0,[j,f]),D=(0,m.useMemo)(()=>R?f(R).startOf("M").valueOf():void 0,[R,f]),M=(0,m.useMemo)(()=>k?f(k).startOf("M").valueOf():void 0,[k,f]),L=(0,m.useMemo)(()=>R?f(R).year():void 0,[R,f]),N=(0,m.useMemo)(()=>k?f(k).year():void 0,[k,f]),z=(0,m.useMemo)(()=>Xc(f,v.year,v.month,1,u).startOf("month"===h?"M":"y"),[v,h,f,u]),T=z.daysInMonth();let F=z.startOf("M").day()-1;F<0&&(F=6),(0,m.useEffect)(()=>w||j?"year"===o?!r&&w?void s(f(w).format("YYYY")):r&&w&&j?void s(f(w).format("YYYY"),f(j).format("YYYY")):void 0:void(p&&w?s(f(w).second(0).millisecond(0).format()):r||!w?r&&w&&j&&s(f(w).format(),f(j).format()):s(f(w).format())):(c?.(),void s()),[w,j,r,o,p,f,s,c]);const H=(0,m.useCallback)((e,t,n)=>f(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[f]);(0,m.useEffect)(()=>{if(!p||!w)return;const e=H(w,S,_);e!==w&&O(e)},[p,w,S,_,H]);const q=(0,m.useCallback)(e=>()=>{const t=Xc(f,v.year,v.month,1,u),n="yearsRange"===h?20*e:e,r="month"===h?"month":"year",o=t.add(n,r);y({month:o.month(),year:o.year()})},[h,v,f,u]),B=(0,m.useCallback)(()=>{"year"!==o&&b("month"===h?"year":"year"===h?"yearsRange":"month")},[h,o]),W=(0,m.useCallback)(e=>()=>{y({month:e.month(),year:e.year()}),b("month")},[]),K=(0,m.useCallback)(e=>()=>{const t=Xc(f,e,0,1,u).startOf("y").valueOf();if(!r)return O(p&&R===t?void 0:p||w!==t?p?H(t,S,_):t:void 0),void x(void 0);w&&j?t===w?O(void 0):(t===j||O(t),x(void 0)):w?t===w?O(void 0):t<w?(x(w),O(t)):x(t):j?t===j?x(void 0):t<j?O(t):(O(j),x(t)):O(t)},[H,j,p,r,S,_,w,R,f,u]),G=(0,m.useMemo)(()=>{const e=z.year();return 20*Math.floor(e/20)},[z]),U=(0,m.useCallback)(e=>()=>{if(!r)return O(w===e?void 0:e),void x(void 0);w&&j?e===w?O(void 0):(e===j||O(e),x(void 0)):w?e===w?O(void 0):e<w?(x(w),O(e)):x(e):j?e===j?x(void 0):e<j?O(e):(O(j),x(e)):O(e)},[w,j,r]),Y=(0,m.useCallback)(e=>{O(void 0),x(void 0),p&&(P(0),C(0)),e.currentTarget.blur()},[p]),Q=(0,m.useCallback)(e=>{const t=f();y({year:t.year(),month:t.month()}),e.currentTarget.blur()},[f]);return(0,I.jsxs)("div",{className:g()(Gc,a[n],p&&Ic,d?.root),children:[(0,I.jsxs)("div",{className:g()(Cc,"month"===h&&Hc),children:[(0,I.jsx)("div",{className:g()(_c,d?.buttonsContainer),children:(0,I.jsxs)(Qs,{fillEvenly:!0,children:[(0,I.jsx)(V,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:Y,children:"Сбросить"}),"year"!==o&&(0,I.jsx)(V,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:Q,children:"Сегодня"})]})}),(0,I.jsxs)("div",{className:g()(Bc,d?.navigationContainer),children:[(0,I.jsx)("button",{type:"button",className:g()(Pc,qc,d?.navigationArrow),onClick:q(-1),"aria-label":"Предыдущий период",children:(0,I.jsx)(yl,{})}),(0,I.jsx)("button",{type:"button",className:g()(Pc,Kc,d?.navigationValue),onClick:B,children:(0,I.jsxs)(fe,{variant:"subtitle1",className:g()(Wc,d?.navigationTitle),children:["month"===h&&z.format("MMMM YYYY"),"year"===h&&z.format("YYYY"),"yearsRange"===h&&`${G} - ${G+19}`]})}),(0,I.jsx)("button",{type:"button",className:g()(Pc,qc,d?.navigationArrow),onClick:q(1),"aria-label":"Следующий период",children:(0,I.jsx)(xl,{})})]}),(0,I.jsxs)("div",{className:g()(Lc,d?.cellsContainer),children:["yearsRange"===h&&(0,I.jsx)(I.Fragment,{children:[...Array(20)].map((e,t)=>{const n=G+t,i="year"===o?K(n):()=>{y({month:0,year:n}),b("year")},l="year"===o&&void 0!==L&&(n===L||n===N);let a=!1,s=!1,c=!1;return void 0!==L&&(r?void 0!==N&&(L===N?n===L&&(a=!0):n>=L&&n<=N&&(a=!0,n===L?s=!0:n===N&&(c=!0))):"year"!==o&&n===L&&(a=!0)),(0,I.jsxs)("button",{type:"button",className:g()(Pc,Ac,Zc,d?.cell,d?.year),onClick:i,children:[l&&(0,I.jsx)("span",{className:g()(Ec,d?.cellCircle)}),a&&(0,I.jsx)("span",{className:g()(kc,d?.cellSelection,s&&Dc,s&&d?.cellSelectionFirst,c&&Mc,c&&d?.cellSelectionLast)}),(0,I.jsx)(fe,{variant:"subtitle1",className:g()(Rc,d?.cellData),children:n})]},`cell-year-${n}`)})}),"year"===h&&(0,I.jsx)(I.Fragment,{children:[...Array(12)].map((e,t)=>{const n=z.add(t,"M"),i=n.valueOf();let l=!1,a=!1,s=!1;return r&&"year"!==o&&void 0!==D&&void 0!==M?D===M?i===D&&(l=!0):i>=D&&i<=M&&(l=!0,i===D?a=!0:i===M&&(s=!0)):r||"year"===o||void 0===D?l=r?void 0!==D&&void 0!==M&&i>=D&&i<=M:void 0!==D&&i===D:i===D&&(l=!0),(0,I.jsxs)("button",{type:"button",className:g()(Pc,Ac,zc,d?.cell,d?.month),onClick:W(n),children:[l&&(0,I.jsx)("span",{className:g()(Tc,d?.monthCellSelection,a&&Fc,a&&d?.monthCellSelectionFirst,s&&Vc,s&&d?.monthCellSelectionLast)}),(0,I.jsx)(fe,{variant:"subtitle1",className:g()(Rc,d?.cellData),children:n.format("MMMM")})]},`cell-month-${t}`)})}),"month"===h&&(0,I.jsxs)(I.Fragment,{children:[[...Array(F)].map((e,t)=>(0,I.jsx)("div",{className:g()(Ac,d?.cell)},`empty-cell-${t}`)),[...Array(T)].map((e,t)=>{const n=z.add(t,"d").valueOf();return(0,I.jsxs)("button",{type:"button",className:g()(Pc,Ac,d?.cell),onClick:U(n),children:[(n===R||n===k)&&(0,I.jsx)("span",{className:g()(Ec,d?.cellCircle)}),void 0!==R&&void 0!==k&&n>=R&&n<=k&&(0,I.jsx)("span",{className:g()(kc,d?.cellSelection,n===R&&Dc,n===R&&d?.cellSelectionFirst,n===k&&Mc,n===k&&d?.cellSelectionLast)}),(0,I.jsx)(fe,{variant:"subtitle1",className:g()(Rc,d?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),p&&(0,I.jsxs)("div",{className:g()(Yc),children:[(0,I.jsx)("div",{className:g()(Jc)}),(0,I.jsx)($c,{values:A,selectedValue:S,onSelect:P}),(0,I.jsx)(fe,{variant:"subtitle1",className:g()(Qc),children:":"}),(0,I.jsx)($c,{values:E,selectedValue:_,onSelect:C})]})]})}const tu=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","error","placeholder","defaultValues","values","onClear","onValueChange","dayjs","useUtc","classes","id","onFocus","onBlur"];function nu(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 ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nu(Object(n),!0).forEach(function(t){ou(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ou(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 iu=(0,m.forwardRef)((e,t)=>{let{variant:n="filled",isPeriod:r=!1,valueType:o="date",defaultOpen:i=!1,componentSize:l="medium",fullWidth:a,label:s,error:c,placeholder:u,defaultValues:d,values:f,onClear:p,onValueChange:h,dayjs:b,useUtc:v=!1,classes:y,id:w,onFocus:O,onBlur:j}=e,x=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,tu);const S=b??Sc(),[P,_]=(0,m.useState)(void 0!==f?f:d),[C,A]=(0,m.useState)(i),E=(0,m.useRef)(P);(0,m.useEffect)(()=>{void 0!==f&&_(f)},[f]),(0,m.useEffect)(()=>{void 0===f&&void 0!==d&&_(d)},[d,f]),(0,m.useEffect)(()=>{E.current=P},[P]);const R=r&&"dateTime"===o?"date":o,k=(0,m.useRef)(null),D=pe(),M=w??D,L=(0,m.useCallback)(e=>{A(!0),O?.(e)},[O]),N=(0,m.useCallback)(e=>{C||j?.(e)},[C,j]),z=(0,m.useCallback)(e=>{if(A(e),!e){const e=E.current;void 0!==e&&h?.(e);const t=k.current;if(!t)return;if(document.activeElement===t)return void t.blur();j?.({target:t,currentTarget:t})}},[j,h]),T=(0,m.useCallback)(()=>{k.current?.focus()},[]),F=!!c&&!s,V=(0,m.useCallback)((e,t)=>{const n=r?[e,t]:[e],o=E.current,i=(o?.length??0)===n.length&&o?.every((e,t)=>e===n[t]);i||(E.current=n,_(n))},[r]);return(0,I.jsxs)(Bo,{variant:n,componentSize:l,fullWidth:a,label:s,error:c,inputId:M,hasArrow:!0,hasErrorIcon:F,classes:y,children:[(0,I.jsx)("input",ru(ru({ref:q([k,t]),id:M,className:g()(To,"dateTime-module__input__p1lxx",y?.input),placeholder:u},x),{},{value:P?.[0]?r&&P[1]?`${S(P[0]).format("year"===R?"YYYY":"DD.MM.YYYY")} - ${S(P[1]).format("year"===R?"YYYY":"DD.MM.YYYY")}`:`${S(P[0]).format("year"===R?"YYYY":"dateTime"===R?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:L,onBlur:N})),(0,I.jsx)("span",{onClick:T,className:g()(Io,y?.icon),children:(0,I.jsx)(kl,{})}),F&&c&&(0,I.jsx)(Qo,{error:c,componentSize:l,className:y?.errorIcon}),(0,I.jsx)(Hi,{placement:"bottom-start",open:C,onOpenChange:z,classes:ru(ru({},y?.popover),{},{content:"dateTime-module__popover-content__I6nGv"}),containerOffset:4,description:(0,I.jsx)(eu,{dayjs:S,useUtc:v,classes:y,componentSize:"small"===l||"medium"===l?l:"medium",isPeriod:r,valueType:R,initStartDate:P?.[0],initEndDate:P?.[1],changeDates:V,onClear:p}),children:(0,I.jsx)("div",{className:g()("dateTime-module__popover-target__PS8vx")})})]})});function lu(){return(lu=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 au(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 su(e){var t=(0,m.useRef)(e),n=(0,m.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var cu=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},uu=function(e){return"touches"in e},du=function(e){return e&&e.ownerDocument.defaultView||self},fu=function(e,t,n){var r=e.getBoundingClientRect(),o=uu(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:cu((o.pageX-(r.left+du(e).pageXOffset))/r.width),top:cu((o.pageY-(r.top+du(e).pageYOffset))/r.height)}},pu=function(e){!uu(e)&&e.preventDefault()},hu=m.memo(function(e){var t=e.onMove,n=e.onKey,r=au(e,["onMove","onKey"]),o=(0,m.useRef)(null),i=su(t),l=su(n),a=(0,m.useRef)(null),s=(0,m.useRef)(!1),c=(0,m.useMemo)(function(){var e=function(e){pu(e),(uu(e)?e.touches.length>0:e.buttons>0)&&o.current?i(fu(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=s.current,i=du(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&&(pu(t),!function(e,t){return t&&!uu(e)}(t,s.current)&&r)){if(uu(t)){s.current=!0;var l=t.changedTouches||[];l.length&&(a.current=l[0].identifier)}r.focus(),i(fu(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,m.useEffect)(function(){return f},[f]),m.createElement("div",lu({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),gu=function(e){return e.filter(Boolean).join(" ")},mu=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=gu(["react-colorful__pointer",e.className]);return m.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},bu=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},vu=(Math.PI,function(e){return Su(yu(e))}),yu=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?bu(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?bu(parseInt(e.substring(6,8),16)/255,2):1}},wu=function(e){var t=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:bu(e.h),s:bu(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:bu(o/2),a:bu(r,2)}}(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Ou=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:bu(255*[r,a,l,l,s,r][c]),g:bu(255*[s,r,r,a,l,l][c]),b:bu(255*[l,l,s,r,r,a][c]),a:bu(o,2)}},ju=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},xu=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?ju(bu(255*o)):"";return"#"+ju(t)+ju(n)+ju(r)+i},Su=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:bu(60*(a<0?a+6:a)),s:bu(i?l/i*100:0),v:bu(i/255*100),a:o}},Pu=m.memo(function(e){var t=e.hue,n=e.onChange,r=gu(["react-colorful__hue",e.className]);return m.createElement("div",{className:r},m.createElement(hu,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:cu(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":bu(t),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(mu,{className:"react-colorful__hue-pointer",left:t/360,color:wu({h:t,s:100,v:100,a:1})})))}),_u=m.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:wu({h:t.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:r},m.createElement(hu,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:cu(t.s+100*e.left,0,100),v:cu(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+bu(t.s)+"%, Brightness "+bu(t.v)+"%"},m.createElement(mu,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:wu(t)})))}),Cu=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Au(e,t,n){var r=su(n),o=(0,m.useState)(function(){return e.toHsva(t)}),i=o[0],l=o[1],a=(0,m.useRef)({color:t,hsva:i});(0,m.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,m.useEffect)(function(){var t;Cu(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,m.useCallback)(function(e){l(function(t){return Object.assign({},t,e)})},[]);return[i,s]}var Eu="undefined"!=typeof window?m.useLayoutEffect:m.useEffect,Ru=new Map,ku=function(e){var t,n=e.className,r=e.colorModel,i=e.color,l=void 0===i?r.defaultColor:i,a=e.onChange,s=au(e,["className","colorModel","color","onChange"]),c=(0,m.useRef)(null);t=c,Eu(function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!Ru.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}',Ru.set(e,n);var r=o.nc;r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[]);var u=Au(r,l,a),d=u[0],f=u[1],p=gu(["react-colorful",n]);return m.createElement("div",lu({},s,{ref:c,className:p}),m.createElement(_u,{hsva:d,onChange:f}),m.createElement(Pu,{hue:d.h,onChange:f,className:"react-colorful__last-control"}))},Du={defaultColor:"000",toHsva:vu,fromHsva:function(e){return function(e){return xu(Ou(e))}({h:e.h,s:e.s,v:e.v,a:1})},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||Cu(yu(e),yu(t))}},Mu=function(e){return m.createElement(ku,lu({},e,{colorModel:Du}))};const Lu=["variant","componentSize","fullWidth","label","error","classes","placeholder","disabled","defaultValue","id","onValueChange"];function Iu(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iu(Object(n),!0).forEach(function(t){zu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zu(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 Tu=(0,m.forwardRef)(function(e,t){const{variant:n="outlined",componentSize:r="medium",fullWidth:o,label:i,error:l,classes:a,placeholder:s,disabled:c,defaultValue:u,id:d,onValueChange: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,Lu),[h,b]=(0,m.useState)(u?.toString()??"#AABBCC"),v=(0,m.useRef)(null),y=(0,m.useRef)(null),w=(0,m.useCallback)(e=>{b(e.toUpperCase()),f?.(e.toUpperCase())},[]),O=(0,m.useCallback)(e=>{e.preventDefault(),c||y?.current?.click()},[y,c]),j=d??Ne(),x=!!l&&!i;return(0,I.jsxs)(Bo,{variant:n,componentSize:r,fullWidth:o,label:i,error:l,inputId:j,onLabelClick:O,hasStartIcon:!0,hasArrow:!0,hasErrorIcon:x,classes:Nu(Nu({},a),{},{root:g()("colorPicker-module__root__yWPxF",a?.root)}),children:[(0,I.jsx)("input",Nu(Nu({ref:q([v,t]),id:j,className:g()(To,"colorPicker-module__input__gaesN",a?.input),placeholder:s},p),{},{value:h,onChange:()=>{},onClick:O,disabled:c})),(0,I.jsx)("span",{onClick:O,className:g()("colorPicker-module__swatch__MvnQ3",a?.icon),style:{backgroundColor:h}}),(0,I.jsx)("span",{onClick:O,className:g()(Io,a?.arrow),children:(0,I.jsx)(Ws,{})}),x&&l&&(0,I.jsx)(Qo,{error:l,componentSize:r,className:a?.errorIcon}),(0,I.jsx)(Hi,{placement:"bottom-start",classes:Nu({content:g()("colorPicker-module__popover-content__lql7r",a?.popoverContent)},a?.popover),containerOffset:4,description:(0,I.jsx)(Mu,{color:h,onChange:w}),children:(0,I.jsx)("div",{ref:y,className:g()("colorPicker-module__popover-target__M5buG")})})]})});var Fu="input-module__field-icon__OVtdo";const Vu=["variant","componentSize","fullWidth","label","error","startIcon","endIcon","classes","placeholder","id","type","onChange"];function Hu(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 qu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(n),!0).forEach(function(t){Bu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bu(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 Wu=(0,m.forwardRef)((e,t)=>{let{variant:n="outlined",componentSize:r="medium",fullWidth:o,label:i,error:l,startIcon:a,endIcon:s,classes:c,placeholder:u,id:d,type:f,onChange:p}=e,h=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,Vu);const b=(0,m.useRef)(null),[v,y]=(0,m.useState)(""),w=pe(),O=d??w,j="file"===f,x=!!l&&!j&&!i,S=!j&&!!s,P=()=>{b.current?.focus()};return(0,I.jsxs)(Bo,{variant:n,componentSize:r,fullWidth:o,label:i,error:l,inputId:O,hasStartIcon:!j&&!!a,hasEndIcon:S||x,hasDualEndIcon:S&&x,classes:c,children:[j?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",qu({ref:q([b,t]),id:O,className:g()("input-module__file-input__Hj1fC",c?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];y(t?.name??""),p?.(e)}},h)),(0,I.jsxs)("div",{role:"button",tabIndex:0,className:g()(To,"input-module__file-display__GKw0F",c?.input),onClick:()=>b.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),b.current?.click())},children:[(0,I.jsx)("span",{className:g()("input-module__file-name__AVwRH",!v&&"input-module__placeholder__QpTXt"),children:v||u}),(0,I.jsx)(rl,{size:20,className:"input-module__attach-icon__W3URr"})]})]}):(0,I.jsx)("input",qu({ref:q([b,t]),id:O,className:g()(To,"input-module__input__Xce3x",c?.input),placeholder:u,type:f,autoComplete:"off",onChange:p},h)),!!a&&!j&&(0,I.jsx)("span",{onClick:P,className:g()("fieldShell-module__start-icon__FNrDk",Fu,c?.startIcon),children:a}),S&&(0,I.jsx)("span",{onClick:P,className:g()(zo,Fu,c?.endIcon),children:s}),x&&l&&(0,I.jsx)(Qo,{error:l,componentSize:r,className:c?.errorIcon})]})});var Ku="wrapForLabel-module__medium__xK1gW",Gu="wrapForLabel-module__root__qo0J8",Uu="wrapForLabel-module__small__esSsd";const Yu=["componentSize","children","classes","className"];function Qu(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 Ju(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(n),!0).forEach(function(t){Zu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zu(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 Xu=(0,m.forwardRef)(function(e,t){let{componentSize:n="medium",children:r,classes:o,className: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,Yu);return(0,I.jsx)("div",Ju(Ju({ref:t,className:g()(Gu,s[n],i,o?.root)},l),{},{children:r}))}),$u=e=>"string"==typeof e,ed=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},td=e=>null==e?"":String(e),nd=/###/g,rd=e=>e&&e.includes("###")?e.replace(nd,"."):e,od=e=>!e||$u(e),id=(e,t,n)=>{const r=$u(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(od(e))return{};const t=rd(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return od(e)?{}:{obj:e,k:rd(r[o])}},ld=(e,t,n)=>{const{obj:r,k:o}=id(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=id(e,l,Object);for(;void 0===a.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),a=id(e,l,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},ad=(e,t)=>{const{obj:n,k:r}=id(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},sd=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?$u(e[r])||e[r]instanceof String||$u(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):sd(e[r],t[r],n):e[r]=t[r]);return e},cd=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),ud={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},dd=e=>$u(e)?e.replace(/[&<>"'\/]/g,e=>ud[e]):e,fd=[" ",",","?","!",";"],pd=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),hd=(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},gd=e=>e?.replace(/_/g,"-"),md={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 bd{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||md,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=>$u(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),$u(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new bd(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new bd(this.logger,e)}}var vd=new bd;class yd{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 wd extends yd{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):$u(n)&&o?l.push(...n.split(o)):l.push(n)));const a=ad(this.data,l);return a||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!a&&i&&$u(n)?hd(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),ld(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)($u(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=ad(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?sd(a,n,o):a={...a,...n},ld(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 Od={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 jd=Symbol("i18next/PATH_KEY");function xd(e,t){const{[jd]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===jd?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 Sd=e=>!$u(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Pd extends yd{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=vd.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=Sd(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=fd.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=pd.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:$u(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:$u(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=xd(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?xd(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 h=f?.usedKey||l,g=f?.exactUsedKey||l,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!$u(r.count),y=Pd.hasDefaultValue(r),w=v?this.pluralResolver.getSuffix(u,r.count,r):"",O=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",j=v&&!r.ordinal&&0===r.count,x=j&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${O}`]||r.defaultValue;let S=p;b&&!p&&y&&(S=x);const P=Sd(S),_=Object.prototype.toString.apply(S);if(!(b&&S&&P)||["[object Number]","[object Function]","[object RegExp]"].includes(_)||$u(m)&&Array.isArray(S))if(b&&$u(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=x),this.isValidLookup(p)||(o=!0,p=l);const a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=y&&x!==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?x: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);j&&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}`]||x)})}):n(e,l,x))}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(h,S,{...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(S),t=e?[]:{},n=e?g:h;for(const e in S)if(Object.prototype.hasOwnProperty.call(S,e)){const o=`${n}${i}${e}`;t[e]=y&&!p?this.translate(o,{...r,defaultValue:Sd(x)?x[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...r,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=S[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=$u(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&&!$u(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=$u(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=Od.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 $u(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?xd(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&&!$u(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&($u(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&&!$u(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 _d{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=vd.create("languageUtils")}getScriptPartFromCode(e){if(!(e=gd(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=gd(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if($u(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)),$u(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 $u(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))):$u(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||o(this.formatLanguageCode(e))}),r}}const Cd={zero:0,one:1,two:2,few:3,many:4,other:5},Ad={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ed{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=vd.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=gd("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!"),Ad;if(!e.match(/-|_/))return Ad;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)=>Cd[e]-Cd[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 Rd=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=ad(e,n);return void 0!==r?r:ad(t,n)})(e,t,n);return!i&&o&&$u(n)&&(i=hd(e,n,r),void 0===i&&(i=hd(t,n,r))),i},kd=e=>e.replace(/\$/g,"$$$$");class Dd{constructor(e={}){this.logger=vd.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:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:dd,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?cd(o):i||"{{",this.suffix=l?cd(l):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u?cd(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?cd(c):"",this.nestingPrefix=d?cd(d):f||cd("$t("),this.nestingSuffix=p?cd(p):h||cd(")"),this.nestingOptionsSeparator=g||",",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=Rd(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(Rd(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=>kd(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?kd(this.escape(e)):kd(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=$u(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 $u(i)||this.useRawValueToEscape||(i=td(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(`${cd(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&&!$u(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&&!$u(o))return o;$u(o)||(o=td(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 Md=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(gd(r),o),t[l]=a),a(n)}},Ld=e=>(t,n,r)=>e(gd(n),r)(t);class Id{constructor(e={}){this.logger=vd.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?Md:Ld;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()]=Md(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 Nd extends yd{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=vd.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}=id(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();$u(e)&&(e=this.languageUtils.toResolveHierarchy(e)),$u(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 zd=()=>({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]),$u(e[1])&&(t.defaultValue=e[1]),$u(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}),Td=e=>($u(e.ns)&&(e.ns=[e.ns]),$u(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),$u(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Fd=()=>{};class Vd extends yd{constructor(e={},t){var n;if(super(),this.options=Td(e),this.services={},this.logger=vd,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&&($u(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=zd();this.options={...n,...this.options,...Td(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?vd.init(r(this.modules.logger),this.options):vd.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Id;const t=new _d(this.options);this.store=new wd(this.options.resources,this.options);const n=this.services;n.logger=vd,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Ed(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 Dd(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Nd(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 Pd(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=Fd),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=ed(),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=Fd){let n=t;const r=$u(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=ed();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=Fd),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&&Od.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=ed();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=$u(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes($u(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=xd(i.keyPrefix,l));const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=xd(e,l)),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=xd(e,l)),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return $u(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=ed();return this.options.ns?($u(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=ed();$u(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 _d(zd());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 Vd(e,t);return n.createInstance=Vd.createInstance,n}cloneInstance(e={},t=Fd){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new Vd(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 wd(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...zd().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new Dd(n)}return o.translator=new Pd(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 Hd=Vd.createInstance();Hd.createInstance,Hd.dir,Hd.init,Hd.loadResources,Hd.reloadResources,Hd.use,Hd.changeLanguage,Hd.getFixedT,Hd.t,Hd.exists,Hd.setDefaultNamespace,Hd.hasLoadedNamespace,Hd.loadNamespaces,Hd.loadLanguages,o(915),Object.create(null);const qd=(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);Yd(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},Bd={},Wd=(e,t,n,r)=>{Yd(n)&&Bd[n]||(Yd(n)&&(Bd[n]=new Date),qd(e,t,n,r))},Kd=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Gd=(e,t,n)=>{e.loadNamespaces(t,Kd(e,n))},Ud=(e,t,n,r)=>{if(Yd(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Gd(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Kd(e,r))},Yd=e=>"string"==typeof e,Qd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Jd={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Zd=e=>Jd[e];let Xd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Qd,Zd),transDefaultProps:void 0};const $d=(0,m.createContext)();class ef{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}Error;const tf={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","©":"©","®":"®","™":"™","…":"…","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","•":"•","′":"′","″":"″","‹":"‹","›":"›","§":"§","¶":"¶","·":"·"," ":" "," ":" "," ":" ","€":"€","£":"£","¥":"¥","¢":"¢","¤":"¤","×":"×","÷":"÷","−":"−","±":"±","≠":"≠","≤":"≤","≥":"≥","≈":"≈","≡":"≡","∞":"∞","∫":"∫","∑":"∑","∏":"∏","√":"√","∂":"∂","‰":"‰","°":"°","µ":"µ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ","¡":"¡","¿":"¿","ƒ":"ƒ","ˆ":"ˆ","˜":"˜","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ª":"ª","º":"º","¯":"¯","´":"´","¸":"¸","¹":"¹","²":"²","³":"³","¼":"¼","½":"½","¾":"¾","♠":"♠","♣":"♣","♥":"♥","♦":"♦","◊":"◊","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","ℵ":"ℵ"};new RegExp(Object.keys(tf).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var nf=o(888);const rf={t:(e,t)=>{if(Yd(t))return t;if("object"==typeof(n=t)&&null!==n&&Yd(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},of=()=>()=>{},lf=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=(0,m.useContext)($d)||{},i=n||r||void 0;i&&!i.reportNamespaces&&(i.reportNamespaces=new ef),i||Wd(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=(0,m.useMemo)(()=>({...Xd,...i?.options?.react,...t}),[i,t]),{useSuspense:a,keyPrefix:s}=l,c=e||o||i?.options?.defaultNS,u=Yd(c)?[c]:c||["translation"],d=(0,m.useMemo)(()=>u,u);i?.reportNamespaces?.addUsedNamespaces?.(d);const f=(0,m.useRef)(0),p=(0,m.useCallback)(e=>{if(!i)return of;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]),h=(0,m.useRef)(),g=(0,m.useCallback)(()=>{if(!i)return rf;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}}):(Wd(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=h.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 h.current=a,a},[i,d,s,l,t.lng]),[b,v]=(0,m.useState)(0),{t:y,ready:w}=(0,nf.useSyncExternalStore)(p,g,g);(0,m.useEffect)(()=>{if(i&&!w&&!a){const e=()=>v(e=>e+1);t.lng?Ud(i,t.lng,d,e):Gd(i,d,e)}},[i,t.lng,d,w,a,b]);const O=i||{},j=(0,m.useRef)(null),x=(0,m.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,m.useMemo)(()=>{const e=O,t=e?.language;let n=e;e&&(j.current&&j.current.__original===e?x.current!==t?(n=S(e),j.current=n,x.current=t):n=j.current:(n=S(e),j.current=n,x.current=t));const r=w||a?y:(...e)=>(Wd(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."),y(...e)),o=[r,n,w];return o.t=r,o.i18n=n,o.ready=w,o},[y,O,w,O.resolvedLanguage,O.language,O.languages]);if(i&&a&&!w)throw new Promise(e=>{const n=()=>e();t.lng?Ud(i,t.lng,d,n):Gd(i,d,n)});return P},af=()=>{const{t:e,i18n:t}=lf();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}};function sf(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 cf(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 uf=["items","selected","disableSearch","isDisabled","actionWithSelected","onChangeItem","classes","className"];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}const hf=(0,m.forwardRef)(function(e,t){let{items:n,selected:r,disableSearch:o,isDisabled:i,actionWithSelected:l,onChangeItem:a,classes:s,className: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,uf);const{t:d}=af(),[f,p]=(0,m.useState)(""),h=(0,m.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?sf(Object(n),!0).forEach(function(t){cf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]))(n,f,r),[n,f,r]),b=(0,m.useMemo)(()=>n.filter(e=>!!r[e.value]),[n,r]),v=(0,m.useCallback)(e=>{const t=!r[e.value];a&&a(e);const n=ff(ff({},r),{},{[e.value]:t});l(n)},[r,a,l]),y=(0,m.useCallback)(()=>{const e=ff({},r);h.forEach(t=>{e[t.value]=!0}),l(e)},[r,h,l]),w=(0,m.useCallback)(()=>{const e=ff({},r);b.forEach(t=>{delete e[t.value]}),l(e)},[r,b,l]),O=(0,m.useCallback)(e=>{p(e.target.value)},[]),j=(0,m.useCallback)(e=>t=>{t.stopPropagation(),v(e)},[v]);return(0,I.jsxs)("div",ff(ff({ref:t,className:g()("checklist-module__root__AKDzG",c,s?.root)},u),{},{children:[" ",!o&&(0,I.jsx)(Wu,{variant:"outlined",startIcon:(0,I.jsx)(Ea,{}),placeholder:d("Поиск..."),disabled:i,value:f,fullWidth:!0,classes:s?.searchInput,onChange:O}),(0,I.jsxs)("div",{className:g()("checklist-module__scrolled__mpmGi","styledScroll",s?.scrolled),children:[b.length>0&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:g()("checklist-module__action-wrap__rW_zg",s?.actionWrap),children:[(0,I.jsx)(fe,{className:g()(s?.typography),children:d("Выбранное")}),(0,I.jsx)(V,{variant:"text",componentSize:"small",compact:!0,disabled:i,onClick:w,className:g()(s?.button),children:d("Отменить")})]}),(0,I.jsx)("div",{children:b.map(e=>(0,I.jsx)(Me,{label:e.name,checked:!!r[e.value],onChange:j(e),disabled:i,classes:s?.checkbox},`selected-${e.value}`))})]}),!i&&!!h.length&&(0,I.jsx)(V,{variant:"text",componentSize:"small",compact:!0,disabled:i,onClick:y,className:g()(s?.button),children:d("Выбрать все")}),(0,I.jsx)("div",{children:h.map(e=>(0,I.jsx)(Me,{label:e.name,checked:!!r[e.value],onChange:j(e),disabled:i,classes:s?.checkbox},`filtered-${e.value}`))})]})]}))}),gf=["checklistWrapper"];function mf(e){const{items:t,selected:n,onSelectedChange:r,classes:o,enableSearch:i=!1,disabled:l}=e,a=(0,m.useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),s=(0,m.useMemo)(()=>{const e={};return n?.forEach(t=>{e[t]=!0}),e},[n]),c=(0,m.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},[]);r(n)},[r,t]),u=o??{},{checklistWrapper:d}=u,f=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}(u,gf);return(0,I.jsx)("div",{className:g()(d),children:(0,I.jsx)(hf,{disableSearch:!i,isDisabled:l,items:a,selected:s,actionWithSelected:c,classes:f})})}const bf=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onValueChange","selected","classes","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];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}const Of=(0,m.forwardRef)(function(e,t){const{variant:n="filled",componentSize:r="medium",icon:o,fullWidth:i,label:l,error:a,placeholder:s,items:c,onValueChange:u,selected:d,classes:f,disabled:p,id:h,titleType:b="allValue",showSelectedCount:v=!1,enableSearch:y=!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,bf),j="chips"===b,{t:x}=lf(),S=(0,m.useRef)(null),P=(0,m.useRef)(null),_=(0,m.useRef)(null),[C,A]=(0,m.useState)(!1),[E,R]=(0,m.useState)(),[k,D]=(0,m.useState)(0),M=(0,m.useMemo)(()=>c.filter(e=>d?.includes(e.value)),[d,c]);(0,m.useLayoutEffect)(()=>{const e=S.current;if(!e)return;const t=()=>{const{width:t}=e.getBoundingClientRect();R(t),D(e=>e+1)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),(0,m.useLayoutEffect)(()=>{j&&D(e=>e+1)},[j,M.length]);const L=(0,m.useCallback)(e=>{e.preventDefault(),p||A(e=>!e)},[p]),N=(0,m.useCallback)(e=>{u?.(e)},[u]),z=(0,m.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):""}`;case"chips":return""}})(b,M,x):"",[b,M,x]),T=h??Ne(),F=!!a&&!l;return(0,I.jsxs)(Bo,{variant:n,componentSize:r,fullWidth:i,label:l,error:a,labelExtra:v&&M.length>0?(0,I.jsx)("span",{className:g()("multiSelect-module__label-selected-count__gCPqL",f?.labelSelectedCount),children:` (${M.length})`}):void 0,inputId:T,onLabelClick:L,ref:S,hasStartIcon:!!o,hasArrow:!0,hasErrorIcon:F,hasClearButton:!!M.length,chipsMode:j,classes:f,children:[(0,I.jsx)("input",yf(yf({ref:q([P,t]),id:T,className:g()(To,"multiSelect-module__input__Hk3TU",f?.input),placeholder:j&&M.length?void 0:s},O),{},{value:j?"":z,onClick:L,disabled:p,readOnly:!0,title:j?void 0:M.map(e=>e.name).join(", "),autoComplete:"off"})),j&&!!M.length&&(0,I.jsx)("span",{className:g()(No,"multiSelect-module__chips__CUViE",f?.chips),children:M.map(e=>(0,I.jsx)(bi,{componentSize:r,disabled:p,onClick:()=>{p||A(e=>!e)},onRemove:()=>{const t=M.filter(t=>t.value!==e.value);u?.(t.length?t:null)},children:e.name},e.value))}),!!o&&(0,I.jsx)("span",{onClick:L,className:g()("multiSelect-module__icon__TnLPX",f?.icon),children:o}),!!M.length&&(0,I.jsx)("span",{onClick:()=>{u?.(null)},className:g()("multiSelect-module__clear__CwQiH",f?.clear),children:(0,I.jsx)($o,{})}),(0,I.jsx)("span",{onClick:L,className:g()(Io,f?.arrow),children:(0,I.jsx)(Ws,{})}),F&&a&&(0,I.jsx)(Qo,{error:a,componentSize:r,className:f?.errorIcon}),(0,I.jsx)(Hi,{placement:"bottom-start",open:C,onOpenChange:A,contentStyle:E?{width:E,minWidth:E,maxWidth:E}:void 0,classes:yf({content:g()("multiSelect-module__popover-content__p_jyb",f?.popoverContent)},f?.popover),containerOffset:4,layoutVersion:k,root:w?S.current:void 0,description:(0,I.jsx)(mf,{items:c,classes:yf({searchInput:yf({root:"multiSelect-module__search-input-root__rCmDl"},f?.selectPopover?.searchInput),root:"multiSelect-module__checklist-root__hidSo",checklistWrapper:g()("multiSelect-module__checklist-wrapper__EDrnx"),scrolled:"multiSelect-module__checklist-scrolled__KC8yS"},f?.selectPopover),componentSize:r,selected:d,onSelectedChange:N,enableSearch:y,disabled:p}),children:(0,I.jsx)("div",{ref:_,className:g()("multiSelect-module__popover-target__x51qe")})})]})});var jf="radioButton-module__pressed__n_bXs",xf="radioButton-module__radio__fDsQH";const Sf=["label","componentSize","canUncheck","onUncheck","classes","id","onClick"];function Pf(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 _f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pf(Object(n),!0).forEach(function(t){Cf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cf(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 Af=(0,m.forwardRef)(function(e,t){const{label:n,componentSize:r="medium",canUncheck:o,onUncheck:i,classes:l,id:a,onClick:s}=e,c=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,Sf),u=(0,m.useRef)(null),d=(0,m.useRef)(!1),f=pe(),p=a??f;(0,m.useEffect)(()=>{const e=u.current;if(!e)return;const t=()=>e.classList.remove(jf),n=()=>{e.classList.add(jf),d.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const h=(0,m.useCallback)(e=>{o&&d.current&&(u.current.checked=!1,i?.()),s?.(e)},[o,i,s]),b="large"===r?"subtitle1":"subtitle2";return(0,I.jsxs)("div",{className:g()("radioButton-module__root__fxVmv",l?.root),children:[(0,I.jsx)("input",_f({ref:q([u,t]),type:"radio",className:g()("radioButton-module__input__O_xQT",l?.input),id:p,title:n,onClick:h},c)),(0,I.jsxs)("label",{htmlFor:p,className:g()("radioButton-module__label__A9fWR",l?.label),title:n,children:[(0,I.jsx)("span",{className:g()(xf,"radioButton-module__deselected__kGeIi",l?.radio),children:(0,I.jsx)(dl,{})}),(0,I.jsx)("span",{className:g()(xf,"radioButton-module__selected__atkc_",l?.radio),children:(0,I.jsx)(gl,{})}),!!n&&(0,I.jsx)(fe,{variant:b,className:g()("radioButton-module__label-text__KSEbB",l?.labelText),children:n})]})]})});var Ef="surface-module__medium__eX1Tu",Rf="surface-module__modal__CtpUb",kf="surface-module__overlay1__ZE9jx",Df="surface-module__overlay2__XHwFo",Mf="surface-module__panel__WAxUP",Lf="surface-module__primary__k8467",If="surface-module__root__h8d8c",Nf="surface-module__small__dHLRc";const zf=["type","componentSize","children","classes","className"];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 Ff(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){Vf(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}function Vf(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 Hf=(0,m.forwardRef)(function(e,t){let{type:n="primary",componentSize:r="medium",children:o,classes: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,zf);return(0,I.jsx)("div",Ff(Ff({ref:t,className:g()(If,l,i?.root,c[n],c[r])},a),{},{children:o}))}),qf=["withoutHeader","children","classes","className"];function Bf(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 Wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(n),!0).forEach(function(t){Kf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kf(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 Gf=(0,m.forwardRef)(function(e,t){let{withoutHeader:n,children:r,classes:o,className: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,qf);return(0,I.jsx)("div",Wf(Wf({ref:t,className:g()("layout-module__root__I9KVI",n?void 0:"layout-module__with-header___aKcB",i,o?.root)},l),{},{children:r}))});var Uf="tabs-module__disable-border__Vw9nt",Yf="tabs-module__disabled__e_X85",Qf="tabs-module__filled__Kzrnb",Jf="tabs-module__icon-only__qDPjH",Zf="tabs-module__medium__dvN0f",Xf="tabs-module__root__m7YiQ",$f="tabs-module__selected__YEXTT",ep="tabs-module__selected-filled__MkMIt",tp="tabs-module__small__hiwdI",np="tabs-module__tab__NoNie",rp="tabs-module__tab-border__tvFwj",op="tabs-module__tab-border-vertical__TVo15",ip="tabs-module__tab-filled__Gmwpo",lp="tabs-module__tab-icon__Kj5Oa",ap="tabs-module__tab-title__XsuJP",sp="tabs-module__tab-vertical__WQDkd",cp="tabs-module__vertical__sPO6h";const up=["items","defaultSelected","onChange","componentSize","filled","isVertical","disableBorder","allowDeselect","showTooltips","useExternalState","value","classes","className"];function dp(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 fp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(t){pp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(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}function hp(e,t){let{items:n,defaultSelected:r,onChange:o,componentSize:i="medium",filled:l=!1,isVertical:a=!1,disableBorder:s=!1,allowDeselect:c=!1,showTooltips:d=!1,useExternalState:f=!1,value:p,classes:h,className: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,up);const[y,w]=(0,m.useState)(!1),[O,j]=(0,m.useState)(r),x=f?p:O,S=e=>()=>{e.isDisabled||(e.onClick?e.onClick():f?c&&x===e.value?o?.(void 0):o?.(e.value):c&&O===e.value?j(void 0):j(e.value))};return(0,m.useEffect)(()=>{y&&!f&&o?.(O),y||w(!0)},[O,f]),(0,I.jsx)("div",fp(fp({ref:t,className:g()(Xf,l&&Qf,a&&cp,s&&Uf,u[i],b,h?.root)},v),{},{children:n.map(e=>{const t=!e.onClick&&x===e.value,n=(0,I.jsxs)("div",{className:g()(np,l&&ip,a&&sp,s&&Uf,t?$f:void 0,t&&l?ep:void 0,e.isDisabled&&Yf,h?.tab,t?h?.tabSelected:void 0,e.isDisabled?h?.tabDisabled:void 0),onClick:S(e),children:[(0,I.jsxs)("div",{className:g()(ap,d&&e.icon&&Jf,h?.tabTitle,t?h?.tabSelectedTitle:void 0),children:[e.icon&&(0,I.jsx)("span",{className:lp,children:"string"==typeof e.icon?(0,I.jsx)("span",{className:lp,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!d&&e.name&&(0,I.jsx)("span",{title:e.name,children:e.name})]}),(0,I.jsx)("div",{className:g()(rp,a&&op,s&&Uf,h?.tabBorder,t?h?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return d&&e.name?(0,I.jsx)(Lo,{label:e.name,placement:a?"right":"top",children:n},`tab-${e.value}`):n})}))}const gp=(0,m.forwardRef)(hp);function mp(e,t){return"function"==typeof e?e(t):e}function bp(e,t){return n=>{t.setState(t=>({...t,[e]:mp(n,t[e])}))}}function vp(e){return e instanceof Function}function yp(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 wp(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 Op="debugHeaders";function jp(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 xp={createTable:e=>{e.getHeaderGroups=yp(()=>[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 Sp(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...s],e)},wp(e.options,Op)),e.getCenterHeaderGroups=yp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>Sp(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),wp(e.options,Op)),e.getLeftHeaderGroups=yp(()=>[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 Sp(t,i,e,"left")},wp(e.options,Op)),e.getRightHeaderGroups=yp(()=>[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 Sp(t,i,e,"right")},wp(e.options,Op)),e.getFooterGroups=yp(()=>[e.getHeaderGroups()],e=>[...e].reverse(),wp(e.options,Op)),e.getLeftFooterGroups=yp(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),wp(e.options,Op)),e.getCenterFooterGroups=yp(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),wp(e.options,Op)),e.getRightFooterGroups=yp(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),wp(e.options,Op)),e.getFlatHeaders=yp(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),wp(e.options,Op)),e.getLeftFlatHeaders=yp(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),wp(e.options,Op)),e.getCenterFlatHeaders=yp(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),wp(e.options,Op)),e.getRightFlatHeaders=yp(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),wp(e.options,Op)),e.getCenterLeafHeaders=yp(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),wp(e.options,Op)),e.getLeftLeafHeaders=yp(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),wp(e.options,Op)),e.getRightLeafHeaders=yp(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),wp(e.options,Op)),e.getLeafHeaders=yp(()=>[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()},wp(e.options,Op))}};function Sp(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=jp(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)=>jp(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 Pp=(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:yp(()=>[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:yp(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),wp(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),wp(e.options,"debugRows")),_getAllCellsByColumnId:yp(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),wp(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},_p={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()}}},Cp=(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))};Cp.autoRemove=e=>zp(e);const Ap=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Ap.autoRemove=e=>zp(e);const Ep=(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())};Ep.autoRemove=e=>zp(e);const Rp=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Rp.autoRemove=e=>zp(e);const kp=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});kp.autoRemove=e=>zp(e)||!(null!=e&&e.length);const Dp=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});Dp.autoRemove=e=>zp(e)||!(null!=e&&e.length);const Mp=(e,t,n)=>e.getValue(t)===n;Mp.autoRemove=e=>zp(e);const Lp=(e,t,n)=>e.getValue(t)==n;Lp.autoRemove=e=>zp(e);const Ip=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Ip.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]},Ip.autoRemove=e=>zp(e)||zp(e[0])&&zp(e[1]);const Np={includesString:Cp,includesStringSensitive:Ap,equalsString:Ep,arrIncludes:Rp,arrIncludesAll:kp,arrIncludesSome:Dp,equals:Mp,weakEquals:Lp,inNumberRange:Ip};function zp(e){return null==e||""===e}const Tp={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:bp("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?Np.includesString:"number"==typeof r?Np.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?Np.equals:Array.isArray(r)?Np.arrIncludes:Np.weakEquals},e.getFilterFn=()=>{var n,r;return vp(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:Np[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=mp(n,o?o.value:void 0);var l;if(Fp(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=mp(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!Fp(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 Fp(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Vp={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},Hp={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:bp("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?Vp.sum:"[object Date]"===Object.prototype.toString.call(r)?Vp.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return vp(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:Vp[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)}}},qp={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:bp("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=yp(e=>[Qp(t,e)],t=>t.findIndex(t=>t.id===e.id),wp(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=Qp(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=Qp(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=yp(()=>[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)},wp(e.options,"debugTable"))}},Bp={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:bp("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=yp(()=>[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))},wp(t.options,"debugRows")),e.getLeftVisibleCells=yp(()=>[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},wp(t.options,"debugRows")),e.getRightVisibleCells=yp(()=>[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},wp(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=yp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),wp(e.options,"debugColumns")),e.getRightLeafColumns=yp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),wp(e.options,"debugColumns")),e.getCenterLeafColumns=yp(()=>[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))},wp(e.options,"debugColumns"))}},Wp={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Kp={getDefaultColumnDef:()=>Wp,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:bp("columnSizing",e),onColumnSizingInfoChange:bp("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:Wp.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:Wp.size),null!=(o=e.columnDef.maxSize)?o:Wp.maxSize)},e.getStart=yp(e=>[e,Qp(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),wp(t.options,"debugColumns")),e.getAfter=yp(e=>[e,Qp(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),wp(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(),Up(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=Up(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),h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",g.moveHandler),null==p||p.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof Gp)return Gp;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 Gp=e,Gp}()&&{passive:!1};Up(i)?(null==p||p.addEventListener("touchmove",g.moveHandler,m),null==p||p.addEventListener("touchend",g.upHandler,m)):(null==p||p.addEventListener("mousemove",h.moveHandler,m),null==p||p.addEventListener("mouseup",h.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 Gp=null;function Up(e){return"touchstart"===e.type}const Yp={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:bp("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=yp(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),wp(t.options,"debugRows")),e.getVisibleCells=yp(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],wp(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>yp(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),wp(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 Qp(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Jp={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:bp("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=>mp(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=mp(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,mp(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=mp(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=yp(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},wp(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}}},Zp={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:bp("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=yp(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),wp(e.options,"debugRows")),e.getBottomRows=yp(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),wp(e.options,"debugRows")),e.getCenterRows=yp(()=>[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))},wp(e.options,"debugRows"))}},Xp={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:bp("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=>{$p(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=yp(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?eh(e,n):{rows:[],flatRows:[],rowsById:{}},wp(e.options,"debugTable")),e.getFilteredSelectedRowModel=yp(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?eh(e,n):{rows:[],flatRows:[],rowsById:{}},wp(e.options,"debugTable")),e.getGroupedSelectedRowModel=yp(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?eh(e,n):{rows:[],flatRows:[],rowsById:{}},wp(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 $p(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return th(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===nh(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===nh(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)}}}},$p=(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=>$p(e,t.id,n,r,o))};function eh(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=th(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 th(e,t){var n;return null!=(n=t[e.id])&&n}function nh(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()&&(th(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=nh(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const rh=/([0-9]+)/gm;function oh(e,t){return e===t?0:e>t?1:-1}function ih(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function lh(e,t){const n=e.split(rh).filter(Boolean),r=t.split(rh).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 ah={alphanumeric:(e,t,n)=>lh(ih(e.getValue(n)).toLowerCase(),ih(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>lh(ih(e.getValue(n)),ih(t.getValue(n))),text:(e,t,n)=>oh(ih(e.getValue(n)).toLowerCase(),ih(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>oh(ih(e.getValue(n)),ih(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)=>oh(e.getValue(n),t.getValue(n))},sh={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:bp("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 ah.datetime;if("string"==typeof n&&(r=!0,n.split(rh).length>1))return ah.alphanumeric}return r?ah.text:ah.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 vp(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:ah[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())}},ch=[xp,Yp,qp,Bp,_p,Tp,{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:bp("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=()=>Np.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return vp(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Np[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},sh,Hp,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:bp("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()}}}},Jp,Zp,Xp,Kp];function uh(e){var t,n;const r=[...ch,...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=mp(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:yp(()=>[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}},wp(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:yp(()=>[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:yp(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},wp(e.options,"debugColumns")),getLeafColumns:yp(()=>[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]},wp(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)},wp(e,"debugColumns")),getAllFlatColumns:yp(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),wp(e,"debugColumns")),_getAllFlatColumnsById:yp(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),wp(e,"debugColumns")),getAllLeafColumns:yp(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),wp(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 dh(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)?m.createElement(e,t):e:null;var n}function fh(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 ph(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const hh=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},gh=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},mh=e=>e,bh=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},vh=(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(gh(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(gh(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},yh={passive:!0},wh="undefined"==typeof window||"onscrollend"in window,Oh=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&wh?()=>{}:hh(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,yh);const c=e.options.useScrollendEvent&&wh;return c&&n.addEventListener("scrollend",s,yh),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",s)}},jh=(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"]},xh=(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 Sh{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:mh,rangeExtractor:bh,onChange:()=>{},measureElement:jh,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=fh(()=>(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=fh(()=>[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=fh(()=>[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),h="number"==typeof p?p:this.options.estimateSize(o),g=d+h;c[o]={index:o,start:d,size:h,end:g,key:e,lane:s},u[s]=o}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=fh(()=>[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=Ph(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=fh(()=>{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=fh(()=>[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 ph(t[Ph(0,t.length-1,e=>ph(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 Ph=(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},_h="undefined"!=typeof document?m.useLayoutEffect:m.useEffect;function Ch(e){return function({useFlushSync:e=!0,...t}){const n=m.useReducer(()=>({}),{})[1],r={...t,onChange:(r,o)=>{var i;e&&o?(0,fn.flushSync)(n):n(),null==(i=t.onChange)||i.call(t,r,o)}},[o]=m.useState(()=>new Sh(r));return o.setOptions(r),_h(()=>o._didMount(),[]),_h(()=>o._willUpdate()),o}({observeElementRect:vh,observeElementOffset:Oh,scrollToFn:xh,...e})}const Ah=32,Eh=["open","onClose","root","children","classes","className","onClick"];function Rh(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 kh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rh(Object(n),!0).forEach(function(t){Dh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dh(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 Mh=(0,m.forwardRef)(function(e,t){let{open:n,onClose:r,root:o=document.body,children:i,classes:l,className:a,onClick:s}=e,c=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,Eh);const u=(0,m.useRef)(null),d=(0,m.useRef)(null);if(!n||!i)return null;const f=(0,I.jsx)("div",{ref:u,className:"modal-module__overlay__qGmy7",onClick:e=>{e.target!==u.current&&d.current?.contains(e.target)||(e.stopPropagation(),r?.())},children:(0,I.jsx)("div",kh(kh({},c),{},{ref:e=>{e&&(d.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:g()("modal-module__modal__SyCF2",a,l?.root),onClick:e=>{e.stopPropagation(),s?.(e)},children:i}))});return(0,fn.createPortal)(f,o)});var Lh="virtualTable-module__align-center__GE7hn",Ih="virtualTable-module__align-left__UwmQP",Nh="virtualTable-module__align-right__BgN21",zh="virtualTable-module__borders-all__4E7iX",Th="virtualTable-module__borders-horizontal__sJHrp",Fh="virtualTable-module__borders-vertical__vW5hC",Vh="virtualTable-module__bottom-border__Aqyxx",Hh="virtualTable-module__clickable__rairY",qh="virtualTable-module__editable__vHC_D",Bh="virtualTable-module__error__Pc_YH",Wh="virtualTable-module__even-row__UtfmY",Kh="virtualTable-module__first-th-row__Ic3VG",Gh="virtualTable-module__input__URGVM",Uh="virtualTable-module__label__RRtAL",Yh="virtualTable-module__margin-left-changing__DeOwh",Qh="virtualTable-module__medium__fWjBj",Jh="virtualTable-module__modal-content__y8dAa",Zh="virtualTable-module__right-border___sLGh",Xh="virtualTable-module__root__oT8Aa",$h="virtualTable-module__row-button-trigger__qLWa9",eg="virtualTable-module__rowspan-content__uNqDw",tg="virtualTable-module__select-rows__aDhYu",ng="virtualTable-module__selected__LXpK4",rg="virtualTable-module__show-in-modal__v55Sn",og="virtualTable-module__small__Pbe1H",ig="virtualTable-module__sticky__kLGF2",lg="virtualTable-module__success__xPKub",ag="virtualTable-module__table__GccG7",sg="virtualTable-module__table-container__Z27Uv",cg="virtualTable-module__td__INgoI",ug="virtualTable-module__th__xeEGg",dg="virtualTable-module__th-cell__r6ckx",fg="virtualTable-module__th-hidden-column__jr_ZK",pg="virtualTable-module__th-left-border__Ns0MX",hg="virtualTable-module__th-right-border__PR4eS",gg="virtualTable-module__tr__chmfp",mg="virtualTable-module__vertical-align-center__Xun5O",bg="virtualTable-module__vertical-align-flex-end__wOSxq",vg="virtualTable-module__vertical-align-flex-start__uBUX9",yg="virtualTable-module__view-cell__bXl8D",wg="virtualTable-module__view-span__HfOpN";const Og={cell:({getValue:e,row:{index:t,original:n},column:{id:r,columnDef:o},table:i})=>{const l=e(),{meta:a}=o,s=i.options.meta,[c,u]=(0,m.useState)(l),[f,p]=(0,m.useState)(!1),[h,b]=(0,m.useState)(!1),v=(0,m.useRef)();v.current=()=>{b(!1)},(0,m.useEffect)(()=>{u(l)},[l]);const y=s?.additionalColumnsViews?.(r,l,n[r]?.payload);if(f&&a?.editable){const e=()=>{s?.updateData(t,r,c,n),p(!1)},o=(e,o)=>{u(e),o&&(s?.updateData(t,r,e,n),p(!1))};return(0,I.jsx)(Lo,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:null!=y?.edit?y.edit(o,e):(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Wu,{classes:{input:Gh},componentSize:"small",variant:"outlined",onChange:e=>o(e.target.value),onBlur:e,value:c??"",type:a.inputType,fullWidth:!0,autoFocus:!0})})})}const w=null!=y?.view?y.view:a?.valueFormat?a.valueFormat(l):void 0===a?.toFixed||Number.isNaN(parseFloat(l))?l:parseFloat(Number(l).toFixed(a.toFixed));return(0,I.jsx)(Lo,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:(0,I.jsxs)("div",{className:g()(yg,a?.rowsAlign?d[`align${a?.rowsAlign}`]:void 0,a?.showInModal?rg:void 0,a?.onClick&&n[r]?.payload?Hh:void 0,n[r]?.fill?d[n[r].fill]:void 0,a?.editable?qh:void 0,a?.verticalAlign?d[`verticalAlign${a?.verticalAlign}`]:void 0),onClick:a?.editable?()=>{p(!0)}:a?.showInModal?()=>{b(!0)}:a?.onClick&&n[r]?.payload?()=>a?.onClick?.(n[r]?.payload??{}):void 0,children:[(0,I.jsx)("span",{className:wg,children:w}),h&&(0,I.jsx)(Mh,{root:s?.tableContainerRef?.current,open:h,onClose:()=>v.current?.(),children:(0,I.jsx)(Hf,{type:"panel",children:(0,I.jsx)("div",{className:Jh,children:w})})})]})})}},jg=(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 xg(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:n}=e,[r,o]=(0,m.useState)(t);(0,m.useEffect)(()=>{n(r)},[r]);const i=(0,m.useCallback)(()=>{o([void 0,void 0]),n([void 0,void 0])},[]);return(0,I.jsxs)("div",{className:g()("dateFiltration-module__root__hOXOU"),children:[(0,I.jsx)(iu,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:r,onValueChange:e=>{o(e)},tabIndex:-1}),(0,I.jsx)(Lo,{label:"Сбросить",children:(0,I.jsx)(V,{onClick:i,className:g()("dateFiltration-module__button__kboWN"),variant:"text",componentSize:"small",textSecondary:!0,icon:(0,I.jsx)($o,{})})})]})}var Sg="numberFiltration-module__input___94YM";const Pg=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function _g(e){const{defaultValues:t=[-1/0,1/0],actionWithSelected:n}=e,[r,o]=(0,m.useState)(t[0]===-1/0&&t[1]===1/0?Pg[0]:t[0]===t[1]?Pg[3]:t[0]===-1/0?Pg[2]:t[1]===1/0?Pg[1]:Pg[0]),[i,l]=(0,m.useState)(t),a=(e,t)=>{l(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])},s=(0,m.useCallback)(()=>{l([-1/0,1/0]),n([-1/0,1/0])},[]);return(0,I.jsxs)("div",{className:g()("numberFiltration-module__root__k2DSM"),children:[(0,I.jsx)(jc,{items:Pg,componentSize:"small",variant:"filled",selected:r,onValueChange:e=>{if(e){const t=[...i];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}l(t),n(t),o(e)}},classes:{root:"numberFiltration-module__select__vQqEg"},tabIndex:-1}),(0,I.jsx)("div",{className:g()("numberFiltration-module__inputs-container__tjcwf"),children:"range"===r.value?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Sg},value:i[0]>-1/0&&i[0]<1/0?i[0]:"",onChange:e=>{a("more",e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}}),(0,I.jsx)(Wu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Sg},value:i[1]>-1/0&&i[1]<1/0?i[1]:"",onChange:e=>{a("less",e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}})]}):(0,I.jsx)(Wu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Sg},value:"more"===r.value?i[0]>-1/0&&i[0]<1/0?i[0]:"":i[1]>-1/0&&i[1]<1/0?i[1]:"",onChange:e=>{a(r.value,e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}})}),(0,I.jsx)(Lo,{label:"Сбросить",children:(0,I.jsx)(V,{onClick:s,className:g()("numberFiltration-module__button__GIxRq"),variant:"text",componentSize:"small",textSecondary:!0,icon:(0,I.jsx)($o,{})})})]})}function Cg(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?Cg(Object(n),!0).forEach(function(t){Eg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Eg(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 Rg(e){const{headerMeta:{sortable:t=!1,selectUnique:n=!1,sortType:r,sortAnotherName:o,filtrationByNumber:i=!1,filtrationByDate:l=!1,filtrationByValue:a=!1,valueFormat:s,toFixed:c},sortBy:u,setSortBy:d,filterBy:f,setFilterBy:p,headerName:h,containerRef:b,showUniqueValuesCount:v,leftAdditionalContent:y,rightAdditionalContent:w,children:O,rows:j,rowsForUniqueCount:x}=e,S=o??h,P=(0,m.useMemo)(()=>{const e=j.map(e=>({name:e[S]?s?s(e[S].value):void 0===c||Number.isNaN(parseFloat(e[S].value))?e[S].value?.toString()||"< нет значения >":parseFloat(Number(e[S].value).toFixed(c)).toString():"< нет значения >",value:e[S]?.value?.toString()||""})).sort((e,t)=>{const n=e.name.toString(),r=t.name.toString(),o="< нет значения >";return n===o?-1:r===o?1:jg(n,r)}),t=[...e.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()];return t},[j,S,s,c]),_=(0,m.useMemo)(()=>{const e=x??j,t=new Set;e.forEach(e=>{const n=e?.[S];t.add(n?(n.value??"")?.toString():"")});const n=f.find(e=>e.columnName===S&&"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,S,f]),C=(0,m.useMemo)(()=>{const e={};return f.find(e=>e.columnName===S)?.values.forEach(t=>{e[t]=!0}),e},[f,S]),A=(0,m.useMemo)(()=>f.find(e=>e.columnName===S&&"numberRange"===e.type)?.values,[f,S]),E=(0,m.useMemo)(()=>f.find(e=>e.columnName===S&&"dateRange"===e.type)?.values,[f,S]),R=e=>()=>{d(t=>t.some(t=>t.columnName===S&&t.direction===e)?t.filter(t=>!(t.columnName===S&&t.direction===e)):t.some(e=>e.columnName===S)?t.map(t=>t.columnName===S?Ag(Ag({},t),{},{direction:e}):Ag({},t)):t.concat([{columnName:S,direction:e,sortType:r}]))},k=f.some(e=>e.columnName===S&&"value"===e.type&&e.uniqueFirstPerValue),D=Object.keys(C).length>0||k,M=u.some(e=>e.columnName===S&&"desc"===e.direction),L=u.some(e=>e.columnName===S&&"asc"===e.direction),{t:N}=af(),z=[];return n&&(z.push({type:"divider",name:N("Уникальность значений")}),z.push({type:"item",name:N("Только уникальные"),icon:(0,I.jsx)(Ma,{}),selected:k,onClick:()=>{p(e=>{const t=e.findIndex(e=>e.columnName===S&&"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?Ag(Ag({},e),{},{uniqueFirstPerValue:!0}):{columnName:e.columnName,type:e.type,values:e.values}):e.filter((e,n)=>n!==t)}return[...e,{columnName:S,type:"value",values:[],uniqueFirstPerValue:!0}]})}})),t&&(z.push({type:"divider",name:N("Сортировка")}),z.push({type:"item",name:N("По возрастанию"),icon:(0,I.jsx)(Ha,{}),selected:u.some(e=>e.columnName===S&&"asc"===e.direction),onClick:R("asc")}),z.push({type:"item",name:N("По убыванию"),icon:(0,I.jsx)(Ka,{}),selected:u.some(e=>e.columnName===S&&"desc"===e.direction),onClick:R("desc")})),(0,I.jsxs)("div",{className:g()("headerDropdown-module__root__vO30T"),children:[y?.(S),O?.(v&&(0,I.jsx)("div",{children:`(${_})`})),w?.(S),(t||n||a||l||i)&&(0,I.jsx)(Hi,{placement:"bottom-end",wrapTrigger:!0,root:b,description:(0,I.jsxs)(I.Fragment,{children:[i&&(0,I.jsx)(_g,{defaultValues:A,actionWithSelected:e=>{p(t=>{if(e[0]===-1/0&&e[1]===1/0)return[...t.filter(e=>!(e.columnName===S&&"numberRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===S&&"numberRange"===e.type);return-1!==r?n[r]=Ag(Ag({},n[r]),{},{values:e}):n.push({columnName:S,type:"numberRange",values:e}),n}})}}),l&&(0,I.jsx)(xg,{defaultValues:E,actionWithSelected:e=>{p(t=>{if(void 0===e[0]||void 0===e[1])return[...t.filter(e=>!(e.columnName===S&&"dateRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===S&&"dateRange"===e.type);return-1!==r?n[r]=Ag(Ag({},n[r]),{},{values:e}):n.push({columnName:S,type:"dateRange",values:e}),n}})}}),a&&(0,I.jsx)("div",{className:g()("headerDropdown-module__checklist-wrap__7C0pz"),children:(0,I.jsx)(hf,{items:P,selected:C,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e);p(e=>{if(0===t.length)return e.map(e=>e.columnName!==S||"value"!==e.type?e:e.uniqueFirstPerValue?Ag(Ag({},e),{},{values:[]}):null).filter(e=>null!==e);const n=[...e],r=n.findIndex(e=>e.columnName===S&&"value"===e.type);return-1!==r?n[r]=Ag(Ag({},n[r]),{},{values:t}):n.push({columnName:S,type:"value",values:t}),n})}})}),(t||n)&&(0,I.jsx)("div",{children:(0,I.jsx)(mc,{items:z})})]}),children:(0,I.jsx)(Lo,{label:N("Сортировка и фильтрация"),placement:"bottom-end",root:b,children:(0,I.jsx)(V,{componentSize:"small",variant:"text",textSecondary:!D&&!M&&!L,icon:D?(0,I.jsx)(Zl,{}):M?(0,I.jsx)(Ka,{}):L?(0,I.jsx)(Ha,{}):(0,I.jsx)(Qi,{})})})})]})}function kg(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 Dg=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}},Mg=(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:Dg(t?.accessorKey?t:e),columns:e.columns?Mg(e.columns,e):void 0})),Lg=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(Lg(e,t+1,n)):[],Ig=(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(Ig(e,t-1,n)):[],Ng=(e,t,n)=>e[t+1]&&Ig(e,t+1,n).length?[e[t+1].headers[n]].concat(Ng(e,t+1,n)):[],zg=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(zg(e,t-1)):[];function Tg(e,t){const n=e[t.columnName],r=n?.value;if("dateRange"===t.type){const e=Sc()(t.values[0]),n=Sc()(t.values[1]);if(!e.isValid()||!n.isValid())return!1;if(null==r||""===r)return!1;const o=Sc()(r);return!!o.isValid()&&!o.isBefore(e,"day")&&!o.isAfter(n,"day")}return n?"numberRange"===t.type?r>=t.values[0]&&r<=t.values[1]:t.values.includes((r||"")?.toString()):t.values.includes("")}const Fg=(e,t)=>{if(t.length){const n=t[t.length-1],r=n.values.length?e.filter(e=>Tg(e,n)||1===e.isNew?.value):e;return Fg(r,t.slice(0,t.length-1))}return e},Vg=(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=jg(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return Vg(r,t.slice(0,t.length-1))}return e},Hg=(e,t)=>{const n=Math.min(e,t),r=Math.max(e,t),o=[];for(let e=n;e<=r;e+=1)o.push(e);return o},qg=e=>e instanceof Element&&Boolean(e.closest(["button","a","input","textarea","select",'[role="menuitem"]','[role="menu"]','[role="listbox"]','[role="dialog"]',"[data-floating-ui-portal]",'[contenteditable="true"]'].join(", ")));function Bg(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 Wg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bg(Object(n),!0).forEach(function(t){Kg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kg(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 Gg=(0,m.forwardRef)((e,t)=>{const{rows:n,columns:r,additionalColumnsViews:o,onChangeCell:i,cellWidth:l,rowButtons:a,fixedColumnsCount:s=0,headerRowHeight:c=[Ah],bodyRowHeight:u=Ah,rowActionWidth:f=77,classes:p,dynamicRowHeight:h=!1,height:b,scrollToBottom:v,useTableContainerAsRootForPopup:y,componentSize:w="small",borders:O="horizontal",showUniqueValuesCount:j=!1,globalFilters:x,globalSorts:S,onFiltersChange:P,onSortsChange:_,leftAdditionalHeaderContent:C,rightAdditionalHeaderContent:A,showRowsNumbers:E,stripedRows:R=!0,enableSelectRows:k=!1,onSelectRowsChange:D,globalSelectedRows:M}=e,L=s+(E?1:0),[N,z]=(0,m.useState)(x??[]),[T,F]=(0,m.useState)([...S??[],{columnName:"isNew",direction:"desc"}]),[H,q]=(0,m.useState)(()=>new Set),B=(0,m.useRef)(null),W=(0,m.useRef)(H),K=(0,m.useRef)(k?M??[]:[]),G=(0,m.useRef)([]),U=(0,m.useRef)(null),Y=(0,m.useRef)(null),Q=(0,m.useRef)(null),J=(0,m.useRef)(D),Z=(0,m.useRef)(k);W.current=H,J.current=D,Z.current=k;const X=(0,m.useMemo)(()=>E?`rowNumber_${Ne()}`:null,[E]),$=(0,m.useMemo)(()=>{if(!X)return Mg(r);const e=t=>Wg(Wg({id:X},t?.columns?.length?void 0:{accessorKey:X}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(r[0]),...r];return Mg(t)},[r,X]),ee=(0,m.useMemo)(()=>{const e=[...n],t=N.filter(e=>!("value"!==e.type||!e.uniqueFirstPerValue||0!==e.values.length)||n.some(t=>Tg(t,e))),r=t.length?Fg(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=>!Sc()(e).isSame(Sc()(0))&&!Sc()(e).isSame(Sc()(Number.MAX_SAFE_INTEGER))))?[]:e;let o=T.length?Vg(r,T):r;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(o=kg(o,e.columnName));return o},[n,T,N]),te=(0,m.useMemo)(()=>{const e=X?ee.map((e,t)=>Wg(Wg({},e),{},{[X]:{value:t+1}})):ee;return window.dispatchEvent(new CustomEvent("filteringRows",{detail:e})),e},[ee,X]);G.current=ee;const ne=(0,m.useCallback)((e,t)=>{const n=G.current,r=[...e].filter(e=>e>=0&&e<n.length).sort((e,t)=>e-t),o=new Set(r),i=r.map(e=>n[e]),l=W.current,a=o.size===l.size&&r.every(e=>l.has(e));a||(q(o),W.current=o,K.current=i,J.current?.(i)),null!==t&&n[t]?(U.current=t,Y.current=n[t]):null===t&&(U.current=null,Y.current=null)},[]);(0,m.useEffect)(()=>{const e=Y.current;if(e){const t=ee.indexOf(e);U.current=-1===t?null:t,-1===t&&(Y.current=null)}if(0===K.current.length)return void(W.current.size>0&&ne(new Set,U.current));const t=((e,t)=>{if(0===t.length)return new Set;const n=new Set(t),r=new Set;return e.forEach((e,t)=>{n.has(e)&&r.add(t)}),r})(ee,K.current),n=t.size>0?Math.max(...t):null;ne(t,U.current??n)},[ee,ne]),(0,m.useEffect)(()=>{!k&&W.current.size>0&&ne(new Set,null)},[k,ne]);const re=(0,m.useMemo)(()=>{const e=[...n];return Array.from({length:N.length+1},(t,n)=>Fg(e,N.slice(0,n)))},[n,N]),oe=(0,m.useMemo)(()=>l??(e=>X&&0===e?8*te.length.toString().length+24:$[e]?.meta?.width??200),[l,$,te,X]),ie=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=m.useState(()=>({current:uh(t)})),[r,o]=m.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:te,columns:$,defaultColumn:Og,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>yp(()=>[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=Pp(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},wp(e.options,"debugTable",0,()=>e._autoResetPageIndex())),initialState:{columnPinning:{left:$.filter((e,t)=>t<L).map(e=>e.id).filter(e=>e).map(e=>e)??[]}},meta:{updateData:(e,t,n,r)=>{i?.(e,t,n,r)},tableContainerRef:B,additionalColumnsViews:o}}),{rows:le}=ie.getRowModel(),ae=ie.getHeaderGroups(),se=Ch({count:le.length,getScrollElement:()=>B?.current,estimateSize:()=>u,overscan:5}),ce=Ch({horizontal:!0,count:ae[0]?.headers.length??1,rangeExtractor:(0,m.useCallback)(e=>{const t=[...Array(L)].map((e,t)=>t);return[...new Set([...t,...bh(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>B?.current,estimateSize:oe,overscan:5}),ue=(0,m.useMemo)(()=>[...Array(L)].reduce((e,t,n)=>e+oe(n),0),[L,oe]),de=(0,m.useMemo)(()=>{const e=ae.length-c.length,t=[...c];if(e>0)for(let n=0;n<e;n++)t.push(Ah);return t},[c,ae]),fe=(0,m.useMemo)(()=>de.reduce((e,t,n)=>n<ae.length?e+t:e,0),[de,ae]),pe=(0,m.useCallback)(e=>de.reduce((t,n,r)=>r<e?t+n:t,0),[de,ae]),he=se.getTotalSize(),ge=ce.getTotalSize(),me=()=>{z([])},be=()=>{F([{columnName:"isNew",direction:"desc"}])};(0,m.useImperativeHandle)(t,()=>({resetFilters:me,resetSorts:be})),(0,m.useEffect)(()=>{if(B?.current){const e=B?.current,t=e.querySelector(`.${Zh}`);if(t){const n=e.clientWidth,r=ge+(a?f:0);t.style.left=`${n>r?r:n}px`}}},[B?.current?.clientWidth,ge,a,f]),(0,m.useEffect)(()=>{if(B?.current){const e=B?.current,t=e.querySelector(`.${Vh}`);if(t){const n=e.clientHeight,r=he+fe;t.style.top=`${n>r?r:n}px`}}},[B?.current?.clientHeight,he]),(0,m.useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${Yh}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return B?.current&&(B.current.addEventListener("scroll",e),v&&B.current.scrollTo(0,B.current.scrollHeight)),()=>{B?.current&&B.current.removeEventListener("scroll",e)}},[B,v]);const ve=se.getVirtualItems(),ye=ce.getVirtualItems(),we=ye[ye.length-1]?.index,Oe=(0,m.useMemo)(()=>new Map(ve.map(e=>[e.index,e.size])),[ve]),je=(0,m.useCallback)(e=>Oe.get(e)??u,[u,Oe]),xe=(0,m.useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=Math.min(le.length-1,e+n-1),o=r-e+1;let i=0;for(let t=e;t<=r;t+=1)i+=je(t);const l="all"===O||"horizontal"===O?Math.max(0,o-1):0;return Math.max(0,i-l)},[O,je,le.length]),Se=(0,m.useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=le[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[le]),Pe=(0,m.useCallback)(e=>{const t=B.current,n=G.current.length;if(!t||0===n)return null;const r=e-t.getBoundingClientRect().top+t.scrollTop-fe;if(r<0)return 0;if(r>=se.getTotalSize())return n-1;const o=se.measurementsCache;if(o.length>0){let e=0,t=o.length-1;for(;e<=t;){const i=e+t>>1,l=o[i];if(r<l.start)t=i-1;else{if(!(r>=l.end))return Math.min(n-1,l.index);e=i+1}}}if(!h)return Math.max(0,Math.min(n-1,Math.floor(r/u)));const i=se.getVirtualItems();return 0===i.length?0:r<i[0].start?i[0].index:i[i.length-1].index},[u,h,se,fe]),_e=(e,t)=>{const n=Q.current;if(!n)return;const r=(e=>{const{startIndex:t,currentIndex:n,ctrl:r,shift:o,anchorIndex:i,baseIndexes:l,isDrag:a}=e;if(o&&null!==i){const e=Hg(i,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:i}}if(a){const e=Hg(t,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:t}}if(r){const e=new Set(l);return e.has(t)?e.delete(t):e.add(t),{indexes:e,anchor:t}}return 1===l.size&&l.has(t)?{indexes:new Set,anchor:null}:{indexes:new Set([t]),anchor:t}})({startIndex:n.startIndex,currentIndex:e,ctrl:n.ctrl,shift:n.shift,anchorIndex:n.anchorIndex,baseIndexes:n.baseIndexes,isDrag:t});ne(r.indexes,r.anchor)},Ce=e=>{const t=Q.current;t&&e.pointerId===t.pointerId&&(t.isDragCapable||t.hasDragged||_e(t.startIndex,!1),Q.current=null,e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))},Ae=(0,m.useCallback)((e,t)=>1===e?.isNew?.value||H.has(t)?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[H]),Ee=(0,m.useMemo)(()=>{const e=le.length,t=new Map;return le.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},[le]),Re=(0,m.useMemo)(()=>le.length*le.length+le.length+10,[le.length]),ke=e=>{const t=e.column.columnDef.meta?.label;if("string"==typeof t){const n=t.split(/\r\n|\\r\\n|\n|\\n/);if(n.length>1)return(0,I.jsx)(I.Fragment,{children:n.map((t,r)=>(0,I.jsxs)(m.Fragment,{children:[t,r<n.length-1&&(0,I.jsx)("br",{})]},`${e.id}_${r}`))})}return dh(e.column.columnDef.header,e.getContext())},[De,Me]=ye.length>0?[L&&ye[L].index!==L?ye[L].start-ue:ye[0].start,ge-ye[ye.length-1].end]:[0,0];return(0,m.useEffect)(()=>{P?.(N)},[N]),(0,m.useEffect)(()=>{_?.(T.filter(e=>"isNew"!==e.columnName))},[T]),(0,I.jsx)("div",{className:g()(Xh,d[w],d[`borders${Le=O,Le[0].toUpperCase()+Le.substring(1)}`],p?.root),style:b?{height:b}:void 0,children:(0,I.jsxs)("div",{ref:B,className:g()(sg,"styledScroll",k&&tg),onPointerDown:k?e=>{if(!Z.current||0!==e.button)return;const t=(e=>{if(!(e instanceof Element))return null;const t=e.closest(`.${gg}`);if(!t)return null;const n=Number(t.getAttribute("data-index"));return Number.isFinite(n)?n:null})(e.target);if(null===t){if(qg(e.target)||(e=>{const t=e.currentTarget;if(!(t instanceof HTMLElement)||e.target!==t)return!1;const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=t.offsetWidth-t.clientWidth>0&&r>=t.clientWidth,l=t.offsetHeight-t.clientHeight>0&&o>=t.clientHeight;return i||l})(e)||e.target instanceof Element&&Boolean(e.target.closest(`.${ug}`)))return;return void(W.current.size>0&&ne(new Set,null))}if(qg(e.target))return;const n="mouse"===e.pointerType||"pen"===e.pointerType;Q.current={pointerId:e.pointerId,startIndex:t,startX:e.clientX,startY:e.clientY,baseIndexes:new Set(W.current),ctrl:e.ctrlKey||e.metaKey,shift:e.shiftKey,anchorIndex:U.current,isDragCapable:n,hasDragged:!1},n&&(e.currentTarget.setPointerCapture(e.pointerId),_e(t,!1))}:void 0,onPointerMove:k?e=>{const t=Q.current;if(!t||!t.isDragCapable||e.pointerId!==t.pointerId)return;const n=e.clientX-t.startX,r=e.clientY-t.startY,o=n*n+r*r;if(!t.hasDragged&&o<16)return;t.hasDragged=!0,e.preventDefault(),(e=>{const t=B.current;if(!t)return;const n=t.getBoundingClientRect(),r=e-n.top;r<32+fe?t.scrollTop-=20:r>n.height-32&&(t.scrollTop+=20)})(e.clientY);const i=Pe(e.clientY);null!==i&&_e(i,!0)}:void 0,onPointerUp:k?Ce:void 0,onPointerCancel:k?Ce:void 0,onDragStart:k?e=>e.preventDefault():void 0,children:[(0,I.jsxs)("div",{className:ag,style:{height:`${he+fe}px`},children:[(0,I.jsx)("div",{style:{position:"sticky",top:0,zIndex:Re},children:ae.map((e,t)=>{const n=e=>{const t=e.column.columnDef.meta,n=t?.sortAnotherName??e.column.columnDef.id??e.id,r=N.findIndex(e=>e.columnName===n),o=-1===r?te:re[r];return(0,I.jsx)("div",{className:g()(dg),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==X&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&j)?(0,I.jsx)(Rg,{headerMeta:t,sortBy:T,setSortBy:F,filterBy:N,setFilterBy:z,rows:o,rowsForUniqueCount:te,headerName:e.column.columnDef.id??e.id,containerRef:y?B:void 0,showUniqueValuesCount:j,leftAdditionalContent:C,rightAdditionalContent:A,children:n=>(0,I.jsxs)("div",{className:g()(Uh,t?.headerAlign?d[`align${t?.headerAlign}`]:Ih),children:[ke(e),n]})}):(0,I.jsx)("div",{className:g()(Uh,t?.headerAlign?d[`align${t?.headerAlign}`]:Ih),children:ke(e)})})};return(0,I.jsxs)(m.Fragment,{children:[[...Array(L)].map((r,o)=>{const i=e.headers[o],l=Lg(e.headers,o,we),a=Ng(ae,t,o);return(0,I.jsx)("div",{className:g()(ug,0===t?Kh:void 0,!a.length&&o!==e.headers.length-1&&hg,0===o&&pg,a.length&&!l.length&&fg,Yh),style:{zIndex:Re+1,width:`${oe(o)}px`,height:`${de[t]}px`,transform:`translateX(${Array.from({length:o},(e,t)=>oe(t)).reduce((e,t)=>e+t,0)}px) translateY(${pe(t)}px)`},children:n(i)},`${e.id}-${i.id}`)}),ye.map(r=>{if(r.index>L-1){const o=e.headers[r.index],i=Lg(e.headers,r.index,we),l=zg(e.headers,r.index),a=Ng(ae,t,r.index),s=Ig(ae,t,r.index),c=i.length||l.length?r.size+i.reduce((e,t)=>e+(t.column.columnDef.meta?.width??0),0):r.size,u=i.length||l.length?Re+i.length+2:void 0,d=s.length?de[t]+s.reduce((e,n,r)=>e+(de[t-r-1]??0),0):de[t],f=s.length?pe(t)-s.reduce((e,n,r)=>e+(de[t-r-1]??0),0):pe(t);return(0,I.jsx)("div",{className:g()(ug,0===t&&Kh,!a.length&&r.index!==e.headers.length-1&&hg,0===r.index&&pg,a.length&&!i.length&&fg),style:{width:`${c}px`,zIndex:u,height:`${d}px`,transform:`translateX(${r.start+(L?-1:0)}px) translateY(${f}px)`,borderTop:"none"!==O&&0===f?"1px solid var(--border-color)":void 0},children:n(o)},`${e.id}-${o.id}`)}return null}),!!a&&(0,I.jsx)("div",{className:g()(ug,0===t?Kh:void 0),style:{width:`${f}px`,height:`${de[t]}px`,transform:`translateX(${ge+(L?-2:0)}px) translateY(${pe(t)}px)`}})]},e.id)})}),ve.map(e=>{const t=le[e.index];return(0,I.jsxs)("div",{"data-index":e.index,ref:h?se.measureElement:void 0,className:g()(gg,R&&e.index%2!=0&&Wh,(1===t.original?.isNew?.value||H.has(e.index))&&ng),style:Wg(Wg({zIndex:Ee.get(e.index)??1},!h&&{height:e.size}),{},{transform:"translateY("+(fe+e.start-se.options.scrollMargin)+"px)"}),children:[(0,I.jsx)("div",{style:{width:`${De}px`}}),ye.map(n=>{const r=t.getAllCells()[n.index],o="left"===r.column.getIsPinned(),i=t.original?.[r.column.id],l=Math.max(1,i?.rowspan??1),a=Se(e.index,r.column.id),s=l>1&&!a;return(0,I.jsx)("div",{"data-col-index":n.index,className:g()(cg,o&&ig),style:Wg(Wg({},o&&{left:n.start,marginLeft:0===n.index?-1:0}),{},{width:`${n.size}px`},!h&&!s&&{overflow:"hidden"}),"data-index":e.index,children:!a&&(s?(0,I.jsx)("div",{className:eg,style:{height:`${xe(e.index,l)}px`,backgroundColor:Ae(t.original,e.index)},children:dh(r.column.columnDef.cell,r.getContext())}):dh(r.column.columnDef.cell,r.getContext()))},`cell-${e.key}-${n.key}`)}),!!a&&(0,I.jsx)("div",{className:g()(cg),style:Wg({width:`${f}px`,justifyContent:"flex-start",padding:"4px"},!h&&{overflow:"hidden"}),children:a?.(t.original)?.map(n=>(0,I.jsx)(m.Fragment,{children:n.template?n.template(n):(0,I.jsx)(Lo,{label:n.title,placement:"top",wrapTrigger:!0,classes:{trigger:$h},children:(0,I.jsx)(V,{onClick:()=>n.onClick?.(e.index,t.original),componentSize:"small",variant:"text",icon:n.icon})})},n.title))}),(0,I.jsx)("div",{style:{width:`${Me}px`}})]},`row-${e.key}`)})]}),"none"!==O&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:Zh,style:{height:`${he+fe}px`}}),(0,I.jsx)("div",{className:Vh,style:{width:`${ge}px`}})]})]})});var Le});var Ug="treeViewItem-module__selectable__ZnWqc",Yg="treeViewItem-module__selected__uwOfq";const Qg=(0,m.memo)(function e({title:t,value:n,searchValue:r,selected:o,onSelect:i,type:l,isSelectable:a,startIcons:s,children:c}){const[u,d]=(0,m.useState)(!1);(0,m.useEffect)(()=>{d(!!r)},[r]);const f=!!c?.length,p=l&&s?.[l],h=o[n];return(0,I.jsxs)("div",{children:[(0,I.jsxs)("div",{className:g()("treeViewItem-module__item__Ddenr",{[Ug]:a}),onClick:()=>{a&&i?i(n):d(!u)},children:[f&&(0,I.jsx)(ba,{}),(0,I.jsxs)("div",{className:g()("treeViewItem-module__title___JZMU",{[Yg]:h}),children:[p,(0,I.jsx)(fe,{variant:"subtitle2",children:t}),a&&(0,I.jsx)("span",{className:"treeViewItem-module__select-icon__Ma7T6",children:h?(0,I.jsx)(Fl,{}):(0,I.jsx)(Ki,{})})]})]}),u&&f&&(0,I.jsx)("div",{className:"treeViewItem-module__children__SBb_p",children:c.map(t=>(0,I.jsx)(e,{title:t.name,value:t.id,children:t.children,selected:o,searchValue:r,type:t.type,isSelectable:t.isSelectable,startIcons:s,onSelect:i},t.id))})]})});function Jg(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 Zg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jg(Object(n),!0).forEach(function(t){Xg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xg(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=["data","selected","startIcons","onSelect","withSearch","className"];function em(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 tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?em(Object(n),!0).forEach(function(t){nm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):em(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nm(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 rm=(0,m.forwardRef)(function(e,t){let{data:n,selected:r,startIcons:o,onSelect:i,withSearch:l=!1,className: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,$g);const[c,u]=(0,m.useState)(""),d=(0,m.useCallback)(e=>u(e.target.value),[]),f=(0,m.useMemo)(()=>r.reduce((e,t)=>(e[t]=!0,e),{}),[r]),p=(0,m.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(Zg(Zg({},t),{},{children:n}))}return e};return e.reduce(r,[])})(n,c),[n,c]);return(0,I.jsxs)("div",tm(tm({ref:t,className:a},s),{},{children:[l&&(0,I.jsx)(Wu,{variant:"outlined",startIcon:(0,I.jsx)(Ea,{}),value:c,fullWidth:!0,onChange:d,classes:{root:"treeView-module__search__CptHY"}}),(0,I.jsx)("div",{className:"styledScroll",children:p.map(({id:e,name:t,children:n})=>(0,I.jsx)(Qg,{title:t,value:e,searchValue:c,children:n,startIcons:o,onSelect:i,selected:f},e))})]}))}),om=(0,m.memo)(rm);var im="pairs-module__labels-with-borders__iC6y_",lm="pairs-module__row-container-borders__H3rCB",am="pairs-module__values-with-borders__ssGZ0";function sm(e){const{label:t}=e,[n,r]=(0,m.useState)(t);return(0,I.jsx)(Lo,{label:n,children:(0,I.jsx)(fe,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{r(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}const cm=["pairs","column1Width","column2Width","showBorder","minRowHeight","classes","className","style"];function um(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 dm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?um(Object(n),!0).forEach(function(t){fm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):um(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fm(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 pm=(0,m.forwardRef)(function(e,t){let{pairs:n,column1Width:r="50%",column2Width:o="50%",showBorder:i,minRowHeight:l,classes:a,className:s,style: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,cm);return(0,I.jsx)("div",dm(dm({ref:t,className:g()(s,a?.root),style:c},u),{},{children:n.map((e,t)=>(0,I.jsx)("div",{style:{minHeight:l,display:"flex"},className:g()(a?.rowContainer,{[lm]:i}),children:e&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:g()("pairs-module__labels-container__AKW8x",a?.labelsContainer,{[im]:i}),style:{width:r,minWidth:r},children:(0,I.jsx)(fe,{className:"pairs-module__dim-typography__CX_Sf",children:e.label})}),(0,I.jsx)("div",{style:{width:o,minWidth:o},className:g()("pairs-module__values-container__a4t60",a?.valuesContainer,{[am]:i}),children:(0,I.jsx)(sm,{label:e.value})})]})},t))}))});var hm="card-module__actions__ctfFt",gm="card-module__body-full-size__oalrd",mm="card-module__body-padded__xaBA8",bm="card-module__body-padded-no-header__RBxi1",vm="card-module__header__NdV6G",ym="card-module__header-overlay__VpVTO",wm="card-module__medium__TpRzi",Om="card-module__root__uGlLT",jm="card-module__small__liJkd";const xm=["surfaceType","componentSize","title","actions","children","classes","className","headerOverlay","fullSizeBody"];function Sm(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 Pm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sm(Object(n),!0).forEach(function(t){_m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _m(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 Cm=(0,m.forwardRef)(function(e,t){let{surfaceType:n="primary",componentSize:r="medium",title:o,actions:i,children:l,classes:a,className:s,headerOverlay:c=!0,fullSizeBody:u=!1}=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,xm);const p=!!o||!!i;return(0,I.jsxs)(Hf,Pm(Pm({ref:t,type:n,className:s,classes:{root:g()(Om,f[r],a?.root)}},d),{},{children:[p&&(0,I.jsxs)("div",{className:g()(vm,c&&ym,a?.header),children:[o??(0,I.jsx)("div",{}),!!i&&(0,I.jsx)("div",{className:g()(hm,a?.actions),children:i})]}),(0,I.jsx)("div",{className:g()(u?gm:p?mm:bm,a?.body),children:l})]}))});var Am="chip-module__clickable__dOcCr",Em="chip-module__filled__LKP4O",Rm="chip-module__icon__yybCP",km="chip-module__icon-clickable__BPoAa",Dm="chip-module__icon-left__LhniG",Mm="chip-module__icon-right__CnqJ6",Lm="chip-module__icon-right-slot__p8bmk",Im="chip-module__label__RySGy",Nm="chip-module__medium__RRnyf",zm="chip-module__outlined__HHje4",Tm="chip-module__root__QN7P0",Fm="chip-module__secondary__yquCM",Vm="chip-module__small__UbquU",Hm="chip-module__with-icon__ORESD";const qm=["variant","componentSize","icon","iconPlacement","secondary","onClick","onIconClick","children","classes","className"];function Bm(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 Wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bm(Object(n),!0).forEach(function(t){Km(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Km(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 Gm=(0,m.forwardRef)(function(e,t){let{variant:n="filled",componentSize:r="medium",icon:o,iconPlacement:i="right",secondary:l,onClick:a,onIconClick:s,children:c,classes:u,className:d}=e,f=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,qm);const h=e=>{e.stopPropagation(),s?.()},m=s?"button":"span",b=!!o&&"left"===i,v=!!o&&"right"===i;return(0,I.jsxs)("div",Wm(Wm({ref:t,className:g()(Tm,p[n],p[r],!!o&&Hm,b&&Dm,v&&Mm,l&&Fm,a&&Am,d,u?.root),tabIndex:a?0:void 0,role:a?"button":void 0},f),{},{onClick:a,children:[b&&(0,I.jsx)(m,{className:g()(Rm,s&&km,u?.icon),onClick:s?h:void 0,"aria-label":s?"Удалить":void 0,children:o}),c&&(0,I.jsx)("span",{className:g()(Im,u?.label),children:c}),v&&(0,I.jsx)(m,{className:g()(Rm,Lm,s&&km,u?.icon),onClick:s?h:void 0,"aria-label":s?"Удалить":void 0,children:o})]}))}),Um=["width","height","className","classes","alt"];function Ym(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 Qm(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 Jm=(0,m.forwardRef)(function(e,t){let{width:n=60,height:r=1.5*n,className:o,classes:i,alt:l="loading"}=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,Um);return(0,I.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ym(Object(n),!0).forEach(function(t){Qm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ym(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:t,src:"data:image/gif;base64,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",alt:l,width:n,height:r,className:g()("loader-module__root__j0SpR",o,i?.root)},a))}),Zm=":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-subtitle3-size: 12px;\n --text-subtitle3-weight: 400;\n --text-subtitle3-height: 20px;\n --text-subtitle3-letter: normal;\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-body3-size: 12px;\n --text-body3-weight: 300;\n --text-body3-height: 20px;\n --text-body3-letter: normal;\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: 300;\n --text-caption-height: 16px;\n --text-caption-letter: 0.4px;\n\n --text-caption2-size: 10px;\n --text-caption2-weight: 300;\n --text-caption2-height: 12px;\n --text-caption2-letter: normal;\n\n --text-double-caption-size: 10px;\n --text-double-caption-weight: 400;\n --text-double-caption-height: 12px;\n --text-double-caption-letter: 0.4px;\n\n --text-overline-size: 10px;\n --text-overline-weight: 500;\n --text-overline-height: 12px;\n --text-overline-letter: 1.5px;\n\n --text-label-size: 12px;\n --text-label-weight: 400;\n --text-label-height: 12px;\n --text-label-letter: normal;\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",Xm=":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-primary: #2b2b2b;\n --theme-surface-modal: #373737;\n --theme-surface-dropdown: #515151;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.12);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\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-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\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",$m=":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-primary: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n --theme-surface-dropdown: #183043;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(255, 255, 255, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\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-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\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",eb=":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-primary: #ffffff;\n --theme-surface-modal: #ffffff;\n --theme-surface-dropdown: #ffffff;\n --theme-surface-overlay-1: rgba(0, 0, 0, 0.04);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\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-elevated-subtle: rgba(3, 169, 244, 0.04);\n --theme-button-tonal: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-subtle: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-text: rgba(0, 0, 0, 0.72);\n --theme-button-outlined-border: #757575;\n --theme-button-filled-focus: #03a9f4;\n --theme-button-filled-pressed: #03a9f4;\n --theme-button-filled-hover-layer: rgba(255, 255, 255, 0.08);\n --theme-button-filled-focus-layer: rgba(255, 255, 255, 0.12);\n --theme-button-filled-pressed-layer: rgba(255, 255, 255, 0.12);\n --theme-button-state-hover: rgba(3, 169, 244, 0.08);\n --theme-button-state-focus: rgba(3, 169, 244, 0.12);\n --theme-button-state-pressed: rgba(3, 169, 244, 0.12);\n\n --theme-input-filled: #f5f5f5;\n --theme-input-filled-hover: #e0e0e0;\n --theme-input-filled-focus: #eeeeee;\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border-hover: rgba(0, 0, 0, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(0, 0, 0, 0.56);\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",tb="nntc-ui-base-styles",nb="nntc-ui-theme-styles";function rb(e,t){return function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot}(t)?e.replace(/:root\b/g,":host"):e}function ob(e,t){const n=e.querySelector(`#${t}`);if(n)return n;const r=document.createElement("style");return r.id=t,e.appendChild(r),r}const ib=(0,m.createContext)(void 0);function lb(){return(0,m.useContext)(ib)??null}function ab(){return lb()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function sb({children:e,styleContainer:t}){const[n,r]=(0,m.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,m.useEffect)(()=>{const e=t??document.head;ob(e,tb).textContent=rb(Zm,e)},[t]),(0,m.useEffect)(()=>{const e={light:eb,dark:Xm,darkBlue:$m},r=t??document.head;ob(r,nb).textContent=rb(e[n]??e.light,r)},[n,t]),(0,m.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:n,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(0,I.jsx)(ib.Provider,{value:o,children:e})}})(),module.exports=i})();
|
|
2
|
+
(()=>{var e,t,n={353(e){e.exports=function(){"use strict";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+)?$/,h=/\[([^\]]+)]|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,g={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]=g;var O="$isDayjsObject",w=function(e){return e instanceof P||!(!e||!e[O])},j=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},x=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new P(n)},S=b;S.l=j,S.i=w,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function g(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[O]=!0}var m=g.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(S.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 S},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return x(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<x(e)},m.$g=function(e,t,n){return S.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=!!S.u(t)||t,f=S.p(e),p=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(l)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=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,O=(g<y?g+7:g)-y;return p(c?b-O:b+(6-O),m);case l:case d:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var a,c=S.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],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===u){var g=this.clone().set(d,1);g.$d[p](h),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[S.p(e)]()},m.add=function(n,c){var d,f=this;n=Number(n);var p=S.p(c),h=function(e){var t=x(f);return S.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 h(1);if(p===a)return h(7);var g=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,m=this.$d.getTime()+n*g;return S.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=S.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 S.s(i%12||12,e,"0")},g=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return a+1;case"MM":return S.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 S.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 S.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(i,l,!0);case"A":return g(i,l,!1);case"m":return String(l);case"mm":return S.s(l,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.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,h=this,g=S.p(d),m=x(n),b=(m.utcOffset()-this.utcOffset())*e,v=this-m,y=function(){return S.m(h,m)};switch(g){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:S.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=j(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return S.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()},g}(),_=P.prototype;return x.prototype=_,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",s],["$y",u],["$D",d]].forEach(function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),x.extend=function(e,t){return e.$i||(e(t,P,x),e.$i=!0),x},x.locale=j,x.isDayjs=w,x.unix=function(e){return x(1e3*e)},x.en=y[v],x.Ls=y,x.p={},x}()},493(e,t,n){"use strict";var r=n(953),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){"use strict";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}},953(e){"use strict";e.exports=require("react")},942(e,t){var n;!function(){"use strict";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)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var l={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>l[e]=()=>n[e]);return l.default=()=>n,o.d(i,l),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{AddIcon:()=>Wi,AlertIcon:()=>ca,ArrowDropDownIcon:()=>Qi,ArrowDropUpIcon:()=>$i,AttachIcon:()=>rl,BarChartIcon:()=>al,BookmarkAddIcon:()=>xs,BookmarkIcon:()=>ys,Button:()=>V,ButtonsGroup:()=>Qs,Card:()=>Rm,Checkbox:()=>Me,CheckboxDeselectedIcon:()=>ve,CheckboxIcon:()=>je,CheckboxSeveralIcon:()=>_e,Checklist:()=>hf,ChevronDownIcon:()=>ba,ChevronLeftIcon:()=>yl,ChevronRightIcon:()=>xl,ChevronUpIcon:()=>pa,Chip:()=>Qm,CircleFilledIcon:()=>Cl,CloseIcon:()=>$o,ColorPicker:()=>Tu,DateRangeIcon:()=>kl,DateTime:()=>iu,DeleteIcon:()=>Il,DoneIcon:()=>Fl,DownloadIcon:()=>ks,DragIcon:()=>Bl,EditIcon:()=>as,ErrorOutlineIcon:()=>Uo,ExportTableIcon:()=>Cs,FileUploadIcon:()=>Ul,FilterClearIcon:()=>ta,FilterIcon:()=>Zl,FullScreenOffIcon:()=>gs,FullScreenOnIcon:()=>ds,InfoIcon:()=>ia,Input:()=>Ku,InputChip:()=>bi,Layout:()=>Gf,ListIcon:()=>wa,Loader:()=>$m,Menu:()=>mc,Modal:()=>Mh,MoreVerticalIcon:()=>Pa,MultiSelect:()=>wf,Pairs:()=>mm,PointIcon:()=>Fs,Popover:()=>Hi,RadioButton:()=>Af,RadioDeselectedIcon:()=>dl,RadioSelectedIcon:()=>gl,SaveIcon:()=>Bs,SearchIcon:()=>Ea,Select:()=>jc,SelectUniqueIcon:()=>Ma,SettingsIcon:()=>za,SortDownIcon:()=>Ha,SortUpIcon:()=>Wa,Surface:()=>Hf,TableChartIcon:()=>Qa,Tabs:()=>gp,ThemeProvider:()=>db,Tooltip:()=>Lo,TreeView:()=>am,Typography:()=>fe,UploadIcon:()=>$a,VirtualTable:()=>Qg,VisibilityIcon:()=>Is,WellIcon:()=>rs,WrapForLabel:()=>Xu,createCalendarDate:()=>Xc,useTheme:()=>cb,useThemeWithFallback:()=>ub,virtualTableDefaultRowHeight:()=>Ah});var e={};o.r(e),o.d(e,{active:()=>v,compact:()=>y,elevated:()=>O,extraLarge:()=>w,filled:()=>j,large:()=>x,medium:()=>S,onlyIcon:()=>P,outlined:()=>_,root:()=>C,small:()=>A,stateLayer:()=>E,text:()=>R,textSecondary:()=>k,tonal:()=>D,withIcon:()=>M,withoutIcon:()=>L});var t={};o.r(t),o.d(t,{body1:()=>B,body2:()=>K,body3:()=>W,button:()=>G,caption:()=>U,caption2:()=>Y,doubleCaption:()=>Q,h1:()=>J,h2:()=>Z,h3:()=>X,h4:()=>$,h5:()=>ee,h6:()=>te,h7:()=>ne,label:()=>re,overline:()=>oe,subtitle1:()=>ie,subtitle2:()=>le,subtitle3:()=>ae});var n={};o.r(n),o.d(n,{arrow:()=>ze,bottomArrow:()=>Te,content:()=>Fe,error:()=>Ve,info:()=>He,leftArrow:()=>qe,rightArrow:()=>Be,success:()=>Ke,topArrow:()=>We,trigger:()=>Ge,warning:()=>Ue});var r={};o.r(r),o.d(r,{clickable:()=>ei,disabled:()=>ti,extraLarge:()=>ni,filled:()=>ri,icon:()=>oi,large:()=>ii,medium:()=>li,outlined:()=>ai,remove:()=>si,root:()=>ci,small:()=>ui,text:()=>di,withIcon:()=>fi});var l={};o.r(l),o.d(l,{divider:()=>Js,extraLarge:()=>Zs,item:()=>Xs,itemActions:()=>$s,itemDescription:()=>ec,itemDisabled:()=>tc,itemIcon:()=>nc,itemSelected:()=>rc,itemTextBlock:()=>oc,itemTitle:()=>ic,itemTitleTop:()=>lc,large:()=>ac,medium:()=>sc,root:()=>cc,small:()=>uc,stateLayer:()=>dc});var a={};o.r(a),o.d(a,{button:()=>Pc,buttonsContainer:()=>_c,calendarContainer:()=>Cc,cell:()=>Ac,cellCircle:()=>Ec,cellData:()=>Rc,cellSelection:()=>kc,cellSelectionFirst:()=>Dc,cellSelectionLast:()=>Mc,cellsContainer:()=>Lc,dateTimeMode:()=>Ic,medium:()=>Nc,month:()=>zc,monthCellSelection:()=>Tc,monthCellSelectionFirst:()=>Fc,monthCellSelectionLast:()=>Vc,monthView:()=>Hc,navigationArrow:()=>qc,navigationContainer:()=>Bc,navigationTitle:()=>Kc,navigationValue:()=>Wc,root:()=>Gc,small:()=>Uc,timeContainer:()=>Yc,timeDivider:()=>Qc,timeSelectionMarker:()=>Jc,year:()=>Zc});var s={};o.r(s),o.d(s,{medium:()=>Wu,root:()=>Gu,small:()=>Uu});var c={};o.r(c),o.d(c,{medium:()=>Ef,modal:()=>Rf,overlay1:()=>kf,overlay2:()=>Df,panel:()=>Mf,primary:()=>Lf,root:()=>If,small:()=>Nf});var u={};o.r(u),o.d(u,{disableBorder:()=>Uf,disabled:()=>Yf,filled:()=>Qf,iconOnly:()=>Jf,medium:()=>Zf,root:()=>Xf,selected:()=>$f,selectedFilled:()=>ep,small:()=>tp,tab:()=>np,tabBorder:()=>rp,tabBorderVertical:()=>op,tabFilled:()=>ip,tabIcon:()=>lp,tabTitle:()=>ap,tabVertical:()=>sp,vertical:()=>cp});var d={};o.r(d),o.d(d,{alignCenter:()=>Lh,alignLeft:()=>Ih,alignRight:()=>Nh,bordersAll:()=>zh,bordersHorizontal:()=>Th,bordersVertical:()=>Fh,bottomBorder:()=>Vh,clickable:()=>Hh,editable:()=>qh,error:()=>Bh,evenRow:()=>Kh,firstThRow:()=>Wh,input:()=>Gh,label:()=>Uh,marginLeftChanging:()=>Yh,medium:()=>Qh,modalContent:()=>Jh,rightBorder:()=>Zh,root:()=>Xh,rowButtonTrigger:()=>$h,rowspanContent:()=>eg,selectRows:()=>tg,selected:()=>ng,showInModal:()=>rg,small:()=>og,sticky:()=>ig,success:()=>lg,table:()=>ag,tableContainer:()=>sg,td:()=>cg,th:()=>ug,thCell:()=>dg,thHiddenColumn:()=>fg,thLeftBorder:()=>pg,thRightBorder:()=>hg,tr:()=>gg,verticalAlignCenter:()=>mg,verticalAlignFlexEnd:()=>bg,verticalAlignFlexStart:()=>vg,viewCell:()=>yg,viewSpan:()=>Og});var f={};o.r(f),o.d(f,{actions:()=>bm,bodyFullSize:()=>vm,bodyPadded:()=>ym,bodyPaddedNoHeader:()=>Om,header:()=>wm,headerOverlay:()=>jm,medium:()=>xm,root:()=>Sm,small:()=>Pm});var p={};o.r(p),o.d(p,{clickable:()=>km,filled:()=>Dm,icon:()=>Mm,iconClickable:()=>Lm,iconLeft:()=>Im,iconRight:()=>Nm,iconRightSlot:()=>zm,label:()=>Tm,medium:()=>Fm,outlined:()=>Vm,root:()=>Hm,secondary:()=>qm,small:()=>Bm,withIcon:()=>Km});var h=o(942),g=o.n(h),m=o(953),b=o.t(m,2),v="button-module__active__hSEWs",y="button-module__compact__nfUBM",O="button-module__elevated__nAlrD",w="button-module__extraLarge__ycvek",j="button-module__filled__D7eAr",x="button-module__large__gt0K2",S="button-module__medium__v66y0",P="button-module__only-icon__zOzfl",_="button-module__outlined__c_PHO",C="button-module__root__gX6OQ",A="button-module__small__HHNmk",E="button-module__state-layer__t1MJf",R="button-module__text__rG7nD",k="button-module__text-secondary__jXFdx",D="button-module__tonal__u6w_G",M="button-module__with-icon__C4Cw6",L="button-module__without-icon__GOGFF";const I=require("react/jsx-runtime"),N=["variant","componentSize","icon","textSecondary","isActive","compact","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 T(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){F(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 F(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 V=(0,m.forwardRef)(function(t,n){let{variant:r="filled",componentSize:o="medium",icon:i,textSecondary:l,isActive:a,compact:s,className:c,children:u,classes:d}=t,f=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}(t,N);return(0,I.jsx)("button",T(T({className:g()(C,e[r],e[o],i?u?M:P:L,a?v:void 0,l?k:void 0,s?y:void 0,c,d?.root)},f),{},{ref:n,children:(0,I.jsxs)("span",{className:g()(E,d?.stateLayer),children:[i,u]})}))});function H(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var q=parseInt(m.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=H(r,t),o="function"==typeof e;n.push(o?e:()=>H(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)H(n,t)}},B="typography-module__body1__x76Hw",K="typography-module__body2__xQKKj",W="typography-module__body3__yogkL",G="typography-module__button__dx69P",U="typography-module__caption__cWpWz",Y="typography-module__caption2__EqwAG",Q="typography-module__doubleCaption__uInp1",J="typography-module__h1__pRuCD",Z="typography-module__h2__tNSpQ",X="typography-module__h3__YqCF_",$="typography-module__h4__BCkqi",ee="typography-module__h5__z84mf",te="typography-module__h6__C2Wqz",ne="typography-module__h7__B6VO6",re="typography-module__label__C1Tlg",oe="typography-module__overline__IkqBV",ie="typography-module__subtitle1__NO_el",le="typography-module__subtitle2__TKKn5",ae="typography-module__subtitle3__FK3eb";const se=["variant","component","children","className"];function ce(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 ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach(function(t){de(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function de(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 fe=(0,m.forwardRef)(function(e,n){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,se);const s=o||"span";return(0,I.jsx)(s,ue(ue({className:g()(t[r],l)},a),{},{ref:n,children:i}))});function pe(){const e=m;return"function"==typeof e.useId?e.useId():(0,m.useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const he=({size:e=24,color:t="currentColor",className:n,children:r})=>(0,I.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,className:n,xmlns:"http://www.w3.org/2000/svg",children:r});function ge(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach(function(t){be(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function be(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 ve=e=>(0,I.jsx)(he,me(me({},e),{},{children:(0,I.jsx)("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 ye(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach(function(t){we(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function we(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 je=e=>(0,I.jsx)(he,Oe(Oe({},e),{},{children:(0,I.jsx)("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 xe(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?xe(Object(n),!0).forEach(function(t){Pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(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 _e=e=>(0,I.jsx)(he,Se(Se({},e),{},{children:(0,I.jsx)("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 Ce="checkbox-module__checkbox__x6SCC",Ae="checkbox-module__pressed__mLWO0";const Ee=["label","several","componentSize","classes","id"];function Re(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 ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach(function(t){De(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function De(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=(0,m.forwardRef)(function(e,t){const{label:n,several:r,componentSize:o="medium",classes:i,id: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,Ee),s=(0,m.useRef)(null),c=pe(),u=l??c;(0,m.useEffect)(()=>{const e=s.current;if(!e)return;const t=()=>e.classList.remove(Ae),n=()=>e.classList.add(Ae);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const d="large"===o?"subtitle1":"subtitle2";return(0,I.jsxs)("div",{className:g()("checkbox-module__root__xJtJG",i?.root),children:[(0,I.jsx)("input",ke({ref:q([s,t]),type:"checkbox",className:g()("checkbox-module__input__SjKVz",i?.input),id:u,title:n},a)),(0,I.jsxs)("label",{htmlFor:u,className:g()("checkbox-module__label__tkrMd",i?.label),title:n,children:[r?(0,I.jsx)("span",{className:g()(Ce,"checkbox-module__several__TYjeg",i?.checkbox),children:(0,I.jsx)(_e,{})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{className:g()(Ce,"checkbox-module__deselected__ZuA24",i?.checkbox),children:(0,I.jsx)(ve,{})}),(0,I.jsx)("span",{className:g()(Ce,"checkbox-module__selected__pLwVq",i?.checkbox),children:(0,I.jsx)(je,{})})]}),!!n&&(0,I.jsx)(fe,{variant:d,className:g()("checkbox-module__label-text__kXha_",i?.labelText),children:n})]})]})}),Le=new Uint8Array(16),Ie=[];for(let e=0;e<256;++e)Ie.push((e+256).toString(16).slice(1));const Ne=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(Le);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 ze="tooltip-module__arrow__SONUP",Te="tooltip-module__bottom-arrow__GdFYs",Fe="tooltip-module__content__nH6p2",Ve="tooltip-module__error__XWI8s",He="tooltip-module__info__un5n7",qe="tooltip-module__left-arrow__BFwGV",Be="tooltip-module__right-arrow__ZFRBE",Ke="tooltip-module__success__OXBJT",We="tooltip-module__top-arrow__UHvch",Ge="tooltip-module__trigger__PIfJx",Ue="tooltip-module__warning__Xb_Wr";function Ye(){return"undefined"!=typeof window}function Qe(e){return Xe(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ze(e){var t;return null==(t=(Xe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Xe(e){return!!Ye()&&(e instanceof Node||e instanceof Je(e).Node)}function $e(e){return!!Ye()&&(e instanceof Element||e instanceof Je(e).Element)}function et(e){return!!Ye()&&(e instanceof HTMLElement||e instanceof Je(e).HTMLElement)}function tt(e){return!(!Ye()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot)}function nt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function rt(e){return/^(table|td|th)$/.test(Qe(e))}function ot(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const it=/transform|translate|scale|rotate|perspective|filter/,lt=/paint|layout|strict|content/,at=e=>!!e&&"none"!==e;let st;function ct(e){const t=$e(e)?ft(e):e;return at(t.transform)||at(t.translate)||at(t.scale)||at(t.rotate)||at(t.perspective)||!ut()&&(at(t.backdropFilter)||at(t.filter))||it.test(t.willChange||"")||lt.test(t.contain||"")}function ut(){return null==st&&(st="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),st}function dt(e){return/^(html|body|#document)$/.test(Qe(e))}function ft(e){return Je(e).getComputedStyle(e)}function pt(e){return $e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ht(e){if("html"===Qe(e))return e;const t=e.assignedSlot||e.parentNode||tt(e)&&e.host||Ze(e);return tt(t)?t.host:t}function gt(e){const t=ht(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:et(t)&&nt(t)?t:gt(t)}function mt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=gt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=Je(o);if(i){const e=bt(l);return t.concat(l,l.visualViewport||[],nt(o)?o:[],e&&n?mt(e):[])}return t.concat(o,mt(o,[],n))}function bt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var vt=["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(","),yt="undefined"==typeof Element,Ot=yt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,wt=!yt&&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},jt=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]"):jt(e.parentNode))},xt=function(e,t,n){if(jt(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(vt));return t&&Ot.call(e,vt)&&r.unshift(e),r.filter(n)},St=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!jt(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),a=l.length?l:i.children,s=St(a,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{Ot.call(i,vt)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!jt(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=St(!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},Pt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},_t=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))&&!Pt(e)?0:e.tabIndex},Ct=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},At=function(e){return"INPUT"===e.tagName},Et=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Rt=function(e,t){return!(t.disabled||function(e){return At(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=Ot.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Ot.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Et(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,a=wt(e);if(l&&!l.shadowRoot&&!0===r(l))return Et(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&&wt(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=wt(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!!Ot.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},kt=function(e,t){return!(function(e){return function(e){return At(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||wt(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)||_t(t)<0||!Rt(e,t))},Dt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Mt=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=_t(e);return n<0&&t&&!Pt(e)?0:n}(i,o),a=o?Mt(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(Ct).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Lt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?St([e],t.includeContainer,{filter:kt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Dt}):xt(e,t.includeContainer,kt.bind(null,t)),Mt(n)},It=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Ot.call(e,vt)&&kt(t,e)};function Nt(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function zt(){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 Tt(){return/apple/i.test(navigator.vendor)}function Ft(){const e=/android/i;return e.test(Nt())||e.test(zt())}function Vt(){return zt().includes("jsdom/")}const Ht="data-floating-ui-focusable";function qt(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 Bt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tt(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Kt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Wt(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 Gt(e){return(null==e?void 0:e.ownerDocument)||document}function Ut(e){return et(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Yt(e){return!!e&&"combobox"===e.getAttribute("role")&&Ut(e)}function Qt(e){return e?e.hasAttribute(Ht)?e:e.querySelector("["+Ht+"]")||e:null}function Jt(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,...Jt(e,t.id,n)])}function Zt(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 Xt(e){e.preventDefault(),e.stopPropagation()}function $t(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var en="undefined"!=typeof document?m.useLayoutEffect:function(){};function tn(e){const t=m.useRef(e);return en(()=>{t.current=e}),t}const nn={...b}.useInsertionEffect||(e=>e());function rn(e){const t=m.useRef(()=>{});return nn(()=>{t.current=e}),m.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 on=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ln(e,t){const n=Lt(e,on()),r=n.length;if(0===r)return;const o=qt(Gt(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function an(e){return ln(Gt(e).body,1)||e}function sn(e){return ln(Gt(e).body,-1)||e}function cn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Bt(n,r)}function un(e){Lt(e,on()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function dn(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 fn=require("react-dom"),pn=Math.min,hn=Math.max,gn=Math.round,mn=Math.floor,bn=e=>({x:e,y:e}),vn={left:"right",right:"left",bottom:"top",top:"bottom"};function yn(e,t,n){return hn(e,pn(t,n))}function On(e,t){return"function"==typeof e?e(t):e}function wn(e){return e.split("-")[0]}function jn(e){return e.split("-")[1]}function xn(e){return"x"===e?"y":"x"}function Sn(e){return"y"===e?"height":"width"}function Pn(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function _n(e){return xn(Pn(e))}function Cn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const An=["left","right"],En=["right","left"],Rn=["top","bottom"],kn=["bottom","top"];function Dn(e){const t=wn(e);return vn[t]+e.slice(t.length)}function Mn(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 Ln(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 In(e,t,n){let{reference:r,floating:o}=e;const i=Pn(t),l=_n(t),a=Sn(l),s=wn(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(jn(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function Nn(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}=On(t,e),h=Mn(p),g=a[f?"floating"===d?"reference":"floating":d],m=Ln(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.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},O=Ln(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:s}):b);return{top:(m.top-O.top+h.top)/y.y,bottom:(O.bottom-m.bottom+h.bottom)/y.y,left:(m.left-O.left+h.left)/y.x,right:(O.right-m.right+h.right)/y.x}}const zn=new Set(["left","top"]);function Tn(e){const t=ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=et(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=gn(n)!==i||gn(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Fn(e){return $e(e)?e:e.contextElement}function Vn(e){const t=Fn(e);if(!et(t))return bn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tn(t);let l=(i?gn(n.width):n.width)/r,a=(i?gn(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Hn=bn(0);function qn(e){const t=Je(e);return ut()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Hn}function Bn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Fn(e);let l=bn(1);t&&(r?$e(r)&&(l=Vn(r)):l=Vn(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Je(e))&&t}(i,n,r)?qn(i):bn(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=Je(i),t=r&&$e(r)?Je(r):r;let n=e,o=bt(n);for(;o&&r&&t!==n;){const e=Vn(o),t=o.getBoundingClientRect(),r=ft(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=Je(o),o=bt(n)}}return Ln({width:u,height:d,x:s,y:c})}function Kn(e,t){const n=pt(e).scrollLeft;return t?t.left+n:Bn(Ze(e)).left+n}function Wn(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Kn(e,n),y:n.top+t.scrollTop}}function Gn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Je(e),r=Ze(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=ut();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}const c=Kn(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=Ze(e),n=pt(e),r=e.ownerDocument.body,o=hn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=hn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Kn(e);const a=-n.scrollTop;return"rtl"===ft(r).direction&&(l+=hn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(Ze(e));else if($e(t))r=function(e,t){const n=Bn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=et(e)?Vn(e):bn(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=qn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ln(r)}function Un(e,t){const n=ht(e);return!(n===t||!$e(n)||dt(n))&&("fixed"===ft(n).position||Un(n,t))}function Yn(e,t,n){const r=et(t),o=Ze(t),i="fixed"===n,l=Bn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=bn(0);function c(){s.x=Kn(o)}if(r||!r&&!i)if(("body"!==Qe(t)||nt(o))&&(a=pt(t)),r){const e=Bn(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?bn(0):Wn(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 Qn(e){return"static"===ft(e).position}function Jn(e,t){if(!et(e)||"fixed"===ft(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ze(e)===n&&(n=n.ownerDocument.body),n}function Zn(e,t){const n=Je(e);if(ot(e))return n;if(!et(e)){let t=ht(e);for(;t&&!dt(t);){if($e(t)&&!Qn(t))return t;t=ht(t)}return n}let r=Jn(e,t);for(;r&&rt(r)&&Qn(r);)r=Jn(r,t);return r&&dt(r)&&Qn(r)&&!ct(r)?n:r||function(e){let t=ht(e);for(;et(t)&&!dt(t);){if(ct(t))return t;if(ot(t))return null;t=ht(t)}return null}(e)||n}const Xn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=Ze(r),a=!!t&&ot(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=bn(1);const u=bn(0),d=et(r);if((d||!d&&!i)&&(("body"!==Qe(r)||nt(l))&&(s=pt(r)),d)){const e=Bn(r);c=Vn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?bn(0):Wn(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:Ze,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ot(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=mt(e,[],!1).filter(e=>$e(e)&&"body"!==Qe(e)),o=null;const i="fixed"===ft(e).position;let l=i?ht(e):e;for(;$e(l)&&!dt(l);){const t=ft(l),n=ct(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||nt(l)&&!n&&Un(e,l))?r=r.filter(e=>e!==l):o=t,l=ht(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=Gn(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=Gn(t,i[e],o);a=hn(n.top,a),s=pn(n.right,s),c=pn(n.bottom,c),u=hn(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:Zn,getElementRects:async function(e){const t=this.getOffsetParent||Zn,n=this.getDimensions,r=await n(e.floating);return{reference:Yn(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}=Tn(e);return{width:t,height:n}},getScale:Vn,isElement:$e,isRTL:function(e){return"rtl"===ft(e).direction}};function $n(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function er(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=Fn(e),u=o||i?[...c?mt(c):[],...t?mt(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=Ze(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 h={rootMargin:-mn(d)+"px "+-mn(o.clientWidth-(u+f))+"px "+-mn(o.clientHeight-(d+p))+"px "+-mn(u)+"px",threshold:hn(0,pn(1,s))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==s){if(!g)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||$n(c,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!s&&h.observe(c),t&&h.observe(t));let g=s?Bn(e):null;return s&&function t(){const r=Bn(e);g&&!$n(g,r)&&n(),g=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=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const tr=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:h="none",flipAlignment:g=!0,...m}=On(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=wn(o),v=Pn(a),y=wn(a)===a,O=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=f||(y||!g?[Dn(a)]:function(e){const t=Dn(e);return[Cn(e),t,Cn(t)]}(a)),j="none"!==h;!f&&j&&w.push(...function(e,t,n,r){const o=jn(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?En:An:t?An:En;case"left":case"right":return t?Rn:kn;default:return[]}}(wn(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Cn)))),i}(a,g,h,O));const x=[a,...w],S=await s.detectOverflow(t,m),P=[];let _=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&P.push(S[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=jn(e),o=_n(e),i=Sn(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Dn(l)),[l,Dn(l)]}(o,l,O);P.push(S[e[0]],S[e[1]])}if(_=[..._,{placement:o,overflows:P}],!P.every(e=>e<=0)){var C,A;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=x[e];if(t&&("alignment"!==d||v===Pn(t)||_.every(e=>Pn(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(A=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var E;const e=null==(E=_.filter(e=>{if(j){const t=Pn(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:E[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},nr=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}=On(e,t)||{};if(null==c)return{};const d=Mn(u),f={x:n,y:r},p=_n(o),h=Sn(p),g=await l.getDimensions(c),m="y"===p,b=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",O=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],j=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let x=j?j[y]:0;x&&await(null==l.isElement?void 0:l.isElement(j))||(x=a.floating[y]||i.floating[h]);const S=O/2-w/2,P=x/2-g[h]/2-1,_=pn(d[b],P),C=pn(d[v],P),A=_,E=x-g[h]-C,R=x/2-g[h]/2+S,k=yn(A,R,E),D=!s.arrow&&null!=jn(o)&&R!==k&&i.reference[h]/2-(R<A?_:C)-g[h]/2<0,M=D?R<A?R-A:R-E:0;return{[p]:f[p]+M,data:{[p]:k,centerOffset:R-k-M,...D&&{alignmentOffset:M}},reset:D}}}),rr=(e,t,n)=>{const r=new Map,o={platform:Xn,...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:Nn},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}=In(c,r,s),f=r,p=0;const h={};for(let n=0;n<i.length;n++){const g=i[n];if(!g)continue;const{name:m,fn:b}=g,{x:v,y,data:O,reset:w}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,h[m]={...h[m],...O},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=In(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var or="undefined"!=typeof document?m.useLayoutEffect:function(){};function ir(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(!ir(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||ir(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function lr(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ar(e,t){const n=lr(e);return Math.round(t*n)/n}function sr(e){const t=m.useRef(e);return or(()=>{t.current=e}),t}const cr=(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=wn(n),a=jn(n),s="y"===Pn(n),c=zn.has(l)?-1:1,u=i&&s?-1:1,d=On(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),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]}},ur=(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}=On(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=Pn(wn(o)),p=xn(f);let h=u[p],g=u[f];if(l){const e="y"===p?"bottom":"right";h=yn(h+d["y"===p?"top":"left"],h,h-d[e])}if(a){const e="y"===f?"bottom":"right";g=yn(g+d["y"===f?"top":"left"],g,g-d[e])}const m=s.fn({...t,[p]:h,[f]:g});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]}},dr=(e,t)=>{const n=tr(e);return{name:n.name,fn:n.fn,options:[e,t]}},fr=(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?nr({element:n.current,padding:r}).fn(t):{}:n?nr({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function pr(e){const t=m.useRef(void 0),n=m.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 m.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const hr="data-floating-ui-focusable",gr="active",mr="selected",br={...b};let vr=!1,yr=0;const Or=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+yr++,wr=br.useId||function(){const[e,t]=m.useState(()=>vr?Or():void 0);return en(()=>{null==e&&t(Or())},[]),m.useEffect(()=>{vr=!0},[]),e};const jr=m.createContext(null),xr=m.createContext(null),Sr=()=>{var e;return(null==(e=m.useContext(jr))?void 0:e.id)||null},Pr=()=>m.useContext(xr);function _r(e){return"data-floating-ui-"+e}function Cr(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const Ar=_r("safe-polygon");function Er(e,t,n){if(n&&!$t(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 Rr(e){return"function"==typeof e?e():e}let kr=0;function Dr(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(kr);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():kr=requestAnimationFrame(i)}const Mr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Lr(e){return"inert"===e?Mr.inert:"aria-hidden"===e?Mr["aria-hidden"]:Mr.none}let Ir=new WeakSet,Nr={},zr=0;function Tr(e){return e?tt(e)?e.host:Tr(e.parentNode):null}const Fr=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Tr(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Vr(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=Fr(t,e),a=new Set,s=new Set(l),c=[];Nr[o]||(Nr[o]=new WeakMap);const u=Nr[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"!==Qe(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=Lr(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&&Ir.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),a.clear(),zr++,()=>{c.forEach(e=>{const t=Lr(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!Ir.has(e)&&i&&e.removeAttribute(i),Ir.delete(e)),r||e.removeAttribute(o)}),zr--,zr||(Mr.inert=new WeakMap,Mr["aria-hidden"]=new WeakMap,Mr.none=new WeakMap,Ir=new WeakSet,Nr={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Hr={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},qr=m.forwardRef(function(e,t){const[n,r]=m.useState();en(()=>{Tt()&&r("button")},[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[_r("focus-guard")]:"",style:Hr};return(0,I.jsx)("span",{...e,...o})}),Br={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Kr=m.createContext(null),Wr=_r("portal");function Gr(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=wr(),o=Ur(),[i,l]=m.useState(null),a=m.useRef(null);return en(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),en(()=>{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(Wr,""),e.appendChild(n),a.current=n,l(n)},[t,r]),en(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Xe(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(Wr,""),e=i||e,e.appendChild(s),a.current=s,l(s)},[t,n,r,o]),i}({id:n,root:r}),[l,a]=m.useState(null),s=m.useRef(null),c=m.useRef(null),u=m.useRef(null),d=m.useRef(null),f=null==l?void 0:l.modal,p=null==l?void 0:l.open,h=!!l&&!l.modal&&l.open&&o&&!(!r&&!i);return m.useEffect(()=>{if(i&&o&&!f)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&cn(e)&&("focusin"===e.type?dn:un)(i)}},[i,o,f]),m.useEffect(()=>{i&&(p||dn(i))},[p,i]),(0,I.jsxs)(Kr.Provider,{value:m.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:i,setFocusManagerState:a}),[o,i]),children:[h&&i&&(0,I.jsx)(qr,{"data-type":"outside",ref:s,onFocus:e=>{if(cn(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=sn(l?l.domReference:null);null==e||e.focus()}}}),h&&i&&(0,I.jsx)("span",{"aria-owns":i.id,style:Br}),i&&fn.createPortal(t,i),h&&i&&(0,I.jsx)(qr,{"data-type":"outside",ref:c,onFocus:e=>{if(cn(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=an(l?l.domReference:null);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Ur=()=>m.useContext(Kr);function Yr(e){return m.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Qr=[];function Jr(){Qr=Qr.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function Zr(){Jr();const e=Qr[Qr.length-1];return null==e?void 0:e.deref()}function Xr(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=on(),o=function(e,t){return(t=t||{}).getShadowRoot?St([e],t.includeContainer,{filter:Rt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):xt(e,t.includeContainer,Rt.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return It(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 $r=m.forwardRef(function(e,t){return(0,I.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:Hr})});function eo(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:l=0,returnFocus:a=!0,restoreFocus:s=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0,outsideElementsInert:f=!1,getInsideElements:p=()=>[]}=e,{open:h,onOpenChange:g,events:b,dataRef:v,elements:{domReference:y,floating:O}}=t,w=rn(()=>{var e;return null==(e=v.current.floatingContext)?void 0:e.nodeId}),j=rn(p),x="number"==typeof l&&l<0,S=Yt(y)&&x,P="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,_=!P||i,C=!_||P&&f,A=tn(o),E=tn(l),R=tn(a),k=Pr(),D=Ur(),M=m.useRef(null),L=m.useRef(null),N=m.useRef(!1),z=m.useRef(!1),T=m.useRef(-1),F=m.useRef(-1),V=null!=D,H=Qt(O),q=rn(function(e){return void 0===e&&(e=H),e?Lt(e,on()):[]}),B=rn(e=>{const t=q(e);return A.current.map(e=>y&&"reference"===e?y:H&&"floating"===e?H:t).filter(Boolean).flat()});m.useEffect(()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){Bt(H,qt(Gt(H)))&&0===q().length&&!S&&Xt(e);const t=B(),n=Kt(e);"reference"===A.current[0]&&n===y&&(Xt(e),e.shiftKey?Dr(t[t.length-1]):Dr(t[1])),"floating"===A.current[1]&&n===H&&e.shiftKey&&(Xt(e),Dr(t[0]))}}const t=Gt(H);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,y,H,c,A,S,q,B]),m.useEffect(()=>{if(!r&&O)return O.addEventListener("focusin",e),()=>{O.removeEventListener("focusin",e)};function e(e){const t=Kt(e),n=q().indexOf(t);-1!==n&&(T.current=n)}},[r,O,q]),m.useEffect(()=>{if(r)return;if(!d)return;function e(){z.current=!0,setTimeout(()=>{z.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Kt(e);queueMicrotask(()=>{const o=w(),i=!(Bt(y,t)||Bt(O,t)||Bt(t,O)||Bt(null==D?void 0:D.portalNode,t)||null!=t&&t.hasAttribute(_r("focus-guard"))||k&&(Jt(k.nodesRef.current,o).find(e=>{var n,r;return Bt(null==(n=e.context)?void 0:n.elements.floating,t)||Bt(null==(r=e.context)?void 0:r.elements.domReference,t)})||Zt(k.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,Qt(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===y&&H&&Xr(H,A),s&&n!==y&&(null==r||!r.isConnected)&&qt(Gt(H))===Gt(H).body){et(H)&&H.focus();const e=T.current,t=q(),n=t[e]||t[t.length-1]||H;et(n)&&n.focus()}v.current.insideReactTree?v.current.insideReactTree=!1:!S&&c||!t||!i||z.current||t===Zr()||(N.current=!0,g(!1,e,"focus-out"))})}const n=Boolean(!k&&D);function o(){Cr(F),v.current.insideReactTree=!0,F.current=window.setTimeout(()=>{v.current.insideReactTree=!1})}return O&&et(y)?(y.addEventListener("focusout",t),y.addEventListener("pointerdown",e),O.addEventListener("focusout",t),n&&O.addEventListener("focusout",o,!0),()=>{y.removeEventListener("focusout",t),y.removeEventListener("pointerdown",e),O.removeEventListener("focusout",t),n&&O.removeEventListener("focusout",o,!0)}):void 0},[r,y,O,H,c,k,D,g,d,s,q,S,w,A,v]);const K=m.useRef(null),W=m.useRef(null),G=Yr([K,null==D?void 0:D.beforeInsideRef]),U=Yr([W,null==D?void 0:D.afterInsideRef]);function Y(e){return!r&&u&&c?(0,I.jsx)($r,{ref:"start"===e?M:L,onClick:e=>g(!1,e.nativeEvent),children:"string"==typeof u?u:"Dismiss"}):null}m.useEffect(()=>{var e,t;if(r)return;if(!O)return;const n=Array.from((null==D||null==(e=D.portalNode)?void 0:e.querySelectorAll("["+_r("portal")+"]"))||[]),o=null==(t=(k?Zt(k.nodesRef.current,w()):[]).find(e=>{var t;return Yt((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[O,o,...n,...j(),M.current,L.current,K.current,W.current,null==D?void 0:D.beforeOutsideRef.current,null==D?void 0:D.afterOutsideRef.current,A.current.includes("reference")||S?y:null].filter(e=>null!=e),l=c||S?Vr(i,!C,C):Vr(i);return()=>{l()}},[r,y,O,c,A,D,S,_,C,k,w,j]),en(()=>{if(r||!et(H))return;const e=qt(Gt(H));queueMicrotask(()=>{const t=B(H),n=E.current,r=("number"==typeof n?t[n]:n.current)||H,o=Bt(H,e);x||o||!h||Dr(r,{preventScroll:r===H})})},[r,h,H,x,B,E]),en(()=>{if(r||!H)return;const e=Gt(H);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(N.current=!0),"outside-press"===t)if(r)N.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ft()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!Vt()&&(!Ft()&&0===e.width&&0===e.height||Ft()&&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))N.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),N.current=!e}}t=qt(e),Jr(),t&&"body"!==Qe(t)&&(Qr.push(new WeakRef(t)),Qr.length>20&&(Qr=Qr.slice(-20))),b.on("openchange",n);const o=e.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,Hr),V&&y&&y.insertAdjacentElement("afterend",o),()=>{b.off("openchange",n);const t=qt(e),r=Bt(O,t)||k&&Jt(k.nodesRef.current,w(),!1).some(e=>{var n;return Bt(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof R.current){const e=y||Zr();return e&&e.isConnected?e:o}return R.current.current||o}();queueMicrotask(()=>{const n=function(e){const t=on();return It(e,t)?e:Lt(e,t)[0]||e}(i);R.current&&!N.current&&et(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),o.remove()})}},[r,O,H,R,v,b,k,V,y,w]),m.useEffect(()=>(queueMicrotask(()=>{N.current=!1}),()=>{queueMicrotask(Jr)}),[r]),en(()=>{if(!r&&D)return D.setFocusManagerState({modal:c,closeOnFocusOut:d,open:h,onOpenChange:g,domReference:y}),()=>{D.setFocusManagerState(null)}},[r,D,c,h,g,d,y]),en(()=>{r||H&&Xr(H,A)},[r,H,A]);const Q=!r&&_&&(!c||!S)&&(V||c);return(0,I.jsxs)(I.Fragment,{children:[Q&&(0,I.jsx)(qr,{"data-type":"inside",ref:G,onFocus:e=>{if(c){const e=B();Dr("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(N.current=!1,cn(e,D.portalNode)){const e=an(y);null==e||e.focus()}else{var t;null==(t=D.beforeOutsideRef.current)||t.focus()}}}),!S&&Y("start"),n,Y("end"),Q&&(0,I.jsx)(qr,{"data-type":"inside",ref:U,onFocus:e=>{if(c)Dr(B()[0]);else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(d&&(N.current=!0),cn(e,D.portalNode)){const e=sn(y);null==e||e.focus()}else{var t;null==(t=D.afterOutsideRef.current)||t.focus()}}})]})}function to(e){return et(e.target)&&"BUTTON"===e.target.tagName}function no(e){return Ut(e)}function ro(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=m.useRef(),p=m.useRef(!1),h=m.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&($t(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:$t(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||to(e)||(" "!==e.key||no(i)||(e.preventDefault(),p.current=!0),function(e){return et(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||to(e)||no(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,s]);return m.useMemo(()=>l?{reference:h}:{},[l,h])}const oo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},io={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},lo=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 ao(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:h}=t,g=Pr(),b=rn("function"==typeof s?s:()=>!1),v="function"==typeof s?b:s,y=m.useRef(!1),{escapeKey:O,outsidePress:w}=lo(p),{escapeKey:j,outsidePress:x}=lo(h),S=m.useRef(!1),P=rn(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=g?Jt(g.nodesRef.current,o):[];if(!O&&(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")}),_=rn(e=>{var t;const n=()=>{var t;P(e),null==(t=Kt(e))||t.removeEventListener("keydown",n)};null==(t=Kt(e))||t.addEventListener("keydown",n)}),C=rn(e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const l=y.current;if(y.current=!1,"click"===c&&l)return;if(n)return;if("function"==typeof v&&!v(e))return;const a=Kt(e),s="["+_r("inert")+"]",u=Gt(o.floating).querySelectorAll(s);let d=$e(a)?a:null;for(;d&&!dt(d);){const e=ht(d);if(dt(e)||!$e(e))break;d=e}if(u.length&&$e(a)&&!a.matches("html,body")&&!Bt(a,o.floating)&&Array.from(u).every(e=>!Bt(d,e)))return;if(et(a)&&R){const t=dt(a),n=ft(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=g&&Jt(g.nodesRef.current,f).some(t=>{var n;return Wt(e,null==(n=t.context)?void 0:n.elements.floating)});if(Wt(e,o.floating)||Wt(e,o.domReference)||p)return;const h=g?Jt(g.nodesRef.current,f):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),A=rn(e=>{var t;const n=()=>{var t;C(e),null==(t=Kt(e))||t.removeEventListener(c,n)};null==(t=Kt(e))||t.addEventListener(c,n)});m.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=O,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},ut()?5:0)}const d=Gt(o.floating);a&&(d.addEventListener("keydown",j?_:P,j),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),v&&d.addEventListener(c,x?A:C,x);let p=[];return f&&($e(o.domReference)&&(p=mt(o.domReference)),$e(o.floating)&&(p=p.concat(mt(o.floating))),!$e(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(mt(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",j?_:P,j),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),v&&d.removeEventListener(c,x?A:C,x),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,v,c,n,r,f,l,O,w,P,j,_,C,x,A]),m.useEffect(()=>{i.current.insideReactTree=!1},[i,v,c]);const E=m.useMemo(()=>({onKeyDown:P,...u&&{[oo[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[P,r,u,d]),R=m.useMemo(()=>{function e(e){0===e.button&&(y.current=!0)}return{onKeyDown:P,onMouseDown:e,onMouseUp:e,[io[c]]:()=>{i.current.insideReactTree=!0}}},[P,c,i]);return m.useMemo(()=>l?{reference:E,floating:R}:{},[l,E,R])}function so(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=wr(),i=m.useRef({}),[l]=m.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!=Sr(),[s,c]=m.useState(r.reference),u=rn((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=m.useMemo(()=>({setPositionReference:c}),[]),f=m.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return m.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,[i,l]=m.useState(null),[a,s]=m.useState(null),c=(null==o?void 0:o.domReference)||i,u=m.useRef(null),d=Pr();en(()=>{c&&(u.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:s,open:c}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=m.useState(r);ir(f,r)||p(r);const[h,g]=m.useState(null),[b,v]=m.useState(null),y=m.useCallback(e=>{e!==x.current&&(x.current=e,g(e))},[]),O=m.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),w=i||h,j=l||b,x=m.useRef(null),S=m.useRef(null),P=m.useRef(u),_=null!=s,C=sr(s),A=sr(o),E=sr(c),R=m.useCallback(()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};A.current&&(e.platform=A.current),rr(x.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==E.current};k.current&&!ir(P.current,t)&&(P.current=t,fn.flushSync(()=>{d(t)}))})},[f,t,n,A,E]);or(()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const k=m.useRef(!1);or(()=>(k.current=!0,()=>{k.current=!1}),[]),or(()=>{if(w&&(x.current=w),j&&(S.current=j),w&&j){if(C.current)return C.current(w,j,R);R()}},[w,j,R,C,_]);const D=m.useMemo(()=>({reference:x,floating:S,setReference:y,setFloating:O}),[y,O]),M=m.useMemo(()=>({reference:w,floating:j}),[w,j]),L=m.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=ar(M.floating,u.x),r=ar(M.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...lr(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,M.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:R,refs:D,elements:M,floatingStyles:L}),[u,R,D,M,L])}({...e,elements:{...o,...a&&{reference:a}}}),p=m.useCallback(e=>{const t=$e(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),h=m.useCallback(e=>{($e(e)||null===e)&&(u.current=e,l(e)),($e(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!$e(e))&&f.refs.setReference(e)},[f.refs]),g=m.useMemo(()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u}),[f.refs,h,p]),b=m.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),v=m.useMemo(()=>({...f,...r,refs:g,elements:b,nodeId:t}),[f,g,b,t,r]);return en(()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),m.useMemo(()=>({...f,context:v,refs:g,elements:b}),[f,g,b,v])}function co(){return Nt().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&Tt()}function uo(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=m.useRef(!1),u=m.useRef(-1),d=m.useRef(!0);m.useEffect(()=>{if(!a)return;const e=Je(l.domReference);function t(){!n&&et(l.domReference)&&l.domReference===qt(Gt(l.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),co()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),co()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[l.domReference,n,a]),m.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]),m.useEffect(()=>()=>{Cr(u)},[]);const f=m.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Kt(e.nativeEvent);if(s&&$e(t))if(co()&&!e.relatedTarget){if(!d.current&&!Ut(t))return}else if(!function(e){if(!e||Vt())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=$e(t)&&t.hasAttribute(_r("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=qt(l.domReference?l.domReference.ownerDocument:document);(t||a!==l.domReference)&&(Bt(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Bt(l.domReference,a)||o||r(!1,n,"focus"))})}}),[i,l.domReference,r,s]);return m.useMemo(()=>a?{reference:f}:{},[a,f])}function fo(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[gr]:t,[mr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[hr]:""},...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&&[gr,mr].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 po(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=m.useCallback(t=>fo(t,e,"reference"),t),i=m.useCallback(t=>fo(t,e,"floating"),n),l=m.useCallback(t=>fo(t,e,"item"),r);return m.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}const ho=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function go(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=wr(),u=(null==(n=i.domReference)?void 0:n.id)||c,d=m.useMemo(()=>{var e;return(null==(e=Qt(i.floating))?void 0:e.id)||l},[i.floating,l]),f=null!=(r=ho.get(s))?r:s,p=null!=Sr(),h=m.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]),g=m.useMemo(()=>{const e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),b=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 m.useMemo(()=>a?{reference:h,floating:g,item:b}:{},[a,h,g,b])}const mo=(0,m.createContext)(null),bo=["styles","style","children"],vo=["context"];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 Oo(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){wo(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 wo(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 jo(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 xo=(0,m.forwardRef)(function(e,t){let{styles:n,style:r,children:o}=e,i=jo(e,bo);const l=(0,m.useContext)(mo);if(!l)return null;const{context:a}=l,s=jo(l,vo),c=pr([s.refs.setFloating,t]);if(!a.open)return null;let u="",d=null,f=null;switch(s.placement){case"top":case"top-end":case"top-start":u="topArrow",f=!1;break;case"bottom":case"bottom-end":case"bottom-start":u="bottomArrow",f=!0;break;case"left":case"left-end":case"left-start":u="leftArrow",d=!0;break;case"right":case"right-end":case"right-start":u="rightArrow",d=!1}return(0,I.jsx)(Gr,{root:s.root,children:(0,I.jsxs)("div",Oo(Oo({ref:c,style:Oo(Oo({},s.floatingStyles),r)},s.getFloatingProps(i)),{},{children:[o,!s.withoutArrow&&(0,I.jsx)("div",{className:n&&g()(n.arrow,n[u]),ref:s.arrowRef,style:{position:"absolute",left:null===f&&!1===d?0:s.middlewareData.arrow?.x,right:null===f&&!0===d?0:s.middlewareData.arrow?.x,top:null===d&&!0===f?0:s.middlewareData.arrow?.y,bottom:null===d&&!1===f?0:s.middlewareData.arrow?.y}})]}))})});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 Po(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){_o(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 _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 Co=["children"],Ao=e=>{const{children:t}=e,n=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,Co),r=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:o,withoutArrow:i,arrowRef:l,root:a}=e,[s,c]=(0,m.useState)(t),u=r??s,d=o??c,f=so({placement:n,open:u,onOpenChange:d,whileElementsMounted:er,middleware:[cr(12),dr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),ur({padding:5}),...!i&&l?.current?[fr({element:l})]:[]]}),{context:p}=f,h=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=Pr(),h=Sr(),g=tn(c),b=tn(s),v=tn(n),y=tn(d),O=m.useRef(),w=m.useRef(-1),j=m.useRef(),x=m.useRef(-1),S=m.useRef(!0),P=m.useRef(!1),_=m.useRef(()=>{}),C=m.useRef(!1),A=rn(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});m.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(Cr(w),Cr(x),S.current=!0,C.current=!1)}},[a,i]),m.useEffect(()=>{if(!a)return;if(!g.current)return;if(!n)return;function e(e){A()&&r(!1,e,"hover")}const t=Gt(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[l.floating,n,r,a,g,A]);const E=m.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Er(b.current,"close",O.current);o&&!j.current?(Cr(w),w.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(Cr(w),r(!1,e,n))},[b,r]),R=rn(()=>{_.current(),j.current=void 0}),k=rn(()=>{if(P.current){const e=Gt(l.floating).body;e.style.pointerEvents="",e.removeAttribute(Ar),P.current=!1}}),D=rn(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));m.useEffect(()=>{if(a&&$e(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(Cr(w),S.current=!1,u&&!$t(O.current)||Rr(y.current)>0&&!Er(b.current,"open"))return;const t=Er(b.current,"open",O.current);t?w.current=window.setTimeout(()=>{v.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(D())return void k();_.current();const t=Gt(l.floating);if(Cr(x),C.current=!1,g.current&&o.current.floatingContext){n||Cr(w),j.current=g.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){k(),R(),D()||E(e,!0,"safe-polygon")}});const r=j.current;return t.addEventListener("mousemove",r),void(_.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==O.current||!Bt(l.floating,e.relatedTarget))&&E(e)}function i(e){D()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){k(),R(),D()||E(e)}})(e))}function s(){Cr(w)}function c(e){D()||E(e,!1)}},[l,a,e,u,f,E,R,k,r,n,v,p,b,g,o,D,y]),en(()=>{var e;if(a&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&A()){P.current=!0;const e=l.floating;if($e(l.domReference)&&e){var t;const n=Gt(l.floating).body;n.setAttribute(Ar,"");const r=l.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===h))||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,h,l,p,g,A]),en(()=>{n||(O.current=void 0,C.current=!1,R(),k())},[n,R,k]),m.useEffect(()=>()=>{R(),Cr(w),Cr(x),k()},[a,l.domReference,R,k]);const M=m.useMemo(()=>{function e(e){O.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||v.current||r(!0,t,"hover")}u&&!$t(O.current)||n||0===Rr(y.current)||C.current&&e.movementX**2+e.movementY**2<2||(Cr(x),"touch"===O.current?o():(C.current=!0,x.current=window.setTimeout(o,Rr(y.current))))}}},[u,r,n,v,y]);return m.useMemo(()=>a?{reference:M}:{},[a,M])}(p,{move:!1,enabled:null==r}),g=po([h,uo(p,{enabled:null==r}),ao(p),go(p,{role:"tooltip"})]);return(0,m.useMemo)(()=>Po(Po({open:u,setOpen:d,withoutArrow:i,arrowRef:l,root:a},g),f),[u,d,g,f,a])}(n);return(0,I.jsx)(mo.Provider,{value:r,children:t})},Eo=["children","wrapTrigger"];function Ro(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?Ro(Object(n),!0).forEach(function(t){Do(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Do(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 Mo=(0,m.forwardRef)(function(e,t){let{children:n,wrapTrigger: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,Eo);const i=(0,m.useContext)(mo),l=n.ref,a=pr([i?.refs.setReference,t,l]);return i?!r&&(0,m.isValidElement)(n)?(0,m.cloneElement)(n,i.getReferenceProps(ko(ko(ko({ref:a},o),n.props),{},{"data-state":i.open?"open":"closed"}))):(0,I.jsx)("div",ko(ko({ref:a,"data-state":i.open?"open":"closed"},i.getReferenceProps(o)),{},{children:n})):null});function Lo(e){const{label:t,clickable:r,initialOpen:o,placement:i,withoutArrow:l,wrapTrigger:a,alertType:s="default",root:c,children:u,classes:d}=e,[f,p]=(0,m.useState)(!1),h=(0,m.useRef)(null);return t?u?(0,I.jsxs)(Ao,{placement:i,initialOpen:o,open:r?f:void 0,onOpenChange:r?p:void 0,withoutArrow:l,arrowRef:h,root:c,children:[(0,I.jsx)(Mo,{wrapTrigger:a,onClick:r?()=>p(e=>!e):void 0,className:a?g()(Ge,d?.trigger):void 0,children:u}),(0,I.jsx)(xo,{className:g()(Fe,n[s],d?.content),styles:n,children:t})]}):null:u?(0,I.jsx)(I.Fragment,{children:u}):null}var Io="fieldShell-module__arrow__dXtPp",No="fieldShell-module__chips__Eyi_K",zo="fieldShell-module__end-icon__ajeP3",To="fieldShell-module__input__mpHQB";const Fo=["variant","componentSize","fullWidth","label","error","labelExtra","inputId","onLabelClick","hasStartIcon","hasEndIcon","hasDualEndIcon","hasErrorIcon","hasClearButton","hasArrow","chipsMode","children","classes","className"];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 Ho(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){qo(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}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 Bo=(0,m.forwardRef)(function(e,t){let{variant:n="outlined",componentSize:r="medium",fullWidth:o,label:i,error:l,labelExtra:a,inputId:s,onLabelClick:c,hasStartIcon:u,hasEndIcon:d,hasDualEndIcon:f,hasErrorIcon:p,hasClearButton:h,hasArrow:m,chipsMode:b,children:v,classes:y,className:O}=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,Fo);return(0,I.jsxs)("div",{"data-size":r,className:g()("fieldShell-module__root__vQ9PI",o&&"fieldShell-module__full-width__bYt_Z",y?.root),children:[!!i&&(0,I.jsxs)("div",{className:g()("fieldShell-module__label-row__bOAYh",y?.labelRow),children:[(0,I.jsxs)(fe,{className:g()("fieldShell-module__label__fdgQq",y?.label),component:"label",variant:"caption",htmlFor:s,onClick:c,children:[i,a]}),!!l&&(0,I.jsx)(Lo,{label:l.description,alertType:"error",children:(0,I.jsx)("span",{className:g()("fieldShell-module__error-name__LUg8D",y?.errorName),children:l.name})})]}),(0,I.jsx)("div",Ho(Ho({ref:t,"data-variant":n,"data-error":l?"":void 0,"data-start-icon":u?"":void 0,"data-end-icon":d?"":void 0,"data-dual-end-icon":f?"":void 0,"data-error-icon":p?"":void 0,"data-clear":h?"":void 0,"data-arrow":m?"":void 0,"data-chips":b?"":void 0,className:g()("fieldShell-module__wrapper__OLPGQ",O,y?.wrapper)},w),{},{children:v}))]})});function Ko(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?Ko(Object(n),!0).forEach(function(t){Go(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Go(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 Uo=e=>(0,I.jsx)(he,Wo(Wo({},e),{},{children:(0,I.jsx)("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm1-5C6.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 8z"})}));function Yo(e){return(0,I.jsxs)(I.Fragment,{children:[e.name,(0,I.jsx)("br",{}),e.description]})}function Qo(e){const{error:t,componentSize:n="medium",className:r}=e,o="large"===n||"extraLarge"===n?24:20;return(0,I.jsx)(Lo,{label:Yo(t),alertType:"error",children:(0,I.jsx)("span",{className:g()(zo,"fieldShell-module__error-icon__Nyh0h",r),children:(0,I.jsx)(Uo,{size:o})})})}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){Xo(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 Xo(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 $o=e=>(0,I.jsx)(he,Zo(Zo({},e),{},{children:(0,I.jsx)("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 ei="inputChip-module__clickable__XZjD7",ti="inputChip-module__disabled__Zk_O4",ni="inputChip-module__extraLarge__s_SFd",ri="inputChip-module__filled__mSiU7",oi="inputChip-module__icon__phvLA",ii="inputChip-module__large__PPvr0",li="inputChip-module__medium__VruGz",ai="inputChip-module__outlined__j4EHe",si="inputChip-module__remove__Z6QBd",ci="inputChip-module__root__DWnVf",ui="inputChip-module__small__XrLEF",di="inputChip-module__text__dhqTV",fi="inputChip-module__with-icon__DZMe4";const pi=["variant","componentSize","icon","disabled","onClick","onRemove","children","classes","className"];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 gi(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){mi(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 mi(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 bi=(0,m.forwardRef)(function(e,t){let{variant:n="filled",componentSize:o="medium",icon:i,disabled:l,onClick:a,onRemove:s,children:c,classes:u,className:d}=e,f=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,pi);return(0,I.jsxs)("div",gi(gi({ref:t,className:g()(ci,r[n],r[o],!!i&&fi,l&&ti,a&&!l&&ei,d,u?.root),tabIndex:a&&!l?0:void 0},f),{},{onClick:l?void 0:a,children:[!!i&&(0,I.jsx)("span",{className:g()(oi,u?.icon),children:i}),(0,I.jsx)("span",{className:g()(di,u?.text),children:c}),!!s&&(0,I.jsx)("button",{type:"button",className:g()(si,u?.remove),onClick:e=>{e.stopPropagation(),l||s?.()},disabled:l,"aria-label":"Удалить",children:(0,I.jsx)($o,{})})]}))});var vi="popover-module__content__cXVJ_",yi="popover-module__trigger__hYNqD";const Oi=(0,m.createContext)(null),wi=["style","children"],ji=["context"];function xi(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?xi(Object(n),!0).forEach(function(t){Pi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(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}function _i(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 Ci=(0,m.forwardRef)(function(e,t){let{style:n,children:r}=e,o=_i(e,wi);const i=(0,m.useContext)(Oi);if(!i)return null;const{context:l}=i,a=_i(i,ji),s=pr([a.refs.setFloating,t]),c=pe();return(0,m.useLayoutEffect)(()=>(i.setDescriptionId(c),()=>i.setDescriptionId(void 0)),[c,i.setDescriptionId]),l.open?(0,I.jsx)(Gr,{root:a.root,children:(0,I.jsx)(eo,{context:l,modal:a.modal,children:(0,I.jsx)("div",Si(Si({id:c,ref:s,style:Si(Si({},a.floatingStyles),n),"aria-describedby":a.descriptionId},a.getFloatingProps(o)),{},{children:r}))})}):null}),Ai=["update"];function Ei(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 Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(n),!0).forEach(function(t){ki(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ki(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 Di=["children","modal"];function Mi(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,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 Ii=e=>{const{children:t,modal:n=!1}=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,Di),o=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,m.useState)(t),[d,f]=(0,m.useState)(),p=i??c,h=l??u,g=so({placement:n,open:p,onOpenChange:h,whileElementsMounted:er,middleware:[cr(a),dr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),ur({padding:5})]}),{update:b}=g,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}(g,Ai),{context:y}=v;(0,m.useLayoutEffect)(()=>{p&&b()},[p,s,b]);const O=po([ro(y,{enabled:null==i}),ao(y),go(y)]);return(0,m.useMemo)(()=>Ri(Ri(Ri({open:p,setOpen:h},O),v),{},{update:b,modal:r,root:o,descriptionId:d,setDescriptionId:f}),[p,h,O,v,b,r,o,d])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach(function(t){Li(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:n},r));return(0,I.jsx)(Oi.Provider,{value:o,children:t})},Ni=["children","wrapTrigger"];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 Ti(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){Fi(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 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=(0,m.forwardRef)(function(e,t){let{children:n,wrapTrigger: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,Ni);const i=(0,m.useContext)(Oi),l=n.ref,a=pr([i?.refs.setReference,t,l]);return i?!r&&(0,m.isValidElement)(n)?(0,m.cloneElement)(n,i.getReferenceProps(Ti(Ti(Ti({ref:a},o),n.props),{},{"data-state":i.open?"open":"closed"}))):(0,I.jsx)("div",Ti(Ti({ref:a,"data-state":i.open?"open":"closed"},i.getReferenceProps(o)),{},{children:n})):null});function Hi(e){const{description:t,clickable:n,initialOpen:r,placement:o,wrapTrigger:i,containerOffset:l,root:a,open:s,onOpenChange:c,children:u,classes:d,contentStyle:f,layoutVersion:p}=e,[h,b]=(0,m.useState)(!1);return u?t?(0,I.jsxs)(Ii,{placement:o,initialOpen:r,open:void 0!==s?s:n?h:void 0,onOpenChange:void 0!==c?c:n?b:void 0,containerOffset:l,root:a,layoutVersion:p,children:[(0,I.jsx)(Vi,{wrapTrigger:i,onClick:n?()=>b(e=>!e):void 0,className:g()(i?yi:void 0,d?.trigger),children:u}),(0,I.jsx)(Ci,{className:g()(vi,d?.content),style:f,children:t})]}):u:null}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 Bi(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){Ki(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 Ki(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=>(0,I.jsx)(he,Bi(Bi({},e),{},{children:(0,I.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function Gi(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?Gi(Object(n),!0).forEach(function(t){Yi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(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 Qi=e=>(0,I.jsx)(he,Ui(Ui({},e),{},{children:(0,I.jsx)("path",{d:"M7 10l5 5 5-5z"})}));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 Zi(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){Xi(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 Xi(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 $i=e=>(0,I.jsx)(he,Zi(Zi({},e),{},{children:(0,I.jsx)("path",{d:"M7 14l5-5 5 5z"})}));function el(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?el(Object(n),!0).forEach(function(t){nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(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 rl=e=>(0,I.jsx)(he,tl(tl({},e),{},{children:(0,I.jsx)("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 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 il(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){ll(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 ll(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 al=e=>(0,I.jsx)(he,il(il({},e),{},{children:(0,I.jsx)("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})}));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 cl(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){ul(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 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 dl=e=>(0,I.jsx)(he,cl(cl({},e),{},{children:(0,I.jsx)("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 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 pl(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){hl(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 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 gl=e=>(0,I.jsx)(he,pl(pl({},e),{},{children:(0,I.jsx)("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 ml(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 bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(t){vl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vl(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 yl=e=>(0,I.jsx)(he,bl(bl({},e),{},{children:(0,I.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));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 wl(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){jl(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 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=>(0,I.jsx)(he,wl(wl({},e),{},{children:(0,I.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));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){_l(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 _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 Cl=e=>(0,I.jsx)(he,Pl(Pl({},e),{},{children:(0,I.jsx)("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 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 El(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){Rl(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 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=>(0,I.jsx)(he,El(El({},e),{},{children:(0,I.jsx)("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 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){Ll(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 Ll(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 Il=e=>(0,I.jsx)(he,Ml(Ml({},e),{},{children:(0,I.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM16 9V19H8V9H16ZM6 7H18V19C18 20.1 17.1 21 16 21H8C6.9 21 6 20.1 6 19V7Z"})}));function Nl(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?Nl(Object(n),!0).forEach(function(t){Tl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nl(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 Fl=e=>(0,I.jsx)(he,zl(zl({},e),{},{children:(0,I.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function Vl(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?Vl(Object(n),!0).forEach(function(t){ql(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vl(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 Bl=e=>(0,I.jsx)(he,Hl(Hl({},e),{},{children:(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM7 12C7 10.9 7.9 10 9 10C10.1 10 11 10.9 11 12C11 13.1 10.1 14 9 14C7.9 14 7 13.1 7 12ZM9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20ZM17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM13 18C13 16.9 13.9 16 15 16C16.1 16 17 16.9 17 18C17 19.1 16.1 20 15 20C13.9 20 13 19.1 13 18Z"})}));function Kl(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?Kl(Object(n),!0).forEach(function(t){Gl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gl(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=>(0,I.jsx)(he,Wl(Wl({},e),{},{children:(0,I.jsx)("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 Ql(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){Jl(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 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 Zl=e=>(0,I.jsx)(he,Ql(Ql({},e),{},{children:(0,I.jsx)("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 Xl(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 $l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xl(Object(n),!0).forEach(function(t){ea(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ea(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 ta=e=>(0,I.jsxs)(he,$l($l({},e),{},{children:[(0,I.jsx)("g",{"clip-path":"url(#clip0_851_25267)",children:(0,I.jsx)("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"})}),(0,I.jsx)("defs",{children:(0,I.jsx)("clipPath",{id:"clip0_851_25267",children:(0,I.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}));function na(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 ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach(function(t){oa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(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 ia=e=>(0,I.jsx)(he,ra(ra({},e),{},{children:(0,I.jsx)("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 la(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 aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach(function(t){sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sa(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 ca=e=>(0,I.jsx)(he,aa(aa({},e),{},{children:(0,I.jsx)("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 ua(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 da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach(function(t){fa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fa(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 pa=e=>(0,I.jsx)(he,da(da({},e),{},{children:(0,I.jsx)("path",{d:"M12 8.29498L6 14.295L7.41 15.705L12 11.125L16.59 15.705L18 14.295L12 8.29498Z"})}));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 ga(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){ma(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 ma(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 ba=e=>(0,I.jsx)(he,ga(ga({},e),{},{children:(0,I.jsx)("path",{d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z"})}));function va(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 ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach(function(t){Oa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(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 wa=e=>(0,I.jsx)(he,ya(ya({},e),{},{children:(0,I.jsx)("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function ja(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 xa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach(function(t){Sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sa(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 Pa=e=>(0,I.jsx)(he,xa(xa({},e),{},{children:(0,I.jsx)("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 _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 Ca(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){Aa(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 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 Ea=e=>(0,I.jsx)(he,Ca(Ca({},e),{},{children:(0,I.jsx)("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 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 ka(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){Da(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 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 Ma=e=>(0,I.jsx)(he,ka(ka({},e),{},{children:(0,I.jsx)("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function La(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 Ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach(function(t){Na(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Na(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 za=e=>(0,I.jsx)(he,Ia(Ia({},e),{},{children:(0,I.jsx)("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 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 Fa(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){Va(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 Va(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 Ha=e=>(0,I.jsx)(he,Fa(Fa({},e),{},{children:(0,I.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function qa(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 Ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(n),!0).forEach(function(t){Ka(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ka(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=>(0,I.jsx)(he,Ba(Ba({},e),{},{children:(0,I.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function Ga(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?Ga(Object(n),!0).forEach(function(t){Ya(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ga(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 Qa=e=>(0,I.jsx)(he,Ua(Ua({},e),{},{children:(0,I.jsx)("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"})}));function Ja(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 Za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(n),!0).forEach(function(t){Xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xa(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 $a=e=>(0,I.jsx)(he,Za(Za({},e),{},{children:(0,I.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));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}const rs=e=>(0,I.jsx)(he,ts(ts({},e),{},{children:(0,I.jsx)("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 os(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 is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?os(Object(n),!0).forEach(function(t){ls(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ls(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=e=>(0,I.jsx)(he,is(is({},e),{},{children:(0,I.jsx)("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 ss(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 cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach(function(t){us(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function us(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 ds=e=>(0,I.jsx)(he,cs(cs({},e),{},{children:(0,I.jsx)("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 fs(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 ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fs(Object(n),!0).forEach(function(t){hs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hs(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 gs=e=>(0,I.jsx)(he,ps(ps({},e),{},{children:(0,I.jsx)("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function ms(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 bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){vs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(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 ys=e=>(0,I.jsx)(he,bs(bs({},e),{},{children:(0,I.jsx)("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 Os(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 ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Os(Object(n),!0).forEach(function(t){js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Os(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 xs=e=>(0,I.jsx)(he,ws(ws({},e),{},{children:(0,I.jsx)("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 Ss(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 Ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(n),!0).forEach(function(t){_s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _s(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 Cs=e=>(0,I.jsx)(he,Ps(Ps({},e),{},{children:(0,I.jsx)("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 As(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 Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach(function(t){Rs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(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}const ks=e=>(0,I.jsx)(he,Es(Es({},e),{},{children:(0,I.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function Ds(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 Ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(n),!0).forEach(function(t){Ls(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ls(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 Is=e=>(0,I.jsx)(he,Ms(Ms({},e),{},{children:(0,I.jsx)("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 Ns(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 zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach(function(t){Ts(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ts(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 Fs=e=>(0,I.jsx)(he,zs(zs({},e),{},{children:(0,I.jsx)("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 Vs(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 Hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(n),!0).forEach(function(t){qs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qs(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 Bs=e=>(0,I.jsx)(he,Hs(Hs({},e),{},{children:(0,I.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3H17L21 7V19C21 20.1 20.1 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.89 3 5 3ZM19 19V7.83L16.17 5H5V19H19ZM12 12C10.34 12 9 13.34 9 15C9 16.66 10.34 18 12 18C13.66 18 15 16.66 15 15C15 13.34 13.66 12 12 12ZM15 6H6V10H15V6Z"})}));function Ks(){const e=(0,m.useContext)(Oi);return e?.open?(0,I.jsx)($i,{}):(0,I.jsx)(Qi,{})}const Ws=["children","fillEvenly","classes","className"];function Gs(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 Us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach(function(t){Ys(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ys(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 Qs=(0,m.forwardRef)(function(e,t){let{children:n,fillEvenly:r,classes:o,className: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,Ws);return(0,I.jsx)("div",Us(Us({ref:t,className:g()("buttonsGroup-module__root__rBp1o",r&&"buttonsGroup-module__fill-evenly__J5T6H",i,o?.root)},l),{},{children:n}))});var Js="menu-module__divider__kik9c",Zs="menu-module__extraLarge__RIQUR",Xs="menu-module__item__DO2AJ",$s="menu-module__item-actions__ecU8y",ec="menu-module__item-description__BxxnF",tc="menu-module__item-disabled__E7Z4s",nc="menu-module__item-icon___HDe4",rc="menu-module__item-selected__m9VFe",oc="menu-module__item-text-block__zgpGT",ic="menu-module__item-title__gcK7P",lc="menu-module__item-title-top__PSYWj",ac="menu-module__large__jYm_Q",sc="menu-module__medium__Jev6c",cc="menu-module__root__pR_5h",uc="menu-module__small__uGqFV",dc="menu-module__state-layer__m8uMf";const fc=["items","componentSize","descriptionPosition","classes","className"];function pc(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 hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach(function(t){gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gc(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 mc=(0,m.forwardRef)(function(e,t){let{items:n,componentSize:r="medium",descriptionPosition:o="right",classes:i,className: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,fc);const c=(0,m.useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]);return(0,I.jsxs)("div",hc(hc({ref:t,className:g()(cc,l[r],a,i?.root)},s),{},{children:[" ",n.map((e,t)=>{const n="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?(0,I.jsx)(n,{tabIndex:-10,className:g()(Xs,e.selected?rc:void 0,e.disabled?tc:void 0,i?.item,e.selected?i?.itemSelected:void 0,e.disabled?i?.itemDisabled:void 0),onClick:e.disabled?void 0:c(e),title:e.name,children:(0,I.jsxs)("span",{className:g()(dc),children:[!!e.icon&&(0,I.jsx)("span",{className:g()(nc,i?.itemIcon,e.selected?i?.itemSelectedIcon:void 0,e.disabled?i?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===o&&e.description?(0,I.jsxs)("span",{className:g()(oc),children:[(0,I.jsx)("span",{className:g()(lc,ic,i?.itemTitle,e.selected?i?.itemSelectedTitle:void 0,e.disabled?i?.itemDisabledTitle:void 0),children:e.name}),(0,I.jsx)("span",{className:g()(ec,i?.itemDescription,e.selected?i?.itemSelectedDescription:void 0,e.disabled?i?.itemDisabledDescription:void 0),children:e.description})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{className:g()(ic,i?.itemTitle,e.selected?i?.itemSelectedTitle:void 0,e.disabled?i?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&(0,I.jsx)("span",{className:g()(ec,i?.itemDescription,e.selected?i?.itemSelectedDescription:void 0,e.disabled?i?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&(0,I.jsx)("div",{className:g()($s,i?.itemActions,e.selected?i?.itemSelectedActions:void 0,e.disabled?i?.itemDisabledActions:void 0),children:(0,I.jsx)(Qs,{children:e.subButtons.map((e,t)=>(0,I.jsx)(V,{variant:e.variant,componentSize:r,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${t}`):(0,I.jsx)("div",{className:g()(Js,i?.divider),children:e.name},`menu-divider-${e.name}-${t}`)})]}))});function bc(e){const{items:t,componentSize:n,selectedValue:r,changeSelectedItem:o,classes:i}=e,l=(0,m.useContext)(Oi);return(0,I.jsx)(mc,{componentSize:n,classes:i?.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===r,onClick:()=>{o(e),l&&l.setOpen(!1)}})})}const vc=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","defaultValue","onValueChange","selected","chips","classes","disabled","id"];function yc(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 Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(n),!0).forEach(function(t){wc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wc(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 jc=(0,m.forwardRef)(function(e,t){const{variant:n="filled",componentSize:r="medium",icon:o,fullWidth:i,label:l,error:a,placeholder:s,items:c,defaultValue:u,onValueChange:d,selected:f,chips:p,classes:h,disabled:b,id:v}=e,y=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),O=u&&!f,[w,j]=(0,m.useState)(O?c.find(e=>"item"===e.type&&e.value===u):void 0),x=O?w:f,S=(0,m.useRef)(null),P=(0,m.useRef)(null),_=(0,m.useCallback)(e=>{e.preventDefault(),b||P?.current?.click()},[P]),C=e=>{O&&j(e),d?.(e)};(0,m.useEffect)(()=>{if(x){const e=c.find(e=>"item"===e.type&&e.value===x?.value);e||C(e)}},[c,x]);const A=v??Ne(),E=!!a&&!l;return(0,I.jsxs)(Bo,{variant:n,componentSize:r,fullWidth:i,label:l,error:a,inputId:A,onLabelClick:_,hasStartIcon:!!o||!!x?.icon,hasArrow:!0,hasErrorIcon:E,chipsMode:p&&!!x,classes:Oc(Oc({},h),{},{wrapper:g()(o?"select-module__with-icon__sdr2r":void 0,x?.icon?"select-module__with-item-icon__j4VL9":void 0,h?.wrapper)}),children:[(0,I.jsx)("input",Oc(Oc({ref:q([S,t]),id:A,className:g()(To,"select-module__input__ajhdt",h?.input),placeholder:p&&x?void 0:s},y),{},{value:p?"":x?.name??"",onChange:()=>{},onClick:_,disabled:b})),p&&!!x&&(0,I.jsx)("span",{className:g()(No,h?.chips),children:(0,I.jsx)(bi,{componentSize:r,disabled:b,onClick:()=>P?.current?.click(),onRemove:()=>C(void 0),children:x.name})}),!!o&&(0,I.jsx)("span",{onClick:_,className:g()("select-module__icon__eKwKi",h?.icon),children:o}),!!x?.icon&&(0,I.jsx)("span",{onClick:_,className:g()("select-module__item-icon__qWzAS",h?.itemIcon),children:x?.icon}),(0,I.jsx)("span",{onClick:_,className:g()(Io,h?.arrow),children:(0,I.jsx)(Ks,{})}),E&&a&&(0,I.jsx)(Qo,{error:a,componentSize:r,className:h?.errorIcon}),(0,I.jsx)(Hi,{placement:"bottom-start",classes:Oc({content:g()("select-module__popover-content__jWbFy","styledScroll",h?.popoverContent)},h?.popover),containerOffset:4,description:(0,I.jsx)(bc,{items:c,classes:h,componentSize:r,selectedValue:x?.value,changeSelectedItem:C}),children:(0,I.jsx)("div",{ref:P,className:g()("select-module__popover-target__utEyc")})})]})});var xc=o(353),Sc=o.n(xc),Pc="calendarPopover-module__button__Dpl18",_c="calendarPopover-module__buttons-container__sW9eE",Cc="calendarPopover-module__calendar-container__fGMyq",Ac="calendarPopover-module__cell__fwBxE",Ec="calendarPopover-module__cell-circle__PykI1",Rc="calendarPopover-module__cell-data__fnxK0",kc="calendarPopover-module__cell-selection__jmUxe",Dc="calendarPopover-module__cell-selection-first__bRcBr",Mc="calendarPopover-module__cell-selection-last__hyv9Z",Lc="calendarPopover-module__cells-container__B6mTs",Ic="calendarPopover-module__date-time-mode__eJCHs",Nc="calendarPopover-module__medium__pk6es",zc="calendarPopover-module__month__FCpIG",Tc="calendarPopover-module__month-cell-selection__phhRr",Fc="calendarPopover-module__month-cell-selection-first__lSKG9",Vc="calendarPopover-module__month-cell-selection-last__IKh98",Hc="calendarPopover-module__month-view__wNOC9",qc="calendarPopover-module__navigation-arrow__oiWet",Bc="calendarPopover-module__navigation-container__Hut1m",Kc="calendarPopover-module__navigation-title__sp73c",Wc="calendarPopover-module__navigation-value__Ht40y",Gc="calendarPopover-module__root__R8QOY",Uc="calendarPopover-module__small__GlV62",Yc="calendarPopover-module__time-container__x4jnu",Qc="calendarPopover-module__time-divider__aRbbR",Jc="calendarPopover-module__time-selection-marker__bVI6A",Zc="calendarPopover-module__year__BTz_s";const Xc=(e,t,n,r=1,o=!1)=>e(o?Date.UTC(t,n,r):new Date(t,n,r));function $c(e){const{values:t,selectedValue:n,onSelect:r}=e,o=t.length,i=36*(o+n),l=(0,m.useRef)(null),a=(0,m.useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,m.useEffect)(()=>{const e=l.current;e&&(Math.abs(e.scrollTop-i)<=1||(e.scrollTop=i))},[i]);const s=(0,m.useCallback)(e=>t[(e%o+o)%o],[t,o]),c=(0,m.useCallback)(()=>{const e=l.current;if(!e)return;const t=Math.round(e.scrollTop/36),i=s(t);i!==n&&r(i),(t<o||t>=2*o)&&(e.scrollTop=36*(o+i))},[s,r,n,o]),u=(0,m.useCallback)(e=>()=>{const t=l.current;t?(t.scrollTo({top:36*(o+e),behavior:"smooth"}),r(e)):r(e)},[r,o]);return(0,I.jsx)("div",{ref:l,className:g()("timeWheelColumn-module__time-wheel__fk6Jj"),onScroll:c,tabIndex:-1,children:a.map((e,t)=>(0,I.jsx)("button",{type:"button",className:g()("timeWheelColumn-module__time-wheel-button__c61An","timeWheelColumn-module__time-wheel-item__Gjqub",e===n&&"timeWheelColumn-module__time-wheel-item-active__PLWg9"),onClick:u(e),children:(0,I.jsx)(fe,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function eu(e){const{dayjs:t,componentSize:n,isPeriod:r=!0,valueType:o="date",initStartDate:i,initEndDate:l,changeDates:s,onClear:c,useUtc:u=!1,classes:d}=e,f=t??Sc(),p="dateTime"===o&&!r,[h,b]=(0,m.useState)("year"===o?"yearsRange":"month"),[v,y]=(0,m.useState)(()=>{if(i){const e=f(i);return{year:e.year(),month:e.month()}}const e=f();return{year:e.year(),month:e.month()}}),[O,w]=(0,m.useState)(i?p?f(i).second(0).millisecond(0).valueOf():f(i).startOf("D").valueOf():void 0),[j,x]=(0,m.useState)(l?f(l).startOf("D").valueOf():void 0),[S,P]=(0,m.useState)(p&&i?f(i).hour():0),[_,C]=(0,m.useState)(p&&i?f(i).minute():0),A=(0,m.useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),E=(0,m.useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),R=(0,m.useMemo)(()=>O?f(O).startOf("D").valueOf():void 0,[O,f]),k=(0,m.useMemo)(()=>j?f(j).startOf("D").valueOf():void 0,[j,f]),D=(0,m.useMemo)(()=>R?f(R).startOf("M").valueOf():void 0,[R,f]),M=(0,m.useMemo)(()=>k?f(k).startOf("M").valueOf():void 0,[k,f]),L=(0,m.useMemo)(()=>R?f(R).year():void 0,[R,f]),N=(0,m.useMemo)(()=>k?f(k).year():void 0,[k,f]),z=(0,m.useMemo)(()=>Xc(f,v.year,v.month,1,u).startOf("month"===h?"M":"y"),[v,h,f,u]),T=z.daysInMonth();let F=z.startOf("M").day()-1;F<0&&(F=6),(0,m.useEffect)(()=>O||j?"year"===o?!r&&O?void s(f(O).format("YYYY")):r&&O&&j?void s(f(O).format("YYYY"),f(j).format("YYYY")):void 0:void(p&&O?s(f(O).second(0).millisecond(0).format()):r||!O?r&&O&&j&&s(f(O).format(),f(j).format()):s(f(O).format())):(c?.(),void s()),[O,j,r,o,p,f,s,c]);const H=(0,m.useCallback)((e,t,n)=>f(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[f]);(0,m.useEffect)(()=>{if(!p||!O)return;const e=H(O,S,_);e!==O&&w(e)},[p,O,S,_,H]);const q=(0,m.useCallback)(e=>()=>{const t=Xc(f,v.year,v.month,1,u),n="yearsRange"===h?20*e:e,r="month"===h?"month":"year",o=t.add(n,r);y({month:o.month(),year:o.year()})},[h,v,f,u]),B=(0,m.useCallback)(()=>{"year"!==o&&b("month"===h?"year":"year"===h?"yearsRange":"month")},[h,o]),K=(0,m.useCallback)(e=>()=>{y({month:e.month(),year:e.year()}),b("month")},[]),W=(0,m.useCallback)(e=>()=>{const t=Xc(f,e,0,1,u).startOf("y").valueOf();if(!r)return w(p&&R===t?void 0:p||O!==t?p?H(t,S,_):t:void 0),void x(void 0);O&&j?t===O?w(void 0):(t===j||w(t),x(void 0)):O?t===O?w(void 0):t<O?(x(O),w(t)):x(t):j?t===j?x(void 0):t<j?w(t):(w(j),x(t)):w(t)},[H,j,p,r,S,_,O,R,f,u]),G=(0,m.useMemo)(()=>{const e=z.year();return 20*Math.floor(e/20)},[z]),U=(0,m.useCallback)(e=>()=>{if(!r)return w(O===e?void 0:e),void x(void 0);O&&j?e===O?w(void 0):(e===j||w(e),x(void 0)):O?e===O?w(void 0):e<O?(x(O),w(e)):x(e):j?e===j?x(void 0):e<j?w(e):(w(j),x(e)):w(e)},[O,j,r]),Y=(0,m.useCallback)(e=>{w(void 0),x(void 0),p&&(P(0),C(0)),e.currentTarget.blur()},[p]),Q=(0,m.useCallback)(e=>{const t=f();y({year:t.year(),month:t.month()}),e.currentTarget.blur()},[f]);return(0,I.jsxs)("div",{className:g()(Gc,a[n],p&&Ic,d?.root),children:[(0,I.jsxs)("div",{className:g()(Cc,"month"===h&&Hc),children:[(0,I.jsx)("div",{className:g()(_c,d?.buttonsContainer),children:(0,I.jsxs)(Qs,{fillEvenly:!0,children:[(0,I.jsx)(V,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:Y,children:"Сбросить"}),"year"!==o&&(0,I.jsx)(V,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:Q,children:"Сегодня"})]})}),(0,I.jsxs)("div",{className:g()(Bc,d?.navigationContainer),children:[(0,I.jsx)("button",{type:"button",className:g()(Pc,qc,d?.navigationArrow),onClick:q(-1),"aria-label":"Предыдущий период",children:(0,I.jsx)(yl,{})}),(0,I.jsx)("button",{type:"button",className:g()(Pc,Wc,d?.navigationValue),onClick:B,children:(0,I.jsxs)(fe,{variant:"subtitle1",className:g()(Kc,d?.navigationTitle),children:["month"===h&&z.format("MMMM YYYY"),"year"===h&&z.format("YYYY"),"yearsRange"===h&&`${G} - ${G+19}`]})}),(0,I.jsx)("button",{type:"button",className:g()(Pc,qc,d?.navigationArrow),onClick:q(1),"aria-label":"Следующий период",children:(0,I.jsx)(xl,{})})]}),(0,I.jsxs)("div",{className:g()(Lc,d?.cellsContainer),children:["yearsRange"===h&&(0,I.jsx)(I.Fragment,{children:[...Array(20)].map((e,t)=>{const n=G+t,i="year"===o?W(n):()=>{y({month:0,year:n}),b("year")},l="year"===o&&void 0!==L&&(n===L||n===N);let a=!1,s=!1,c=!1;return void 0!==L&&(r?void 0!==N&&(L===N?n===L&&(a=!0):n>=L&&n<=N&&(a=!0,n===L?s=!0:n===N&&(c=!0))):"year"!==o&&n===L&&(a=!0)),(0,I.jsxs)("button",{type:"button",className:g()(Pc,Ac,Zc,d?.cell,d?.year),onClick:i,children:[l&&(0,I.jsx)("span",{className:g()(Ec,d?.cellCircle)}),a&&(0,I.jsx)("span",{className:g()(kc,d?.cellSelection,s&&Dc,s&&d?.cellSelectionFirst,c&&Mc,c&&d?.cellSelectionLast)}),(0,I.jsx)(fe,{variant:"subtitle1",className:g()(Rc,d?.cellData),children:n})]},`cell-year-${n}`)})}),"year"===h&&(0,I.jsx)(I.Fragment,{children:[...Array(12)].map((e,t)=>{const n=z.add(t,"M"),i=n.valueOf();let l=!1,a=!1,s=!1;return r&&"year"!==o&&void 0!==D&&void 0!==M?D===M?i===D&&(l=!0):i>=D&&i<=M&&(l=!0,i===D?a=!0:i===M&&(s=!0)):r||"year"===o||void 0===D?l=r?void 0!==D&&void 0!==M&&i>=D&&i<=M:void 0!==D&&i===D:i===D&&(l=!0),(0,I.jsxs)("button",{type:"button",className:g()(Pc,Ac,zc,d?.cell,d?.month),onClick:K(n),children:[l&&(0,I.jsx)("span",{className:g()(Tc,d?.monthCellSelection,a&&Fc,a&&d?.monthCellSelectionFirst,s&&Vc,s&&d?.monthCellSelectionLast)}),(0,I.jsx)(fe,{variant:"subtitle1",className:g()(Rc,d?.cellData),children:n.format("MMMM")})]},`cell-month-${t}`)})}),"month"===h&&(0,I.jsxs)(I.Fragment,{children:[[...Array(F)].map((e,t)=>(0,I.jsx)("div",{className:g()(Ac,d?.cell)},`empty-cell-${t}`)),[...Array(T)].map((e,t)=>{const n=z.add(t,"d").valueOf();return(0,I.jsxs)("button",{type:"button",className:g()(Pc,Ac,d?.cell),onClick:U(n),children:[(n===R||n===k)&&(0,I.jsx)("span",{className:g()(Ec,d?.cellCircle)}),void 0!==R&&void 0!==k&&n>=R&&n<=k&&(0,I.jsx)("span",{className:g()(kc,d?.cellSelection,n===R&&Dc,n===R&&d?.cellSelectionFirst,n===k&&Mc,n===k&&d?.cellSelectionLast)}),(0,I.jsx)(fe,{variant:"subtitle1",className:g()(Rc,d?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),p&&(0,I.jsxs)("div",{className:g()(Yc),children:[(0,I.jsx)("div",{className:g()(Jc)}),(0,I.jsx)($c,{values:A,selectedValue:S,onSelect:P}),(0,I.jsx)(fe,{variant:"subtitle1",className:g()(Qc),children:":"}),(0,I.jsx)($c,{values:E,selectedValue:_,onSelect:C})]})]})}const tu=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","error","placeholder","defaultValues","values","onClear","onValueChange","dayjs","useUtc","classes","id","onFocus","onBlur"];function nu(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 ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nu(Object(n),!0).forEach(function(t){ou(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ou(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 iu=(0,m.forwardRef)((e,t)=>{let{variant:n="filled",isPeriod:r=!1,valueType:o="date",defaultOpen:i=!1,componentSize:l="medium",fullWidth:a,label:s,error:c,placeholder:u,defaultValues:d,values:f,onClear:p,onValueChange:h,dayjs:b,useUtc:v=!1,classes:y,id:O,onFocus:w,onBlur:j}=e,x=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,tu);const S=b??Sc(),[P,_]=(0,m.useState)(void 0!==f?f:d),[C,A]=(0,m.useState)(i),E=(0,m.useRef)(P);(0,m.useEffect)(()=>{void 0!==f&&_(f)},[f]),(0,m.useEffect)(()=>{void 0===f&&void 0!==d&&_(d)},[d,f]),(0,m.useEffect)(()=>{E.current=P},[P]);const R=r&&"dateTime"===o?"date":o,k=(0,m.useRef)(null),D=pe(),M=O??D,L=(0,m.useCallback)(e=>{A(!0),w?.(e)},[w]),N=(0,m.useCallback)(e=>{C||j?.(e)},[C,j]),z=(0,m.useCallback)(e=>{if(A(e),!e){const e=E.current;void 0!==e&&h?.(e);const t=k.current;if(!t)return;if(document.activeElement===t)return void t.blur();j?.({target:t,currentTarget:t})}},[j,h]),T=(0,m.useCallback)(()=>{k.current?.focus()},[]),F=!!c&&!s,V=(0,m.useCallback)((e,t)=>{const n=r?[e,t]:[e],o=E.current,i=(o?.length??0)===n.length&&o?.every((e,t)=>e===n[t]);i||(E.current=n,_(n))},[r]);return(0,I.jsxs)(Bo,{variant:n,componentSize:l,fullWidth:a,label:s,error:c,inputId:M,hasArrow:!0,hasErrorIcon:F,classes:y,children:[(0,I.jsx)("input",ru(ru({ref:q([k,t]),id:M,className:g()(To,"dateTime-module__input__p1lxx",y?.input),placeholder:u},x),{},{value:P?.[0]?r&&P[1]?`${S(P[0]).format("year"===R?"YYYY":"DD.MM.YYYY")} - ${S(P[1]).format("year"===R?"YYYY":"DD.MM.YYYY")}`:`${S(P[0]).format("year"===R?"YYYY":"dateTime"===R?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:L,onBlur:N})),(0,I.jsx)("span",{onClick:T,className:g()(Io,y?.icon),children:(0,I.jsx)(kl,{})}),F&&c&&(0,I.jsx)(Qo,{error:c,componentSize:l,className:y?.errorIcon}),(0,I.jsx)(Hi,{placement:"bottom-start",open:C,onOpenChange:z,classes:ru(ru({},y?.popover),{},{content:"dateTime-module__popover-content__I6nGv"}),containerOffset:4,description:(0,I.jsx)(eu,{dayjs:S,useUtc:v,classes:y,componentSize:"small"===l||"medium"===l?l:"medium",isPeriod:r,valueType:R,initStartDate:P?.[0],initEndDate:P?.[1],changeDates:V,onClear:p}),children:(0,I.jsx)("div",{className:g()("dateTime-module__popover-target__PS8vx")})})]})});function lu(){return(lu=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 au(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 su(e){var t=(0,m.useRef)(e),n=(0,m.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var cu=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},uu=function(e){return"touches"in e},du=function(e){return e&&e.ownerDocument.defaultView||self},fu=function(e,t,n){var r=e.getBoundingClientRect(),o=uu(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:cu((o.pageX-(r.left+du(e).pageXOffset))/r.width),top:cu((o.pageY-(r.top+du(e).pageYOffset))/r.height)}},pu=function(e){!uu(e)&&e.preventDefault()},hu=m.memo(function(e){var t=e.onMove,n=e.onKey,r=au(e,["onMove","onKey"]),o=(0,m.useRef)(null),i=su(t),l=su(n),a=(0,m.useRef)(null),s=(0,m.useRef)(!1),c=(0,m.useMemo)(function(){var e=function(e){pu(e),(uu(e)?e.touches.length>0:e.buttons>0)&&o.current?i(fu(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=s.current,i=du(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&&(pu(t),!function(e,t){return t&&!uu(e)}(t,s.current)&&r)){if(uu(t)){s.current=!0;var l=t.changedTouches||[];l.length&&(a.current=l[0].identifier)}r.focus(),i(fu(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,m.useEffect)(function(){return f},[f]),m.createElement("div",lu({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),gu=function(e){return e.filter(Boolean).join(" ")},mu=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=gu(["react-colorful__pointer",e.className]);return m.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},bu=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},vu=(Math.PI,function(e){return Su(yu(e))}),yu=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?bu(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?bu(parseInt(e.substring(6,8),16)/255,2):1}},Ou=function(e){var t=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:bu(e.h),s:bu(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:bu(o/2),a:bu(r,2)}}(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},wu=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:bu(255*[r,a,l,l,s,r][c]),g:bu(255*[s,r,r,a,l,l][c]),b:bu(255*[l,l,s,r,r,a][c]),a:bu(o,2)}},ju=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},xu=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?ju(bu(255*o)):"";return"#"+ju(t)+ju(n)+ju(r)+i},Su=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:bu(60*(a<0?a+6:a)),s:bu(i?l/i*100:0),v:bu(i/255*100),a:o}},Pu=m.memo(function(e){var t=e.hue,n=e.onChange,r=gu(["react-colorful__hue",e.className]);return m.createElement("div",{className:r},m.createElement(hu,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:cu(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":bu(t),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(mu,{className:"react-colorful__hue-pointer",left:t/360,color:Ou({h:t,s:100,v:100,a:1})})))}),_u=m.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Ou({h:t.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:r},m.createElement(hu,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:cu(t.s+100*e.left,0,100),v:cu(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+bu(t.s)+"%, Brightness "+bu(t.v)+"%"},m.createElement(mu,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Ou(t)})))}),Cu=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Au(e,t,n){var r=su(n),o=(0,m.useState)(function(){return e.toHsva(t)}),i=o[0],l=o[1],a=(0,m.useRef)({color:t,hsva:i});(0,m.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,m.useEffect)(function(){var t;Cu(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,m.useCallback)(function(e){l(function(t){return Object.assign({},t,e)})},[]);return[i,s]}var Eu="undefined"!=typeof window?m.useLayoutEffect:m.useEffect,Ru=new Map,ku=function(e){var t,n=e.className,r=e.colorModel,i=e.color,l=void 0===i?r.defaultColor:i,a=e.onChange,s=au(e,["className","colorModel","color","onChange"]),c=(0,m.useRef)(null);t=c,Eu(function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!Ru.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}',Ru.set(e,n);var r=o.nc;r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[]);var u=Au(r,l,a),d=u[0],f=u[1],p=gu(["react-colorful",n]);return m.createElement("div",lu({},s,{ref:c,className:p}),m.createElement(_u,{hsva:d,onChange:f}),m.createElement(Pu,{hue:d.h,onChange:f,className:"react-colorful__last-control"}))},Du={defaultColor:"000",toHsva:vu,fromHsva:function(e){return function(e){return xu(wu(e))}({h:e.h,s:e.s,v:e.v,a:1})},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||Cu(yu(e),yu(t))}},Mu=function(e){return m.createElement(ku,lu({},e,{colorModel:Du}))};const Lu=["variant","componentSize","fullWidth","label","error","classes","placeholder","disabled","defaultValue","id","onValueChange"];function Iu(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iu(Object(n),!0).forEach(function(t){zu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zu(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 Tu=(0,m.forwardRef)(function(e,t){const{variant:n="outlined",componentSize:r="medium",fullWidth:o,label:i,error:l,classes:a,placeholder:s,disabled:c,defaultValue:u,id:d,onValueChange: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,Lu),[h,b]=(0,m.useState)(u?.toString()??"#AABBCC"),v=(0,m.useRef)(null),y=(0,m.useRef)(null),O=(0,m.useCallback)(e=>{b(e.toUpperCase()),f?.(e.toUpperCase())},[]),w=(0,m.useCallback)(e=>{e.preventDefault(),c||y?.current?.click()},[y,c]),j=d??Ne(),x=!!l&&!i;return(0,I.jsxs)(Bo,{variant:n,componentSize:r,fullWidth:o,label:i,error:l,inputId:j,onLabelClick:w,hasStartIcon:!0,hasArrow:!0,hasErrorIcon:x,classes:Nu(Nu({},a),{},{root:g()("colorPicker-module__root__yWPxF",a?.root)}),children:[(0,I.jsx)("input",Nu(Nu({ref:q([v,t]),id:j,className:g()(To,"colorPicker-module__input__gaesN",a?.input),placeholder:s},p),{},{value:h,onChange:()=>{},onClick:w,disabled:c})),(0,I.jsx)("span",{onClick:w,className:g()("colorPicker-module__swatch__MvnQ3",a?.icon),style:{backgroundColor:h}}),(0,I.jsx)("span",{onClick:w,className:g()(Io,a?.arrow),children:(0,I.jsx)(Ks,{})}),x&&l&&(0,I.jsx)(Qo,{error:l,componentSize:r,className:a?.errorIcon}),(0,I.jsx)(Hi,{placement:"bottom-start",classes:Nu({content:g()("colorPicker-module__popover-content__lql7r",a?.popoverContent)},a?.popover),containerOffset:4,description:(0,I.jsx)(Mu,{color:h,onChange:O}),children:(0,I.jsx)("div",{ref:y,className:g()("colorPicker-module__popover-target__M5buG")})})]})});var Fu="input-module__field-icon__OVtdo";const Vu=["variant","componentSize","fullWidth","label","error","startIcon","endIcon","classes","placeholder","id","type","onChange"];function Hu(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 qu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(n),!0).forEach(function(t){Bu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bu(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 Ku=(0,m.forwardRef)((e,t)=>{let{variant:n="outlined",componentSize:r="medium",fullWidth:o,label:i,error:l,startIcon:a,endIcon:s,classes:c,placeholder:u,id:d,type:f,onChange:p}=e,h=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,Vu);const b=(0,m.useRef)(null),[v,y]=(0,m.useState)(""),O=pe(),w=d??O,j="file"===f,x=!!l&&!j&&!i,S=!j&&!!s,P=()=>{b.current?.focus()};return(0,I.jsxs)(Bo,{variant:n,componentSize:r,fullWidth:o,label:i,error:l,inputId:w,hasStartIcon:!j&&!!a,hasEndIcon:S||x,hasDualEndIcon:S&&x,classes:c,children:[j?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",qu({ref:q([b,t]),id:w,className:g()("input-module__file-input__Hj1fC",c?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];y(t?.name??""),p?.(e)}},h)),(0,I.jsxs)("div",{role:"button",tabIndex:0,className:g()(To,"input-module__file-display__GKw0F",c?.input),onClick:()=>b.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),b.current?.click())},children:[(0,I.jsx)("span",{className:g()("input-module__file-name__AVwRH",!v&&"input-module__placeholder__QpTXt"),children:v||u}),(0,I.jsx)(rl,{size:20,className:"input-module__attach-icon__W3URr"})]})]}):(0,I.jsx)("input",qu({ref:q([b,t]),id:w,className:g()(To,"input-module__input__Xce3x",c?.input),placeholder:u,type:f,autoComplete:"off",onChange:p},h)),!!a&&!j&&(0,I.jsx)("span",{onClick:P,className:g()("fieldShell-module__start-icon__FNrDk",Fu,c?.startIcon),children:a}),S&&(0,I.jsx)("span",{onClick:P,className:g()(zo,Fu,c?.endIcon),children:s}),x&&l&&(0,I.jsx)(Qo,{error:l,componentSize:r,className:c?.errorIcon})]})});var Wu="wrapForLabel-module__medium__xK1gW",Gu="wrapForLabel-module__root__qo0J8",Uu="wrapForLabel-module__small__esSsd";const Yu=["componentSize","children","classes","className"];function Qu(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 Ju(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(n),!0).forEach(function(t){Zu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zu(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 Xu=(0,m.forwardRef)(function(e,t){let{componentSize:n="medium",children:r,classes:o,className: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,Yu);return(0,I.jsx)("div",Ju(Ju({ref:t,className:g()(Gu,s[n],i,o?.root)},l),{},{children:r}))}),$u=e=>"string"==typeof e,ed=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},td=e=>null==e?"":String(e),nd=/###/g,rd=e=>e&&e.includes("###")?e.replace(nd,"."):e,od=e=>!e||$u(e),id=(e,t,n)=>{const r=$u(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(od(e))return{};const t=rd(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return od(e)?{}:{obj:e,k:rd(r[o])}},ld=(e,t,n)=>{const{obj:r,k:o}=id(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=id(e,l,Object);for(;void 0===a.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),a=id(e,l,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},ad=(e,t)=>{const{obj:n,k:r}=id(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},sd=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?$u(e[r])||e[r]instanceof String||$u(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):sd(e[r],t[r],n):e[r]=t[r]);return e},cd=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),ud={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},dd=e=>$u(e)?e.replace(/[&<>"'\/]/g,e=>ud[e]):e,fd=[" ",",","?","!",";"],pd=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),hd=(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},gd=e=>e?.replace(/_/g,"-"),md={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 bd{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||md,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=>$u(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),$u(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new bd(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new bd(this.logger,e)}}var vd=new bd;class yd{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 Od extends yd{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):$u(n)&&o?l.push(...n.split(o)):l.push(n)));const a=ad(this.data,l);return a||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!a&&i&&$u(n)?hd(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),ld(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)($u(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=ad(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?sd(a,n,o):a={...a,...n},ld(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 wd={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 jd=Symbol("i18next/PATH_KEY");function xd(e,t){const{[jd]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===jd?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 Sd=e=>!$u(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Pd extends yd{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=vd.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=Sd(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=fd.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=pd.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:$u(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:$u(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=xd(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?xd(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 h=f?.usedKey||l,g=f?.exactUsedKey||l,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!$u(r.count),y=Pd.hasDefaultValue(r),O=v?this.pluralResolver.getSuffix(u,r.count,r):"",w=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",j=v&&!r.ordinal&&0===r.count,x=j&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${O}`]||r[`defaultValue${w}`]||r.defaultValue;let S=p;b&&!p&&y&&(S=x);const P=Sd(S),_=Object.prototype.toString.apply(S);if(!(b&&S&&P)||["[object Number]","[object Function]","[object RegExp]"].includes(_)||$u(m)&&Array.isArray(S))if(b&&$u(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=x),this.isValidLookup(p)||(o=!0,p=l);const a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=y&&x!==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?x: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);j&&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}`]||x)})}):n(e,l,x))}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(h,S,{...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(S),t=e?[]:{},n=e?g:h;for(const e in S)if(Object.prototype.hasOwnProperty.call(S,e)){const o=`${n}${i}${e}`;t[e]=y&&!p?this.translate(o,{...r,defaultValue:Sd(x)?x[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...r,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=S[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=$u(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&&!$u(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=$u(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=wd.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 $u(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?xd(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&&!$u(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&($u(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&&!$u(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 _d{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=vd.create("languageUtils")}getScriptPartFromCode(e){if(!(e=gd(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=gd(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if($u(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)),$u(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 $u(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))):$u(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||o(this.formatLanguageCode(e))}),r}}const Cd={zero:0,one:1,two:2,few:3,many:4,other:5},Ad={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ed{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=vd.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=gd("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!"),Ad;if(!e.match(/-|_/))return Ad;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)=>Cd[e]-Cd[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 Rd=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=ad(e,n);return void 0!==r?r:ad(t,n)})(e,t,n);return!i&&o&&$u(n)&&(i=hd(e,n,r),void 0===i&&(i=hd(t,n,r))),i},kd=e=>e.replace(/\$/g,"$$$$");class Dd{constructor(e={}){this.logger=vd.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:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:dd,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?cd(o):i||"{{",this.suffix=l?cd(l):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u?cd(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?cd(c):"",this.nestingPrefix=d?cd(d):f||cd("$t("),this.nestingSuffix=p?cd(p):h||cd(")"),this.nestingOptionsSeparator=g||",",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=Rd(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(Rd(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=>kd(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?kd(this.escape(e)):kd(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=$u(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 $u(i)||this.useRawValueToEscape||(i=td(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(`${cd(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&&!$u(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&&!$u(o))return o;$u(o)||(o=td(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 Md=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(gd(r),o),t[l]=a),a(n)}},Ld=e=>(t,n,r)=>e(gd(n),r)(t);class Id{constructor(e={}){this.logger=vd.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?Md:Ld;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()]=Md(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 Nd extends yd{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=vd.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}=id(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();$u(e)&&(e=this.languageUtils.toResolveHierarchy(e)),$u(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 zd=()=>({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]),$u(e[1])&&(t.defaultValue=e[1]),$u(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}),Td=e=>($u(e.ns)&&(e.ns=[e.ns]),$u(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),$u(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Fd=()=>{};class Vd extends yd{constructor(e={},t){var n;if(super(),this.options=Td(e),this.services={},this.logger=vd,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&&($u(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=zd();this.options={...n,...this.options,...Td(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?vd.init(r(this.modules.logger),this.options):vd.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Id;const t=new _d(this.options);this.store=new Od(this.options.resources,this.options);const n=this.services;n.logger=vd,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Ed(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 Dd(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Nd(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 Pd(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=Fd),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=ed(),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=Fd){let n=t;const r=$u(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=ed();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=Fd),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&&wd.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=ed();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=$u(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes($u(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=xd(i.keyPrefix,l));const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=xd(e,l)),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=xd(e,l)),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return $u(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=ed();return this.options.ns?($u(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=ed();$u(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 _d(zd());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 Vd(e,t);return n.createInstance=Vd.createInstance,n}cloneInstance(e={},t=Fd){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new Vd(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 Od(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...zd().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new Dd(n)}return o.translator=new Pd(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 Hd=Vd.createInstance();Hd.createInstance,Hd.dir,Hd.init,Hd.loadResources,Hd.reloadResources,Hd.use,Hd.changeLanguage,Hd.getFixedT,Hd.t,Hd.exists,Hd.setDefaultNamespace,Hd.hasLoadedNamespace,Hd.loadNamespaces,Hd.loadLanguages,o(915),Object.create(null);const qd=(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);Yd(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},Bd={},Kd=(e,t,n,r)=>{Yd(n)&&Bd[n]||(Yd(n)&&(Bd[n]=new Date),qd(e,t,n,r))},Wd=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Gd=(e,t,n)=>{e.loadNamespaces(t,Wd(e,n))},Ud=(e,t,n,r)=>{if(Yd(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Gd(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Wd(e,r))},Yd=e=>"string"==typeof e,Qd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Jd={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Zd=e=>Jd[e];let Xd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Qd,Zd),transDefaultProps:void 0};const $d=(0,m.createContext)();class ef{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}Error;const tf={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","©":"©","®":"®","™":"™","…":"…","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","•":"•","′":"′","″":"″","‹":"‹","›":"›","§":"§","¶":"¶","·":"·"," ":" "," ":" "," ":" ","€":"€","£":"£","¥":"¥","¢":"¢","¤":"¤","×":"×","÷":"÷","−":"−","±":"±","≠":"≠","≤":"≤","≥":"≥","≈":"≈","≡":"≡","∞":"∞","∫":"∫","∑":"∑","∏":"∏","√":"√","∂":"∂","‰":"‰","°":"°","µ":"µ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ","¡":"¡","¿":"¿","ƒ":"ƒ","ˆ":"ˆ","˜":"˜","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ª":"ª","º":"º","¯":"¯","´":"´","¸":"¸","¹":"¹","²":"²","³":"³","¼":"¼","½":"½","¾":"¾","♠":"♠","♣":"♣","♥":"♥","♦":"♦","◊":"◊","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","ℵ":"ℵ"};new RegExp(Object.keys(tf).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var nf=o(888);const rf={t:(e,t)=>{if(Yd(t))return t;if("object"==typeof(n=t)&&null!==n&&Yd(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},of=()=>()=>{},lf=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=(0,m.useContext)($d)||{},i=n||r||void 0;i&&!i.reportNamespaces&&(i.reportNamespaces=new ef),i||Kd(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=(0,m.useMemo)(()=>({...Xd,...i?.options?.react,...t}),[i,t]),{useSuspense:a,keyPrefix:s}=l,c=e||o||i?.options?.defaultNS,u=Yd(c)?[c]:c||["translation"],d=(0,m.useMemo)(()=>u,u);i?.reportNamespaces?.addUsedNamespaces?.(d);const f=(0,m.useRef)(0),p=(0,m.useCallback)(e=>{if(!i)return of;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]),h=(0,m.useRef)(),g=(0,m.useCallback)(()=>{if(!i)return rf;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}}):(Kd(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=h.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 h.current=a,a},[i,d,s,l,t.lng]),[b,v]=(0,m.useState)(0),{t:y,ready:O}=(0,nf.useSyncExternalStore)(p,g,g);(0,m.useEffect)(()=>{if(i&&!O&&!a){const e=()=>v(e=>e+1);t.lng?Ud(i,t.lng,d,e):Gd(i,d,e)}},[i,t.lng,d,O,a,b]);const w=i||{},j=(0,m.useRef)(null),x=(0,m.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,m.useMemo)(()=>{const e=w,t=e?.language;let n=e;e&&(j.current&&j.current.__original===e?x.current!==t?(n=S(e),j.current=n,x.current=t):n=j.current:(n=S(e),j.current=n,x.current=t));const r=O||a?y:(...e)=>(Kd(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."),y(...e)),o=[r,n,O];return o.t=r,o.i18n=n,o.ready=O,o},[y,w,O,w.resolvedLanguage,w.language,w.languages]);if(i&&a&&!O)throw new Promise(e=>{const n=()=>e();t.lng?Ud(i,t.lng,d,n):Gd(i,d,n)});return P},af=()=>{const{t:e,i18n:t}=lf();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}};function sf(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 cf(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 uf=["items","selected","disableSearch","isDisabled","actionWithSelected","onChangeItem","classes","className"];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}const hf=(0,m.forwardRef)(function(e,t){let{items:n,selected:r,disableSearch:o,isDisabled:i,actionWithSelected:l,onChangeItem:a,classes:s,className: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,uf);const{t:d}=af(),[f,p]=(0,m.useState)(""),h=(0,m.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?sf(Object(n),!0).forEach(function(t){cf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]))(n,f,r),[n,f,r]),b=(0,m.useMemo)(()=>n.filter(e=>!!r[e.value]),[n,r]),v=(0,m.useCallback)(e=>{const t=!r[e.value];a&&a(e);const n=ff(ff({},r),{},{[e.value]:t});l(n)},[r,a,l]),y=(0,m.useCallback)(()=>{const e=ff({},r);h.forEach(t=>{e[t.value]=!0}),l(e)},[r,h,l]),O=(0,m.useCallback)(()=>{const e=ff({},r);b.forEach(t=>{delete e[t.value]}),l(e)},[r,b,l]),w=(0,m.useCallback)(e=>{p(e.target.value)},[]),j=(0,m.useCallback)(e=>t=>{t.stopPropagation(),v(e)},[v]);return(0,I.jsxs)("div",ff(ff({ref:t,className:g()("checklist-module__root__AKDzG",c,s?.root)},u),{},{children:[" ",!o&&(0,I.jsx)(Ku,{variant:"outlined",startIcon:(0,I.jsx)(Ea,{}),placeholder:d("Поиск..."),disabled:i,value:f,fullWidth:!0,classes:s?.searchInput,onChange:w}),(0,I.jsxs)("div",{className:g()("checklist-module__scrolled__mpmGi","styledScroll",s?.scrolled),children:[b.length>0&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:g()("checklist-module__action-wrap__rW_zg",s?.actionWrap),children:[(0,I.jsx)(fe,{className:g()(s?.typography),children:d("Выбранное")}),(0,I.jsx)(V,{variant:"text",componentSize:"small",compact:!0,disabled:i,onClick:O,className:g()(s?.button),children:d("Отменить")})]}),(0,I.jsx)("div",{children:b.map(e=>(0,I.jsx)(Me,{label:e.name,checked:!!r[e.value],onChange:j(e),disabled:i,classes:s?.checkbox},`selected-${e.value}`))})]}),!i&&!!h.length&&(0,I.jsx)(V,{variant:"text",componentSize:"small",compact:!0,disabled:i,onClick:y,className:g()(s?.button),children:d("Выбрать все")}),(0,I.jsx)("div",{children:h.map(e=>(0,I.jsx)(Me,{label:e.name,checked:!!r[e.value],onChange:j(e),disabled:i,classes:s?.checkbox},`filtered-${e.value}`))})]})]}))}),gf=["checklistWrapper"];function mf(e){const{items:t,selected:n,onSelectedChange:r,classes:o,enableSearch:i=!1,disabled:l}=e,a=(0,m.useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),s=(0,m.useMemo)(()=>{const e={};return n?.forEach(t=>{e[t]=!0}),e},[n]),c=(0,m.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},[]);r(n)},[r,t]),u=o??{},{checklistWrapper:d}=u,f=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}(u,gf);return(0,I.jsx)("div",{className:g()(d),children:(0,I.jsx)(hf,{disableSearch:!i,isDisabled:l,items:a,selected:s,actionWithSelected:c,classes:f})})}const bf=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onValueChange","selected","classes","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];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){Of(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 Of(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 wf=(0,m.forwardRef)(function(e,t){const{variant:n="filled",componentSize:r="medium",icon:o,fullWidth:i,label:l,error:a,placeholder:s,items:c,onValueChange:u,selected:d,classes:f,disabled:p,id:h,titleType:b="allValue",showSelectedCount:v=!1,enableSearch:y=!1,popoverInComponent:O=!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,bf),j="chips"===b,{t:x}=lf(),S=(0,m.useRef)(null),P=(0,m.useRef)(null),_=(0,m.useRef)(null),[C,A]=(0,m.useState)(!1),[E,R]=(0,m.useState)(),[k,D]=(0,m.useState)(0),M=(0,m.useMemo)(()=>c.filter(e=>d?.includes(e.value)),[d,c]);(0,m.useLayoutEffect)(()=>{const e=S.current;if(!e)return;const t=()=>{const{width:t}=e.getBoundingClientRect();R(t),D(e=>e+1)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),(0,m.useLayoutEffect)(()=>{j&&D(e=>e+1)},[j,M.length]);const L=(0,m.useCallback)(e=>{e.preventDefault(),p||A(e=>!e)},[p]),N=(0,m.useCallback)(e=>{u?.(e)},[u]),z=(0,m.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):""}`;case"chips":return""}})(b,M,x):"",[b,M,x]),T=h??Ne(),F=!!a&&!l;return(0,I.jsxs)(Bo,{variant:n,componentSize:r,fullWidth:i,label:l,error:a,labelExtra:v&&M.length>0?(0,I.jsx)("span",{className:g()("multiSelect-module__label-selected-count__gCPqL",f?.labelSelectedCount),children:` (${M.length})`}):void 0,inputId:T,onLabelClick:L,ref:S,hasStartIcon:!!o,hasArrow:!0,hasErrorIcon:F,hasClearButton:!!M.length,chipsMode:j,classes:f,children:[(0,I.jsx)("input",yf(yf({ref:q([P,t]),id:T,className:g()(To,"multiSelect-module__input__Hk3TU",f?.input),placeholder:j&&M.length?void 0:s},w),{},{value:j?"":z,onClick:L,disabled:p,readOnly:!0,title:j?void 0:M.map(e=>e.name).join(", "),autoComplete:"off"})),j&&!!M.length&&(0,I.jsx)("span",{className:g()(No,"multiSelect-module__chips__CUViE",f?.chips),children:M.map(e=>(0,I.jsx)(bi,{componentSize:r,disabled:p,onClick:()=>{p||A(e=>!e)},onRemove:()=>{const t=M.filter(t=>t.value!==e.value);u?.(t.length?t:null)},children:e.name},e.value))}),!!o&&(0,I.jsx)("span",{onClick:L,className:g()("multiSelect-module__icon__TnLPX",f?.icon),children:o}),!!M.length&&(0,I.jsx)("span",{onClick:()=>{u?.(null)},className:g()("multiSelect-module__clear__CwQiH",f?.clear),children:(0,I.jsx)($o,{})}),(0,I.jsx)("span",{onClick:L,className:g()(Io,f?.arrow),children:(0,I.jsx)(Ks,{})}),F&&a&&(0,I.jsx)(Qo,{error:a,componentSize:r,className:f?.errorIcon}),(0,I.jsx)(Hi,{placement:"bottom-start",open:C,onOpenChange:A,contentStyle:E?{width:E,minWidth:E,maxWidth:E}:void 0,classes:yf({content:g()("multiSelect-module__popover-content__p_jyb",f?.popoverContent)},f?.popover),containerOffset:4,layoutVersion:k,root:O?S.current:void 0,description:(0,I.jsx)(mf,{items:c,classes:yf({searchInput:yf({root:"multiSelect-module__search-input-root__rCmDl"},f?.selectPopover?.searchInput),root:"multiSelect-module__checklist-root__hidSo",checklistWrapper:g()("multiSelect-module__checklist-wrapper__EDrnx"),scrolled:"multiSelect-module__checklist-scrolled__KC8yS"},f?.selectPopover),componentSize:r,selected:d,onSelectedChange:N,enableSearch:y,disabled:p}),children:(0,I.jsx)("div",{ref:_,className:g()("multiSelect-module__popover-target__x51qe")})})]})});var jf="radioButton-module__pressed__n_bXs",xf="radioButton-module__radio__fDsQH";const Sf=["label","componentSize","canUncheck","onUncheck","classes","id","onClick"];function Pf(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 _f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pf(Object(n),!0).forEach(function(t){Cf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cf(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 Af=(0,m.forwardRef)(function(e,t){const{label:n,componentSize:r="medium",canUncheck:o,onUncheck:i,classes:l,id:a,onClick:s}=e,c=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,Sf),u=(0,m.useRef)(null),d=(0,m.useRef)(!1),f=pe(),p=a??f;(0,m.useEffect)(()=>{const e=u.current;if(!e)return;const t=()=>e.classList.remove(jf),n=()=>{e.classList.add(jf),d.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const h=(0,m.useCallback)(e=>{o&&d.current&&(u.current.checked=!1,i?.()),s?.(e)},[o,i,s]),b="large"===r?"subtitle1":"subtitle2";return(0,I.jsxs)("div",{className:g()("radioButton-module__root__fxVmv",l?.root),children:[(0,I.jsx)("input",_f({ref:q([u,t]),type:"radio",className:g()("radioButton-module__input__O_xQT",l?.input),id:p,title:n,onClick:h},c)),(0,I.jsxs)("label",{htmlFor:p,className:g()("radioButton-module__label__A9fWR",l?.label),title:n,children:[(0,I.jsx)("span",{className:g()(xf,"radioButton-module__deselected__kGeIi",l?.radio),children:(0,I.jsx)(dl,{})}),(0,I.jsx)("span",{className:g()(xf,"radioButton-module__selected__atkc_",l?.radio),children:(0,I.jsx)(gl,{})}),!!n&&(0,I.jsx)(fe,{variant:b,className:g()("radioButton-module__label-text__KSEbB",l?.labelText),children:n})]})]})});var Ef="surface-module__medium__eX1Tu",Rf="surface-module__modal__CtpUb",kf="surface-module__overlay1__ZE9jx",Df="surface-module__overlay2__XHwFo",Mf="surface-module__panel__WAxUP",Lf="surface-module__primary__k8467",If="surface-module__root__h8d8c",Nf="surface-module__small__dHLRc";const zf=["type","componentSize","children","classes","className"];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 Ff(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){Vf(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}function Vf(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 Hf=(0,m.forwardRef)(function(e,t){let{type:n="primary",componentSize:r="medium",children:o,classes: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,zf);return(0,I.jsx)("div",Ff(Ff({ref:t,className:g()(If,l,i?.root,c[n],c[r])},a),{},{children:o}))}),qf=["withoutHeader","children","classes","className"];function Bf(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?Bf(Object(n),!0).forEach(function(t){Wf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(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}const Gf=(0,m.forwardRef)(function(e,t){let{withoutHeader:n,children:r,classes:o,className: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,qf);return(0,I.jsx)("div",Kf(Kf({ref:t,className:g()("layout-module__root__I9KVI",n?void 0:"layout-module__with-header___aKcB",i,o?.root)},l),{},{children:r}))});var Uf="tabs-module__disable-border__Vw9nt",Yf="tabs-module__disabled__e_X85",Qf="tabs-module__filled__Kzrnb",Jf="tabs-module__icon-only__qDPjH",Zf="tabs-module__medium__dvN0f",Xf="tabs-module__root__m7YiQ",$f="tabs-module__selected__YEXTT",ep="tabs-module__selected-filled__MkMIt",tp="tabs-module__small__hiwdI",np="tabs-module__tab__NoNie",rp="tabs-module__tab-border__tvFwj",op="tabs-module__tab-border-vertical__TVo15",ip="tabs-module__tab-filled__Gmwpo",lp="tabs-module__tab-icon__Kj5Oa",ap="tabs-module__tab-title__XsuJP",sp="tabs-module__tab-vertical__WQDkd",cp="tabs-module__vertical__sPO6h";const up=["items","defaultSelected","onChange","componentSize","filled","isVertical","disableBorder","allowDeselect","showTooltips","useExternalState","value","classes","className"];function dp(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 fp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(t){pp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(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}function hp(e,t){let{items:n,defaultSelected:r,onChange:o,componentSize:i="medium",filled:l=!1,isVertical:a=!1,disableBorder:s=!1,allowDeselect:c=!1,showTooltips:d=!1,useExternalState:f=!1,value:p,classes:h,className: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,up);const[y,O]=(0,m.useState)(!1),[w,j]=(0,m.useState)(r),x=f?p:w,S=e=>()=>{e.isDisabled||(e.onClick?e.onClick():f?c&&x===e.value?o?.(void 0):o?.(e.value):c&&w===e.value?j(void 0):j(e.value))};return(0,m.useEffect)(()=>{y&&!f&&o?.(w),y||O(!0)},[w,f]),(0,I.jsx)("div",fp(fp({ref:t,className:g()(Xf,l&&Qf,a&&cp,s&&Uf,u[i],b,h?.root)},v),{},{children:n.map(e=>{const t=!e.onClick&&x===e.value,n=(0,I.jsxs)("div",{className:g()(np,l&&ip,a&&sp,s&&Uf,t?$f:void 0,t&&l?ep:void 0,e.isDisabled&&Yf,h?.tab,t?h?.tabSelected:void 0,e.isDisabled?h?.tabDisabled:void 0),onClick:S(e),children:[(0,I.jsxs)("div",{className:g()(ap,d&&e.icon&&Jf,h?.tabTitle,t?h?.tabSelectedTitle:void 0),children:[e.icon&&(0,I.jsx)("span",{className:lp,children:"string"==typeof e.icon?(0,I.jsx)("span",{className:lp,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!d&&e.name&&(0,I.jsx)("span",{title:e.name,children:e.name})]}),(0,I.jsx)("div",{className:g()(rp,a&&op,s&&Uf,h?.tabBorder,t?h?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return d&&e.name?(0,I.jsx)(Lo,{label:e.name,placement:a?"right":"top",children:n},`tab-${e.value}`):n})}))}const gp=(0,m.forwardRef)(hp);function mp(e,t){return"function"==typeof e?e(t):e}function bp(e,t){return n=>{t.setState(t=>({...t,[e]:mp(n,t[e])}))}}function vp(e){return e instanceof Function}function yp(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 Op(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 wp="debugHeaders";function jp(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 xp={createTable:e=>{e.getHeaderGroups=yp(()=>[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 Sp(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...s],e)},Op(e.options,wp)),e.getCenterHeaderGroups=yp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>Sp(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),Op(e.options,wp)),e.getLeftHeaderGroups=yp(()=>[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 Sp(t,i,e,"left")},Op(e.options,wp)),e.getRightHeaderGroups=yp(()=>[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 Sp(t,i,e,"right")},Op(e.options,wp)),e.getFooterGroups=yp(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Op(e.options,wp)),e.getLeftFooterGroups=yp(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Op(e.options,wp)),e.getCenterFooterGroups=yp(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Op(e.options,wp)),e.getRightFooterGroups=yp(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Op(e.options,wp)),e.getFlatHeaders=yp(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Op(e.options,wp)),e.getLeftFlatHeaders=yp(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Op(e.options,wp)),e.getCenterFlatHeaders=yp(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Op(e.options,wp)),e.getRightFlatHeaders=yp(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Op(e.options,wp)),e.getCenterLeafHeaders=yp(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Op(e.options,wp)),e.getLeftLeafHeaders=yp(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Op(e.options,wp)),e.getRightLeafHeaders=yp(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Op(e.options,wp)),e.getLeafHeaders=yp(()=>[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()},Op(e.options,wp))}};function Sp(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=jp(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)=>jp(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 Pp=(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:yp(()=>[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:yp(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Op(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),Op(e.options,"debugRows")),_getAllCellsByColumnId:yp(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Op(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},_p={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()}}},Cp=(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))};Cp.autoRemove=e=>zp(e);const Ap=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Ap.autoRemove=e=>zp(e);const Ep=(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())};Ep.autoRemove=e=>zp(e);const Rp=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Rp.autoRemove=e=>zp(e);const kp=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});kp.autoRemove=e=>zp(e)||!(null!=e&&e.length);const Dp=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});Dp.autoRemove=e=>zp(e)||!(null!=e&&e.length);const Mp=(e,t,n)=>e.getValue(t)===n;Mp.autoRemove=e=>zp(e);const Lp=(e,t,n)=>e.getValue(t)==n;Lp.autoRemove=e=>zp(e);const Ip=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Ip.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]},Ip.autoRemove=e=>zp(e)||zp(e[0])&&zp(e[1]);const Np={includesString:Cp,includesStringSensitive:Ap,equalsString:Ep,arrIncludes:Rp,arrIncludesAll:kp,arrIncludesSome:Dp,equals:Mp,weakEquals:Lp,inNumberRange:Ip};function zp(e){return null==e||""===e}const Tp={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:bp("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?Np.includesString:"number"==typeof r?Np.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?Np.equals:Array.isArray(r)?Np.arrIncludes:Np.weakEquals},e.getFilterFn=()=>{var n,r;return vp(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:Np[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=mp(n,o?o.value:void 0);var l;if(Fp(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=mp(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!Fp(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 Fp(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Vp={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},Hp={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:bp("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?Vp.sum:"[object Date]"===Object.prototype.toString.call(r)?Vp.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return vp(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:Vp[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)}}},qp={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:bp("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=yp(e=>[Qp(t,e)],t=>t.findIndex(t=>t.id===e.id),Op(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=Qp(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=Qp(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=yp(()=>[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)},Op(e.options,"debugTable"))}},Bp={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:bp("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=yp(()=>[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))},Op(t.options,"debugRows")),e.getLeftVisibleCells=yp(()=>[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},Op(t.options,"debugRows")),e.getRightVisibleCells=yp(()=>[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},Op(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=yp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Op(e.options,"debugColumns")),e.getRightLeafColumns=yp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Op(e.options,"debugColumns")),e.getCenterLeafColumns=yp(()=>[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))},Op(e.options,"debugColumns"))}},Kp={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Wp={getDefaultColumnDef:()=>Kp,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:bp("columnSizing",e),onColumnSizingInfoChange:bp("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:Kp.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:Kp.size),null!=(o=e.columnDef.maxSize)?o:Kp.maxSize)},e.getStart=yp(e=>[e,Qp(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Op(t.options,"debugColumns")),e.getAfter=yp(e=>[e,Qp(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Op(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(),Up(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=Up(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),h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",g.moveHandler),null==p||p.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof Gp)return Gp;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 Gp=e,Gp}()&&{passive:!1};Up(i)?(null==p||p.addEventListener("touchmove",g.moveHandler,m),null==p||p.addEventListener("touchend",g.upHandler,m)):(null==p||p.addEventListener("mousemove",h.moveHandler,m),null==p||p.addEventListener("mouseup",h.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 Gp=null;function Up(e){return"touchstart"===e.type}const Yp={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:bp("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=yp(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Op(t.options,"debugRows")),e.getVisibleCells=yp(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Op(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>yp(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Op(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 Qp(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Jp={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:bp("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=>mp(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=mp(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,mp(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=mp(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=yp(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Op(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}}},Zp={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:bp("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=yp(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Op(e.options,"debugRows")),e.getBottomRows=yp(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Op(e.options,"debugRows")),e.getCenterRows=yp(()=>[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))},Op(e.options,"debugRows"))}},Xp={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:bp("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=>{$p(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=yp(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?eh(e,n):{rows:[],flatRows:[],rowsById:{}},Op(e.options,"debugTable")),e.getFilteredSelectedRowModel=yp(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?eh(e,n):{rows:[],flatRows:[],rowsById:{}},Op(e.options,"debugTable")),e.getGroupedSelectedRowModel=yp(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?eh(e,n):{rows:[],flatRows:[],rowsById:{}},Op(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 $p(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return th(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===nh(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===nh(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)}}}},$p=(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=>$p(e,t.id,n,r,o))};function eh(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=th(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 th(e,t){var n;return null!=(n=t[e.id])&&n}function nh(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()&&(th(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=nh(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const rh=/([0-9]+)/gm;function oh(e,t){return e===t?0:e>t?1:-1}function ih(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function lh(e,t){const n=e.split(rh).filter(Boolean),r=t.split(rh).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 ah={alphanumeric:(e,t,n)=>lh(ih(e.getValue(n)).toLowerCase(),ih(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>lh(ih(e.getValue(n)),ih(t.getValue(n))),text:(e,t,n)=>oh(ih(e.getValue(n)).toLowerCase(),ih(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>oh(ih(e.getValue(n)),ih(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)=>oh(e.getValue(n),t.getValue(n))},sh={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:bp("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 ah.datetime;if("string"==typeof n&&(r=!0,n.split(rh).length>1))return ah.alphanumeric}return r?ah.text:ah.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 vp(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:ah[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())}},ch=[xp,Yp,qp,Bp,_p,Tp,{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:bp("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=()=>Np.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return vp(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Np[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},sh,Hp,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:bp("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()}}}},Jp,Zp,Xp,Wp];function uh(e){var t,n;const r=[...ch,...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=mp(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:yp(()=>[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}},Op(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:yp(()=>[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:yp(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Op(e.options,"debugColumns")),getLeafColumns:yp(()=>[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]},Op(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)},Op(e,"debugColumns")),getAllFlatColumns:yp(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Op(e,"debugColumns")),_getAllFlatColumnsById:yp(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Op(e,"debugColumns")),getAllLeafColumns:yp(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),Op(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 dh(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)?m.createElement(e,t):e:null;var n}function fh(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 ph(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const hh=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},gh=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},mh=e=>e,bh=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},vh=(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(gh(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(gh(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},yh={passive:!0},Oh="undefined"==typeof window||"onscrollend"in window,wh=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&Oh?()=>{}:hh(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,yh);const c=e.options.useScrollendEvent&&Oh;return c&&n.addEventListener("scrollend",s,yh),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",s)}},jh=(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"]},xh=(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 Sh{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:mh,rangeExtractor:bh,onChange:()=>{},measureElement:jh,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=fh(()=>(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=fh(()=>[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=fh(()=>[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),h="number"==typeof p?p:this.options.estimateSize(o),g=d+h;c[o]={index:o,start:d,size:h,end:g,key:e,lane:s},u[s]=o}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=fh(()=>[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=Ph(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=fh(()=>{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=fh(()=>[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 ph(t[Ph(0,t.length-1,e=>ph(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 Ph=(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},_h="undefined"!=typeof document?m.useLayoutEffect:m.useEffect;function Ch(e){return function({useFlushSync:e=!0,...t}){const n=m.useReducer(()=>({}),{})[1],r={...t,onChange:(r,o)=>{var i;e&&o?(0,fn.flushSync)(n):n(),null==(i=t.onChange)||i.call(t,r,o)}},[o]=m.useState(()=>new Sh(r));return o.setOptions(r),_h(()=>o._didMount(),[]),_h(()=>o._willUpdate()),o}({observeElementRect:vh,observeElementOffset:wh,scrollToFn:xh,...e})}const Ah=32,Eh=["open","onClose","root","children","classes","className","onClick"];function Rh(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 kh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rh(Object(n),!0).forEach(function(t){Dh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dh(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 Mh=(0,m.forwardRef)(function(e,t){let{open:n,onClose:r,root:o=document.body,children:i,classes:l,className:a,onClick:s}=e,c=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,Eh);const u=(0,m.useRef)(null),d=(0,m.useRef)(null);if(!n||!i)return null;const f=(0,I.jsx)("div",{ref:u,className:"modal-module__overlay__qGmy7",onClick:e=>{e.target!==u.current&&d.current?.contains(e.target)||(e.stopPropagation(),r?.())},children:(0,I.jsx)("div",kh(kh({},c),{},{ref:e=>{e&&(d.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:g()("modal-module__modal__SyCF2",a,l?.root),onClick:e=>{e.stopPropagation(),s?.(e)},children:i}))});return(0,fn.createPortal)(f,o)});var Lh="virtualTable-module__align-center__GE7hn",Ih="virtualTable-module__align-left__UwmQP",Nh="virtualTable-module__align-right__BgN21",zh="virtualTable-module__borders-all__4E7iX",Th="virtualTable-module__borders-horizontal__sJHrp",Fh="virtualTable-module__borders-vertical__vW5hC",Vh="virtualTable-module__bottom-border__Aqyxx",Hh="virtualTable-module__clickable__rairY",qh="virtualTable-module__editable__vHC_D",Bh="virtualTable-module__error__Pc_YH",Kh="virtualTable-module__even-row__UtfmY",Wh="virtualTable-module__first-th-row__Ic3VG",Gh="virtualTable-module__input__URGVM",Uh="virtualTable-module__label__RRtAL",Yh="virtualTable-module__margin-left-changing__DeOwh",Qh="virtualTable-module__medium__fWjBj",Jh="virtualTable-module__modal-content__y8dAa",Zh="virtualTable-module__right-border___sLGh",Xh="virtualTable-module__root__oT8Aa",$h="virtualTable-module__row-button-trigger__qLWa9",eg="virtualTable-module__rowspan-content__uNqDw",tg="virtualTable-module__select-rows__aDhYu",ng="virtualTable-module__selected__LXpK4",rg="virtualTable-module__show-in-modal__v55Sn",og="virtualTable-module__small__Pbe1H",ig="virtualTable-module__sticky__kLGF2",lg="virtualTable-module__success__xPKub",ag="virtualTable-module__table__GccG7",sg="virtualTable-module__table-container__Z27Uv",cg="virtualTable-module__td__INgoI",ug="virtualTable-module__th__xeEGg",dg="virtualTable-module__th-cell__r6ckx",fg="virtualTable-module__th-hidden-column__jr_ZK",pg="virtualTable-module__th-left-border__Ns0MX",hg="virtualTable-module__th-right-border__PR4eS",gg="virtualTable-module__tr__chmfp",mg="virtualTable-module__vertical-align-center__Xun5O",bg="virtualTable-module__vertical-align-flex-end__wOSxq",vg="virtualTable-module__vertical-align-flex-start__uBUX9",yg="virtualTable-module__view-cell__bXl8D",Og="virtualTable-module__view-span__HfOpN";function wg(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 jg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wg(Object(n),!0).forEach(function(t){xg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xg(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 Sg={cell:({getValue:e,row:{index:t,original:n},column:{id:r,columnDef:o},table:i})=>{const l=e(),{meta:a}=o,s=i.options.meta,[c,u]=(0,m.useState)(l),[f,p]=(0,m.useState)(!1),[h,b]=(0,m.useState)(!1),v=(0,m.useRef)();v.current=()=>{b(!1)},(0,m.useEffect)(()=>{u(l)},[l]);const y=s?.additionalColumnsViews?.(r,l,n[r]?.payload);if(f&&a?.editable){const e=()=>{s?.updateData(t,r,c,n),p(!1)},o=(e,o)=>{u(e),o&&(s?.updateData(t,r,e,n),p(!1))};return(0,I.jsx)(Lo,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:null!=y?.edit?y.edit(o,e):(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(Ku,{classes:{input:Gh},componentSize:"small",variant:"outlined",onChange:e=>o(e.target.value),onBlur:e,value:c??"",type:a.inputType,fullWidth:!0,autoFocus:!0})})})}const O=null!=y?.view?y.view:a?.valueFormat?a.valueFormat(l):void 0===a?.toFixed||Number.isNaN(parseFloat(l))?l:parseFloat(Number(l).toFixed(a.toFixed)),w=Boolean(a?.editable||a?.showInModal||a?.onClick&&n[r]?.payload);return(0,I.jsx)(Lo,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:(0,I.jsxs)("div",jg(jg({className:g()(yg,a?.rowsAlign?d[`align${a?.rowsAlign}`]:void 0,a?.showInModal?rg:void 0,a?.onClick&&n[r]?.payload?Hh:void 0,n[r]?.fill?d[n[r].fill]:void 0,a?.editable?qh:void 0,a?.verticalAlign?d[`verticalAlign${a?.verticalAlign}`]:void 0)},w?{"data-vt-cell-action":""}:void 0),{},{onClick:w?e=>{e.ctrlKey||e.metaKey||e.shiftKey||(a?.editable?p(!0):a?.showInModal?b(!0):a?.onClick&&n[r]?.payload&&a.onClick(n[r]?.payload??{}))}:void 0,children:[(0,I.jsx)("span",{className:Og,children:O}),h&&(0,I.jsx)(Mh,{root:s?.tableContainerRef?.current,open:h,onClose:()=>v.current?.(),children:(0,I.jsx)(Hf,{type:"panel",children:(0,I.jsx)("div",{className:Jh,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 _g(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:n}=e,[r,o]=(0,m.useState)(t);(0,m.useEffect)(()=>{n(r)},[r]);const i=(0,m.useCallback)(()=>{o([void 0,void 0]),n([void 0,void 0])},[]);return(0,I.jsxs)("div",{className:g()("dateFiltration-module__root__hOXOU"),children:[(0,I.jsx)(iu,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:r,onValueChange:e=>{o(e)},tabIndex:-1}),(0,I.jsx)(Lo,{label:"Сбросить",children:(0,I.jsx)(V,{onClick:i,className:g()("dateFiltration-module__button__kboWN"),variant:"text",componentSize:"small",textSecondary:!0,icon:(0,I.jsx)($o,{})})})]})}var Cg="numberFiltration-module__input___94YM";const Ag=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function Eg(e){const{defaultValues:t=[-1/0,1/0],actionWithSelected:n}=e,[r,o]=(0,m.useState)(t[0]===-1/0&&t[1]===1/0?Ag[0]:t[0]===t[1]?Ag[3]:t[0]===-1/0?Ag[2]:t[1]===1/0?Ag[1]:Ag[0]),[i,l]=(0,m.useState)(t),a=(e,t)=>{l(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])},s=(0,m.useCallback)(()=>{l([-1/0,1/0]),n([-1/0,1/0])},[]);return(0,I.jsxs)("div",{className:g()("numberFiltration-module__root__k2DSM"),children:[(0,I.jsx)(jc,{items:Ag,componentSize:"small",variant:"filled",selected:r,onValueChange:e=>{if(e){const t=[...i];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}l(t),n(t),o(e)}},classes:{root:"numberFiltration-module__select__vQqEg"},tabIndex:-1}),(0,I.jsx)("div",{className:g()("numberFiltration-module__inputs-container__tjcwf"),children:"range"===r.value?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ku,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Cg},value:i[0]>-1/0&&i[0]<1/0?i[0]:"",onChange:e=>{a("more",e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}}),(0,I.jsx)(Ku,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Cg},value:i[1]>-1/0&&i[1]<1/0?i[1]:"",onChange:e=>{a("less",e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}})]}):(0,I.jsx)(Ku,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Cg},value:"more"===r.value?i[0]>-1/0&&i[0]<1/0?i[0]:"":i[1]>-1/0&&i[1]<1/0?i[1]:"",onChange:e=>{a(r.value,e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}})}),(0,I.jsx)(Lo,{label:"Сбросить",children:(0,I.jsx)(V,{onClick:s,className:g()("numberFiltration-module__button__GIxRq"),variant:"text",componentSize:"small",textSecondary:!0,icon:(0,I.jsx)($o,{})})})]})}function Rg(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 kg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rg(Object(n),!0).forEach(function(t){Dg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dg(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 Mg(e){const{headerMeta:{sortable:t=!1,selectUnique:n=!1,sortType:r,sortAnotherName:o,filtrationByNumber:i=!1,filtrationByDate:l=!1,filtrationByValue:a=!1,valueFormat:s,toFixed:c},sortBy:u,setSortBy:d,filterBy:f,setFilterBy:p,headerName:h,containerRef:b,showUniqueValuesCount:v,leftAdditionalContent:y,rightAdditionalContent:O,children:w,rows:j,rowsForUniqueCount:x}=e,S=o??h,P=(0,m.useMemo)(()=>{const e=j.map(e=>({name:e[S]?s?s(e[S].value):void 0===c||Number.isNaN(parseFloat(e[S].value))?e[S].value?.toString()||"< нет значения >":parseFloat(Number(e[S].value).toFixed(c)).toString():"< нет значения >",value:e[S]?.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,S,s,c]),_=(0,m.useMemo)(()=>{const e=x??j,t=new Set;e.forEach(e=>{const n=e?.[S];t.add(n?(n.value??"")?.toString():"")});const n=f.find(e=>e.columnName===S&&"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,S,f]),C=(0,m.useMemo)(()=>{const e={};return f.find(e=>e.columnName===S)?.values.forEach(t=>{e[t]=!0}),e},[f,S]),A=(0,m.useMemo)(()=>f.find(e=>e.columnName===S&&"numberRange"===e.type)?.values,[f,S]),E=(0,m.useMemo)(()=>f.find(e=>e.columnName===S&&"dateRange"===e.type)?.values,[f,S]),R=e=>()=>{d(t=>t.some(t=>t.columnName===S&&t.direction===e)?t.filter(t=>!(t.columnName===S&&t.direction===e)):t.some(e=>e.columnName===S)?t.map(t=>t.columnName===S?kg(kg({},t),{},{direction:e}):kg({},t)):t.concat([{columnName:S,direction:e,sortType:r}]))},k=f.some(e=>e.columnName===S&&"value"===e.type&&e.uniqueFirstPerValue),D=Object.keys(C).length>0||k,M=u.some(e=>e.columnName===S&&"desc"===e.direction),L=u.some(e=>e.columnName===S&&"asc"===e.direction),{t:N}=af(),z=[];return n&&(z.push({type:"divider",name:N("Уникальность значений")}),z.push({type:"item",name:N("Только уникальные"),icon:(0,I.jsx)(Ma,{}),selected:k,onClick:()=>{p(e=>{const t=e.findIndex(e=>e.columnName===S&&"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?kg(kg({},e),{},{uniqueFirstPerValue:!0}):{columnName:e.columnName,type:e.type,values:e.values}):e.filter((e,n)=>n!==t)}return[...e,{columnName:S,type:"value",values:[],uniqueFirstPerValue:!0}]})}})),t&&(z.push({type:"divider",name:N("Сортировка")}),z.push({type:"item",name:N("По возрастанию"),icon:(0,I.jsx)(Ha,{}),selected:u.some(e=>e.columnName===S&&"asc"===e.direction),onClick:R("asc")}),z.push({type:"item",name:N("По убыванию"),icon:(0,I.jsx)(Wa,{}),selected:u.some(e=>e.columnName===S&&"desc"===e.direction),onClick:R("desc")})),(0,I.jsxs)("div",{className:g()("headerDropdown-module__root__vO30T"),children:[y?.(S),w?.(v&&(0,I.jsx)("div",{children:`(${_})`})),O?.(S),(t||n||a||l||i)&&(0,I.jsx)(Hi,{placement:"bottom-end",wrapTrigger:!0,root:b,description:(0,I.jsxs)(I.Fragment,{children:[i&&(0,I.jsx)(Eg,{defaultValues:A,actionWithSelected:e=>{p(t=>{if(e[0]===-1/0&&e[1]===1/0)return[...t.filter(e=>!(e.columnName===S&&"numberRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===S&&"numberRange"===e.type);return-1!==r?n[r]=kg(kg({},n[r]),{},{values:e}):n.push({columnName:S,type:"numberRange",values:e}),n}})}}),l&&(0,I.jsx)(_g,{defaultValues:E,actionWithSelected:e=>{p(t=>{if(void 0===e[0]||void 0===e[1])return[...t.filter(e=>!(e.columnName===S&&"dateRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===S&&"dateRange"===e.type);return-1!==r?n[r]=kg(kg({},n[r]),{},{values:e}):n.push({columnName:S,type:"dateRange",values:e}),n}})}}),a&&(0,I.jsx)("div",{className:g()("headerDropdown-module__checklist-wrap__7C0pz"),children:(0,I.jsx)(hf,{items:P,selected:C,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e);p(e=>{if(0===t.length)return e.map(e=>e.columnName!==S||"value"!==e.type?e:e.uniqueFirstPerValue?kg(kg({},e),{},{values:[]}):null).filter(e=>null!==e);const n=[...e],r=n.findIndex(e=>e.columnName===S&&"value"===e.type);return-1!==r?n[r]=kg(kg({},n[r]),{},{values:t}):n.push({columnName:S,type:"value",values:t}),n})}})}),(t||n)&&(0,I.jsx)("div",{children:(0,I.jsx)(mc,{items:z})})]}),children:(0,I.jsx)(Lo,{label:N("Сортировка и фильтрация"),placement:"bottom-end",root:b,children:(0,I.jsx)(V,{componentSize:"small",variant:"text",textSecondary:!D&&!M&&!L,icon:D?(0,I.jsx)(Zl,{}):M?(0,I.jsx)(Wa,{}):L?(0,I.jsx)(Ha,{}):(0,I.jsx)(Qi,{})})})})]})}function Lg(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 Ig=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}},Ng=(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:Ig(t?.accessorKey?t:e),columns:e.columns?Ng(e.columns,e):void 0})),zg=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(zg(e,t+1,n)):[],Tg=(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(Tg(e,t-1,n)):[],Fg=(e,t,n)=>e[t+1]&&Tg(e,t+1,n).length?[e[t+1].headers[n]].concat(Fg(e,t+1,n)):[],Vg=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(Vg(e,t-1)):[];function Hg(e,t){const n=e[t.columnName],r=n?.value;if("dateRange"===t.type){const e=Sc()(t.values[0]),n=Sc()(t.values[1]);if(!e.isValid()||!n.isValid())return!1;if(null==r||""===r)return!1;const o=Sc()(r);return!!o.isValid()&&!o.isBefore(e,"day")&&!o.isAfter(n,"day")}return n?"numberRange"===t.type?r>=t.values[0]&&r<=t.values[1]:t.values.includes((r||"")?.toString()):t.values.includes("")}const qg=(e,t)=>{if(t.length){const n=t[t.length-1],r=n.values.length?e.filter(e=>Hg(e,n)||1===e.isNew?.value):e;return qg(r,t.slice(0,t.length-1))}return e},Bg=(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 Bg(r,t.slice(0,t.length-1))}return e},Kg=(e,t)=>{const n=Math.min(e,t),r=Math.max(e,t),o=[];for(let e=n;e<=r;e+=1)o.push(e);return o},Wg=e=>e instanceof Element&&Boolean(e.closest(["button","a","input","textarea","select",'[role="menuitem"]','[role="menu"]','[role="listbox"]','[role="dialog"]',"[data-floating-ui-portal]",'[contenteditable="true"]'].join(", ")));function Gg(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 Ug(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gg(Object(n),!0).forEach(function(t){Yg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yg(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 Qg=(0,m.forwardRef)((e,t)=>{const{rows:n,columns:r,additionalColumnsViews:o,onChangeCell:i,cellWidth:l,rowButtons:a,fixedColumnsCount:s=0,headerRowHeight:c=[Ah],bodyRowHeight:u=Ah,rowActionWidth:f=77,classes:p,dynamicRowHeight:h=!1,height:b,scrollToBottom:v,useTableContainerAsRootForPopup:y,componentSize:O="small",borders:w="horizontal",showUniqueValuesCount:j=!1,globalFilters:x,globalSorts:S,onFiltersChange:P,onSortsChange:_,leftAdditionalHeaderContent:C,rightAdditionalHeaderContent:A,showRowsNumbers:E,stripedRows:R=!0,enableSelectRows:k=!1,onSelectRowsChange:D,globalSelectedRows:M}=e,L=s+(E?1:0),[N,z]=(0,m.useState)(x??[]),[T,F]=(0,m.useState)([...S??[],{columnName:"isNew",direction:"desc"}]),[H,q]=(0,m.useState)(()=>new Set),B=(0,m.useRef)(null),K=(0,m.useRef)(H),W=(0,m.useRef)(k?M??[]:[]),G=(0,m.useRef)([]),U=(0,m.useRef)(null),Y=(0,m.useRef)(null),Q=(0,m.useRef)(null),J=(0,m.useRef)(D),Z=(0,m.useRef)(k);K.current=H,J.current=D,Z.current=k;const X=(0,m.useMemo)(()=>E?`rowNumber_${Ne()}`:null,[E]),$=(0,m.useMemo)(()=>{if(!X)return Ng(r);const e=t=>Ug(Ug({id:X},t?.columns?.length?void 0:{accessorKey:X}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(r[0]),...r];return Ng(t)},[r,X]),ee=(0,m.useMemo)(()=>{const e=[...n],t=N.filter(e=>!("value"!==e.type||!e.uniqueFirstPerValue||0!==e.values.length)||n.some(t=>Hg(t,e))),r=t.length?qg(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=>!Sc()(e).isSame(Sc()(0))&&!Sc()(e).isSame(Sc()(Number.MAX_SAFE_INTEGER))))?[]:e;let o=T.length?Bg(r,T):r;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(o=Lg(o,e.columnName));return o},[n,T,N]),te=(0,m.useMemo)(()=>{const e=X?ee.map((e,t)=>Ug(Ug({},e),{},{[X]:{value:t+1}})):ee;return window.dispatchEvent(new CustomEvent("filteringRows",{detail:e})),e},[ee,X]);G.current=ee;const ne=(0,m.useCallback)((e,t)=>{const n=G.current,r=[...e].filter(e=>e>=0&&e<n.length).sort((e,t)=>e-t),o=new Set(r),i=r.map(e=>n[e]),l=K.current,a=o.size===l.size&&r.every(e=>l.has(e));a||(q(o),K.current=o,W.current=i,J.current?.(i)),null!==t&&n[t]?(U.current=t,Y.current=n[t]):null===t&&(U.current=null,Y.current=null)},[]);(0,m.useEffect)(()=>{const e=Y.current;if(e){const t=ee.indexOf(e);U.current=-1===t?null:t,-1===t&&(Y.current=null)}if(0===W.current.length)return void(K.current.size>0&&ne(new Set,U.current));const t=((e,t)=>{if(0===t.length)return new Set;const n=new Set(t),r=new Set;return e.forEach((e,t)=>{n.has(e)&&r.add(t)}),r})(ee,W.current),n=t.size>0?Math.max(...t):null;ne(t,U.current??n)},[ee,ne]),(0,m.useEffect)(()=>{!k&&K.current.size>0&&ne(new Set,null)},[k,ne]);const re=(0,m.useMemo)(()=>{const e=[...n];return Array.from({length:N.length+1},(t,n)=>qg(e,N.slice(0,n)))},[n,N]),oe=(0,m.useMemo)(()=>l??(e=>X&&0===e?8*te.length.toString().length+24:$[e]?.meta?.width??200),[l,$,te,X]),ie=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=m.useState(()=>({current:uh(t)})),[r,o]=m.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:te,columns:$,defaultColumn:Sg,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>yp(()=>[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=Pp(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},Op(e.options,"debugTable",0,()=>e._autoResetPageIndex())),initialState:{columnPinning:{left:$.filter((e,t)=>t<L).map(e=>e.id).filter(e=>e).map(e=>e)??[]}},meta:{updateData:(e,t,n,r)=>{i?.(e,t,n,r)},tableContainerRef:B,additionalColumnsViews:o}}),{rows:le}=ie.getRowModel(),ae=ie.getHeaderGroups(),se=Ch({count:le.length,getScrollElement:()=>B?.current,estimateSize:()=>u,overscan:5}),ce=Ch({horizontal:!0,count:ae[0]?.headers.length??1,rangeExtractor:(0,m.useCallback)(e=>{const t=[...Array(L)].map((e,t)=>t);return[...new Set([...t,...bh(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>B?.current,estimateSize:oe,overscan:5}),ue=(0,m.useMemo)(()=>[...Array(L)].reduce((e,t,n)=>e+oe(n),0),[L,oe]),de=(0,m.useMemo)(()=>{const e=ae.length-c.length,t=[...c];if(e>0)for(let n=0;n<e;n++)t.push(Ah);return t},[c,ae]),fe=(0,m.useMemo)(()=>de.reduce((e,t,n)=>n<ae.length?e+t:e,0),[de,ae]),pe=(0,m.useCallback)(e=>de.reduce((t,n,r)=>r<e?t+n:t,0),[de,ae]),he=se.getTotalSize(),ge=ce.getTotalSize(),me=()=>{z([])},be=()=>{F([{columnName:"isNew",direction:"desc"}])};(0,m.useImperativeHandle)(t,()=>({resetFilters:me,resetSorts:be})),(0,m.useEffect)(()=>{if(B?.current){const e=B?.current,t=e.querySelector(`.${Zh}`);if(t){const n=e.clientWidth,r=ge+(a?f:0);t.style.left=`${n>r?r:n}px`}}},[B?.current?.clientWidth,ge,a,f]),(0,m.useEffect)(()=>{if(B?.current){const e=B?.current,t=e.querySelector(`.${Vh}`);if(t){const n=e.clientHeight,r=he+fe;t.style.top=`${n>r?r:n}px`}}},[B?.current?.clientHeight,he]),(0,m.useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${Yh}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return B?.current&&(B.current.addEventListener("scroll",e),v&&B.current.scrollTo(0,B.current.scrollHeight)),()=>{B?.current&&B.current.removeEventListener("scroll",e)}},[B,v]);const ve=se.getVirtualItems(),ye=ce.getVirtualItems(),Oe=ye[ye.length-1]?.index,we=(0,m.useMemo)(()=>new Map(ve.map(e=>[e.index,e.size])),[ve]),je=(0,m.useCallback)(e=>we.get(e)??u,[u,we]),xe=(0,m.useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=Math.min(le.length-1,e+n-1),o=r-e+1;let i=0;for(let t=e;t<=r;t+=1)i+=je(t);const l="all"===w||"horizontal"===w?Math.max(0,o-1):0;return Math.max(0,i-l)},[w,je,le.length]),Se=(0,m.useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=le[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[le]),Pe=(0,m.useCallback)(e=>{const t=B.current,n=G.current.length;if(!t||0===n)return null;const r=e-t.getBoundingClientRect().top+t.scrollTop-fe;if(r<0)return 0;if(r>=se.getTotalSize())return n-1;const o=se.measurementsCache;if(o.length>0){let e=0,t=o.length-1;for(;e<=t;){const i=e+t>>1,l=o[i];if(r<l.start)t=i-1;else{if(!(r>=l.end))return Math.min(n-1,l.index);e=i+1}}}if(!h)return Math.max(0,Math.min(n-1,Math.floor(r/u)));const i=se.getVirtualItems();return 0===i.length?0:r<i[0].start?i[0].index:i[i.length-1].index},[u,h,se,fe]),_e=(e,t)=>{const n=Q.current;if(!n)return;const r=(e=>{const{startIndex:t,currentIndex:n,ctrl:r,shift:o,anchorIndex:i,baseIndexes:l,isDrag:a}=e;if(o&&null!==i){const e=Kg(i,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:i}}if(a){const e=Kg(t,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:t}}if(r){const e=new Set(l);return e.has(t)?e.delete(t):e.add(t),{indexes:e,anchor:t}}return 1===l.size&&l.has(t)?{indexes:new Set,anchor:null}:{indexes:new Set([t]),anchor:t}})({startIndex:n.startIndex,currentIndex:e,ctrl:n.ctrl,shift:n.shift,anchorIndex:n.anchorIndex,baseIndexes:n.baseIndexes,isDrag:t});ne(r.indexes,r.anchor)},Ce=e=>{const t=Q.current;t&&e.pointerId===t.pointerId&&(t.isDragCapable||t.hasDragged||_e(t.startIndex,!1),Q.current=null,e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))},Ae=(0,m.useCallback)((e,t)=>1===e?.isNew?.value||H.has(t)?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[H]),Ee=(0,m.useMemo)(()=>{const e=le.length,t=new Map;return le.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},[le]),Re=(0,m.useMemo)(()=>le.length*le.length+le.length+10,[le.length]),ke=e=>{const t=e.column.columnDef.meta?.label;if("string"==typeof t){const n=t.split(/\r\n|\\r\\n|\n|\\n/);if(n.length>1)return(0,I.jsx)(I.Fragment,{children:n.map((t,r)=>(0,I.jsxs)(m.Fragment,{children:[t,r<n.length-1&&(0,I.jsx)("br",{})]},`${e.id}_${r}`))})}return dh(e.column.columnDef.header,e.getContext())},[De,Me]=ye.length>0?[L&&ye[L].index!==L?ye[L].start-ue:ye[0].start,ge-ye[ye.length-1].end]:[0,0];return(0,m.useEffect)(()=>{P?.(N)},[N]),(0,m.useEffect)(()=>{_?.(T.filter(e=>"isNew"!==e.columnName))},[T]),(0,I.jsx)("div",{className:g()(Xh,d[O],d[`borders${Le=w,Le[0].toUpperCase()+Le.substring(1)}`],p?.root),style:b?{height:b}:void 0,children:(0,I.jsxs)("div",{ref:B,className:g()(sg,"styledScroll",k&&tg),onPointerDown:k?e=>{if(!Z.current||0!==e.button)return;const t=(e=>{if(!(e instanceof Element))return null;const t=e.closest(`.${gg}`);if(!t)return null;const n=Number(t.getAttribute("data-index"));return Number.isFinite(n)?n:null})(e.target);if(null===t){if(Wg(e.target)||(e=>{const t=e.currentTarget;if(!(t instanceof HTMLElement)||e.target!==t)return!1;const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=t.offsetWidth-t.clientWidth>0&&r>=t.clientWidth,l=t.offsetHeight-t.clientHeight>0&&o>=t.clientHeight;return i||l})(e)||e.target instanceof Element&&Boolean(e.target.closest(`.${ug}`)))return;return void(K.current.size>0&&ne(new Set,null))}if(Wg(e.target))return;const n=e.target instanceof Element&&null!==e.target.closest("[data-vt-cell-action]"),r=e.ctrlKey||e.metaKey||e.shiftKey;if(n&&!r)return;const o="mouse"===e.pointerType||"pen"===e.pointerType;Q.current={pointerId:e.pointerId,startIndex:t,startX:e.clientX,startY:e.clientY,baseIndexes:new Set(K.current),ctrl:e.ctrlKey||e.metaKey,shift:e.shiftKey,anchorIndex:U.current,isDragCapable:o&&!n,hasDragged:!1},n?_e(t,!1):o&&(e.currentTarget.setPointerCapture(e.pointerId),_e(t,!1))}:void 0,onPointerMove:k?e=>{const t=Q.current;if(!t||!t.isDragCapable||e.pointerId!==t.pointerId)return;const n=e.clientX-t.startX,r=e.clientY-t.startY,o=n*n+r*r;if(!t.hasDragged&&o<16)return;t.hasDragged=!0,e.preventDefault(),(e=>{const t=B.current;if(!t)return;const n=t.getBoundingClientRect(),r=e-n.top;r<32+fe?t.scrollTop-=20:r>n.height-32&&(t.scrollTop+=20)})(e.clientY);const i=Pe(e.clientY);null!==i&&_e(i,!0)}:void 0,onPointerUp:k?Ce:void 0,onPointerCancel:k?Ce:void 0,onDragStart:k?e=>e.preventDefault():void 0,children:[(0,I.jsxs)("div",{className:ag,style:{height:`${he+fe}px`},children:[(0,I.jsx)("div",{style:{position:"sticky",top:0,zIndex:Re},children:ae.map((e,t)=>{const n=e=>{const t=e.column.columnDef.meta,n=t?.sortAnotherName??e.column.columnDef.id??e.id,r=N.findIndex(e=>e.columnName===n),o=-1===r?te:re[r];return(0,I.jsx)("div",{className:g()(dg),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==X&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&j)?(0,I.jsx)(Mg,{headerMeta:t,sortBy:T,setSortBy:F,filterBy:N,setFilterBy:z,rows:o,rowsForUniqueCount:te,headerName:e.column.columnDef.id??e.id,containerRef:y?B:void 0,showUniqueValuesCount:j,leftAdditionalContent:C,rightAdditionalContent:A,children:n=>(0,I.jsxs)("div",{className:g()(Uh,t?.headerAlign?d[`align${t?.headerAlign}`]:Ih),children:[ke(e),n]})}):(0,I.jsx)("div",{className:g()(Uh,t?.headerAlign?d[`align${t?.headerAlign}`]:Ih),children:ke(e)})})};return(0,I.jsxs)(m.Fragment,{children:[[...Array(L)].map((r,o)=>{const i=e.headers[o],l=zg(e.headers,o,Oe),a=Fg(ae,t,o);return(0,I.jsx)("div",{className:g()(ug,0===t?Wh:void 0,!a.length&&o!==e.headers.length-1&&hg,0===o&&pg,a.length&&!l.length&&fg,Yh),style:{zIndex:Re+1,width:`${oe(o)}px`,height:`${de[t]}px`,transform:`translateX(${Array.from({length:o},(e,t)=>oe(t)).reduce((e,t)=>e+t,0)}px) translateY(${pe(t)}px)`},children:n(i)},`${e.id}-${i.id}`)}),ye.map(r=>{if(r.index>L-1){const o=e.headers[r.index],i=zg(e.headers,r.index,Oe),l=Vg(e.headers,r.index),a=Fg(ae,t,r.index),s=Tg(ae,t,r.index),c=i.length||l.length?r.size+i.reduce((e,t)=>e+(t.column.columnDef.meta?.width??0),0):r.size,u=i.length||l.length?Re+i.length+2:void 0,d=s.length?de[t]+s.reduce((e,n,r)=>e+(de[t-r-1]??0),0):de[t],f=s.length?pe(t)-s.reduce((e,n,r)=>e+(de[t-r-1]??0),0):pe(t);return(0,I.jsx)("div",{className:g()(ug,0===t&&Wh,!a.length&&r.index!==e.headers.length-1&&hg,0===r.index&&pg,a.length&&!i.length&&fg),style:{width:`${c}px`,zIndex:u,height:`${d}px`,transform:`translateX(${r.start+(L?-1:0)}px) translateY(${f}px)`,borderTop:"none"!==w&&0===f?"1px solid var(--border-color)":void 0},children:n(o)},`${e.id}-${o.id}`)}return null}),!!a&&(0,I.jsx)("div",{className:g()(ug,0===t?Wh:void 0),style:{width:`${f}px`,height:`${de[t]}px`,transform:`translateX(${ge+(L?-2:0)}px) translateY(${pe(t)}px)`}})]},e.id)})}),ve.map(e=>{const t=le[e.index];return(0,I.jsxs)("div",{"data-index":e.index,ref:h?se.measureElement:void 0,className:g()(gg,R&&e.index%2!=0&&Kh,(1===t.original?.isNew?.value||H.has(e.index))&&ng),style:Ug(Ug({zIndex:Ee.get(e.index)??1},!h&&{height:e.size}),{},{transform:"translateY("+(fe+e.start-se.options.scrollMargin)+"px)"}),children:[(0,I.jsx)("div",{style:{width:`${De}px`}}),ye.map(n=>{const r=t.getAllCells()[n.index],o="left"===r.column.getIsPinned(),i=t.original?.[r.column.id],l=Math.max(1,i?.rowspan??1),a=Se(e.index,r.column.id),s=l>1&&!a;return(0,I.jsx)("div",{"data-col-index":n.index,className:g()(cg,o&&ig),style:Ug(Ug({},o&&{left:n.start,marginLeft:0===n.index?-1:0}),{},{width:`${n.size}px`},!h&&!s&&{overflow:"hidden"}),"data-index":e.index,children:!a&&(s?(0,I.jsx)("div",{className:eg,style:{height:`${xe(e.index,l)}px`,backgroundColor:Ae(t.original,e.index)},children:dh(r.column.columnDef.cell,r.getContext())}):dh(r.column.columnDef.cell,r.getContext()))},`cell-${e.key}-${n.key}`)}),!!a&&(0,I.jsx)("div",{className:g()(cg),style:Ug({width:`${f}px`,justifyContent:"flex-start",padding:"4px"},!h&&{overflow:"hidden"}),children:a?.(t.original)?.map(n=>(0,I.jsx)(m.Fragment,{children:n.template?n.template(n):(0,I.jsx)(Lo,{label:n.title,placement:"top",wrapTrigger:!0,classes:{trigger:$h},children:(0,I.jsx)(V,{onClick:()=>n.onClick?.(e.index,t.original),componentSize:"small",variant:"text",icon:n.icon})})},n.title))}),(0,I.jsx)("div",{style:{width:`${Me}px`}})]},`row-${e.key}`)})]}),"none"!==w&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:Zh,style:{height:`${he+fe}px`}}),(0,I.jsx)("div",{className:Vh,style:{width:`${ge}px`}})]})]})});var Le});var Jg="treeViewItem-module__selectable__ZnWqc",Zg="treeViewItem-module__selected__uwOfq";const Xg=(0,m.memo)(function e({title:t,value:n,searchValue:r,selected:o,onSelect:i,type:l,isSelectable:a,startIcons:s,children:c}){const[u,d]=(0,m.useState)(!1);(0,m.useEffect)(()=>{d(!!r)},[r]);const f=!!c?.length,p=l&&s?.[l],h=o[n];return(0,I.jsxs)("div",{children:[(0,I.jsxs)("div",{className:g()("treeViewItem-module__item__Ddenr",{[Jg]:a}),onClick:()=>{a&&i?i(n):d(!u)},children:[f&&(0,I.jsx)(ba,{}),(0,I.jsxs)("div",{className:g()("treeViewItem-module__title___JZMU",{[Zg]:h}),children:[p,(0,I.jsx)(fe,{variant:"subtitle2",children:t}),a&&(0,I.jsx)("span",{className:"treeViewItem-module__select-icon__Ma7T6",children:h?(0,I.jsx)(Fl,{}):(0,I.jsx)(Wi,{})})]})]}),u&&f&&(0,I.jsx)("div",{className:"treeViewItem-module__children__SBb_p",children:c.map(t=>(0,I.jsx)(e,{title:t.name,value:t.id,children:t.children,selected:o,searchValue:r,type:t.type,isSelectable:t.isSelectable,startIcons:s,onSelect:i},t.id))})]})});function $g(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 em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$g(Object(n),!0).forEach(function(t){tm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tm(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 nm=["data","selected","startIcons","onSelect","withSearch","className"];function rm(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 om(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(n),!0).forEach(function(t){im(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function im(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 lm=(0,m.forwardRef)(function(e,t){let{data:n,selected:r,startIcons:o,onSelect:i,withSearch:l=!1,className: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,nm);const[c,u]=(0,m.useState)(""),d=(0,m.useCallback)(e=>u(e.target.value),[]),f=(0,m.useMemo)(()=>r.reduce((e,t)=>(e[t]=!0,e),{}),[r]),p=(0,m.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(em(em({},t),{},{children:n}))}return e};return e.reduce(r,[])})(n,c),[n,c]);return(0,I.jsxs)("div",om(om({ref:t,className:a},s),{},{children:[l&&(0,I.jsx)(Ku,{variant:"outlined",startIcon:(0,I.jsx)(Ea,{}),value:c,fullWidth:!0,onChange:d,classes:{root:"treeView-module__search__CptHY"}}),(0,I.jsx)("div",{className:"styledScroll",children:p.map(({id:e,name:t,children:n})=>(0,I.jsx)(Xg,{title:t,value:e,searchValue:c,children:n,startIcons:o,onSelect:i,selected:f},e))})]}))}),am=(0,m.memo)(lm);var sm="pairs-module__labels-with-borders__iC6y_",cm="pairs-module__row-container-borders__H3rCB",um="pairs-module__values-with-borders__ssGZ0";function dm(e){const{label:t}=e,[n,r]=(0,m.useState)(t);return(0,I.jsx)(Lo,{label:n,children:(0,I.jsx)(fe,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{r(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}const fm=["pairs","column1Width","column2Width","showBorder","minRowHeight","classes","className","style"];function pm(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 hm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pm(Object(n),!0).forEach(function(t){gm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gm(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 mm=(0,m.forwardRef)(function(e,t){let{pairs:n,column1Width:r="50%",column2Width:o="50%",showBorder:i,minRowHeight:l,classes:a,className:s,style: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,fm);return(0,I.jsx)("div",hm(hm({ref:t,className:g()(s,a?.root),style:c},u),{},{children:n.map((e,t)=>(0,I.jsx)("div",{style:{minHeight:l,display:"flex"},className:g()(a?.rowContainer,{[cm]:i}),children:e&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:g()("pairs-module__labels-container__AKW8x",a?.labelsContainer,{[sm]:i}),style:{width:r,minWidth:r},children:(0,I.jsx)(fe,{className:"pairs-module__dim-typography__CX_Sf",children:e.label})}),(0,I.jsx)("div",{style:{width:o,minWidth:o},className:g()("pairs-module__values-container__a4t60",a?.valuesContainer,{[um]:i}),children:(0,I.jsx)(dm,{label:e.value})})]})},t))}))});var bm="card-module__actions__ctfFt",vm="card-module__body-full-size__oalrd",ym="card-module__body-padded__xaBA8",Om="card-module__body-padded-no-header__RBxi1",wm="card-module__header__NdV6G",jm="card-module__header-overlay__VpVTO",xm="card-module__medium__TpRzi",Sm="card-module__root__uGlLT",Pm="card-module__small__liJkd";const _m=["surfaceType","componentSize","title","actions","children","classes","className","headerOverlay","fullSizeBody"];function Cm(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 Am(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cm(Object(n),!0).forEach(function(t){Em(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cm(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 Rm=(0,m.forwardRef)(function(e,t){let{surfaceType:n="primary",componentSize:r="medium",title:o,actions:i,children:l,classes:a,className:s,headerOverlay:c=!0,fullSizeBody:u=!1}=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,_m);const p=!!o||!!i;return(0,I.jsxs)(Hf,Am(Am({ref:t,type:n,className:s,classes:{root:g()(Sm,f[r],a?.root)}},d),{},{children:[p&&(0,I.jsxs)("div",{className:g()(wm,c&&jm,a?.header),children:[o??(0,I.jsx)("div",{}),!!i&&(0,I.jsx)("div",{className:g()(bm,a?.actions),children:i})]}),(0,I.jsx)("div",{className:g()(u?vm:p?ym:Om,a?.body),children:l})]}))});var km="chip-module__clickable__dOcCr",Dm="chip-module__filled__LKP4O",Mm="chip-module__icon__yybCP",Lm="chip-module__icon-clickable__BPoAa",Im="chip-module__icon-left__LhniG",Nm="chip-module__icon-right__CnqJ6",zm="chip-module__icon-right-slot__p8bmk",Tm="chip-module__label__RySGy",Fm="chip-module__medium__RRnyf",Vm="chip-module__outlined__HHje4",Hm="chip-module__root__QN7P0",qm="chip-module__secondary__yquCM",Bm="chip-module__small__UbquU",Km="chip-module__with-icon__ORESD";const Wm=["variant","componentSize","icon","iconPlacement","secondary","onClick","onIconClick","children","classes","className"];function Gm(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 Um(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gm(Object(n),!0).forEach(function(t){Ym(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ym(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 Qm=(0,m.forwardRef)(function(e,t){let{variant:n="filled",componentSize:r="medium",icon:o,iconPlacement:i="right",secondary:l,onClick:a,onIconClick:s,children:c,classes:u,className:d}=e,f=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,Wm);const h=e=>{e.stopPropagation(),s?.()},m=s?"button":"span",b=!!o&&"left"===i,v=!!o&&"right"===i;return(0,I.jsxs)("div",Um(Um({ref:t,className:g()(Hm,p[n],p[r],!!o&&Km,b&&Im,v&&Nm,l&&qm,a&&km,d,u?.root),tabIndex:a?0:void 0,role:a?"button":void 0},f),{},{onClick:a,children:[b&&(0,I.jsx)(m,{className:g()(Mm,s&&Lm,u?.icon),onClick:s?h:void 0,"aria-label":s?"Удалить":void 0,children:o}),c&&(0,I.jsx)("span",{className:g()(Tm,u?.label),children:c}),v&&(0,I.jsx)(m,{className:g()(Mm,zm,s&&Lm,u?.icon),onClick:s?h:void 0,"aria-label":s?"Удалить":void 0,children:o})]}))}),Jm=["width","height","className","classes","alt"];function Zm(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 Xm(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 $m=(0,m.forwardRef)(function(e,t){let{width:n=60,height:r=1.5*n,className:o,classes:i,alt:l="loading"}=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,Jm);return(0,I.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zm(Object(n),!0).forEach(function(t){Xm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:t,src:"data:image/gif;base64,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",alt:l,width:n,height:r,className:g()("loader-module__root__j0SpR",o,i?.root)},a))}),eb=":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-subtitle3-size: 12px;\n --text-subtitle3-weight: 400;\n --text-subtitle3-height: 20px;\n --text-subtitle3-letter: normal;\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-body3-size: 12px;\n --text-body3-weight: 300;\n --text-body3-height: 20px;\n --text-body3-letter: normal;\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: 300;\n --text-caption-height: 16px;\n --text-caption-letter: 0.4px;\n\n --text-caption2-size: 10px;\n --text-caption2-weight: 300;\n --text-caption2-height: 12px;\n --text-caption2-letter: normal;\n\n --text-double-caption-size: 10px;\n --text-double-caption-weight: 400;\n --text-double-caption-height: 12px;\n --text-double-caption-letter: 0.4px;\n\n --text-overline-size: 10px;\n --text-overline-weight: 500;\n --text-overline-height: 12px;\n --text-overline-letter: 1.5px;\n\n --text-label-size: 12px;\n --text-label-weight: 400;\n --text-label-height: 12px;\n --text-label-letter: normal;\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",tb=":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-primary: #2b2b2b;\n --theme-surface-modal: #373737;\n --theme-surface-dropdown: #515151;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.12);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\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-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\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",nb=":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-primary: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n --theme-surface-dropdown: #183043;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(255, 255, 255, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\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-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\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",rb=":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-primary: #ffffff;\n --theme-surface-modal: #ffffff;\n --theme-surface-dropdown: #ffffff;\n --theme-surface-overlay-1: rgba(0, 0, 0, 0.04);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\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-elevated-subtle: rgba(3, 169, 244, 0.04);\n --theme-button-tonal: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-subtle: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-text: rgba(0, 0, 0, 0.72);\n --theme-button-outlined-border: #757575;\n --theme-button-filled-focus: #03a9f4;\n --theme-button-filled-pressed: #03a9f4;\n --theme-button-filled-hover-layer: rgba(255, 255, 255, 0.08);\n --theme-button-filled-focus-layer: rgba(255, 255, 255, 0.12);\n --theme-button-filled-pressed-layer: rgba(255, 255, 255, 0.12);\n --theme-button-state-hover: rgba(3, 169, 244, 0.08);\n --theme-button-state-focus: rgba(3, 169, 244, 0.12);\n --theme-button-state-pressed: rgba(3, 169, 244, 0.12);\n\n --theme-input-filled: #f5f5f5;\n --theme-input-filled-hover: #e0e0e0;\n --theme-input-filled-focus: #eeeeee;\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border-hover: rgba(0, 0, 0, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(0, 0, 0, 0.56);\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",ob="nntc-ui-base-styles",ib="nntc-ui-theme-styles";function lb(e,t){return function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot}(t)?e.replace(/:root\b/g,":host"):e}function ab(e,t){const n=e.querySelector(`#${t}`);if(n)return n;const r=document.createElement("style");return r.id=t,e.appendChild(r),r}const sb=(0,m.createContext)(void 0);function cb(){return(0,m.useContext)(sb)??null}function ub(){return cb()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function db({children:e,styleContainer:t}){const[n,r]=(0,m.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,m.useEffect)(()=>{const e=t??document.head;ab(e,ob).textContent=lb(eb,e)},[t]),(0,m.useEffect)(()=>{const e={light:rb,dark:tb,darkBlue:nb},r=t??document.head;ab(r,ib).textContent=lb(e[n]??e.light,r)},[n,t]),(0,m.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:n,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(0,I.jsx)(sb.Provider,{value:o,children:e})}})(),module.exports=i})();
|
|
3
3
|
//# sourceMappingURL=index.js.map
|