nntc-ui 0.1.11 → 0.1.13

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.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see index.mjs.LICENSE.txt */
2
- import*as e from"react";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import{createPortal as o,flushSync as i}from"react-dom";var l={353(e){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",l="day",a="week",s="month",c="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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 j||!(!e||!e[w])},_=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var l=t.split("-");if(!o&&l.length>1)return e(l[0])}else{var a=t.name;y[a]=t,o=a}return!r&&o&&(v=o),o||!r&&v},S=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new j(n)},P=b;P.l=_,P.i=O,P.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var j=function(){function g(e){this.$L=_(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(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return P},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return S(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<S(e)},m.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,c=!!P.u(t)||t,f=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(l)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},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=P.p(e),f="set"+(this.$u?"UTC":""),p=(a={},a[l]=f+"Date",a[d]=f+"Date",a[s]=f+"Month",a[u]=f+"FullYear",a[i]=f+"Hours",a[o]=f+"Minutes",a[r]=f+"Seconds",a[n]=f+"Milliseconds",a)[c],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[P.p(e)]()},m.add=function(n,c){var d,f=this;n=Number(n);var p=P.p(c),h=function(e){var t=S(f);return P.w(t.date(t.date()+Math.round(e*n)),f)};if(p===s)return this.set(s,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return 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 P.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,l=this.$m,a=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return P.s(i%12||12,e,"0")},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 P.s(t.$y,4,"0");case"M":return a+1;case"MM":return P.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return P.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return P.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(i,l,!0);case"A":return g(i,l,!1);case"m":return String(l);case"mm":return P.s(l,2,"0");case"s":return String(t.$s);case"ss":return P.s(t.$s,2,"0");case"SSS":return P.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,f){var p,h=this,g=P.p(d),m=S(n),b=(m.utcOffset()-this.utcOffset())*e,v=this-m,y=function(){return P.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:P.a(p)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return y[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return P.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),x=j.prototype;return S.prototype=x,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",s],["$y",u],["$D",d]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,j,S),e.$i=!0),S},S.locale=_,S.isDayjs=O,S.unix=function(e){return S(1e3*e)},S.en=y[v],S.Ls=y,S.p={},S}()},493(e,t,n){var r=n(649),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,l=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a(function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})},[e,n,t]),l(function(){return c(o)&&u({inst:o}),e(function(){c(o)&&u({inst:o})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},888(e,t,n){e.exports=n(493)},915(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},649(t){t.exports=e},942(e,t){var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return l[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var c={};s.r(c),s.d(c,{active:()=>P,compact:()=>j,elevated:()=>x,extraLarge:()=>C,filled:()=>E,large:()=>R,medium:()=>k,onlyIcon:()=>D,outlined:()=>M,root:()=>I,small:()=>L,stateLayer:()=>N,text:()=>T,textSecondary:()=>F,tonal:()=>z,withIcon:()=>V,withoutIcon:()=>A});var u={};s.r(u),s.d(u,{body1:()=>K,body2:()=>Y,button:()=>X,caption:()=>Z,h1:()=>J,h2:()=>Q,h3:()=>ee,h4:()=>te,h5:()=>ne,h6:()=>re,h7:()=>oe,overline:()=>ie,subtitle1:()=>le,subtitle2:()=>ae});var d={};s.r(d),s.d(d,{arrow:()=>Fe,bottomArrow:()=>ze,content:()=>Ve,error:()=>Ae,info:()=>$e,leftArrow:()=>He,rightArrow:()=>Be,success:()=>We,topArrow:()=>Ge,trigger:()=>qe,warning:()=>Ue});var f={};s.r(f),s.d(f,{clickable:()=>Yo,disabled:()=>Xo,extraLarge:()=>Zo,filled:()=>Jo,icon:()=>Qo,large:()=>ei,medium:()=>ti,outlined:()=>ni,remove:()=>ri,root:()=>oi,small:()=>ii,text:()=>li,withIcon:()=>ai});var p={};s.r(p),s.d(p,{divider:()=>Ds,extraLarge:()=>Ms,item:()=>Is,itemActions:()=>Ls,itemDescription:()=>Ns,itemDisabled:()=>Ts,itemIcon:()=>Fs,itemSelected:()=>zs,itemTextBlock:()=>Vs,itemTitle:()=>As,itemTitleTop:()=>$s,large:()=>Hs,medium:()=>Bs,root:()=>Ws,small:()=>Gs,stateLayer:()=>qs});var h={};s.r(h),s.d(h,{button:()=>nc,buttonsContainer:()=>rc,calendarContainer:()=>oc,cell:()=>ic,cellCircle:()=>lc,cellData:()=>ac,cellSelection:()=>sc,cellSelectionFirst:()=>cc,cellSelectionLast:()=>uc,cellsContainer:()=>dc,dateTimeMode:()=>fc,medium:()=>pc,month:()=>hc,monthCellSelection:()=>gc,monthCellSelectionFirst:()=>mc,monthCellSelectionLast:()=>bc,monthView:()=>vc,navigationArrow:()=>yc,navigationContainer:()=>wc,navigationTitle:()=>Oc,navigationValue:()=>_c,root:()=>Sc,small:()=>Pc,timeContainer:()=>jc,timeDivider:()=>xc,timeSelectionMarker:()=>Cc,year:()=>Ec});var g={};s.r(g),s.d(g,{medium:()=>Ld,root:()=>Nd,small:()=>Td});var m={};s.r(m),s.d(m,{modal:()=>of,panel:()=>lf,primary:()=>af,root:()=>sf});var b={};s.r(b),s.d(b,{disableBorder:()=>df,disabled:()=>ff,filled:()=>pf,iconOnly:()=>hf,medium:()=>gf,root:()=>mf,selected:()=>bf,selectedFilled:()=>vf,small:()=>yf,tab:()=>wf,tabBorder:()=>Of,tabBorderVertical:()=>_f,tabFilled:()=>Sf,tabIcon:()=>Pf,tabTitle:()=>jf,tabVertical:()=>xf,vertical:()=>Cf});var v={};s.r(v),s.d(v,{alignCenter:()=>Up,alignLeft:()=>Kp,alignRight:()=>Yp,bordersAll:()=>Xp,bordersHorizontal:()=>Zp,bordersVertical:()=>Jp,bottomBorder:()=>Qp,clickable:()=>eh,editable:()=>th,error:()=>nh,evenRow:()=>rh,firstThRow:()=>oh,input:()=>ih,label:()=>lh,marginLeftChanging:()=>ah,medium:()=>sh,modalContent:()=>ch,rightBorder:()=>uh,root:()=>dh,rowButtonTrigger:()=>fh,rowspanContent:()=>ph,selected:()=>hh,showInModal:()=>gh,small:()=>mh,sticky:()=>bh,success:()=>vh,table:()=>yh,tableContainer:()=>wh,td:()=>Oh,th:()=>_h,thCell:()=>Sh,thHiddenColumn:()=>Ph,thLeftBorder:()=>jh,thRightBorder:()=>xh,tr:()=>Ch,verticalAlignCenter:()=>Eh,verticalAlignFlexEnd:()=>Rh,verticalAlignFlexStart:()=>kh,viewCell:()=>Dh,viewSpan:()=>Mh});var y={};s.r(y),s.d(y,{actions:()=>hg,bodyFullSize:()=>gg,bodyPadded:()=>mg,bodyPaddedNoHeader:()=>bg,header:()=>vg,headerOverlay:()=>yg,medium:()=>wg,root:()=>Og,small:()=>_g});var w={};s.r(w),s.d(w,{clickable:()=>Pg,filled:()=>jg,icon:()=>xg,iconClickable:()=>Cg,iconLeft:()=>Eg,iconRight:()=>Rg,iconRightSlot:()=>kg,label:()=>Dg,medium:()=>Mg,outlined:()=>Ig,root:()=>Lg,secondary:()=>Ng,small:()=>Tg,withIcon:()=>Fg});var O=s(942),_=s.n(O),S=s(649),P="button-module__active__hSEWs",j="button-module__compact__nfUBM",x="button-module__elevated__nAlrD",C="button-module__extraLarge__ycvek",E="button-module__filled__D7eAr",R="button-module__large__gt0K2",k="button-module__medium__v66y0",D="button-module__only-icon__zOzfl",M="button-module__outlined__c_PHO",I="button-module__root__gX6OQ",L="button-module__small__HHNmk",N="button-module__state-layer__t1MJf",T="button-module__text__rG7nD",F="button-module__text-secondary__jXFdx",z="button-module__tonal__u6w_G",V="button-module__with-icon__C4Cw6",A="button-module__without-icon__GOGFF";const $=["variant","size","icon","textSecondary","isActive","compact","className","children","classes"];function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const G=(0,S.forwardRef)(function(e,t){let{variant:o="filled",size:i="medium",icon:l,textSecondary:a,isActive:s,compact:u,className:d,children:f,classes: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,$);return n("button",B(B({className:_()(I,c[o],c[i],l?f?V:D:A,s?P:void 0,a?F:void 0,u?j:void 0,d,p?.root)},h),{},{ref:t,children:r("span",{className:_()(N,p?.stateLayer),children:[l,f]})}))});function q(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var U=parseInt(S.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=q(r,t),o="function"==typeof e;n.push(o?e:()=>q(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)q(n,t)}},K="typography-module__body1__x76Hw",Y="typography-module__body2__xQKKj",X="typography-module__button__dx69P",Z="typography-module__caption__cWpWz",J="typography-module__h1__pRuCD",Q="typography-module__h2__tNSpQ",ee="typography-module__h3__YqCF_",te="typography-module__h4__BCkqi",ne="typography-module__h5__z84mf",re="typography-module__h6__C2Wqz",oe="typography-module__h7__B6VO6",ie="typography-module__overline__IkqBV",le="typography-module__subtitle1__NO_el",ae="typography-module__subtitle2__TKKn5";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,S.forwardRef)(function(e,t){let{variant:r="body2",component:o,children:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,se);return n(o||"span",ue(ue({className:_()(u[r],l)},a),{},{ref:t,children:i}))});function pe(){const e=S;return"function"==typeof e.useId?e.useId():(0,S.useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const he=({size:e=24,color:t="currentColor",className:r,children:o})=>n("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,className:r,xmlns:"http://www.w3.org/2000/svg",children:o});function 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=>n(he,me(me({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})}));function 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 _e=e=>n(he,we(we({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}));function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach(function(t){je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function je(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xe=e=>n(he,Pe(Pe({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2zm0-4H7V7h10v2z"})}));var Ce="checkbox-module__checkbox__x6SCC",Ee="checkbox-module__pressed__mLWO0";const Re=["label","several","componentSize","classes","id","ref"];function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach(function(t){Me(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Me(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 Ie(e){const{label:o,several:i,componentSize:l="medium",classes:a,id:s,ref:c}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Re),d=(0,S.useRef)(null),f=pe(),p=s??f;(0,S.useEffect)(()=>{const e=d.current;if(!e)return;const t=()=>e.classList.remove(Ee),n=()=>e.classList.add(Ee);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const h="large"===l?"subtitle1":"subtitle2";return r("div",{className:_()("checkbox-module__root__xJtJG",a?.root),children:[n("input",De({ref:U([d,c]),type:"checkbox",className:_()("checkbox-module__input__SjKVz",a?.input),id:p,title:o},u)),r("label",{htmlFor:p,className:_()("checkbox-module__label__tkrMd",a?.label),title:o,children:[i?n("span",{className:_()(Ce,"checkbox-module__several__TYjeg",a?.checkbox),children:n(xe,{})}):r(t,{children:[n("span",{className:_()(Ce,"checkbox-module__deselected__ZuA24",a?.checkbox),children:n(ve,{})}),n("span",{className:_()(Ce,"checkbox-module__selected__pLwVq",a?.checkbox),children:n(_e,{})})]}),!!o&&n(fe,{variant:h,className:_()("checkbox-module__label-text__kXha_",a?.labelText),children:o})]})]})}const Le=new Uint8Array(16),Ne=[];for(let e=0;e<256;++e)Ne.push((e+256).toString(16).slice(1));const Te=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(Ne[e[t+0]]+Ne[e[t+1]]+Ne[e[t+2]]+Ne[e[t+3]]+"-"+Ne[e[t+4]]+Ne[e[t+5]]+"-"+Ne[e[t+6]]+Ne[e[t+7]]+"-"+Ne[e[t+8]]+Ne[e[t+9]]+"-"+Ne[e[t+10]]+Ne[e[t+11]]+Ne[e[t+12]]+Ne[e[t+13]]+Ne[e[t+14]]+Ne[e[t+15]]).toLowerCase()}(r)}(e,t,n):crypto.randomUUID()};var Fe="tooltip-module__arrow__SONUP",ze="tooltip-module__bottom-arrow__GdFYs",Ve="tooltip-module__content__nH6p2",Ae="tooltip-module__error__XWI8s",$e="tooltip-module__info__un5n7",He="tooltip-module__left-arrow__BFwGV",Be="tooltip-module__right-arrow__ZFRBE",We="tooltip-module__success__OXBJT",Ge="tooltip-module__top-arrow__UHvch",qe="tooltip-module__trigger__PIfJx",Ue="tooltip-module__warning__Xb_Wr";function Ke(){return"undefined"!=typeof window}function Ye(e){return Je(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ze(e){var t;return null==(t=(Je(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Je(e){return!!Ke()&&(e instanceof Node||e instanceof Xe(e).Node)}function Qe(e){return!!Ke()&&(e instanceof Element||e instanceof Xe(e).Element)}function et(e){return!!Ke()&&(e instanceof HTMLElement||e instanceof Xe(e).HTMLElement)}function tt(e){return!(!Ke()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Xe(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(Ye(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=Qe(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(Ye(e))}function ft(e){return Xe(e).getComputedStyle(e)}function pt(e){return Qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ht(e){if("html"===Ye(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=Xe(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},_t=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]"):_t(e.parentNode))},St=function(e,t,n){if(_t(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(vt));return t&&wt.call(e,vt)&&r.unshift(e),r.filter(n)},Pt=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!_t(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),a=l.length?l:i.children,s=Pt(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=!_t(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=Pt(!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},jt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},xt=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))&&!jt(e)?0:e.tabIndex},Ct=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Et=function(e){return"INPUT"===e.tagName},Rt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},kt=function(e,t){return!(t.disabled||function(e){return Et(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 Rt(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 Rt(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))},Dt=function(e,t){return!(function(e){return function(e){return Et(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)||xt(t)<0||!kt(e,t))},Mt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},It=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=xt(e);return n<0&&t&&!jt(e)?0:n}(i,o),a=o?It(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?Pt([e],t.includeContainer,{filter:Dt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Mt}):St(e,t.includeContainer,Dt.bind(null,t)),It(n)},Nt=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==wt.call(e,vt)&&Dt(t,e)};function Tt(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Ft(){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 zt(){return/apple/i.test(navigator.vendor)}function Vt(){const e=/android/i;return e.test(Tt())||e.test(Ft())}function At(){return Ft().includes("jsdom/")}const $t="data-floating-ui-focusable";function Ht(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 Gt(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 qt(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 Kt(e){return!!e&&"combobox"===e.getAttribute("role")&&Ut(e)}function Yt(e){return e?e.hasAttribute($t)?e:e.querySelector("["+$t+"]")||e:null}function Xt(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,...Xt(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 Jt(e){e.preventDefault(),e.stopPropagation()}function Qt(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var en="undefined"!=typeof document?S.useLayoutEffect:function(){};function tn(e){const t=S.useRef(e);return en(()=>{t.current=e}),t}const nn={...S}.useInsertionEffect||(e=>e());function rn(e){const t=S.useRef(()=>{});return nn(()=>{t.current=e}),S.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=Ht(qt(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function an(e){return ln(qt(e).body,1)||e}function sn(e){return ln(qt(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=Math.min,pn=Math.max,hn=Math.round,gn=Math.floor,mn=e=>({x:e,y:e}),bn={left:"right",right:"left",bottom:"top",top:"bottom"};function vn(e,t,n){return pn(e,fn(t,n))}function yn(e,t){return"function"==typeof e?e(t):e}function wn(e){return e.split("-")[0]}function On(e){return e.split("-")[1]}function _n(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 jn(e){return _n(Pn(e))}function xn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Cn=["left","right"],En=["right","left"],Rn=["top","bottom"],kn=["bottom","top"];function Dn(e){const t=wn(e);return bn[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 In(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 Ln(e,t,n){let{reference:r,floating:o}=e;const i=Pn(t),l=jn(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(On(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}=yn(t,e),h=Mn(p),g=a[f?"floating"===d?"reference":"floating":d],m=In(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=In(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 Tn=new Set(["left","top"]);function Fn(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=hn(n)!==i||hn(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function zn(e){return Qe(e)?e:e.contextElement}function Vn(e){const t=zn(e);if(!et(t))return mn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Fn(t);let l=(i?hn(n.width):n.width)/r,a=(i?hn(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const An=mn(0);function $n(e){const t=Xe(e);return ut()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:An}function Hn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=zn(e);let l=mn(1);t&&(r?Qe(r)&&(l=Vn(r)):l=Vn(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Xe(e))&&t}(i,n,r)?$n(i):mn(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=Xe(i),t=r&&Qe(r)?Xe(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=Xe(o),o=bt(n)}}return In({width:u,height:d,x:s,y:c})}function Bn(e,t){const n=pt(e).scrollLeft;return t?t.left+n:Hn(Ze(e)).left+n}function Wn(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Bn(e,n),y:n.top+t.scrollTop}}function Gn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Xe(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=Bn(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=pn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=pn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Bn(e);const a=-n.scrollTop;return"rtl"===ft(r).direction&&(l+=pn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(Ze(e));else if(Qe(t))r=function(e,t){const n=Hn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=et(e)?Vn(e):mn(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=$n(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return In(r)}function qn(e,t){const n=ht(e);return!(n===t||!Qe(n)||dt(n))&&("fixed"===ft(n).position||qn(n,t))}function Un(e,t,n){const r=et(t),o=Ze(t),i="fixed"===n,l=Hn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=mn(0);function c(){s.x=Bn(o)}if(r||!r&&!i)if(("body"!==Ye(t)||nt(o))&&(a=pt(t)),r){const e=Hn(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?mn(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 Kn(e){return"static"===ft(e).position}function Yn(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 Xn(e,t){const n=Xe(e);if(ot(e))return n;if(!et(e)){let t=ht(e);for(;t&&!dt(t);){if(Qe(t)&&!Kn(t))return t;t=ht(t)}return n}let r=Yn(e,t);for(;r&&rt(r)&&Kn(r);)r=Yn(r,t);return r&&dt(r)&&Kn(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 Zn={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=mn(1);const u=mn(0),d=et(r);if((d||!d&&!i)&&(("body"!==Ye(r)||nt(l))&&(s=pt(r)),d)){const e=Hn(r);c=Vn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?mn(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=>Qe(e)&&"body"!==Ye(e)),o=null;const i="fixed"===ft(e).position;let l=i?ht(e):e;for(;Qe(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&&qn(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=pn(n.top,a),s=fn(n.right,s),c=fn(n.bottom,c),u=pn(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:Xn,getElementRects:async function(e){const t=this.getOffsetParent||Xn,n=this.getDimensions,r=await n(e.floating);return{reference:Un(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}=Fn(e);return{width:t,height:n}},getScale:Vn,isElement:Qe,isRTL:function(e){return"rtl"===ft(e).direction}};function Jn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qn(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=zn(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:-gn(d)+"px "+-gn(o.clientWidth-(u+f))+"px "+-gn(o.clientHeight-(d+p))+"px "+-gn(u)+"px",threshold:pn(0,fn(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||Jn(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?Hn(e):null;return s&&function t(){const r=Hn(e);g&&!Jn(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 er=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}=yn(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=wn(o),v=Pn(a),y=wn(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[xn(e),t,xn(t)]}(a)),_="none"!==h;!f&&_&&O.push(...function(e,t,n,r){const o=On(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?En:Cn:t?Cn: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(xn)))),i}(a,g,h,w));const S=[a,...O],P=await s.detectOverflow(t,m),j=[];let x=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&j.push(P[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=On(e),o=jn(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);j.push(P[e[0]],P[e[1]])}if(x=[...x,{placement:o,overflows:j}],!j.every(e=>e<=0)){var C,E;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=S[e];if(t&&("alignment"!==d||v===Pn(t)||x.every(e=>Pn(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:x},reset:{placement:t}};let n=null==(E=x.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=x.filter(e=>{if(_){const t=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:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},tr=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}=yn(e,t)||{};if(null==c)return{};const d=Mn(u),f={x:n,y:r},p=jn(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],_=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let S=_?_[y]:0;S&&await(null==l.isElement?void 0:l.isElement(_))||(S=a.floating[y]||i.floating[h]);const P=w/2-O/2,j=S/2-g[h]/2-1,x=fn(d[b],j),C=fn(d[v],j),E=x,R=S-g[h]-C,k=S/2-g[h]/2+P,D=vn(E,k,R),M=!s.arrow&&null!=On(o)&&k!==D&&i.reference[h]/2-(k<E?x:C)-g[h]/2<0,I=M?k<E?k-E:k-R:0;return{[p]:f[p]+I,data:{[p]:D,centerOffset:k-D-I,...M&&{alignmentOffset:I}},reset:M}}}),nr=(e,t,n)=>{const r=new Map,o={platform:Zn,...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}=Ln(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}=Ln(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var rr="undefined"!=typeof document?S.useLayoutEffect:function(){};function or(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(!or(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||or(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function ir(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lr(e,t){const n=ir(e);return Math.round(t*n)/n}function ar(e){const t=S.useRef(e);return rr(()=>{t.current=e}),t}const sr=(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=On(n),s="y"===Pn(n),c=Tn.has(l)?-1:1,u=i&&s?-1:1,d=yn(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]}},cr=(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}=yn(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=Pn(wn(o)),p=_n(f);let h=u[p],g=u[f];if(l){const e="y"===p?"bottom":"right";h=vn(h+d["y"===p?"top":"left"],h,h-d[e])}if(a){const e="y"===f?"bottom":"right";g=vn(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]}},ur=(e,t)=>{const n=er(e);return{name:n.name,fn:n.fn,options:[e,t]}},dr=(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?tr({element:n.current,padding:r}).fn(t):{}:n?tr({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function fr(e){const t=S.useRef(void 0),n=S.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 S.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const pr="data-floating-ui-focusable",hr="active",gr="selected",mr={...S};let br=!1,vr=0;const yr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vr++,wr=mr.useId||function(){const[e,t]=S.useState(()=>br?yr():void 0);return en(()=>{null==e&&t(yr())},[]),S.useEffect(()=>{br=!0},[]),e};const Or=S.createContext(null),_r=S.createContext(null),Sr=()=>{var e;return(null==(e=S.useContext(Or))?void 0:e.id)||null},Pr=()=>S.useContext(_r);function jr(e){return"data-floating-ui-"+e}function xr(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const Cr=jr("safe-polygon");function Er(e,t,n){if(n&&!Qt(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 Ir(e){return"inert"===e?Mr.inert:"aria-hidden"===e?Mr["aria-hidden"]:Mr.none}let Lr=new WeakSet,Nr={},Tr=0;function Fr(e){return e?tt(e)?e.host:Fr(e.parentNode):null}const zr=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Fr(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=zr(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"!==Ye(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=Ir(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&&Lr.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),a.clear(),Tr++,()=>{c.forEach(e=>{const t=Ir(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!Lr.has(e)&&i&&e.removeAttribute(i),Lr.delete(e)),r||e.removeAttribute(o)}),Tr--,Tr||(Mr.inert=new WeakMap,Mr["aria-hidden"]=new WeakMap,Mr.none=new WeakMap,Lr=new WeakSet,Nr={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Ar={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},$r=S.forwardRef(function(e,t){const[r,o]=S.useState();en(()=>{zt()&&o("button")},[]);const i={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[jr("focus-guard")]:"",style:Ar};return n("span",{...e,...i})}),Hr={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Br=S.createContext(null),Wr=jr("portal");function Gr(e){const{children:t,id:i,root:l,preserveTabOrder:a=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=wr(),o=qr(),[i,l]=S.useState(null),a=S.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&&!Je(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:i,root:l}),[c,u]=S.useState(null),d=S.useRef(null),f=S.useRef(null),p=S.useRef(null),h=S.useRef(null),g=null==c?void 0:c.modal,m=null==c?void 0:c.open,b=!!c&&!c.modal&&c.open&&a&&!(!l&&!s);return S.useEffect(()=>{if(s&&a&&!g)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&cn(e)&&("focusin"===e.type?dn:un)(s)}},[s,a,g]),S.useEffect(()=>{s&&(m||dn(s))},[m,s]),r(Br.Provider,{value:S.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:h,portalNode:s,setFocusManagerState:u}),[a,s]),children:[b&&s&&n($r,{"data-type":"outside",ref:d,onFocus:e=>{if(cn(e,s)){var t;null==(t=p.current)||t.focus()}else{const e=sn(c?c.domReference:null);null==e||e.focus()}}}),b&&s&&n("span",{"aria-owns":s.id,style:Hr}),s&&o(t,s),b&&s&&n($r,{"data-type":"outside",ref:f,onFocus:e=>{if(cn(e,s)){var t;null==(t=h.current)||t.focus()}else{const t=an(c?c.domReference:null);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const qr=()=>S.useContext(Br);function Ur(e){return S.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Kr=[];function Yr(){Kr=Kr.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function Xr(){Yr();const e=Kr[Kr.length-1];return null==e?void 0:e.deref()}function Zr(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?Pt([e],t.includeContainer,{filter:kt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):St(e,t.includeContainer,kt.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return Nt(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 Jr=S.forwardRef(function(e,t){return n("button",{...e,type:"button",ref:t,tabIndex:-1,style:Ar})});function Qr(e){const{context:o,children:i,disabled:l=!1,order:a=["content"],guards:s=!0,initialFocus:c=0,returnFocus:u=!0,restoreFocus:d=!1,modal:f=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:h=!0,outsideElementsInert:g=!1,getInsideElements:m=()=>[]}=e,{open:b,onOpenChange:v,events:y,dataRef:w,elements:{domReference:O,floating:_}}=o,P=rn(()=>{var e;return null==(e=w.current.floatingContext)?void 0:e.nodeId}),j=rn(m),x="number"==typeof c&&c<0,C=Kt(O)&&x,E="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,R=!E||s,k=!R||E&&g,D=tn(a),M=tn(c),I=tn(u),L=Pr(),N=qr(),T=S.useRef(null),F=S.useRef(null),z=S.useRef(!1),V=S.useRef(!1),A=S.useRef(-1),$=S.useRef(-1),H=null!=N,B=Yt(_),W=rn(function(e){return void 0===e&&(e=B),e?Lt(e,on()):[]}),G=rn(e=>{const t=W(e);return D.current.map(e=>O&&"reference"===e?O:B&&"floating"===e?B:t).filter(Boolean).flat()});S.useEffect(()=>{if(l)return;if(!f)return;function e(e){if("Tab"===e.key){Bt(B,Ht(qt(B)))&&0===W().length&&!C&&Jt(e);const t=G(),n=Wt(e);"reference"===D.current[0]&&n===O&&(Jt(e),e.shiftKey?Dr(t[t.length-1]):Dr(t[1])),"floating"===D.current[1]&&n===B&&e.shiftKey&&(Jt(e),Dr(t[0]))}}const t=qt(B);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[l,O,B,f,D,C,W,G]),S.useEffect(()=>{if(!l&&_)return _.addEventListener("focusin",e),()=>{_.removeEventListener("focusin",e)};function e(e){const t=Wt(e),n=W().indexOf(t);-1!==n&&(A.current=n)}},[l,_,W]),S.useEffect(()=>{if(l)return;if(!h)return;function e(){V.current=!0,setTimeout(()=>{V.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Wt(e);queueMicrotask(()=>{const o=P(),i=!(Bt(O,t)||Bt(_,t)||Bt(t,_)||Bt(null==N?void 0:N.portalNode,t)||null!=t&&t.hasAttribute(jr("focus-guard"))||L&&(Xt(L.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(L.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,Yt(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===O&&B&&Zr(B,D),d&&n!==O&&(null==r||!r.isConnected)&&Ht(qt(B))===qt(B).body){et(B)&&B.focus();const e=A.current,t=W(),n=t[e]||t[t.length-1]||B;et(n)&&n.focus()}w.current.insideReactTree?w.current.insideReactTree=!1:!C&&f||!t||!i||V.current||t===Xr()||(z.current=!0,v(!1,e,"focus-out"))})}const n=Boolean(!L&&N);function r(){xr($),w.current.insideReactTree=!0,$.current=window.setTimeout(()=>{w.current.insideReactTree=!1})}return _&&et(O)?(O.addEventListener("focusout",t),O.addEventListener("pointerdown",e),_.addEventListener("focusout",t),n&&_.addEventListener("focusout",r,!0),()=>{O.removeEventListener("focusout",t),O.removeEventListener("pointerdown",e),_.removeEventListener("focusout",t),n&&_.removeEventListener("focusout",r,!0)}):void 0},[l,O,_,B,f,L,N,v,h,d,W,C,P,D,w]);const q=S.useRef(null),U=S.useRef(null),K=Ur([q,null==N?void 0:N.beforeInsideRef]),Y=Ur([U,null==N?void 0:N.afterInsideRef]);function X(e){return!l&&p&&f?n(Jr,{ref:"start"===e?T:F,onClick:e=>v(!1,e.nativeEvent),children:"string"==typeof p?p:"Dismiss"}):null}S.useEffect(()=>{var e,t;if(l)return;if(!_)return;const n=Array.from((null==N||null==(e=N.portalNode)?void 0:e.querySelectorAll("["+jr("portal")+"]"))||[]),r=null==(t=(L?Zt(L.nodesRef.current,P()):[]).find(e=>{var t;return Kt((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,o=[_,r,...n,...j(),T.current,F.current,q.current,U.current,null==N?void 0:N.beforeOutsideRef.current,null==N?void 0:N.afterOutsideRef.current,D.current.includes("reference")||C?O:null].filter(e=>null!=e),i=f||C?Vr(o,!k,k):Vr(o);return()=>{i()}},[l,O,_,f,D,N,C,R,k,L,P,j]),en(()=>{if(l||!et(B))return;const e=Ht(qt(B));queueMicrotask(()=>{const t=G(B),n=M.current,r=("number"==typeof n?t[n]:n.current)||B,o=Bt(B,e);x||o||!b||Dr(r,{preventScroll:r===B})})},[l,b,B,x,G,M]),en(()=>{if(l||!B)return;const e=qt(B);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(z.current=!0),"outside-press"===t)if(r)z.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Vt()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!At()&&(!Vt()&&0===e.width&&0===e.height||Vt()&&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))z.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),z.current=!e}}t=Ht(e),Yr(),t&&"body"!==Ye(t)&&(Kr.push(new WeakRef(t)),Kr.length>20&&(Kr=Kr.slice(-20))),y.on("openchange",n);const r=e.createElement("span");return r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),Object.assign(r.style,Ar),H&&O&&O.insertAdjacentElement("afterend",r),()=>{y.off("openchange",n);const t=Ht(e),o=Bt(_,t)||L&&Xt(L.nodesRef.current,P(),!1).some(e=>{var n;return Bt(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof I.current){const e=O||Xr();return e&&e.isConnected?e:r}return I.current.current||r}();queueMicrotask(()=>{const n=function(e){const t=on();return Nt(e,t)?e:Lt(e,t)[0]||e}(i);I.current&&!z.current&&et(n)&&(n===t||t===e.body||o)&&n.focus({preventScroll:!0}),r.remove()})}},[l,_,B,I,w,y,L,H,O,P]),S.useEffect(()=>(queueMicrotask(()=>{z.current=!1}),()=>{queueMicrotask(Yr)}),[l]),en(()=>{if(!l&&N)return N.setFocusManagerState({modal:f,closeOnFocusOut:h,open:b,onOpenChange:v,domReference:O}),()=>{N.setFocusManagerState(null)}},[l,N,f,b,v,h,O]),en(()=>{l||B&&Zr(B,D)},[l,B,D]);const Z=!l&&R&&(!f||!C)&&(H||f);return r(t,{children:[Z&&n($r,{"data-type":"inside",ref:K,onFocus:e=>{if(f){const e=G();Dr("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(z.current=!1,cn(e,N.portalNode)){const e=an(O);null==e||e.focus()}else{var t;null==(t=N.beforeOutsideRef.current)||t.focus()}}}),!C&&X("start"),i,X("end"),Z&&n($r,{"data-type":"inside",ref:Y,onFocus:e=>{if(f)Dr(G()[0]);else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(h&&(z.current=!0),cn(e,N.portalNode)){const e=sn(O);null==e||e.focus()}else{var t;null==(t=N.afterOutsideRef.current)||t.focus()}}})]})}function eo(e){return et(e.target)&&"BUTTON"===e.target.tagName}function to(e){return Ut(e)}function no(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=S.useRef(),p=S.useRef(!1),h=S.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&(Qt(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:Qt(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||eo(e)||(" "!==e.key||to(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||eo(e)||to(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,s]);return S.useMemo(()=>l?{reference:h}:{},[l,h])}const ro={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},oo={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},io=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 lo(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(),m=rn("function"==typeof s?s:()=>!1),b="function"==typeof s?m:s,v=S.useRef(!1),{escapeKey:y,outsidePress:w}=io(p),{escapeKey:O,outsidePress:_}=io(h),P=S.useRef(!1),j=rn(e=>{var t;if(!n||!l||!a||"Escape"!==e.key)return;if(P.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=g?Xt(g.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),x=rn(e=>{var t;const n=()=>{var t;j(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=v.current;if(v.current=!1,"click"===c&&l)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=Wt(e),s="["+jr("inert")+"]",u=qt(o.floating).querySelectorAll(s);let d=Qe(a)?a:null;for(;d&&!dt(d);){const e=ht(d);if(dt(e)||!Qe(e))break;d=e}if(u.length&&Qe(a)&&!a.matches("html,body")&&!Bt(a,o.floating)&&Array.from(u).every(e=>!Bt(d,e)))return;if(et(a)&&k){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&&Xt(g.nodesRef.current,f).some(t=>{var n;return Gt(e,null==(n=t.context)?void 0:n.elements.floating)});if(Gt(e,o.floating)||Gt(e,o.domReference)||p)return;const h=g?Xt(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")}),E=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)});S.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),P.current=!0}function u(){e=window.setTimeout(()=>{P.current=!1},ut()?5:0)}const d=qt(o.floating);a&&(d.addEventListener("keydown",O?x:j,O),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),b&&d.addEventListener(c,_?E:C,_);let p=[];return f&&(Qe(o.domReference)&&(p=mt(o.domReference)),Qe(o.floating)&&(p=p.concat(mt(o.floating))),!Qe(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",O?x:j,O),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),b&&d.removeEventListener(c,_?E:C,_),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,b,c,n,r,f,l,y,w,j,O,x,C,_,E]),S.useEffect(()=>{i.current.insideReactTree=!1},[i,b,c]);const R=S.useMemo(()=>({onKeyDown:j,...u&&{[ro[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[j,r,u,d]),k=S.useMemo(()=>{function e(e){0===e.button&&(v.current=!0)}return{onKeyDown:j,onMouseDown:e,onMouseUp:e,[oo[c]]:()=>{i.current.insideReactTree=!0}}},[j,c,i]);return S.useMemo(()=>l?{reference:R,floating:k}:{},[l,R,k])}function ao(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=wr(),i=S.useRef({}),[l]=S.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]=S.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=S.useMemo(()=>({setPositionReference:c}),[]),f=S.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return S.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:l,floatingId:o,refs:d}),[t,u,f,l,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[l,a]=S.useState(null),[s,c]=S.useState(null),u=(null==o?void 0:o.domReference)||l,d=S.useRef(null),f=Pr();en(()=>{u&&(d.current=u)},[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=S.useState(r);or(p,r)||h(r);const[g,m]=S.useState(null),[b,v]=S.useState(null),y=S.useCallback(e=>{e!==P.current&&(P.current=e,m(e))},[]),w=S.useCallback(e=>{e!==j.current&&(j.current=e,v(e))},[]),O=l||g,_=a||b,P=S.useRef(null),j=S.useRef(null),x=S.useRef(d),C=null!=c,E=ar(c),R=ar(o),k=ar(u),D=S.useCallback(()=>{if(!P.current||!j.current)return;const e={placement:t,strategy:n,middleware:p};R.current&&(e.platform=R.current),nr(P.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==k.current};M.current&&!or(x.current,t)&&(x.current=t,i(()=>{f(t)}))})},[p,t,n,R,k]);rr(()=>{!1===u&&x.current.isPositioned&&(x.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const M=S.useRef(!1);rr(()=>(M.current=!0,()=>{M.current=!1}),[]),rr(()=>{if(O&&(P.current=O),_&&(j.current=_),O&&_){if(E.current)return E.current(O,_,D);D()}},[O,_,D,E,C]);const I=S.useMemo(()=>({reference:P,floating:j,setReference:y,setFloating:w}),[y,w]),L=S.useMemo(()=>({reference:O,floating:_}),[O,_]),N=S.useMemo(()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=lr(L.floating,d.x),r=lr(L.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ir(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,L.floating,d.x,d.y]);return S.useMemo(()=>({...d,update:D,refs:I,elements:L,floatingStyles:N}),[d,D,I,L,N])}({...e,elements:{...o,...s&&{reference:s}}}),h=S.useCallback(e=>{const t=Qe(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),g=S.useCallback(e=>{(Qe(e)||null===e)&&(d.current=e,a(e)),(Qe(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Qe(e))&&p.refs.setReference(e)},[p.refs]),m=S.useMemo(()=>({...p.refs,setReference:g,setPositionReference:h,domReference:d}),[p.refs,g,h]),b=S.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=S.useMemo(()=>({...p,...r,refs:m,elements:b,nodeId:t}),[p,m,b,t,r]);return en(()=>{r.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),S.useMemo(()=>({...p,context:v,refs:m,elements:b}),[p,m,b,v])}function so(){return Tt().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&zt()}function co(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=S.useRef(!1),u=S.useRef(-1),d=S.useRef(!0);S.useEffect(()=>{if(!a)return;const e=Xe(l.domReference);function t(){!n&&et(l.domReference)&&l.domReference===Ht(qt(l.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),so()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),so()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[l.domReference,n,a]),S.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]),S.useEffect(()=>()=>{xr(u)},[]);const f=S.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Wt(e.nativeEvent);if(s&&Qe(t))if(so()&&!e.relatedTarget){if(!d.current&&!Ut(t))return}else if(!function(e){if(!e||At())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=Qe(t)&&t.hasAttribute(jr("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=Ht(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 S.useMemo(()=>a?{reference:f}:{},[a,f])}function uo(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[hr]:t,[gr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[pr]:""},...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&&[hr,gr].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 fo(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=S.useCallback(t=>uo(t,e,"reference"),t),i=S.useCallback(t=>uo(t,e,"floating"),n),l=S.useCallback(t=>uo(t,e,"item"),r);return S.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}const po=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ho(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=S.useMemo(()=>{var e;return(null==(e=Yt(i.floating))?void 0:e.id)||l},[i.floating,l]),f=null!=(r=po.get(s))?r:s,p=null!=Sr(),h=S.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=S.useMemo(()=>{const e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),m=S.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 S.useMemo(()=>a?{reference:h,floating:g,item:m}:{},[a,h,g,m])}const go=(0,S.createContext)(null),mo=["styles","style","children"],bo=["context"];function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach(function(t){wo(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 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 Oo(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 _o=(0,S.forwardRef)(function(e,t){let{styles:o,style:i,children:l}=e,a=Oo(e,mo);const s=(0,S.useContext)(go);if(!s)return null;const{context:c}=s,u=Oo(s,bo),d=fr([u.refs.setFloating,t]);if(!c.open)return null;let f="",p=null,h=null;switch(u.placement){case"top":case"top-end":case"top-start":f="topArrow",h=!1;break;case"bottom":case"bottom-end":case"bottom-start":f="bottomArrow",h=!0;break;case"left":case"left-end":case"left-start":f="leftArrow",p=!0;break;case"right":case"right-end":case"right-start":f="rightArrow",p=!1}return n(Gr,{root:u.root,children:r("div",yo(yo({ref:d,style:yo(yo({},u.floatingStyles),i)},u.getFloatingProps(a)),{},{children:[l,!u.withoutArrow&&n("div",{className:o&&_()(o.arrow,o[f]),ref:u.arrowRef,style:{position:"absolute",left:null===h&&!1===p?0:u.middlewareData.arrow?.x,right:null===h&&!0===p?0:u.middlewareData.arrow?.x,top:null===p&&!0===h?0:u.middlewareData.arrow?.y,bottom:null===p&&!1===h?0:u.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){jo(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 jo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xo=["children"],Co=e=>{const{children:t}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,xo),o=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:o,withoutArrow:i,arrowRef:l,root:a}=e,[s,c]=(0,S.useState)(t),u=r??s,d=o??c,f=ao({placement:n,open:u,onOpenChange:d,whileElementsMounted:Qn,middleware:[sr(12),ur({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),cr({padding:5}),...!i&&l?.current?[dr({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),m=tn(s),b=tn(n),v=tn(d),y=S.useRef(),w=S.useRef(-1),O=S.useRef(),_=S.useRef(-1),P=S.useRef(!0),j=S.useRef(!1),x=S.useRef(()=>{}),C=S.useRef(!1),E=rn(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});S.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(xr(w),xr(_),P.current=!0,C.current=!1)}},[a,i]),S.useEffect(()=>{if(!a)return;if(!g.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=qt(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[l.floating,n,r,a,g,E]);const R=S.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Er(m.current,"close",y.current);o&&!O.current?(xr(w),w.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(xr(w),r(!1,e,n))},[m,r]),k=rn(()=>{x.current(),O.current=void 0}),D=rn(()=>{if(j.current){const e=qt(l.floating).body;e.style.pointerEvents="",e.removeAttribute(Cr),j.current=!1}}),M=rn(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));S.useEffect(()=>{if(a&&Qe(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(xr(w),P.current=!1,u&&!Qt(y.current)||Rr(v.current)>0&&!Er(m.current,"open"))return;const t=Er(m.current,"open",y.current);t?w.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(M())return void D();x.current();const t=qt(l.floating);if(xr(_),C.current=!1,g.current&&o.current.floatingContext){n||xr(w),O.current=g.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e,!0,"safe-polygon")}});const r=O.current;return t.addEventListener("mousemove",r),void(x.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Bt(l.floating,e.relatedTarget))&&R(e)}function i(e){M()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e)}})(e))}function s(){xr(w)}function c(e){M()||R(e,!1)}},[l,a,e,u,f,R,k,D,r,n,b,p,m,g,o,M,v]),en(()=>{var e;if(a&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&E()){j.current=!0;const e=l.floating;if(Qe(l.domReference)&&e){var t;const n=qt(l.floating).body;n.setAttribute(Cr,"");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,E]),en(()=>{n||(y.current=void 0,C.current=!1,k(),D())},[n,k,D]),S.useEffect(()=>()=>{k(),xr(w),xr(_),D()},[a,l.domReference,k,D]);const I=S.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){P.current||b.current||r(!0,t,"hover")}u&&!Qt(y.current)||n||0===Rr(v.current)||C.current&&e.movementX**2+e.movementY**2<2||(xr(_),"touch"===y.current?o():(C.current=!0,_.current=window.setTimeout(o,Rr(v.current))))}}},[u,r,n,b,v]);return S.useMemo(()=>a?{reference:I}:{},[a,I])}(p,{move:!1,enabled:null==r}),g=fo([h,co(p,{enabled:null==r}),lo(p),ho(p,{role:"tooltip"})]);return(0,S.useMemo)(()=>Po(Po({open:u,setOpen:d,withoutArrow:i,arrowRef:l,root:a},g),f),[u,d,g,f,a])}(r);return n(go.Provider,{value:o,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,S.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Eo);const l=(0,S.useContext)(go),a=r.ref,s=fr([l?.refs.setReference,t,a]);return l?!o&&(0,S.isValidElement)(r)?(0,S.cloneElement)(r,l.getReferenceProps(ko(ko(ko({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",ko(ko({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function Io(e){const{label:o,clickable:i,initialOpen:l,placement:a,withoutArrow:s,wrapTrigger:c,alertType:u="default",root:f,children:p,classes:h}=e,[g,m]=(0,S.useState)(!1),b=(0,S.useRef)(null);return o?p?r(Co,{placement:a,initialOpen:l,open:i?g:void 0,onOpenChange:i?m:void 0,withoutArrow:s,arrowRef:b,root:f,children:[n(Mo,{wrapTrigger:c,onClick:i?()=>m(e=>!e):void 0,className:c?_()(qe,h?.trigger):void 0,children:p}),n(_o,{className:_()(Ve,d[u],h?.content),styles:d,children:o})]}):null:p?n(t,{children:p}):null}var Lo="fieldShell-module__arrow__dXtPp",No="fieldShell-module__chips__Eyi_K",To="fieldShell-module__end-icon__ajeP3",Fo="fieldShell-module__input__mpHQB";function zo(e){const{variant:t="outlined",componentSize:o="medium",fullWidth:i,label:l,error:a,labelExtra:s,inputId:c,onLabelClick:u,wrapperRef:d,hasStartIcon:f,hasEndIcon:p,hasDualEndIcon:h,hasErrorIcon:g,hasClearButton:m,hasArrow:b,chipsMode:v,children:y,classes:w}=e;return r("div",{"data-size":o,className:_()("fieldShell-module__root__vQ9PI",i&&"fieldShell-module__full-width__bYt_Z",w?.root),children:[!!l&&r("div",{className:_()("fieldShell-module__label-row__bOAYh",w?.labelRow),children:[r(fe,{className:_()("fieldShell-module__label__fdgQq",w?.label),component:"label",variant:"caption",htmlFor:c,onClick:u,children:[l,s]}),!!a&&n(Io,{label:a.description,alertType:"error",children:n("span",{className:_()("fieldShell-module__error-name__LUg8D",w?.errorName),children:a.name})})]}),n("div",{ref:d,"data-variant":t,"data-error":a?"":void 0,"data-start-icon":f?"":void 0,"data-end-icon":p?"":void 0,"data-dual-end-icon":h?"":void 0,"data-error-icon":g?"":void 0,"data-clear":m?"":void 0,"data-arrow":b?"":void 0,"data-chips":v?"":void 0,className:_()("fieldShell-module__wrapper__OLPGQ",w?.wrapper),children:y})]})}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 Ao(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){$o(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 $o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ho=e=>n(he,Ao(Ao({},e),{},{children:n("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 Bo(e){return r(t,{children:[e.name,n("br",{}),e.description]})}function Wo(e){const{error:t,componentSize:r="medium",className:o}=e,i="large"===r||"extraLarge"===r?24:20;return n(Io,{label:Bo(t),alertType:"error",children:n("span",{className:_()(To,"fieldShell-module__error-icon__Nyh0h",o),children:n(Ho,{size:i})})})}function Go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Go(Object(n),!0).forEach(function(t){Uo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ko=e=>n(he,qo(qo({},e),{},{children:n("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}));var Yo="inputChip-module__clickable__XZjD7",Xo="inputChip-module__disabled__Zk_O4",Zo="inputChip-module__extraLarge__s_SFd",Jo="inputChip-module__filled__mSiU7",Qo="inputChip-module__icon__phvLA",ei="inputChip-module__large__PPvr0",ti="inputChip-module__medium__VruGz",ni="inputChip-module__outlined__j4EHe",ri="inputChip-module__remove__Z6QBd",oi="inputChip-module__root__DWnVf",ii="inputChip-module__small__XrLEF",li="inputChip-module__text__dhqTV",ai="inputChip-module__with-icon__DZMe4";const si=e=>{const{variant:t="filled",componentSize:o="medium",icon:i,disabled:l,onClick:a,onRemove:s,children:c,classes:u}=e;return r("div",{className:_()(oi,f[t],f[o],!!i&&ai,l&&Xo,a&&!l&&Yo,u?.root),tabIndex:a&&!l?0:void 0,onClick:l?void 0:a,children:[!!i&&n("span",{className:_()(Qo,u?.icon),children:i}),n("span",{className:_()(li,u?.text),children:c}),!!s&&n("button",{type:"button",className:_()(ri,u?.remove),onClick:e=>{e.stopPropagation(),l||s?.()},disabled:l,"aria-label":"Удалить",children:n(Ko,{})})]})},ci=(0,S.createContext)(null),ui=["style","children"],di=["context"];function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(n),!0).forEach(function(t){hi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gi(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 mi=(0,S.forwardRef)(function(e,t){let{style:r,children:o}=e,i=gi(e,ui);const l=(0,S.useContext)(ci);if(!l)return null;const{context:a}=l,s=gi(l,di),c=fr([s.refs.setFloating,t]),u=pe();return(0,S.useLayoutEffect)(()=>(l.setDescriptionId(u),()=>l.setDescriptionId(void 0)),[u,l.setDescriptionId]),a.open?n(Gr,{root:s.root,children:n(Qr,{context:a,modal:s.modal,children:n("div",pi(pi({id:u,ref:c,style:pi(pi({},s.floatingStyles),r),"aria-describedby":s.descriptionId},s.getFloatingProps(i)),{},{children:o}))})}):null}),bi=["update"];function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach(function(t){wi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(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 Oi=["children","modal"];function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Si(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pi=e=>{const{children:t,modal:r=!1}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Oi),i=function(e={}){const{initialOpen:t=!1,placement:n="bottom",modal:r,root:o,open:i,onOpenChange:l,containerOffset:a=12,layoutVersion:s}=e,[c,u]=(0,S.useState)(t),[d,f]=(0,S.useState)(),p=i??c,h=l??u,g=ao({placement:n,open:p,onOpenChange:h,whileElementsMounted:Qn,middleware:[sr(a),ur({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),cr({padding:5})]}),{update:m}=g,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(g,bi),{context:v}=b;(0,S.useLayoutEffect)(()=>{p&&m()},[p,s,m]);const y=fo([no(v,{enabled:null==i}),lo(v),ho(v)]);return(0,S.useMemo)(()=>yi(yi(yi({open:p,setOpen:h},y),b),{},{update:m,modal:r,root:o,descriptionId:d,setDescriptionId:f}),[p,h,y,b,m,r,o,d])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach(function(t){Si(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:r},o));return n(ci.Provider,{value:i,children:t})},ji=["children","wrapTrigger"];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 Ci(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){Ei(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 Ei(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ri=(0,S.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ji);const l=(0,S.useContext)(ci),a=r.ref,s=fr([l?.refs.setReference,t,a]);return l?!o&&(0,S.isValidElement)(r)?(0,S.cloneElement)(r,l.getReferenceProps(Ci(Ci(Ci({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",Ci(Ci({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function ki(e){const{description:t,clickable:o,initialOpen:i,placement:l,wrapTrigger:a,containerOffset:s,root:c,open:u,onOpenChange:d,children:f,classes:p,contentStyle:h,layoutVersion:g}=e,[m,b]=(0,S.useState)(!1);return f?t?r(Pi,{placement:l,initialOpen:i,open:void 0!==u?u:o?m:void 0,onOpenChange:void 0!==d?d:o?b:void 0,containerOffset:s,root:c,layoutVersion:g,children:[n(Ri,{wrapTrigger:a,onClick:o?()=>b(e=>!e):void 0,className:_()(a?"popover-module__trigger__hYNqD":void 0,p?.trigger),children:f}),n(mi,{className:_()("popover-module__content__cXVJ_",p?.content),style:h,children:t})]}):f:null}function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(n),!0).forEach(function(t){Ii(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ii(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Li=e=>n(he,Mi(Mi({},e),{},{children:n("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach(function(t){Fi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zi=e=>n(he,Ti(Ti({},e),{},{children:n("path",{d:"M7 10l5 5 5-5z"})}));function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(t){$i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $i(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hi=e=>n(he,Ai(Ai({},e),{},{children:n("path",{d:"M7 14l5-5 5 5z"})}));function Bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(n),!0).forEach(function(t){Gi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qi=e=>n(he,Wi(Wi({},e),{},{children:n("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"})}));function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach(function(t){Yi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xi=e=>n(he,Ki(Ki({},e),{},{children:n("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})}));function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach(function(t){Qi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const el=e=>n(he,Ji(Ji({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(n),!0).forEach(function(t){rl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ol=e=>n(he,nl(nl({},e),{},{children:n("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?il(Object(n),!0).forEach(function(t){al(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):il(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function al(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sl=e=>n(he,ll(ll({},e),{},{children:n("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach(function(t){dl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fl=e=>n(he,ul(ul({},e),{},{children:n("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));function pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pl(Object(n),!0).forEach(function(t){gl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function 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 ml=e=>n(he,hl(hl({},e),{},{children:n("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"})}));function bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(n),!0).forEach(function(t){yl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wl=e=>n(he,vl(vl({},e),{},{children:n("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"})}));function 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 _l(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){Sl(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 Sl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pl=e=>n(he,_l(_l({},e),{},{children:n("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})}));function jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jl(Object(n),!0).forEach(function(t){Cl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const El=e=>n(he,xl(xl({},e),{},{children:n("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function Rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rl(Object(n),!0).forEach(function(t){Dl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ml=e=>n(he,kl(kl({},e),{},{children:n("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 Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(n),!0).forEach(function(t){Nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tl=e=>n(he,Ll(Ll({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));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 zl(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){Vl(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 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 Al=e=>n(he,zl(zl({},e),{},{children:n("path",{d:"M4.24993 5.61C6.26993 8.2 9.99993 13 9.99993 13V19C9.99993 19.55 10.4499\n 20 10.9999 20H12.9999C13.5499 20 13.9999 19.55 13.9999 19V13C13.9999 13 17.7199 8.2\n 19.7399 5.61C20.2499 4.95 19.7799 4 18.9499 4H5.03993C4.20993 4 3.73993 4.95 4.24993 5.61Z"})}));function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach(function(t){Bl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wl=e=>r(he,Hl(Hl({},e),{},{children:[n("g",{"clip-path":"url(#clip0_851_25267)",children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00015 4L3.46792 0.467773L2.05371 1.88199L4.4002 4.22847C4.01467 4.55071 3.89485 5.1506 4.24984\n 5.61C6.26984 8.2 9.99984 13 9.99984 13V19C9.99984 19.55 10.4498 20 10.9998 20H12.9998C13.5498 20\n 13.9998 19.55 13.9998 19V13.8281L18.9708 18.7991L20.385 17.3849L20.3849 17.3847L14.8734 11.8733L7.00015\n 4ZM16.1091 10.2805C17.2922 8.75591 18.7289 6.90619 19.7398 5.61C20.2498 4.95 19.7798 4 18.9498\n 4H9.82861L16.1091 10.2805Z"})}),n("defs",{children:n("clipPath",{id:"clip0_851_25267",children:n("rect",{width:"24",height:"24",fill:"white"})})})]}));function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gl(Object(n),!0).forEach(function(t){Ul(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ul(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kl=e=>n(he,ql(ql({},e),{},{children:n("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10\n 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function Yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yl(Object(n),!0).forEach(function(t){Zl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jl=e=>n(he,Xl(Xl({},e),{},{children:n("path",{d:"M23 21.5H1L12 2.5L23 21.5ZM4.47005 19.5H19.53L12 6.48959L4.47005 19.5ZM13 18.5H11V16.5H13V18.5ZM13 10.5V14.5H11V10.5H13Z"})}));function Ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ql(Object(n),!0).forEach(function(t){ta(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ql(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ta(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const na=e=>n(he,ea(ea({},e),{},{children:n("path",{d:"M12 8.29498L6 14.295L7.41 15.705L12 11.125L16.59 15.705L18 14.295L12 8.29498Z"})}));function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ra(Object(n),!0).forEach(function(t){ia(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ra(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ia(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const la=e=>n(he,oa(oa({},e),{},{children:n("path",{d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z"})}));function aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(n),!0).forEach(function(t){ca(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ca(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ua=e=>n(he,sa(sa({},e),{},{children:n("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?da(Object(n),!0).forEach(function(t){pa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):da(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ha=e=>n(he,fa(fa({},e),{},{children:n("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}));function 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 ma(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){ba(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 ba(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const va=e=>n(he,ma(ma({},e),{},{children:n("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}));function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach(function(t){Oa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _a=e=>n(he,wa(wa({},e),{},{children:n("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sa(Object(n),!0).forEach(function(t){ja(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ja(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xa=e=>n(he,Pa(Pa({},e),{},{children:n("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})}));function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach(function(t){Ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ra(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ka=e=>n(he,Ea(Ea({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function Da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(n),!0).forEach(function(t){Ia(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Da(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ia(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const La=e=>n(he,Ma(Ma({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));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 Ta(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){Fa(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 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 za=e=>n(he,Ta(Ta({},e),{},{children:n("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"})}));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 Aa(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){$a(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 $a(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(he,Aa(Aa({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach(function(t){Ga(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ga(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(he,Wa(Wa({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"})}));function 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 Ka(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){Ya(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 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 Xa=e=>n(he,Ka(Ka({},e),{},{children:n("path",{d:"M18.3688 3.29L20.7088 5.63C21.0988 6.02 21.0988 6.65 20.7088 7.04L18.8788 8.87L15.1288 5.12L16.9588 3.29C17.1488 3.1 17.3988 3 17.6588 3C17.9188 3 18.1688 3.09 18.3688 3.29ZM2.99878 17.25V21H6.74878L17.8088 9.94L14.0588 6.19L2.99878 17.25ZM5.91878 19H4.99878V18.08L14.0588 9.02L14.9788 9.94L5.91878 19Z"})}));function Za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(n),!0).forEach(function(t){Qa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const es=e=>n(he,Ja(Ja({},e),{},{children:n("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2\n 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})}));function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(n),!0).forEach(function(t){rs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const os=e=>n(he,ns(ns({},e),{},{children:n("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?is(Object(n),!0).forEach(function(t){as(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function as(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ss=e=>n(he,ls(ls({},e),{},{children:n("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z"})}));function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?cs(Object(n),!0).forEach(function(t){ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ds(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(he,us(us({},e),{},{children:n("path",{d:"M17 11v6.97l-5-2.14-5 2.14V5h6V3H7c-1.1 0-2\n .9-2 2v16l7-3 7 3V11h-2zm4-4h-2v2h-2V7h-2V5h2V3h2v2h2v2z"})}));function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?ps(Object(n),!0).forEach(function(t){gs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ms=e=>n(he,hs(hs({},e),{},{children:n("path",{fill:"currentColor",d:"m16.2 20.5 2.8-2.8V20h1v-4h-4v1h2.3l-2.8 2.8zM5 21q-.824\n 0-1.412-.587A1.93 1.93 0 0 1 3 19V5Q3 4.176 3.588 3.588A1.93\n 1.93 0 0 1 5 3h14q.824 0 1.413.588Q21 4.175 21 5v6.7a8 8 0\n 0 0-.975-.387A6 6 0 0 0 19 11.075V5H5v14h6.05q.076.55.237\n 1.05.163.5.388.95zm0-3v1V5v8.075V11zm2-1h4.075q.076-.525.238-1.025T11.675\n 15H7zm0-4h6.1q.8-.75 1.787-1.25A7 7 0 0 1 17 11.075V11H7zm0-4h10V7H7zm15\n 14q-2.075 0-3.537-1.462Q13 20.074 13 18q0-2.075 1.463-3.537Q15.926 13\n 18 13q2.075 0 3.538 1.463T23 18t-1.462 3.538Q20.074 23 18 23"})}));function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bs(Object(n),!0).forEach(function(t){ys(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bs(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 ws=e=>n(he,vs(vs({},e),{},{children:n("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));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 _s(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){Ss(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 Ss(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ps=e=>n(he,_s(_s({},e),{},{children:n("path",{d:"M12 6.375C15.75 6.375 18.9525 8.7075 20.25 12C18.9525 15.2925 15.75 17.625 12 17.625C8.25\n 17.625 5.0475 15.2925 3.75 12C5.0475 8.7075 8.25 6.375 12 6.375ZM12 7.875C9.15755 7.87505\n 6.62225 9.47254 5.38477 12C6.62225 14.52746 9.15755 16.12495 12 16.125C14.8425\n 16.125 17.3777 14.5275 18.6152 12C17.3777 9.4725 14.8425 7.875 12 7.875ZM12\n 8.625C13.86 8.625 15.375 10.14 15.375 12C15.375 13.86 13.86 15.375 12 15.375C10.14 15.375\n 8.625 13.86 8.625 12C8.625 10.14 10.14 8.625 12 8.625ZM12 10.125C10.965 10.125 10.125 10.965\n 10.125 12C10.125 13.035 10.965 13.875 12 13.875C13.035 13.875 13.875 13.035\n 13.875 12C13.875 10.965 13.035 10.125 12 10.125Z"})}));function js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?js(Object(n),!0).forEach(function(t){Cs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Es=e=>n(he,xs(xs({},e),{},{children:n("path",{d:"M12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V8Z"})}));function Rs(){const e=(0,S.useContext)(ci);return n(e?.open?Hi:zi,{})}const ks=e=>{const{children:t,fillEvenly:r,classes:o}=e;return n("div",{className:_()("buttonsGroup-module__root__rBp1o",r&&"buttonsGroup-module__fill-evenly__J5T6H",o?.root),children:t})};var Ds="menu-module__divider__kik9c",Ms="menu-module__extraLarge__RIQUR",Is="menu-module__item__DO2AJ",Ls="menu-module__item-actions__ecU8y",Ns="menu-module__item-description__BxxnF",Ts="menu-module__item-disabled__E7Z4s",Fs="menu-module__item-icon___HDe4",zs="menu-module__item-selected__m9VFe",Vs="menu-module__item-text-block__zgpGT",As="menu-module__item-title__gcK7P",$s="menu-module__item-title-top__PSYWj",Hs="menu-module__large__jYm_Q",Bs="menu-module__medium__Jev6c",Ws="menu-module__root__pR_5h",Gs="menu-module__small__uGqFV",qs="menu-module__state-layer__m8uMf";function Us(e){const{items:o,size:i="medium",descriptionPosition:l="right",classes:a}=e,s=(0,S.useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]);return n("div",{className:_()(Ws,p[i],a?.root),children:o.map((e,o)=>{const c="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?n(c,{tabIndex:-10,className:_()(Is,e.selected?zs:void 0,e.disabled?Ts:void 0,a?.item,e.selected?a?.itemSelected:void 0,e.disabled?a?.itemDisabled:void 0),onClick:e.disabled?void 0:s(e),title:e.name,children:r("span",{className:_()(qs),children:[!!e.icon&&n("span",{className:_()(Fs,a?.itemIcon,e.selected?a?.itemSelectedIcon:void 0,e.disabled?a?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===l&&e.description?r("span",{className:_()(Vs),children:[n("span",{className:_()($s,As,a?.itemTitle,e.selected?a?.itemSelectedTitle:void 0,e.disabled?a?.itemDisabledTitle:void 0),children:e.name}),n("span",{className:_()(Ns,a?.itemDescription,e.selected?a?.itemSelectedDescription:void 0,e.disabled?a?.itemDisabledDescription:void 0),children:e.description})]}):r(t,{children:[n("span",{className:_()(As,a?.itemTitle,e.selected?a?.itemSelectedTitle:void 0,e.disabled?a?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&n("span",{className:_()(Ns,a?.itemDescription,e.selected?a?.itemSelectedDescription:void 0,e.disabled?a?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&n("div",{className:_()(Ls,a?.itemActions,e.selected?a?.itemSelectedActions:void 0,e.disabled?a?.itemDisabledActions:void 0),children:n(ks,{children:e.subButtons.map((e,t)=>n(G,{variant:e.variant,size:i,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${o}`):n("div",{className:_()(Ds,a?.divider),children:e.name},`menu-divider-${e.name}-${o}`)})})}function Ks(e){const{items:t,componentSize:r,selectedValue:o,changeSelectedItem:i,classes:l}=e,a=(0,S.useContext)(ci);return n(Us,{size:r,classes:l?.menu,items:t.map(e=>"divider"===e.type?{type:"divider",name:e.name}:{type:"item",name:e.name,icon:e.icon,description:e.description,disabled:e.disabled,selected:e.value===o,onClick:()=>{i(e),a&&a.setOpen(!1)}})})}const Ys=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","defaultValue","onValueChange","selected","chips","classes","ref","disabled","id"];function Xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Xs(Object(n),!0).forEach(function(t){Js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xs(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}function Qs(e){const{variant:t="filled",componentSize:o="medium",icon:i,fullWidth:l,label:a,error:s,placeholder:c,items:u,defaultValue:d,onValueChange:f,selected:p,chips:h,classes:g,ref:m,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,Ys),w=d&&!p,[O,P]=(0,S.useState)(w?u.find(e=>"item"===e.type&&e.value===d):void 0),j=w?O:p,x=(0,S.useRef)(null),C=(0,S.useRef)(null),E=(0,S.useCallback)(e=>{e.preventDefault(),b||C?.current?.click()},[C]),R=e=>{w&&P(e),f?.(e)};(0,S.useEffect)(()=>{if(j){const e=u.find(e=>"item"===e.type&&e.value===j?.value);e||R(e)}},[u,j]);const k=v??Te(),D=!!s&&!a;return r(zo,{variant:t,componentSize:o,fullWidth:l,label:a,error:s,inputId:k,onLabelClick:E,hasStartIcon:!!i||!!j?.icon,hasArrow:!0,hasErrorIcon:D,chipsMode:h&&!!j,classes:Zs(Zs({},g),{},{wrapper:_()(i?"select-module__with-icon__sdr2r":void 0,j?.icon?"select-module__with-item-icon__j4VL9":void 0,g?.wrapper)}),children:[n("input",Zs(Zs({ref:U([x,m]),id:k,className:_()(Fo,"select-module__input__ajhdt",g?.input),placeholder:h&&j?void 0:c},y),{},{value:h?"":j?.name??"",onChange:()=>{},onClick:E,disabled:b})),h&&!!j&&n("span",{className:_()(No,g?.chips),children:n(si,{componentSize:o,disabled:b,onClick:()=>C?.current?.click(),onRemove:()=>R(void 0),children:j.name})}),!!i&&n("span",{onClick:E,className:_()("select-module__icon__eKwKi",g?.icon),children:i}),!!j?.icon&&n("span",{onClick:E,className:_()("select-module__item-icon__qWzAS",g?.itemIcon),children:j?.icon}),n("span",{onClick:E,className:_()(Lo,g?.arrow),children:n(Rs,{})}),D&&s&&n(Wo,{error:s,componentSize:o,className:g?.errorIcon}),n(ki,{placement:"bottom-start",classes:Zs({content:_()("select-module__popover-content__jWbFy","styledScroll",g?.popoverContent)},g?.popover),containerOffset:4,description:n(Ks,{items:u,classes:g,componentSize:o,selectedValue:j?.value,changeSelectedItem:R}),children:n("div",{ref:C,className:_()("select-module__popover-target__utEyc")})})]})}var ec=s(353),tc=s.n(ec),nc="calendarPopover-module__button__Dpl18",rc="calendarPopover-module__buttons-container__sW9eE",oc="calendarPopover-module__calendar-container__fGMyq",ic="calendarPopover-module__cell__fwBxE",lc="calendarPopover-module__cell-circle__PykI1",ac="calendarPopover-module__cell-data__fnxK0",sc="calendarPopover-module__cell-selection__jmUxe",cc="calendarPopover-module__cell-selection-first__bRcBr",uc="calendarPopover-module__cell-selection-last__hyv9Z",dc="calendarPopover-module__cells-container__B6mTs",fc="calendarPopover-module__date-time-mode__eJCHs",pc="calendarPopover-module__medium__pk6es",hc="calendarPopover-module__month__FCpIG",gc="calendarPopover-module__month-cell-selection__phhRr",mc="calendarPopover-module__month-cell-selection-first__lSKG9",bc="calendarPopover-module__month-cell-selection-last__IKh98",vc="calendarPopover-module__month-view__wNOC9",yc="calendarPopover-module__navigation-arrow__oiWet",wc="calendarPopover-module__navigation-container__Hut1m",Oc="calendarPopover-module__navigation-title__sp73c",_c="calendarPopover-module__navigation-value__Ht40y",Sc="calendarPopover-module__root__R8QOY",Pc="calendarPopover-module__small__GlV62",jc="calendarPopover-module__time-container__x4jnu",xc="calendarPopover-module__time-divider__aRbbR",Cc="calendarPopover-module__time-selection-marker__bVI6A",Ec="calendarPopover-module__year__BTz_s";const Rc=(e,t,n,r=1,o=!1)=>e(o?Date.UTC(t,n,r):new Date(t,n,r));function kc(e){const{values:t,selectedValue:r,onSelect:o}=e,i=t.length,l=36*(i+r),a=(0,S.useRef)(null),s=(0,S.useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,S.useEffect)(()=>{const e=a.current;e&&(Math.abs(e.scrollTop-l)<=1||(e.scrollTop=l))},[l]);const c=(0,S.useCallback)(e=>t[(e%i+i)%i],[t,i]),u=(0,S.useCallback)(()=>{const e=a.current;if(!e)return;const t=Math.round(e.scrollTop/36),n=c(t);n!==r&&o(n),(t<i||t>=2*i)&&(e.scrollTop=36*(i+n))},[c,o,r,i]),d=(0,S.useCallback)(e=>()=>{const t=a.current;t?(t.scrollTo({top:36*(i+e),behavior:"smooth"}),o(e)):o(e)},[o,i]);return n("div",{ref:a,className:_()("timeWheelColumn-module__time-wheel__fk6Jj"),onScroll:u,tabIndex:-1,children:s.map((e,t)=>n("button",{type:"button",className:_()("timeWheelColumn-module__time-wheel-button__c61An","timeWheelColumn-module__time-wheel-item__Gjqub",e===r&&"timeWheelColumn-module__time-wheel-item-active__PLWg9"),onClick:d(e),children:n(fe,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function Dc(e){const{dayjs:o,componentSize:i,isPeriod:l=!0,valueType:a="date",initStartDate:s,initEndDate:c,changeDates:u,onClear:d,useUtc:f=!1,classes:p}=e,g=o??tc(),m="dateTime"===a&&!l,[b,v]=(0,S.useState)("year"===a?"yearsRange":"month"),[y,w]=(0,S.useState)(()=>{if(s){const e=g(s);return{year:e.year(),month:e.month()}}const e=g();return{year:e.year(),month:e.month()}}),[O,P]=(0,S.useState)(s?m?g(s).second(0).millisecond(0).valueOf():g(s).startOf("D").valueOf():void 0),[j,x]=(0,S.useState)(c?g(c).startOf("D").valueOf():void 0),[C,E]=(0,S.useState)(m&&s?g(s).hour():0),[R,k]=(0,S.useState)(m&&s?g(s).minute():0),D=(0,S.useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),M=(0,S.useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),I=(0,S.useMemo)(()=>O?g(O).startOf("D").valueOf():void 0,[O,g]),L=(0,S.useMemo)(()=>j?g(j).startOf("D").valueOf():void 0,[j,g]),N=(0,S.useMemo)(()=>I?g(I).startOf("M").valueOf():void 0,[I,g]),T=(0,S.useMemo)(()=>L?g(L).startOf("M").valueOf():void 0,[L,g]),F=(0,S.useMemo)(()=>I?g(I).year():void 0,[I,g]),z=(0,S.useMemo)(()=>L?g(L).year():void 0,[L,g]),V=(0,S.useMemo)(()=>Rc(g,y.year,y.month,1,f).startOf("month"===b?"M":"y"),[y,b,g,f]),A=V.daysInMonth();let $=V.startOf("M").day()-1;$<0&&($=6),(0,S.useEffect)(()=>O||j?"year"===a?!l&&O?void u(g(O).format("YYYY")):l&&O&&j?void u(g(O).format("YYYY"),g(j).format("YYYY")):void 0:void(m&&O?u(g(O).second(0).millisecond(0).format()):l||!O?l&&O&&j&&u(g(O).format(),g(j).format()):u(g(O).format())):(d?.(),void u()),[O,j,l,a,m,g,u,d]);const H=(0,S.useCallback)((e,t,n)=>g(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[g]);(0,S.useEffect)(()=>{if(!m||!O)return;const e=H(O,C,R);e!==O&&P(e)},[m,O,C,R,H]);const B=(0,S.useCallback)(e=>()=>{const t=Rc(g,y.year,y.month,1,f),n="yearsRange"===b?20*e:e,r="month"===b?"month":"year",o=t.add(n,r);w({month:o.month(),year:o.year()})},[b,y,g,f]),W=(0,S.useCallback)(()=>{"year"!==a&&v("month"===b?"year":"year"===b?"yearsRange":"month")},[b,a]),q=(0,S.useCallback)(e=>()=>{w({month:e.month(),year:e.year()}),v("month")},[]),U=(0,S.useCallback)(e=>()=>{const t=Rc(g,e,0,1,f).startOf("y").valueOf();if(!l)return P(m&&I===t?void 0:m||O!==t?m?H(t,C,R):t:void 0),void x(void 0);O&&j?t===O?P(void 0):(t===j||P(t),x(void 0)):O?t===O?P(void 0):t<O?(x(O),P(t)):x(t):j?t===j?x(void 0):t<j?P(t):(P(j),x(t)):P(t)},[H,j,m,l,C,R,O,I,g,f]),K=(0,S.useMemo)(()=>{const e=V.year();return 20*Math.floor(e/20)},[V]),Y=(0,S.useCallback)(e=>()=>{if(!l)return P(O===e?void 0:e),void x(void 0);O&&j?e===O?P(void 0):(e===j||P(e),x(void 0)):O?e===O?P(void 0):e<O?(x(O),P(e)):x(e):j?e===j?x(void 0):e<j?P(e):(P(j),x(e)):P(e)},[O,j,l]),X=(0,S.useCallback)(e=>{P(void 0),x(void 0),m&&(E(0),k(0)),e.currentTarget.blur()},[m]),Z=(0,S.useCallback)(e=>{const t=g();w({year:t.year(),month:t.month()}),e.currentTarget.blur()},[g]);return r("div",{className:_()(Sc,h[i],m&&fc,p?.root),children:[r("div",{className:_()(oc,"month"===b&&vc),children:[n("div",{className:_()(rc,p?.buttonsContainer),children:r(ks,{fillEvenly:!0,children:[n(G,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:X,children:"Сбросить"}),"year"!==a&&n(G,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:Z,children:"Сегодня"})]})}),r("div",{className:_()(wc,p?.navigationContainer),children:[n("button",{type:"button",className:_()(nc,yc,p?.navigationArrow),onClick:B(-1),"aria-label":"Предыдущий период",children:n(sl,{})}),n("button",{type:"button",className:_()(nc,_c,p?.navigationValue),onClick:W,children:r(fe,{variant:"subtitle1",className:_()(Oc,p?.navigationTitle),children:["month"===b&&V.format("MMMM YYYY"),"year"===b&&V.format("YYYY"),"yearsRange"===b&&`${K} - ${K+19}`]})}),n("button",{type:"button",className:_()(nc,yc,p?.navigationArrow),onClick:B(1),"aria-label":"Следующий период",children:n(fl,{})})]}),r("div",{className:_()(dc,p?.cellsContainer),children:["yearsRange"===b&&n(t,{children:[...Array(20)].map((e,t)=>{const o=K+t,i="year"===a?U(o):()=>{w({month:0,year:o}),v("year")},s="year"===a&&void 0!==F&&(o===F||o===z);let c=!1,u=!1,d=!1;return void 0!==F&&(l?void 0!==z&&(F===z?o===F&&(c=!0):o>=F&&o<=z&&(c=!0,o===F?u=!0:o===z&&(d=!0))):"year"!==a&&o===F&&(c=!0)),r("button",{type:"button",className:_()(nc,ic,Ec,p?.cell,p?.year),onClick:i,children:[s&&n("span",{className:_()(lc,p?.cellCircle)}),c&&n("span",{className:_()(sc,p?.cellSelection,u&&cc,u&&p?.cellSelectionFirst,d&&uc,d&&p?.cellSelectionLast)}),n(fe,{variant:"subtitle1",className:_()(ac,p?.cellData),children:o})]},`cell-year-${o}`)})}),"year"===b&&n(t,{children:[...Array(12)].map((e,t)=>{const o=V.add(t,"M"),i=o.valueOf();let s=!1,c=!1,u=!1;return l&&"year"!==a&&void 0!==N&&void 0!==T?N===T?i===N&&(s=!0):i>=N&&i<=T&&(s=!0,i===N?c=!0:i===T&&(u=!0)):l||"year"===a||void 0===N?s=l?void 0!==N&&void 0!==T&&i>=N&&i<=T:void 0!==N&&i===N:i===N&&(s=!0),r("button",{type:"button",className:_()(nc,ic,hc,p?.cell,p?.month),onClick:q(o),children:[s&&n("span",{className:_()(gc,p?.monthCellSelection,c&&mc,c&&p?.monthCellSelectionFirst,u&&bc,u&&p?.monthCellSelectionLast)}),n(fe,{variant:"subtitle1",className:_()(ac,p?.cellData),children:o.format("MMMM")})]},`cell-month-${t}`)})}),"month"===b&&r(t,{children:[[...Array($)].map((e,t)=>n("div",{className:_()(ic,p?.cell)},`empty-cell-${t}`)),[...Array(A)].map((e,t)=>{const o=V.add(t,"d").valueOf();return r("button",{type:"button",className:_()(nc,ic,p?.cell),onClick:Y(o),children:[(o===I||o===L)&&n("span",{className:_()(lc,p?.cellCircle)}),void 0!==I&&void 0!==L&&o>=I&&o<=L&&n("span",{className:_()(sc,p?.cellSelection,o===I&&cc,o===I&&p?.cellSelectionFirst,o===L&&uc,o===L&&p?.cellSelectionLast)}),n(fe,{variant:"subtitle1",className:_()(ac,p?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),m&&r("div",{className:_()(jc),children:[n("div",{className:_()(Cc)}),n(kc,{values:D,selectedValue:C,onSelect:E}),n(fe,{variant:"subtitle1",className:_()(xc),children:":"}),n(kc,{values:M,selectedValue:R,onSelect:k})]})]})}const Mc=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","error","placeholder","defaultValues","values","onClear","onValueChange","dayjs","useUtc","classes","id","onFocus","onBlur"];function Ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(n),!0).forEach(function(t){Nc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ic(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tc=(0,S.forwardRef)((e,t)=>{let{variant:o="filled",isPeriod:i=!1,valueType:l="date",defaultOpen:a=!1,componentSize:s="medium",fullWidth:c,label:u,error:d,placeholder:f,defaultValues:p,values:h,onClear:g,onValueChange:m,dayjs:b,useUtc:v=!1,classes:y,id:w,onFocus:O,onBlur:P}=e,j=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,Mc);const x=b??tc(),[C,E]=(0,S.useState)(void 0!==h?h:p),[R,k]=(0,S.useState)(a),D=(0,S.useRef)(C);(0,S.useEffect)(()=>{void 0!==h&&E(h)},[h]),(0,S.useEffect)(()=>{void 0===h&&void 0!==p&&E(p)},[p,h]),(0,S.useEffect)(()=>{D.current=C},[C]);const M=i&&"dateTime"===l?"date":l,I=(0,S.useRef)(null),L=pe(),N=w??L,T=(0,S.useCallback)(e=>{k(!0),O?.(e)},[O]),F=(0,S.useCallback)(e=>{R||P?.(e)},[R,P]),z=(0,S.useCallback)(e=>{if(k(e),!e){const e=D.current;void 0!==e&&m?.(e);const t=I.current;if(!t)return;if(document.activeElement===t)return void t.blur();P?.({target:t,currentTarget:t})}},[P,m]),V=(0,S.useCallback)(()=>{I.current?.focus()},[]),A=!!d&&!u,$=(0,S.useCallback)((e,t)=>{const n=i?[e,t]:[e],r=D.current,o=(r?.length??0)===n.length&&r?.every((e,t)=>e===n[t]);o||(D.current=n,E(n))},[i]);return r(zo,{variant:o,componentSize:s,fullWidth:c,label:u,error:d,inputId:N,hasArrow:!0,hasErrorIcon:A,classes:y,children:[n("input",Lc(Lc({ref:U([I,t]),id:N,className:_()(Fo,"dateTime-module__input__p1lxx",y?.input),placeholder:f},j),{},{value:C?.[0]?i&&C[1]?`${x(C[0]).format("year"===M?"YYYY":"DD.MM.YYYY")} - ${x(C[1]).format("year"===M?"YYYY":"DD.MM.YYYY")}`:`${x(C[0]).format("year"===M?"YYYY":"dateTime"===M?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:T,onBlur:F})),n("span",{onClick:V,className:_()(Lo,y?.icon),children:n(wl,{})}),A&&d&&n(Wo,{error:d,componentSize:s,className:y?.errorIcon}),n(ki,{placement:"bottom-start",open:R,onOpenChange:z,classes:Lc(Lc({},y?.popover),{},{content:"dateTime-module__popover-content__I6nGv"}),containerOffset:4,description:n(Dc,{dayjs:x,useUtc:v,classes:y,componentSize:"small"===s||"medium"===s?s:"medium",isPeriod:i,valueType:M,initStartDate:C?.[0],initEndDate:C?.[1],changeDates:$,onClear:g}),children:n("div",{className:_()("dateTime-module__popover-target__PS8vx")})})]})});function Fc(){return(Fc=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 zc(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 Vc(e){var t=(0,S.useRef)(e),n=(0,S.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var Ac=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},$c=function(e){return"touches"in e},Hc=function(e){return e&&e.ownerDocument.defaultView||self},Bc=function(e,t,n){var r=e.getBoundingClientRect(),o=$c(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:Ac((o.pageX-(r.left+Hc(e).pageXOffset))/r.width),top:Ac((o.pageY-(r.top+Hc(e).pageYOffset))/r.height)}},Wc=function(e){!$c(e)&&e.preventDefault()},Gc=S.default.memo(function(e){var t=e.onMove,n=e.onKey,r=zc(e,["onMove","onKey"]),o=(0,S.useRef)(null),i=Vc(t),l=Vc(n),a=(0,S.useRef)(null),s=(0,S.useRef)(!1),c=(0,S.useMemo)(function(){var e=function(e){Wc(e),($c(e)?e.touches.length>0:e.buttons>0)&&o.current?i(Bc(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=s.current,i=Hc(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&&(Wc(t),!function(e,t){return t&&!$c(e)}(t,s.current)&&r)){if($c(t)){s.current=!0;var l=t.changedTouches||[];l.length&&(a.current=l[0].identifier)}r.focus(),i(Bc(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,S.useEffect)(function(){return f},[f]),S.default.createElement("div",Fc({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),qc=function(e){return e.filter(Boolean).join(" ")},Uc=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=qc(["react-colorful__pointer",e.className]);return S.default.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},S.default.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Kc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Yc=(Math.PI,function(e){return tu(Xc(e))}),Xc=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?Kc(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?Kc(parseInt(e.substring(6,8),16)/255,2):1}},Zc=function(e){var t=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Kc(e.h),s:Kc(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Kc(o/2),a:Kc(r,2)}}(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Jc=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:Kc(255*[r,a,l,l,s,r][c]),g:Kc(255*[s,r,r,a,l,l][c]),b:Kc(255*[l,l,s,r,r,a][c]),a:Kc(o,2)}},Qc=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},eu=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?Qc(Kc(255*o)):"";return"#"+Qc(t)+Qc(n)+Qc(r)+i},tu=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:Kc(60*(a<0?a+6:a)),s:Kc(i?l/i*100:0),v:Kc(i/255*100),a:o}},nu=S.default.memo(function(e){var t=e.hue,n=e.onChange,r=qc(["react-colorful__hue",e.className]);return S.default.createElement("div",{className:r},S.default.createElement(Gc,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:Ac(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Kc(t),"aria-valuemax":"360","aria-valuemin":"0"},S.default.createElement(Uc,{className:"react-colorful__hue-pointer",left:t/360,color:Zc({h:t,s:100,v:100,a:1})})))}),ru=S.default.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Zc({h:t.h,s:100,v:100,a:1})};return S.default.createElement("div",{className:"react-colorful__saturation",style:r},S.default.createElement(Gc,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:Ac(t.s+100*e.left,0,100),v:Ac(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Kc(t.s)+"%, Brightness "+Kc(t.v)+"%"},S.default.createElement(Uc,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Zc(t)})))}),ou=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function iu(e,t,n){var r=Vc(n),o=(0,S.useState)(function(){return e.toHsva(t)}),i=o[0],l=o[1],a=(0,S.useRef)({color:t,hsva:i});(0,S.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,S.useEffect)(function(){var t;ou(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,S.useCallback)(function(e){l(function(t){return Object.assign({},t,e)})},[]);return[i,s]}var lu="undefined"!=typeof window?S.useLayoutEffect:S.useEffect,au=new Map,su=function(e){var t,n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,l=e.onChange,a=zc(e,["className","colorModel","color","onChange"]),c=(0,S.useRef)(null);t=c,lu(function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!au.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}',au.set(e,n);var r=s.nc;r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[]);var u=iu(r,i,l),d=u[0],f=u[1],p=qc(["react-colorful",n]);return S.default.createElement("div",Fc({},a,{ref:c,className:p}),S.default.createElement(ru,{hsva:d,onChange:f}),S.default.createElement(nu,{hue:d.h,onChange:f,className:"react-colorful__last-control"}))},cu={defaultColor:"000",toHsva:Yc,fromHsva:function(e){return function(e){return eu(Jc(e))}({h:e.h,s:e.s,v:e.v,a:1})},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||ou(Xc(e),Xc(t))}},uu=function(e){return S.default.createElement(su,Fc({},e,{colorModel:cu}))};const du=["variant","componentSize","fullWidth","label","error","classes","placeholder","ref","disabled","defaultValue","id","onValueChange"];function fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fu(Object(n),!0).forEach(function(t){hu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gu=e=>{const{variant:t="outlined",componentSize:o="medium",fullWidth:i,label:l,error:a,classes:s,placeholder:c,ref:u,disabled:d,defaultValue:f,id:p,onValueChange:h}=e,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,du),[m,b]=(0,S.useState)(f?.toString()??"#AABBCC"),v=(0,S.useRef)(null),y=(0,S.useRef)(null),w=(0,S.useCallback)(e=>{b(e.toUpperCase()),h?.(e.toUpperCase())},[]),O=(0,S.useCallback)(e=>{e.preventDefault(),d||y?.current?.click()},[y]),P=p??Te(),j=!!a&&!l;return r(zo,{variant:t,componentSize:o,fullWidth:i,label:l,error:a,inputId:P,onLabelClick:O,hasStartIcon:!0,hasArrow:!0,hasErrorIcon:j,classes:pu(pu({},s),{},{root:_()("colorPicker-module__root__yWPxF",s?.root)}),children:[n("input",pu(pu({ref:U([v,u]),id:P,className:_()(Fo,"colorPicker-module__input__gaesN",s?.input),placeholder:c},g),{},{value:m,onChange:()=>{},onClick:O,disabled:d})),n("span",{onClick:O,className:_()("colorPicker-module__swatch__MvnQ3",s?.icon),style:{backgroundColor:m}}),n("span",{onClick:O,className:_()(Lo,s?.arrow),children:n(Rs,{})}),j&&a&&n(Wo,{error:a,componentSize:o,className:s?.errorIcon}),n(ki,{placement:"bottom-start",classes:pu({content:_()("colorPicker-module__popover-content__lql7r",s?.popoverContent)},s?.popover),containerOffset:4,description:n(uu,{color:m,onChange:w}),children:n("div",{ref:y,className:_()("colorPicker-module__popover-target__M5buG")})})]})};var mu="input-module__field-icon__OVtdo";const bu=["variant","componentSize","fullWidth","label","error","startIcon","endIcon","classes","placeholder","id","type","onChange"];function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(n),!0).forEach(function(t){wu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ou=(0,S.forwardRef)((e,o)=>{let{variant:i="outlined",componentSize:l="medium",fullWidth:a,label:s,error:c,startIcon:u,endIcon:d,classes:f,placeholder:p,id:h,type:g,onChange:m}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,bu);const v=(0,S.useRef)(null),[y,w]=(0,S.useState)(""),O=pe(),P=h??O,j="file"===g,x=!!c&&!j&&!s,C=!j&&!!d,E=()=>{v.current?.focus()};return r(zo,{variant:i,componentSize:l,fullWidth:a,label:s,error:c,inputId:P,hasStartIcon:!j&&!!u,hasEndIcon:C||x,hasDualEndIcon:C&&x,classes:f,children:[j?r(t,{children:[n("input",yu({ref:U([v,o]),id:P,className:_()("input-module__file-input__Hj1fC",f?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];w(t?.name??""),m?.(e)}},b)),r("div",{role:"button",tabIndex:0,className:_()(Fo,"input-module__file-display__GKw0F",f?.input),onClick:()=>v.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),v.current?.click())},children:[n("span",{className:_()("input-module__file-name__AVwRH",!y&&"input-module__placeholder__QpTXt"),children:y||p}),n(qi,{size:20,className:"input-module__attach-icon__W3URr"})]})]}):n("input",yu({ref:U([v,o]),id:P,className:_()(Fo,"input-module__input__Xce3x",f?.input),placeholder:p,type:g,autoComplete:"off",onChange:m},b)),!!u&&!j&&n("span",{onClick:E,className:_()("fieldShell-module__start-icon__FNrDk",mu,f?.startIcon),children:u}),C&&n("span",{onClick:E,className:_()(To,mu,f?.endIcon),children:d}),x&&c&&n(Wo,{error:c,componentSize:l,className:f?.errorIcon})]})}),_u=e=>"string"==typeof e,Su=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Pu=e=>null==e?"":String(e),ju=/###/g,xu=e=>e&&e.includes("###")?e.replace(ju,"."):e,Cu=e=>!e||_u(e),Eu=(e,t,n)=>{const r=_u(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Cu(e))return{};const t=xu(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return Cu(e)?{}:{obj:e,k:xu(r[o])}},Ru=(e,t,n)=>{const{obj:r,k:o}=Eu(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=Eu(e,l,Object);for(;void 0===a.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),a=Eu(e,l,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},ku=(e,t)=>{const{obj:n,k:r}=Eu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Du=(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]):Du(e[r],t[r],n):e[r]=t[r]);return e},Mu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Iu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Lu=e=>_u(e)?e.replace(/[&<>"'\/]/g,e=>Iu[e]):e,Nu=[" ",",","?","!",";"],Tu=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),Fu=(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},zu=e=>e?.replace(/_/g,"-"),Vu={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 Au{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Vu,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 Au(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Au(this.logger,e)}}var $u=new Au;class Hu{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 Bu extends Hu{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=ku(this.data,l);return a||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!a&&i&&_u(n)?Fu(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),Ru(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=ku(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Du(a,n,o):a={...a,...n},Ru(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 Wu={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 Gu=Symbol("i18next/PATH_KEY");function qu(e,t){const{[Gu]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Gu?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 Uu=e=>!_u(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Ku extends Hu{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=$u.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=Uu(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=Nu.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=Tu.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=qu(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?qu(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=Ku.hasDefaultValue(r),w=v?this.pluralResolver.getSuffix(u,r.count,r):"",O=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",_=v&&!r.ordinal&&0===r.count,S=_&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${O}`]||r.defaultValue;let P=p;b&&!p&&y&&(P=S);const j=Uu(P),x=Object.prototype.toString.apply(P);if(!(b&&P&&j)||["[object Number]","[object Function]","[object RegExp]"].includes(x)||_u(m)&&Array.isArray(P))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=S),this.isValidLookup(p)||(o=!0,p=l);const a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=y&&S!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,s,v&&!d?`${l}${this.pluralResolver.getSuffix(u,r.count,r)}`:l,d?S:p),i){const e=this.resolve(l,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=y&&n!==p?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,o,d,r),this.emit("missingKey",e,s,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);_&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],l+t,r[`defaultValue${t}`]||S)})}):n(e,l,S))}p=this.extendTranslation(p,e,r,f,n),o&&p===l&&this.options.appendNamespaceToMissingKey&&(p=`${s}${c}${l}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${l}`:l,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,P,{...r,ns:a}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(i){const e=Array.isArray(P),t=e?[]:{},n=e?g:h;for(const e in P)if(Object.prototype.hasOwnProperty.call(P,e)){const o=`${n}${i}${e}`;t[e]=y&&!p?this.translate(o,{...r,defaultValue:Uu(S)?S[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...r,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=P[e])}p=t}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(r),f):p}extendTranslation(e,t,n,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=_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=Wu.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?qu(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 Yu{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$u.create("languageUtils")}getScriptPartFromCode(e){if(!(e=zu(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=zu(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 Xu={zero:0,one:1,two:2,few:3,many:4,other:5},Zu={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ju{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=$u.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=zu("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!"),Zu;if(!e.match(/-|_/))return Zu;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)=>Xu[e]-Xu[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 Qu=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=ku(e,n);return void 0!==r?r:ku(t,n)})(e,t,n);return!i&&o&&_u(n)&&(i=Fu(e,n,r),void 0===i&&(i=Fu(t,n,r))),i},ed=e=>e.replace(/\$/g,"$$$$");class td{constructor(e={}){this.logger=$u.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:Lu,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?Mu(o):i||"{{",this.suffix=l?Mu(l):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u?Mu(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?Mu(c):"",this.nestingPrefix=d?Mu(d):f||Mu("$t("),this.nestingSuffix=p?Mu(p):h||Mu(")"),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=Qu(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(Qu(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=>ed(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ed(this.escape(e)):ed(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=Pu(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(`${Mu(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=Pu(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 nd=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(zu(r),o),t[l]=a),a(n)}},rd=e=>(t,n,r)=>e(zu(n),r)(t);class od{constructor(e={}){this.logger=$u.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?nd:rd;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()]=nd(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 id extends Hu{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=$u.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}=Eu(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 ld=()=>({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}),ad=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),sd=()=>{};class cd extends Hu{constructor(e={},t){var n;if(super(),this.options=ad(e),this.services={},this.logger=$u,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=ld();this.options={...n,...this.options,...ad(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?$u.init(r(this.modules.logger),this.options):$u.init(null,this.options),e=this.modules.formatter?this.modules.formatter:od;const t=new Yu(this.options);this.store=new Bu(this.options.resources,this.options);const n=this.services;n.logger=$u,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Ju(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 td(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new id(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 Ku(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=sd),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=Su(),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=sd){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=Su();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=sd),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&&Wu.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=Su();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=qu(i.keyPrefix,l));const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=qu(e,l)),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=qu(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=Su();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=Su();_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 Yu(ld());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 cd(e,t);return n.createInstance=cd.createInstance,n}cloneInstance(e={},t=sd){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new cd(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 Bu(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...ld().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new td(n)}return o.translator=new Ku(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 ud=cd.createInstance();ud.createInstance,ud.dir,ud.init,ud.loadResources,ud.reloadResources,ud.use,ud.changeLanguage,ud.getFixedT,ud.t,ud.exists,ud.setDefaultNamespace,ud.hasLoadedNamespace,ud.loadNamespaces,ud.loadLanguages,s(915),Object.create(null);const dd=(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);bd(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},fd={},pd=(e,t,n,r)=>{bd(n)&&fd[n]||(bd(n)&&(fd[n]=new Date),dd(e,t,n,r))},hd=(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,hd(e,n))},md=(e,t,n,r)=>{if(bd(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,hd(e,r))},bd=e=>"string"==typeof e,vd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,yd={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},wd=e=>yd[e];let Od={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(vd,wd),transDefaultProps:void 0};const _d=(0,S.createContext)();class Sd{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}Error;const Pd={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"};new RegExp(Object.keys(Pd).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var jd=s(888);const xd={t:(e,t)=>{if(bd(t))return t;if("object"==typeof(n=t)&&null!==n&&bd(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},Cd=()=>()=>{},Ed=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=(0,S.useContext)(_d)||{},i=n||r||void 0;i&&!i.reportNamespaces&&(i.reportNamespaces=new Sd),i||pd(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=(0,S.useMemo)(()=>({...Od,...i?.options?.react,...t}),[i,t]),{useSuspense:a,keyPrefix:s}=l,c=e||o||i?.options?.defaultNS,u=bd(c)?[c]:c||["translation"],d=(0,S.useMemo)(()=>u,u);i?.reportNamespaces?.addUsedNamespaces?.(d);const f=(0,S.useRef)(0),p=(0,S.useCallback)(e=>{if(!i)return Cd;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,S.useRef)(),g=(0,S.useCallback)(()=>{if(!i)return xd;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}}):(pd(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]),[m,b]=(0,S.useState)(0),{t:v,ready:y}=(0,jd.useSyncExternalStore)(p,g,g);(0,S.useEffect)(()=>{if(i&&!y&&!a){const e=()=>b(e=>e+1);t.lng?md(i,t.lng,d,e):gd(i,d,e)}},[i,t.lng,d,y,a,m]);const w=i||{},O=(0,S.useRef)(null),_=(0,S.useRef)(),P=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},j=(0,S.useMemo)(()=>{const e=w,t=e?.language;let n=e;e&&(O.current&&O.current.__original===e?_.current!==t?(n=P(e),O.current=n,_.current=t):n=O.current:(n=P(e),O.current=n,_.current=t));const r=y||a?v:(...e)=>(pd(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...e)),o=[r,n,y];return o.t=r,o.i18n=n,o.ready=y,o},[v,w,y,w.resolvedLanguage,w.language,w.languages]);if(i&&a&&!y)throw new Promise(e=>{const n=()=>e();t.lng?md(i,t.lng,d,n):gd(i,d,n)});return j},Rd=()=>{const{t:e,i18n:t}=Ed();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}},kd=["variant","disableIcon","placeholder","ref"];function Dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Md(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 Id(e){const{variant:t="filled",disableIcon:r,placeholder:o,ref:i}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,kd),{t:a}=Rd();return n(Ou,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dd(Object(n),!0).forEach(function(t){Md(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:i,variant:t,startIcon:r?void 0:n(va,{}),placeholder:o??a("Поиск...")},l))}var Ld="wrapForLabel-module__medium__xK1gW",Nd="wrapForLabel-module__root__qo0J8",Td="wrapForLabel-module__small__esSsd";const Fd=e=>{const{componentSize:t="medium",children:r,classes:o}=e;return n("div",{className:_()(Nd,g[t],o?.root),children:r})};function zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 Ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ad(Object(n),!0).forEach(function(t){Hd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ad(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 Bd(e){const{items:o,selected:i,disableSearch:l,isDisabled:a,actionWithSelected:s,onChangeItem:c,classes:u}=e,{t:d}=Rd(),[f,p]=(0,S.useState)(""),h=(0,S.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?zd(Object(n),!0).forEach(function(t){Vd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]))(o,f,i),[o,f,i]),g=(0,S.useMemo)(()=>o.filter(e=>!!i[e.value]),[o,i]),m=(0,S.useCallback)(e=>{const t=!i[e.value];c&&c(e);const n=$d($d({},i),{},{[e.value]:t});s(n)},[i,c,s]),b=(0,S.useCallback)(()=>{const e=$d({},i);h.forEach(t=>{e[t.value]=!0}),s(e)},[i,h,s]),v=(0,S.useCallback)(()=>{const e=$d({},i);g.forEach(t=>{delete e[t.value]}),s(e)},[i,g,s]),y=(0,S.useCallback)(e=>{p(e.target.value)},[]),w=(0,S.useCallback)(e=>t=>{t.stopPropagation(),m(e)},[m]);return r("div",{className:_()("checklist-module__root__AKDzG",u?.root),children:[!l&&n(Id,{variant:"outlined",disabled:a,value:f,fullWidth:!0,classes:u?.searchInput,onChange:y}),r("div",{className:_()("checklist-module__scrolled__mpmGi","styledScroll",u?.scrolled),children:[g.length>0&&r(t,{children:[r("div",{className:_()("checklist-module__action-wrap__rW_zg",u?.actionWrap),children:[n(fe,{className:_()(u?.typography),children:d("Выбранное")}),n(G,{variant:"text",size:"small",compact:!0,disabled:a,onClick:v,className:_()(u?.button),children:d("Отменить")})]}),n("div",{children:g.map(e=>n(Ie,{label:e.name,checked:!!i[e.value],onChange:w(e),disabled:a,classes:u?.checkbox},`selected-${e.value}`))})]}),!a&&!!h.length&&n(G,{variant:"text",size:"small",compact:!0,disabled:a,onClick:b,className:_()(u?.button),children:d("Выбрать все")}),n("div",{children:h.map(e=>n(Ie,{label:e.name,checked:!!i[e.value],onChange:w(e),disabled:a,classes:u?.checkbox},`filtered-${e.value}`))})]})]})}const Wd=["checklistWrapper"];function Gd(e){const{items:t,selected:r,onSelectedChange:o,classes:i,enableSearch:l=!1,disabled:a}=e,s=(0,S.useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),c=(0,S.useMemo)(()=>{const e={};return r?.forEach(t=>{e[t]=!0}),e},[r]),u=(0,S.useCallback)(e=>{const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const r=t.find(e=>e.value===n);r&&e.push(r)}return e},[]);o(n)},[o,t]),d=i??{},{checklistWrapper:f}=d,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(d,Wd);return n("div",{className:_()(f),children:n(Bd,{disableSearch:!l,isDisabled:a,items:s,selected:c,actionWithSelected:u,classes:p})})}const qd=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onValueChange","selected","classes","ref","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ud(Object(n),!0).forEach(function(t){Yd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ud(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 Xd(e){const{variant:t="filled",componentSize:o="medium",icon:i,fullWidth:l,label:a,error:s,placeholder:c,items:u,onValueChange:d,selected:f,classes:p,ref:h,disabled:g,id:m,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,qd),P="chips"===b,{t:j}=Ed(),x=(0,S.useRef)(null),C=(0,S.useRef)(null),E=(0,S.useRef)(null),[R,k]=(0,S.useState)(!1),[D,M]=(0,S.useState)(),[I,L]=(0,S.useState)(0),N=(0,S.useMemo)(()=>u.filter(e=>f?.includes(e.value)),[f,u]);(0,S.useLayoutEffect)(()=>{const e=x.current;if(!e)return;const t=()=>{const{width:t}=e.getBoundingClientRect();M(t),L(e=>e+1)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),(0,S.useLayoutEffect)(()=>{P&&L(e=>e+1)},[P,N.length]);const T=(0,S.useCallback)(e=>{e.preventDefault(),g||k(e=>!e)},[g]),F=(0,S.useCallback)(e=>{d?.(e)},[d]),z=(0,S.useMemo)(()=>N.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,N,j):"",[b,N,j]),V=m??Te(),A=!!s&&!a;return r(zo,{variant:t,componentSize:o,fullWidth:l,label:a,error:s,labelExtra:v&&N.length>0?n("span",{className:_()("multiSelect-module__label-selected-count__gCPqL",p?.labelSelectedCount),children:` (${N.length})`}):void 0,inputId:V,onLabelClick:T,wrapperRef:x,hasStartIcon:!!i,hasArrow:!0,hasErrorIcon:A,hasClearButton:!!N.length,chipsMode:P,classes:p,children:[n("input",Kd(Kd({ref:U([C,h]),id:V,className:_()(Fo,"multiSelect-module__input__Hk3TU",p?.input),placeholder:P&&N.length?void 0:c},O),{},{value:P?"":z,onClick:T,disabled:g,readOnly:!0,title:P?void 0:N.map(e=>e.name).join(", "),autoComplete:"off"})),P&&!!N.length&&n("span",{className:_()(No,"multiSelect-module__chips__CUViE",p?.chips),children:N.map(e=>n(si,{componentSize:o,disabled:g,onClick:()=>{g||k(e=>!e)},onRemove:()=>{const t=N.filter(t=>t.value!==e.value);d?.(t.length?t:null)},children:e.name},e.value))}),!!i&&n("span",{onClick:T,className:_()("multiSelect-module__icon__TnLPX",p?.icon),children:i}),!!N.length&&n("span",{onClick:()=>{d?.(null)},className:_()("multiSelect-module__clear__CwQiH",p?.clear),children:n(Ko,{})}),n("span",{onClick:T,className:_()(Lo,p?.arrow),children:n(Rs,{})}),A&&s&&n(Wo,{error:s,componentSize:o,className:p?.errorIcon}),n(ki,{placement:"bottom-start",open:R,onOpenChange:k,contentStyle:D?{width:D,minWidth:D,maxWidth:D}:void 0,classes:Kd({content:_()("multiSelect-module__popover-content__p_jyb",p?.popoverContent)},p?.popover),containerOffset:4,layoutVersion:I,root:w?x.current:void 0,description:n(Gd,{items:u,classes:Kd({searchInput:Kd({root:"multiSelect-module__search-input-root__rCmDl"},p?.selectPopover?.searchInput),root:"multiSelect-module__checklist-root__hidSo",checklistWrapper:_()("multiSelect-module__checklist-wrapper__EDrnx"),scrolled:"multiSelect-module__checklist-scrolled__KC8yS"},p?.selectPopover),componentSize:o,selected:f,onSelectedChange:F,enableSearch:y,disabled:g}),children:n("div",{ref:E,className:_()("multiSelect-module__popover-target__x51qe")})})]})}var Zd="radioButton-module__pressed__n_bXs",Jd="radioButton-module__radio__fDsQH";const Qd=["label","componentSize","canUncheck","onUncheck","classes","id","ref","onClick"];function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(n),!0).forEach(function(t){nf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rf(e){const{label:t,componentSize:o="medium",canUncheck:i,onUncheck:l,classes:a,id:s,ref:c,onClick:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Qd),f=(0,S.useRef)(null),p=(0,S.useRef)(!1),h=pe(),g=s??h;(0,S.useEffect)(()=>{const e=f.current;if(!e)return;const t=()=>e.classList.remove(Zd),n=()=>{e.classList.add(Zd),p.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const m=(0,S.useCallback)(e=>{i&&p.current&&(f.current.checked=!1,l?.()),u?.(e)},[i,l,u]),b="large"===o?"subtitle1":"subtitle2";return r("div",{className:_()("radioButton-module__root__fxVmv",a?.root),children:[n("input",tf({ref:U([f,c]),type:"radio",className:_()("radioButton-module__input__O_xQT",a?.input),id:g,title:t,onClick:m},d)),r("label",{htmlFor:g,className:_()("radioButton-module__label__A9fWR",a?.label),title:t,children:[n("span",{className:_()(Jd,"radioButton-module__deselected__kGeIi",a?.radio),children:n(el,{})}),n("span",{className:_()(Jd,"radioButton-module__selected__atkc_",a?.radio),children:n(ol,{})}),!!t&&n(fe,{variant:b,className:_()("radioButton-module__label-text__KSEbB",a?.labelText),children:t})]})]})}var of="surface-module__modal__CtpUb",lf="surface-module__panel__WAxUP",af="surface-module__primary__k8467",sf="surface-module__root__h8d8c";function cf(e){const{type:t="primary",children:r,classes:o}=e;return n("div",{className:_()(sf,o?.root,m[t]),children:r})}function uf(e){const{withoutHeader:t,children:r,classes:o}=e;return n("div",{className:_()("layout-module__root__I9KVI",t?void 0:"layout-module__with-header___aKcB",o?.root),children:r})}var df="tabs-module__disable-border__Vw9nt",ff="tabs-module__disabled__e_X85",pf="tabs-module__filled__Kzrnb",hf="tabs-module__icon-only__qDPjH",gf="tabs-module__medium__dvN0f",mf="tabs-module__root__m7YiQ",bf="tabs-module__selected__YEXTT",vf="tabs-module__selected-filled__MkMIt",yf="tabs-module__small__hiwdI",wf="tabs-module__tab__NoNie",Of="tabs-module__tab-border__tvFwj",_f="tabs-module__tab-border-vertical__TVo15",Sf="tabs-module__tab-filled__Gmwpo",Pf="tabs-module__tab-icon__Kj5Oa",jf="tabs-module__tab-title__XsuJP",xf="tabs-module__tab-vertical__WQDkd",Cf="tabs-module__vertical__sPO6h";function Ef(e){const{items:t,defaultSelected:o,onChange:i,size:l="medium",filled:a=!1,isVertical:s=!1,disableBorder:c=!1,allowDeselect:u=!1,showTooltips:d=!1,useExternalState:f=!1,value:p,classes:h}=e,[g,m]=(0,S.useState)(!1),[v,y]=(0,S.useState)(o),w=f?p:v,O=e=>()=>{e.isDisabled||(e.onClick?e.onClick():f?u&&w===e.value?i?.(void 0):i?.(e.value):u&&v===e.value?y(void 0):y(e.value))};return(0,S.useEffect)(()=>{g&&!f&&i?.(v),g||m(!0)},[v,f]),n("div",{className:_()(mf,a&&pf,s&&Cf,c&&df,b[l],h?.root),children:t.map(e=>{const t=!e.onClick&&w===e.value,o=r("div",{className:_()(wf,a&&Sf,s&&xf,c&&df,t?bf:void 0,t&&a?vf:void 0,e.isDisabled&&ff,h?.tab,t?h?.tabSelected:void 0,e.isDisabled?h?.tabDisabled:void 0),onClick:O(e),children:[r("div",{className:_()(jf,d&&e.icon&&hf,h?.tabTitle,t?h?.tabSelectedTitle:void 0),children:[e.icon&&n("span",{className:Pf,children:"string"==typeof e.icon?n("span",{className:Pf,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!d&&e.name&&n("span",{title:e.name,children:e.name})]}),n("div",{className:_()(Of,s&&_f,c&&df,h?.tabBorder,t?h?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return d&&e.name?n(Io,{label:e.name,placement:s?"right":"top",children:o},`tab-${e.value}`):o})})}function Rf(e,t){return"function"==typeof e?e(t):e}function kf(e,t){return n=>{t.setState(t=>({...t,[e]:Rf(n,t[e])}))}}function Df(e){return e instanceof Function}function Mf(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 If(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 Lf="debugHeaders";function Nf(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 Tf={createTable:e=>{e.getHeaderGroups=Mf(()=>[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 Ff(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...s],e)},If(e.options,Lf)),e.getCenterHeaderGroups=Mf(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>Ff(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),If(e.options,Lf)),e.getLeftHeaderGroups=Mf(()=>[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 Ff(t,i,e,"left")},If(e.options,Lf)),e.getRightHeaderGroups=Mf(()=>[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 Ff(t,i,e,"right")},If(e.options,Lf)),e.getFooterGroups=Mf(()=>[e.getHeaderGroups()],e=>[...e].reverse(),If(e.options,Lf)),e.getLeftFooterGroups=Mf(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),If(e.options,Lf)),e.getCenterFooterGroups=Mf(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),If(e.options,Lf)),e.getRightFooterGroups=Mf(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),If(e.options,Lf)),e.getFlatHeaders=Mf(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),If(e.options,Lf)),e.getLeftFlatHeaders=Mf(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),If(e.options,Lf)),e.getCenterFlatHeaders=Mf(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),If(e.options,Lf)),e.getRightFlatHeaders=Mf(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),If(e.options,Lf)),e.getCenterLeafHeaders=Mf(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),If(e.options,Lf)),e.getLeftLeafHeaders=Mf(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),If(e.options,Lf)),e.getRightLeafHeaders=Mf(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),If(e.options,Lf)),e.getLeafHeaders=Mf(()=>[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()},If(e.options,Lf))}};function Ff(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=Nf(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)=>Nf(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 zf=(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:Mf(()=>[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:Mf(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),If(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),If(e.options,"debugRows")),_getAllCellsByColumnId:Mf(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),If(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a},Vf={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Af=(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))};Af.autoRemove=e=>Xf(e);const $f=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};$f.autoRemove=e=>Xf(e);const Hf=(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())};Hf.autoRemove=e=>Xf(e);const Bf=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Bf.autoRemove=e=>Xf(e);const Wf=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});Wf.autoRemove=e=>Xf(e)||!(null!=e&&e.length);const Gf=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});Gf.autoRemove=e=>Xf(e)||!(null!=e&&e.length);const qf=(e,t,n)=>e.getValue(t)===n;qf.autoRemove=e=>Xf(e);const Uf=(e,t,n)=>e.getValue(t)==n;Uf.autoRemove=e=>Xf(e);const Kf=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Kf.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]},Kf.autoRemove=e=>Xf(e)||Xf(e[0])&&Xf(e[1]);const Yf={includesString:Af,includesStringSensitive:$f,equalsString:Hf,arrIncludes:Bf,arrIncludesAll:Wf,arrIncludesSome:Gf,equals:qf,weakEquals:Uf,inNumberRange:Kf};function Xf(e){return null==e||""===e}const Zf={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:kf("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?Yf.includesString:"number"==typeof r?Yf.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?Yf.equals:Array.isArray(r)?Yf.arrIncludes:Yf.weakEquals},e.getFilterFn=()=>{var n,r;return Df(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:Yf[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=Rf(n,o?o.value:void 0);var l;if(Jf(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=Rf(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!Jf(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 Jf(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Qf={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},ep={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:kf("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?Qf.sum:"[object Date]"===Object.prototype.toString.call(r)?Qf.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Df(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:Qf[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)}}},tp={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:kf("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Mf(e=>[sp(t,e)],t=>t.findIndex(t=>t.id===e.id),If(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=sp(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=sp(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=Mf(()=>[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)},If(e.options,"debugTable"))}},np={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:kf("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=Mf(()=>[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))},If(t.options,"debugRows")),e.getLeftVisibleCells=Mf(()=>[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},If(t.options,"debugRows")),e.getRightVisibleCells=Mf(()=>[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},If(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=Mf(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),If(e.options,"debugColumns")),e.getRightLeafColumns=Mf(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),If(e.options,"debugColumns")),e.getCenterLeafColumns=Mf(()=>[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))},If(e.options,"debugColumns"))}},rp={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},op={getDefaultColumnDef:()=>rp,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:kf("columnSizing",e),onColumnSizingInfoChange:kf("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:rp.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:rp.size),null!=(o=e.columnDef.maxSize)?o:rp.maxSize)},e.getStart=Mf(e=>[e,sp(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),If(t.options,"debugColumns")),e.getAfter=Mf(e=>[e,sp(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),If(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(),lp(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=lp(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 ip)return ip;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 ip=e,ip}()&&{passive:!1};lp(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 ip=null;function lp(e){return"touchstart"===e.type}const ap={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:kf("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=Mf(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),If(t.options,"debugRows")),e.getVisibleCells=Mf(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],If(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Mf(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),If(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 sp(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const cp={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:kf("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=>Rf(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=Rf(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,Rf(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=Rf(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Mf(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},If(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}}},up={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:kf("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=Mf(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),If(e.options,"debugRows")),e.getBottomRows=Mf(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),If(e.options,"debugRows")),e.getCenterRows=Mf(()=>[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))},If(e.options,"debugRows"))}},dp={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:kf("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=>{fp(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Mf(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?pp(e,n):{rows:[],flatRows:[],rowsById:{}},If(e.options,"debugTable")),e.getFilteredSelectedRowModel=Mf(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?pp(e,n):{rows:[],flatRows:[],rowsById:{}},If(e.options,"debugTable")),e.getGroupedSelectedRowModel=Mf(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?pp(e,n):{rows:[],flatRows:[],rowsById:{}},If(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 fp(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return hp(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===gp(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===gp(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)}}}},fp=(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=>fp(e,t.id,n,r,o))};function pp(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=hp(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 hp(e,t){var n;return null!=(n=t[e.id])&&n}function gp(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()&&(hp(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=gp(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const mp=/([0-9]+)/gm;function bp(e,t){return e===t?0:e>t?1:-1}function vp(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function yp(e,t){const n=e.split(mp).filter(Boolean),r=t.split(mp).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 wp={alphanumeric:(e,t,n)=>yp(vp(e.getValue(n)).toLowerCase(),vp(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>yp(vp(e.getValue(n)),vp(t.getValue(n))),text:(e,t,n)=>bp(vp(e.getValue(n)).toLowerCase(),vp(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>bp(vp(e.getValue(n)),vp(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)=>bp(e.getValue(n),t.getValue(n))},Op={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:kf("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 wp.datetime;if("string"==typeof n&&(r=!0,n.split(mp).length>1))return wp.alphanumeric}return r?wp.text:wp.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 Df(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:wp[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())}},_p=[Tf,ap,tp,np,Vf,Zf,{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:kf("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=()=>Yf.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Df(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Yf[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Op,ep,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:kf("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()}}}},cp,up,dp,op];function Sp(e){var t,n;const r=[..._p,...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=Rf(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:Mf(()=>[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}},If(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Mf(()=>[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:Mf(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},If(e.options,"debugColumns")),getLeafColumns:Mf(()=>[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]},If(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)},If(e,"debugColumns")),getAllFlatColumns:Mf(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),If(e,"debugColumns")),_getAllFlatColumnsById:Mf(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),If(e,"debugColumns")),getAllLeafColumns:Mf(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),If(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 Pp(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)?S.createElement(e,t):e:null;var n}function jp(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 xp(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const Cp=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},Ep=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Rp=e=>e,kp=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},Dp=(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(Ep(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(Ep(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},Mp={passive:!0},Ip="undefined"==typeof window||"onscrollend"in window,Lp=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&Ip?()=>{}:Cp(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,Mp);const c=e.options.useScrollendEvent&&Ip;return c&&n.addEventListener("scrollend",s,Mp),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",s)}},Np=(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"]},Tp=(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 Fp{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:Rp,rangeExtractor:kp,onChange:()=>{},measureElement:Np,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=jp(()=>(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=jp(()=>[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=jp(()=>[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=jp(()=>[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=zp(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=jp(()=>{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=jp(()=>[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 xp(t[zp(0,t.length-1,e=>xp(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 zp=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},Vp="undefined"!=typeof document?S.useLayoutEffect:S.useEffect;function Ap(e){return function({useFlushSync:e=!0,...t}){const n=S.useReducer(()=>({}),{})[1],r={...t,onChange:(r,o)=>{var l;e&&o?i(n):n(),null==(l=t.onChange)||l.call(t,r,o)}},[o]=S.useState(()=>new Fp(r));return o.setOptions(r),Vp(()=>o._didMount(),[]),Vp(()=>o._willUpdate()),o}({observeElementRect:Dp,observeElementOffset:Lp,scrollToFn:Tp,...e})}const $p=32,Hp=["open","onClose","root","children"];function Bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bp(Object(n),!0).forEach(function(t){Gp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qp=(0,S.forwardRef)(function(e,t){let{open:r,onClose:i,root:l=document.body,children:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Hp);const c=(0,S.useRef)(null),u=(0,S.useRef)(null);if(!r||!a)return null;const d=n("div",Wp(Wp({ref:c,className:"modal-module__overlay__qGmy7",onClick:e=>{e.target!==c.current&&u.current?.contains(e.target)||(e.stopPropagation(),i?.())}},s),{},{children:n("div",{ref:e=>{e&&(u.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:"modal-module__modal__SyCF2",onClick:e=>e.stopPropagation(),children:a})}));return o(d,l)});var Up="virtualTable-module__align-center__GE7hn",Kp="virtualTable-module__align-left__UwmQP",Yp="virtualTable-module__align-right__BgN21",Xp="virtualTable-module__borders-all__4E7iX",Zp="virtualTable-module__borders-horizontal__sJHrp",Jp="virtualTable-module__borders-vertical__vW5hC",Qp="virtualTable-module__bottom-border__Aqyxx",eh="virtualTable-module__clickable__rairY",th="virtualTable-module__editable__vHC_D",nh="virtualTable-module__error__Pc_YH",rh="virtualTable-module__even-row__UtfmY",oh="virtualTable-module__first-th-row__Ic3VG",ih="virtualTable-module__input__URGVM",lh="virtualTable-module__label__RRtAL",ah="virtualTable-module__margin-left-changing__DeOwh",sh="virtualTable-module__medium__fWjBj",ch="virtualTable-module__modal-content__y8dAa",uh="virtualTable-module__right-border___sLGh",dh="virtualTable-module__root__oT8Aa",fh="virtualTable-module__row-button-trigger__qLWa9",ph="virtualTable-module__rowspan-content__uNqDw",hh="virtualTable-module__selected__LXpK4",gh="virtualTable-module__show-in-modal__v55Sn",mh="virtualTable-module__small__Pbe1H",bh="virtualTable-module__sticky__kLGF2",vh="virtualTable-module__success__xPKub",yh="virtualTable-module__table__GccG7",wh="virtualTable-module__table-container__Z27Uv",Oh="virtualTable-module__td__INgoI",_h="virtualTable-module__th__xeEGg",Sh="virtualTable-module__th-cell__r6ckx",Ph="virtualTable-module__th-hidden-column__jr_ZK",jh="virtualTable-module__th-left-border__Ns0MX",xh="virtualTable-module__th-right-border__PR4eS",Ch="virtualTable-module__tr__chmfp",Eh="virtualTable-module__vertical-align-center__Xun5O",Rh="virtualTable-module__vertical-align-flex-end__wOSxq",kh="virtualTable-module__vertical-align-flex-start__uBUX9",Dh="virtualTable-module__view-cell__bXl8D",Mh="virtualTable-module__view-span__HfOpN";const Ih={cell:({getValue:e,row:{index:o,original:i},column:{id:l,columnDef:a},table:s})=>{const c=e(),{meta:u}=a,d=s.options.meta,[f,p]=(0,S.useState)(c),[h,g]=(0,S.useState)(!1),[m,b]=(0,S.useState)(!1),y=(0,S.useRef)();y.current=()=>{b(!1)},(0,S.useEffect)(()=>{p(c)},[c]);const w=d?.additionalColumnsViews?.(l,c,i[l]?.payload);if(h&&u?.editable){const e=()=>{d?.updateData(o,l,f,i),g(!1)},r=(e,t)=>{p(e),t&&(d?.updateData(o,l,e,i),g(!1))};return n(Io,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:null!=w?.edit?w.edit(r,e):n(t,{children:n(Ou,{classes:{input:ih},componentSize:"small",variant:"outlined",onChange:e=>r(e.target.value),onBlur:e,value:f??"",type:u.inputType,fullWidth:!0,autoFocus:!0})})})}const O=null!=w?.view?w.view:u?.valueFormat?u.valueFormat(c):void 0===u?.toFixed||Number.isNaN(parseFloat(c))?c:parseFloat(Number(c).toFixed(u.toFixed));return n(Io,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:r("div",{className:_()(Dh,u?.rowsAlign?v[`align${u?.rowsAlign}`]:void 0,u?.showInModal?gh:void 0,u?.onClick&&i[l]?.payload?eh:void 0,i[l]?.fill?v[i[l].fill]:void 0,u?.editable?th:void 0,u?.verticalAlign?v[`verticalAlign${u?.verticalAlign}`]:void 0),onClick:u?.editable?()=>{g(!0)}:u?.showInModal?()=>{b(!0)}:u?.onClick&&i[l]?.payload?()=>u?.onClick?.(i[l]?.payload??{}):void 0,children:[n("span",{className:Mh,children:O}),m&&n(qp,{root:d?.tableContainerRef?.current,open:m,onClose:()=>y.current?.(),children:n(cf,{type:"panel",children:n("div",{className:ch,children:O})})})]})})}},Lh=(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 Nh(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:o}=e,[i,l]=(0,S.useState)(t);(0,S.useEffect)(()=>{o(i)},[i]);const a=(0,S.useCallback)(()=>{l([void 0,void 0]),o([void 0,void 0])},[]);return r("div",{className:_()("dateFiltration-module__root__hOXOU"),children:[n(Tc,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:i,onValueChange:e=>{l(e)},tabIndex:-1}),n(Io,{label:"Сбросить",children:n(G,{onClick:a,className:_()("dateFiltration-module__button__kboWN"),variant:"text",size:"small",textSecondary:!0,icon:n(Ko,{})})})]})}var Th="numberFiltration-module__input___94YM";const Fh=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function zh(e){const{defaultValues:o=[-1/0,1/0],actionWithSelected:i}=e,[l,a]=(0,S.useState)(o[0]===-1/0&&o[1]===1/0?Fh[0]:o[0]===o[1]?Fh[3]:o[0]===-1/0?Fh[2]:o[1]===1/0?Fh[1]:Fh[0]),[s,c]=(0,S.useState)(o),u=(e,t)=>{c(n=>"equal"===e?[t.length?+t:-1/0,t.length?+t:1/0]:"more"===e?[t.length?+t:-1/0,n[1]]:[n[0],t.length?+t:1/0])},d=(0,S.useCallback)(()=>{c([-1/0,1/0]),i([-1/0,1/0])},[]);return r("div",{className:_()("numberFiltration-module__root__k2DSM"),children:[n(Qs,{items:Fh,componentSize:"small",variant:"filled",selected:l,onValueChange:e=>{if(e){const t=[...s];switch(e.value){case"more":t[1]=1/0;break;case"less":t[0]=-1/0;break;case"equal":const e=t[0]!==-1/0?t[0]:t[1];t[0]=e,t[1]=e}c(t),i(t),a(e)}},classes:{root:"numberFiltration-module__select__vQqEg"},tabIndex:-1}),n("div",{className:_()("numberFiltration-module__inputs-container__tjcwf"),children:"range"===l.value?r(t,{children:[n(Ou,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Th},value:s[0]>-1/0&&s[0]<1/0?s[0]:"",onChange:e=>{u("more",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}}),n(Ou,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Th},value:s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u("less",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})]}):n(Ou,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Th},value:"more"===l.value?s[0]>-1/0&&s[0]<1/0?s[0]:"":s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u(l.value,e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})}),n(Io,{label:"Сбросить",children:n(G,{onClick:d,className:_()("numberFiltration-module__button__GIxRq"),variant:"text",size:"small",textSecondary:!0,icon:n(Ko,{})})})]})}function Vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vh(Object(n),!0).forEach(function(t){$h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $h(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hh(e){const{headerMeta:{sortable:o=!1,selectUnique:i=!1,sortType:l,sortAnotherName:a,filtrationByNumber:s=!1,filtrationByDate:c=!1,filtrationByValue:u=!1,valueFormat:d,toFixed:f},sortBy:p,setSortBy:h,filterBy:g,setFilterBy:m,headerName:b,containerRef:v,showUniqueValuesCount:y,leftAdditionalContent:w,rightAdditionalContent:O,children:P,rows:j,rowsForUniqueCount:x}=e,C=a??b,E=(0,S.useMemo)(()=>{const e=j.map(e=>({name:e[C]?d?d(e[C].value):void 0===f||Number.isNaN(parseFloat(e[C].value))?e[C].value?.toString()||"< нет значения >":parseFloat(Number(e[C].value).toFixed(f)).toString():"< нет значения >",value:e[C]?.value?.toString()||""})).sort((e,t)=>{const n=e.name.toString(),r=t.name.toString(),o="< нет значения >";return n===o?-1:r===o?1:Lh(n,r)}),t=[...e.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()];return t},[j,C,d,f]),R=(0,S.useMemo)(()=>{const e=x??j,t=new Set;e.forEach(e=>{const n=e?.[C];t.add(n?(n.value??"")?.toString():"")});const n=g.find(e=>e.columnName===C&&"value"===e.type),r=(n?.values??[]).map(e=>(e??"")?.toString());if(r.length>0){const e=new Set(r);let n=0;return t.forEach(t=>{e.has(t)&&(n+=1)}),n}return t.size},[x,j,C,g]),k=(0,S.useMemo)(()=>{const e={};return g.find(e=>e.columnName===C)?.values.forEach(t=>{e[t]=!0}),e},[g,C]),D=(0,S.useMemo)(()=>g.find(e=>e.columnName===C&&"numberRange"===e.type)?.values,[g,C]),M=(0,S.useMemo)(()=>g.find(e=>e.columnName===C&&"dateRange"===e.type)?.values,[g,C]),I=e=>()=>{h(t=>t.some(t=>t.columnName===C&&t.direction===e)?t.filter(t=>!(t.columnName===C&&t.direction===e)):t.some(e=>e.columnName===C)?t.map(t=>t.columnName===C?Ah(Ah({},t),{},{direction:e}):Ah({},t)):t.concat([{columnName:C,direction:e,sortType:l}]))},L=g.some(e=>e.columnName===C&&"value"===e.type&&e.uniqueFirstPerValue),N=Object.keys(k).length>0||L,T=p.some(e=>e.columnName===C&&"desc"===e.direction),F=p.some(e=>e.columnName===C&&"asc"===e.direction),{t:z}=Rd(),V=[];return i&&(V.push({type:"divider",name:z("Уникальность значений")}),V.push({type:"item",name:z("Только уникальные"),icon:n(_a,{}),selected:L,onClick:()=>{m(e=>{const t=e.findIndex(e=>e.columnName===C&&"value"===e.type);if(-1!==t){const n=e[t],r=!n.uniqueFirstPerValue;return r||0!==n.values.length?e.map((e,n)=>n!==t?e:r?Ah(Ah({},e),{},{uniqueFirstPerValue:!0}):{columnName:e.columnName,type:e.type,values:e.values}):e.filter((e,n)=>n!==t)}return[...e,{columnName:C,type:"value",values:[],uniqueFirstPerValue:!0}]})}})),o&&(V.push({type:"divider",name:z("Сортировка")}),V.push({type:"item",name:z("По возрастанию"),icon:n(ka,{}),selected:p.some(e=>e.columnName===C&&"asc"===e.direction),onClick:I("asc")}),V.push({type:"item",name:z("По убыванию"),icon:n(La,{}),selected:p.some(e=>e.columnName===C&&"desc"===e.direction),onClick:I("desc")})),r("div",{className:_()("headerDropdown-module__root__vO30T"),children:[w?.(C),P?.(y&&n("div",{children:`(${R})`})),O?.(C),(o||i||u||c||s)&&n(ki,{placement:"bottom-end",wrapTrigger:!0,root:v,description:r(t,{children:[s&&n(zh,{defaultValues:D,actionWithSelected:e=>{m(t=>{if(e[0]===-1/0&&e[1]===1/0)return[...t.filter(e=>!(e.columnName===C&&"numberRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===C&&"numberRange"===e.type);return-1!==r?n[r]=Ah(Ah({},n[r]),{},{values:e}):n.push({columnName:C,type:"numberRange",values:e}),n}})}}),c&&n(Nh,{defaultValues:M,actionWithSelected:e=>{m(t=>{if(void 0===e[0]||void 0===e[1])return[...t.filter(e=>!(e.columnName===C&&"dateRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===C&&"dateRange"===e.type);return-1!==r?n[r]=Ah(Ah({},n[r]),{},{values:e}):n.push({columnName:C,type:"dateRange",values:e}),n}})}}),u&&n("div",{className:_()("headerDropdown-module__checklist-wrap__7C0pz"),children:n(Bd,{items:E,selected:k,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e);m(e=>{if(0===t.length)return e.map(e=>e.columnName!==C||"value"!==e.type?e:e.uniqueFirstPerValue?Ah(Ah({},e),{},{values:[]}):null).filter(e=>null!==e);const n=[...e],r=n.findIndex(e=>e.columnName===C&&"value"===e.type);return-1!==r?n[r]=Ah(Ah({},n[r]),{},{values:t}):n.push({columnName:C,type:"value",values:t}),n})}})}),(o||i)&&n("div",{children:n(Us,{items:V})})]}),children:n(Io,{label:z("Сортировка и фильтрация"),placement:"bottom-end",root:v,children:n(G,{size:"small",variant:"text",textSecondary:!N&&!T&&!F,icon:n(N?Al:T?La:F?ka:zi,{})})})})]})}function Bh(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 Wh=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}},Gh=(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:Wh(t?.accessorKey?t:e),columns:e.columns?Gh(e.columns,e):void 0})),qh=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(qh(e,t+1,n)):[],Uh=(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(Uh(e,t-1,n)):[],Kh=(e,t,n)=>e[t+1]&&Uh(e,t+1,n).length?[e[t+1].headers[n]].concat(Kh(e,t+1,n)):[],Yh=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(Yh(e,t-1)):[],Xh=(e,t)=>{if(t.length){const n=t[t.length-1],r="dateRange"===n.type?tc()(n.values[0]):null,o="dateRange"===n.type?tc()(n.values[1]):null,i=n.values.length?e.filter(e=>{const t="dateRange"===n.type?tc()(e[n.columnName].value):null;return(e[n.columnName]?"dateRange"===n.type?(t.isAfter(r)||t.isSame(r))&&(t.isBefore(o)||t.isSame(o)):"numberRange"===n.type?e[n.columnName].value>=n.values[0]&&e[n.columnName].value<=n.values[1]:n.values.includes((e[n.columnName].value||"")?.toString()):n.values.includes(""))||1===e.isNew?.value}):e;return Xh(i,t.slice(0,t.length-1))}return e},Zh=(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=Lh(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return Zh(r,t.slice(0,t.length-1))}return e};function Jh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jh(Object(n),!0).forEach(function(t){eg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jh(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}const tg=(0,S.forwardRef)((e,o)=>{const{rows:i,columns:l,additionalColumnsViews:a,onChangeCell:s,cellWidth:c,rowButtons:u,fixedColumnsCount:d=0,headerRowHeight:f=[$p],bodyRowHeight:p=$p,rowActionWidth:h=77,classes:g,dynamicRowHeight:m=!1,height:b,scrollToBottom:y,useTableContainerAsRootForPopup:w,size:O="small",borders:P="horizontal",showUniqueValuesCount:j=!1,globalFilters:x,globalSorts:C,onFiltersChange:E,onSortsChange:R,leftAdditionalHeaderContent:k,rightAdditionalHeaderContent:D,showRowsNumbers:M,stripedRows:I=!0}=e,L=d+(M?1:0),[N,T]=(0,S.useState)(x??[]),[F,z]=(0,S.useState)([...C??[],{columnName:"isNew",direction:"desc"}]),V=(0,S.useRef)(null),A=(0,S.useMemo)(()=>M?`rowNumber_${Te()}`:null,[M]),$=(0,S.useMemo)(()=>{if(!A)return Gh(l);const e=t=>Qh(Qh({id:A},t?.columns?.length?void 0:{accessorKey:A}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(l[0]),...l];return Gh(t)},[l,A]),H=(0,S.useMemo)(()=>{const e=[...i],t=N.filter(e=>{if("value"===e.type&&e.uniqueFirstPerValue&&0===e.values.length)return!0;const t="dateRange"===e.type?tc()(e.values[0]):null,n="dateRange"===e.type?tc()(e.values[1]):null;return i.some(r=>{const o="dateRange"===e.type?tc()(r[e.columnName].value):null;return r[e.columnName]?"dateRange"===e.type?(o.isAfter(t)||o.isSame(t))&&(o.isBefore(n)||o.isSame(n)):"numberRange"===e.type?r[e.columnName].value>=e.values[0]&&r[e.columnName].value<=e.values[1]:e.values.includes((r[e.columnName].value||"")?.toString()):e.values.includes("")})}),n=t.length?Xh(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=>!tc()(e).isSame(tc()(0))&&!tc()(e).isSame(tc()(Number.MAX_SAFE_INTEGER))))?[]:e;let r=F.length?Zh(n,F):n;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(r=Bh(r,e.columnName));const o=A?r.map((e,t)=>Qh(Qh({},e),{},{[A]:{value:t+1}})):r;return window.dispatchEvent(new CustomEvent("filteringRows",{detail:o})),o},[i,F,N,A]),B=(0,S.useMemo)(()=>{const e=[...i];return Array.from({length:N.length+1},(t,n)=>Xh(e,N.slice(0,n)))},[i,N]),W=(0,S.useMemo)(()=>c??(e=>A&&0===e?8*H.length.toString().length+24:$[e]?.meta?.width??200),[c,$,H,A]),q=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=S.useState(()=>({current:Sp(t)})),[r,o]=S.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:H,columns:$,defaultColumn:Ih,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>Mf(()=>[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=zf(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},If(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)=>{s?.(e,t,n,r)},tableContainerRef:V,additionalColumnsViews:a}}),{rows:U}=q.getRowModel(),K=q.getHeaderGroups(),Y=Ap({count:U.length,getScrollElement:()=>V?.current,estimateSize:()=>p,overscan:5}),X=Ap({horizontal:!0,count:K[0]?.headers.length??1,rangeExtractor:(0,S.useCallback)(e=>{const t=[...Array(L)].map((e,t)=>t);return[...new Set([...t,...kp(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>V?.current,estimateSize:W,overscan:5}),Z=(0,S.useMemo)(()=>[...Array(L)].reduce((e,t,n)=>e+W(n),0),[L,W]),J=(0,S.useMemo)(()=>{const e=K.length-f.length,t=[...f];if(e>0)for(let n=0;n<e;n++)t.push($p);return t},[f,K]),Q=(0,S.useMemo)(()=>J.reduce((e,t,n)=>n<K.length?e+t:e,0),[J,K]),ee=(0,S.useCallback)(e=>J.reduce((t,n,r)=>r<e?t+n:t,0),[J,K]),te=Y.getTotalSize(),ne=X.getTotalSize(),re=()=>{T([])},oe=()=>{z([{columnName:"isNew",direction:"desc"}])};(0,S.useImperativeHandle)(o,()=>({resetFilters:re,resetSorts:oe})),(0,S.useEffect)(()=>{if(V?.current){const e=V?.current,t=e.querySelector(`.${uh}`);if(t){const n=e.clientWidth,r=ne+(u?h:0);t.style.left=`${n>r?r:n}px`}}},[V?.current?.clientWidth,ne,u,h]),(0,S.useEffect)(()=>{if(V?.current){const e=V?.current,t=e.querySelector(`.${Qp}`);if(t){const n=e.clientHeight,r=te+Q;t.style.top=`${n>r?r:n}px`}}},[V?.current?.clientHeight,te]),(0,S.useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${ah}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return V?.current&&(V.current.addEventListener("scroll",e),y&&V.current.scrollTo(0,V.current.scrollHeight)),()=>{V?.current&&V.current.removeEventListener("scroll",e)}},[V,y]);const ie=Y.getVirtualItems(),le=X.getVirtualItems(),ae=le[le.length-1]?.index,se=(0,S.useMemo)(()=>new Map(ie.map(e=>[e.index,e.size])),[ie]),ce=(0,S.useCallback)(e=>se.get(e)??p,[p,se]),ue=(0,S.useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=Math.min(U.length-1,e+n-1),o=r-e+1;let i=0;for(let t=e;t<=r;t+=1)i+=ce(t);const l="all"===P||"horizontal"===P?Math.max(0,o-1):0;return Math.max(0,i-l)},[P,ce,U.length]),de=(0,S.useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=U[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[U]),fe=(0,S.useCallback)((e,t)=>1===e?.isNew?.value?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[]),pe=(0,S.useMemo)(()=>{const e=U.length,t=new Map;return U.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},[U]),he=(0,S.useMemo)(()=>U.length*U.length+U.length+10,[U.length]),ge=e=>{const o=e.column.columnDef.meta?.label;if("string"==typeof o){const i=o.split(/\r\n|\\r\\n|\n|\\n/);if(i.length>1)return n(t,{children:i.map((t,o)=>r(S.Fragment,{children:[t,o<i.length-1&&n("br",{})]},`${e.id}_${o}`))})}return Pp(e.column.columnDef.header,e.getContext())},[me,be]=le.length>0?[L&&le[L].index!==L?le[L].start-Z:le[0].start,ne-le[le.length-1].end]:[0,0];return(0,S.useEffect)(()=>{E?.(N)},[N]),(0,S.useEffect)(()=>{R?.(F.filter(e=>"isNew"!==e.columnName))},[F]),n("div",{className:_()(dh,v[O],v[`borders${ve=P,ve[0].toUpperCase()+ve.substring(1)}`],g?.root),style:b?{height:b}:void 0,children:r("div",{ref:V,className:_()(wh,"styledScroll"),children:[r("div",{className:yh,style:{height:`${te+Q}px`},children:[n("div",{style:{position:"sticky",top:0,zIndex:he},children:K.map((e,t)=>{const o=e=>{const t=e.column.columnDef.meta,o=t?.sortAnotherName??e.column.columnDef.id??e.id,i=N.findIndex(e=>e.columnName===o),l=-1===i?H:B[i];return n("div",{className:_()(Sh),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==A&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&j)?n(Hh,{headerMeta:t,sortBy:F,setSortBy:z,filterBy:N,setFilterBy:T,rows:l,rowsForUniqueCount:H,headerName:e.column.columnDef.id??e.id,containerRef:w?V:void 0,showUniqueValuesCount:j,leftAdditionalContent:k,rightAdditionalContent:D,children:n=>r("div",{className:_()(lh,t?.headerAlign?v[`align${t?.headerAlign}`]:Kp),children:[ge(e),n]})}):n("div",{className:_()(lh,t?.headerAlign?v[`align${t?.headerAlign}`]:Kp),children:ge(e)})})};return r(S.Fragment,{children:[[...Array(L)].map((r,i)=>{const l=e.headers[i],a=qh(e.headers,i,ae),s=Kh(K,t,i);return n("div",{className:_()(_h,0===t?oh:void 0,!s.length&&i!==e.headers.length-1&&xh,0===i&&jh,s.length&&!a.length&&Ph,ah),style:{zIndex:he+1,width:`${W(i)}px`,height:`${J[t]}px`,transform:`translateX(${Array.from({length:i},(e,t)=>W(t)).reduce((e,t)=>e+t,0)}px) translateY(${ee(t)}px)`},children:o(l)},`${e.id}-${l.id}`)}),le.map(r=>{if(r.index>L-1){const i=e.headers[r.index],l=qh(e.headers,r.index,ae),a=Yh(e.headers,r.index),s=Kh(K,t,r.index),c=Uh(K,t,r.index),u=l.length||a.length?r.size+l.reduce((e,t)=>e+(t.column.columnDef.meta?.width??0),0):r.size,d=l.length||a.length?he+l.length+2:void 0,f=c.length?J[t]+c.reduce((e,n,r)=>e+(J[t-r-1]??0),0):J[t],p=c.length?ee(t)-c.reduce((e,n,r)=>e+(J[t-r-1]??0),0):ee(t);return n("div",{className:_()(_h,0===t&&oh,!s.length&&r.index!==e.headers.length-1&&xh,0===r.index&&jh,s.length&&!l.length&&Ph),style:{width:`${u}px`,zIndex:d,height:`${f}px`,transform:`translateX(${r.start+(L?-1:0)}px) translateY(${p}px)`,borderTop:"none"!==P&&0===p?"1px solid var(--border-color)":void 0},children:o(i)},`${e.id}-${i.id}`)}return null}),!!u&&n("div",{className:_()(_h,0===t?oh:void 0),style:{width:`${h}px`,height:`${J[t]}px`,transform:`translateX(${ne+(L?-2:0)}px) translateY(${ee(t)}px)`}})]},e.id)})}),ie.map(e=>{const t=U[e.index];return r("div",{"data-index":e.index,ref:m?Y.measureElement:void 0,className:_()(Ch,I&&e.index%2!=0&&rh,1===t.original?.isNew?.value&&hh),style:Qh(Qh({zIndex:pe.get(e.index)??1},!m&&{height:e.size}),{},{transform:"translateY("+(Q+e.start-Y.options.scrollMargin)+"px)"}),children:[n("div",{style:{width:`${me}px`}}),le.map(r=>{const o=t.getAllCells()[r.index],i="left"===o.column.getIsPinned(),l=t.original?.[o.column.id],a=Math.max(1,l?.rowspan??1),s=de(e.index,o.column.id),c=a>1&&!s;return n("div",{"data-col-index":r.index,className:_()(Oh,i&&bh),style:Qh(Qh({},i&&{left:r.start,marginLeft:0===r.index?-1:0}),{},{width:`${r.size}px`},!m&&!c&&{overflow:"hidden"}),"data-index":e.index,children:!s&&(c?n("div",{className:ph,style:{height:`${ue(e.index,a)}px`,backgroundColor:fe(t.original,e.index)},children:Pp(o.column.columnDef.cell,o.getContext())}):Pp(o.column.columnDef.cell,o.getContext()))},`cell-${e.key}-${r.key}`)}),!!u&&n("div",{className:_()(Oh),style:Qh({width:`${h}px`,justifyContent:"flex-start",padding:"4px"},!m&&{overflow:"hidden"}),children:u?.(t.original)?.map(r=>n(S.Fragment,{children:r.template?r.template(r):n(Io,{label:r.title,placement:"top",wrapTrigger:!0,classes:{trigger:fh},children:n(G,{onClick:()=>r.onClick?.(e.index,t.original),size:"small",variant:"text",icon:r.icon})})},r.title))}),n("div",{style:{width:`${be}px`}})]},`row-${e.key}`)})]}),"none"!==P&&r(t,{children:[n("div",{className:uh,style:{height:`${te+Q}px`}}),n("div",{className:Qp,style:{width:`${ne}px`}})]})]})});var ve});var ng="treeViewItem-module__selectable__ZnWqc",rg="treeViewItem-module__selected__uwOfq";const og=(0,S.memo)(function e({title:t,value:o,searchValue:i,selected:l,onSelect:a,type:s,isSelectable:c,startIcons:u,children:d}){const[f,p]=(0,S.useState)(!1);(0,S.useEffect)(()=>{p(!!i)},[i]);const h=!!d?.length,g=s&&u?.[s],m=l[o];return r("div",{children:[r("div",{className:_()("treeViewItem-module__item__Ddenr",{[ng]:c}),onClick:()=>{c&&a?a(o):p(!f)},children:[h&&n(la,{}),r("div",{className:_()("treeViewItem-module__title___JZMU",{[rg]:m}),children:[g,n(fe,{variant:"subtitle2",children:t}),c&&n("span",{className:"treeViewItem-module__select-icon__Ma7T6",children:n(m?El:Li,{})})]})]}),f&&h&&n("div",{className:"treeViewItem-module__children__SBb_p",children:d.map(t=>n(e,{title:t.name,value:t.id,children:t.children,selected:l,searchValue:i,type:t.type,isSelectable:t.isSelectable,startIcons:u,onSelect:a},t.id))})]})});function ig(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ig(Object(n),!0).forEach(function(t){ag(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ig(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ag(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=(0,S.memo)(function({data:e,selected:o,startIcons:i,onSelect:l,withSearch:a=!1}){const[s,c]=(0,S.useState)(""),u=(0,S.useCallback)(e=>c(e.target.value),[]),d=(0,S.useMemo)(()=>o.reduce((e,t)=>(e[t]=!0,e),{}),[o]),f=(0,S.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(lg(lg({},t),{},{children:n}))}return e};return e.reduce(r,[])})(e,s),[e,s]);return r(t,{children:[a&&n(Id,{variant:"outlined",value:s,fullWidth:!0,onChange:u,classes:{root:"treeView-module__search__CptHY"}}),n("div",{className:"styledScroll",children:f.map(({id:e,name:t,children:r})=>n(og,{title:t,value:e,searchValue:s,children:r,startIcons:i,onSelect:l,selected:d},e))})]})});var cg="pairs-module__labels-with-borders__iC6y_",ug="pairs-module__row-container-borders__H3rCB",dg="pairs-module__values-with-borders__ssGZ0";function fg(e){const{label:t}=e,[r,o]=(0,S.useState)(t);return n(Io,{label:r,children:n(fe,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{o(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}function pg(e){const{pairs:o,column1Width:i="50%",column2Width:l="50%",showBorder:a,minRowHeight:s,classes:c}=e;return n("div",{className:_()(c?.root),children:o.map((e,o)=>n("div",{style:{minHeight:s,display:"flex"},className:_()(c?.rowContainer,{[ug]:a}),children:e&&r(t,{children:[n("div",{className:_()("pairs-module__labels-container__AKW8x",c?.labelsContainer,{[cg]:a}),style:{width:i,minWidth:i},children:n(fe,{className:"pairs-module__dim-typography__CX_Sf",children:e.label})}),n("div",{style:{width:l,minWidth:l},className:_()("pairs-module__values-container__a4t60",c?.valuesContainer,{[dg]:a}),children:n(fg,{label:e.value})})]})},o))})}var hg="card-module__actions__ctfFt",gg="card-module__body-full-size__oalrd",mg="card-module__body-padded__xaBA8",bg="card-module__body-padded-no-header__RBxi1",vg="card-module__header__NdV6G",yg="card-module__header-overlay__VpVTO",wg="card-module__medium__TpRzi",Og="card-module__root__uGlLT",_g="card-module__small__liJkd";function Sg(e){const{surfaceType:t="primary",componentSize:o="medium",title:i,actions:l,children:a,classes:s,headerOverlay:c=!0,fullSizeBody:u=!1}=e,d=!!i||!!l;return r(cf,{type:t,classes:{root:_()(Og,y[o],s?.root)},children:[d&&r("div",{className:_()(vg,c&&yg,s?.header),children:[i??n("div",{}),!!l&&n("div",{className:_()(hg,s?.actions),children:l})]}),n("div",{className:_()(u?gg:d?mg:bg,s?.body),children:a})]})}var Pg="chip-module__clickable__dOcCr",jg="chip-module__filled__LKP4O",xg="chip-module__icon__yybCP",Cg="chip-module__icon-clickable__BPoAa",Eg="chip-module__icon-left__LhniG",Rg="chip-module__icon-right__CnqJ6",kg="chip-module__icon-right-slot__p8bmk",Dg="chip-module__label__RySGy",Mg="chip-module__medium__RRnyf",Ig="chip-module__outlined__HHje4",Lg="chip-module__root__QN7P0",Ng="chip-module__secondary__yquCM",Tg="chip-module__small__UbquU",Fg="chip-module__with-icon__ORESD";const zg=e=>{const{variant:t="filled",size:o="medium",icon:i,iconPlacement:l="right",secondary:a,onClick:s,onIconClick:c,children:u,classes:d}=e,f=e=>{e.stopPropagation(),c?.()},p=c?"button":"span",h=!!i&&"left"===l,g=!!i&&"right"===l;return r("div",{className:_()(Lg,w[t],w[o],!!i&&Fg,h&&Eg,g&&Rg,a&&Ng,s&&Pg,d?.root),tabIndex:s?0:void 0,role:s?"button":void 0,onClick:s,children:[h&&n(p,{className:_()(xg,c&&Cg,d?.icon),onClick:c?f:void 0,"aria-label":c?"Удалить":void 0,children:i}),u&&n("span",{className:_()(Dg,d?.label),children:u}),g&&n(p,{className:_()(xg,kg,c&&Cg,d?.icon),onClick:c?f:void 0,"aria-label":c?"Удалить":void 0,children:i})]})},Vg="nntc-ui-base-styles",Ag=(0,S.createContext)(void 0);function $g(){return(0,S.useContext)(Ag)??null}function Hg(){return $g()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function Bg({children:e}){const[t,r]=(0,S.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,S.useEffect)(()=>{let e=document.getElementById(Vg);e||(e=document.createElement("style"),e.id=Vg,document.head.appendChild(e)),e.textContent=":root {\n --text-headline1-size: 96px;\n --text-headline1-weight: 300;\n --text-headline1-height: 112px;\n --text-headline1-letter: -1.5px;\n\n --text-headline2-size: 60px;\n --text-headline2-weight: 300;\n --text-headline2-height: 72px;\n --text-headline2-letter: -0.5px;\n\n --text-headline3-size: 48px;\n --text-headline3-weight: 400;\n --text-headline3-height: 56px;\n --text-headline3-letter: normal;\n\n --text-headline4-size: 34px;\n --text-headline4-weight: 400;\n --text-headline4-height: 36px;\n --text-headline4-letter: normal;\n\n --text-headline5-size: 24px;\n --text-headline5-weight: 400;\n --text-headline5-height: 24px;\n --text-headline5-letter: 0.18px;\n\n --text-headline6-size: 20px;\n --text-headline6-weight: 500;\n --text-headline6-height: 24px;\n --text-headline6-letter: 0.15px;\n\n --text-headline7-size: 20px;\n --text-headline7-weight: 400;\n --text-headline7-height: 24px;\n --text-headline7-letter: 0.15px;\n\n --text-subtitle1-size: 16px;\n --text-subtitle1-weight: 400;\n --text-subtitle1-height: 24px;\n --text-subtitle1-letter: 0.15px;\n\n --text-subtitle2-size: 14px;\n --text-subtitle2-weight: 400;\n --text-subtitle2-height: 24px;\n --text-subtitle2-letter: 0.1px;\n\n --text-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\nhtml,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n color: var(--theme-text-primary);\n background-color: var(--theme-surface-layout);\n transition:\n background-color 0.3s ease,\n color 0.3s ease;\n}\n\nbody {\n font-family: Roboto, sans-serif;\n font-size: var(--text-body2-size);\n font-weight: var(--text-body2-weight);\n line-height: var(--text-body2-height);\n letter-spacing: var(--text-body2-letter);\n}\n"},[]),(0,S.useEffect)(()=>{const e={light:":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-background: #ffffff;\n --theme-surface-modal: #ffffff;\n --theme-surface-dropdown: #ffffff;\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",dark:":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-background: #2b2b2b;\n --theme-surface-modal: #373737;\n --theme-surface-dropdown: #515151;\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",darkBlue:":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-background: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n --theme-surface-dropdown: #183043;\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"};let n=document.getElementById("theme-style");n||(n=document.createElement("style"),n.id="theme-style",document.head.appendChild(n)),n.textContent=e[t]??e.light},[t]),(0,S.useEffect)(()=>{let e=null;try{e=localStorage.getItem("theme")}catch{}if("light"===e||"dark"===e||"darkBlue"===e)return;const t=window.matchMedia?.("(prefers-color-scheme: dark)");if(!t)return;const n=e=>{r(e.matches?"dark":"light")};return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]);const o={theme:t,toggleTheme:()=>{r(e=>{const t="light"===e?"dark":"dark"===e?"darkBlue":"light";try{localStorage.setItem("theme",t)}catch{}return t})},setTheme:e=>{r(e);try{localStorage.setItem("theme",e)}catch{}}};return n(Ag.Provider,{value:o,children:e})}export{Li as AddIcon,Jl as AlertIcon,zi as ArrowDropDownIcon,Hi as ArrowDropUpIcon,qi as AttachIcon,Xi as BarChartIcon,fs as BookmarkAddIcon,ss as BookmarkIcon,G as Button,ks as ButtonsGroup,Sg as Card,Ie as Checkbox,ve as CheckboxDeselectedIcon,_e as CheckboxIcon,xe as CheckboxSeveralIcon,Bd as Checklist,la as ChevronDownIcon,sl as ChevronLeftIcon,fl as ChevronRightIcon,na as ChevronUpIcon,zg as Chip,ml as CircleFilledIcon,Ko as CloseIcon,gu as ColorPicker,wl as DateRangeIcon,Tc as DateTime,Pl as DeleteIcon,El as DoneIcon,ws as DownloadIcon,Ml as DragIcon,Xa as EditIcon,Ho as ErrorOutlineIcon,ms as ExportTableIcon,Tl as FileUploadIcon,Wl as FilterClearIcon,Al as FilterIcon,os as FullScreenOffIcon,es as FullScreenOnIcon,Kl as InfoIcon,Ou as Input,si as InputChip,uf as Layout,ua as ListIcon,Us as Menu,qp as Modal,ha as MoreVerticalIcon,Xd as MultiSelect,pg as Pairs,Es as PointIcon,ki as Popover,rf as RadioButton,el as RadioDeselectedIcon,ol as RadioSelectedIcon,va as SearchIcon,Id as SearchInput,Qs as Select,_a as SelectUniqueIcon,xa as SettingsIcon,ka as SortDownIcon,La as SortUpIcon,cf as Surface,za as TableChartIcon,Ef as Tabs,Bg as ThemeProvider,Io as Tooltip,sg as TreeView,fe as Typography,Ha as UploadIcon,tg as VirtualTable,Ps as VisibilityIcon,qa as WellIcon,Fd as WrapForLabel,Rc as createCalendarDate,$g as useTheme,Hg as useThemeWithFallback,$p as virtualTableDefaultRowHeight};
2
+ import*as e from"react";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import{createPortal as o,flushSync as i}from"react-dom";var l={353(e){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",l="day",a="week",s="month",c="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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 j||!(!e||!e[w])},_=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var l=t.split("-");if(!o&&l.length>1)return e(l[0])}else{var a=t.name;y[a]=t,o=a}return!r&&o&&(v=o),o||!r&&v},S=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new j(n)},P=b;P.l=_,P.i=O,P.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var j=function(){function g(e){this.$L=_(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(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return P},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return S(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<S(e)},m.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,c=!!P.u(t)||t,f=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(l)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},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=P.p(e),f="set"+(this.$u?"UTC":""),p=(a={},a[l]=f+"Date",a[d]=f+"Date",a[s]=f+"Month",a[u]=f+"FullYear",a[i]=f+"Hours",a[o]=f+"Minutes",a[r]=f+"Seconds",a[n]=f+"Milliseconds",a)[c],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[P.p(e)]()},m.add=function(n,c){var d,f=this;n=Number(n);var p=P.p(c),h=function(e){var t=S(f);return P.w(t.date(t.date()+Math.round(e*n)),f)};if(p===s)return this.set(s,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return 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 P.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,l=this.$m,a=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return P.s(i%12||12,e,"0")},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 P.s(t.$y,4,"0");case"M":return a+1;case"MM":return P.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return P.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return P.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(i,l,!0);case"A":return g(i,l,!1);case"m":return String(l);case"mm":return P.s(l,2,"0");case"s":return String(t.$s);case"ss":return P.s(t.$s,2,"0");case"SSS":return P.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,f){var p,h=this,g=P.p(d),m=S(n),b=(m.utcOffset()-this.utcOffset())*e,v=this-m,y=function(){return P.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:P.a(p)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return y[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return P.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),x=j.prototype;return S.prototype=x,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",s],["$y",u],["$D",d]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,j,S),e.$i=!0),S},S.locale=_,S.isDayjs=O,S.unix=function(e){return S(1e3*e)},S.en=y[v],S.Ls=y,S.p={},S}()},493(e,t,n){var r=n(649),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,l=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a(function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})},[e,n,t]),l(function(){return c(o)&&u({inst:o}),e(function(){c(o)&&u({inst:o})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},888(e,t,n){e.exports=n(493)},915(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},649(t){t.exports=e},942(e,t){var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return l[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var c={};s.r(c),s.d(c,{active:()=>P,compact:()=>j,elevated:()=>x,extraLarge:()=>C,filled:()=>E,large:()=>R,medium:()=>k,onlyIcon:()=>D,outlined:()=>M,root:()=>I,small:()=>L,stateLayer:()=>N,text:()=>T,textSecondary:()=>F,tonal:()=>V,withIcon:()=>z,withoutIcon:()=>A});var u={};s.r(u),s.d(u,{body1:()=>K,body2:()=>Y,body3:()=>X,button:()=>Z,caption:()=>J,caption2:()=>Q,doubleCaption:()=>ee,h1:()=>te,h2:()=>ne,h3:()=>re,h4:()=>oe,h5:()=>ie,h6:()=>le,h7:()=>ae,label:()=>se,overline:()=>ce,subtitle1:()=>ue,subtitle2:()=>de,subtitle3:()=>fe});var d={};s.r(d),s.d(d,{arrow:()=>He,bottomArrow:()=>Be,content:()=>We,error:()=>Ge,info:()=>qe,leftArrow:()=>Ue,rightArrow:()=>Ke,success:()=>Ye,topArrow:()=>Xe,trigger:()=>Ze,warning:()=>Je});var f={};s.r(f),s.d(f,{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 p={};s.r(p),s.d(p,{divider:()=>Ts,extraLarge:()=>Fs,item:()=>Vs,itemActions:()=>zs,itemDescription:()=>As,itemDisabled:()=>$s,itemIcon:()=>Hs,itemSelected:()=>Bs,itemTextBlock:()=>Ws,itemTitle:()=>Gs,itemTitleTop:()=>qs,large:()=>Us,medium:()=>Ks,root:()=>Ys,small:()=>Xs,stateLayer:()=>Zs});var h={};s.r(h),s.d(h,{button:()=>ac,buttonsContainer:()=>sc,calendarContainer:()=>cc,cell:()=>uc,cellCircle:()=>dc,cellData:()=>fc,cellSelection:()=>pc,cellSelectionFirst:()=>hc,cellSelectionLast:()=>gc,cellsContainer:()=>mc,dateTimeMode:()=>bc,medium:()=>vc,month:()=>yc,monthCellSelection:()=>wc,monthCellSelectionFirst:()=>Oc,monthCellSelectionLast:()=>_c,monthView:()=>Sc,navigationArrow:()=>Pc,navigationContainer:()=>jc,navigationTitle:()=>xc,navigationValue:()=>Cc,root:()=>Ec,small:()=>Rc,timeContainer:()=>kc,timeDivider:()=>Dc,timeSelectionMarker:()=>Mc,year:()=>Ic});var g={};s.r(g),s.d(g,{medium:()=>zd,root:()=>Ad,small:()=>$d});var m={};s.r(m),s.d(m,{modal:()=>uf,panel:()=>df,primary:()=>ff,root:()=>pf});var b={};s.r(b),s.d(b,{disableBorder:()=>mf,disabled:()=>bf,filled:()=>vf,iconOnly:()=>yf,medium:()=>wf,root:()=>Of,selected:()=>_f,selectedFilled:()=>Sf,small:()=>Pf,tab:()=>jf,tabBorder:()=>xf,tabBorderVertical:()=>Cf,tabFilled:()=>Ef,tabIcon:()=>Rf,tabTitle:()=>kf,tabVertical:()=>Df,vertical:()=>Mf});var v={};s.r(v),s.d(v,{alignCenter:()=>Jp,alignLeft:()=>Qp,alignRight:()=>eh,bordersAll:()=>th,bordersHorizontal:()=>nh,bordersVertical:()=>rh,bottomBorder:()=>oh,clickable:()=>ih,editable:()=>lh,error:()=>ah,evenRow:()=>sh,firstThRow:()=>ch,input:()=>uh,label:()=>dh,marginLeftChanging:()=>fh,medium:()=>ph,modalContent:()=>hh,rightBorder:()=>gh,root:()=>mh,rowButtonTrigger:()=>bh,rowspanContent:()=>vh,selected:()=>yh,showInModal:()=>wh,small:()=>Oh,sticky:()=>_h,success:()=>Sh,table:()=>Ph,tableContainer:()=>jh,td:()=>xh,th:()=>Ch,thCell:()=>Eh,thHiddenColumn:()=>Rh,thLeftBorder:()=>kh,thRightBorder:()=>Dh,tr:()=>Mh,verticalAlignCenter:()=>Ih,verticalAlignFlexEnd:()=>Lh,verticalAlignFlexStart:()=>Nh,viewCell:()=>Th,viewSpan:()=>Fh});var y={};s.r(y),s.d(y,{actions:()=>yg,bodyFullSize:()=>wg,bodyPadded:()=>Og,bodyPaddedNoHeader:()=>_g,header:()=>Sg,headerOverlay:()=>Pg,medium:()=>jg,root:()=>xg,small:()=>Cg});var w={};s.r(w),s.d(w,{clickable:()=>Rg,filled:()=>kg,icon:()=>Dg,iconClickable:()=>Mg,iconLeft:()=>Ig,iconRight:()=>Lg,iconRightSlot:()=>Ng,label:()=>Tg,medium:()=>Fg,outlined:()=>Vg,root:()=>zg,secondary:()=>Ag,small:()=>$g,withIcon:()=>Hg});var O=s(942),_=s.n(O),S=s(649),P="button-module__active__hSEWs",j="button-module__compact__nfUBM",x="button-module__elevated__nAlrD",C="button-module__extraLarge__ycvek",E="button-module__filled__D7eAr",R="button-module__large__gt0K2",k="button-module__medium__v66y0",D="button-module__only-icon__zOzfl",M="button-module__outlined__c_PHO",I="button-module__root__gX6OQ",L="button-module__small__HHNmk",N="button-module__state-layer__t1MJf",T="button-module__text__rG7nD",F="button-module__text-secondary__jXFdx",V="button-module__tonal__u6w_G",z="button-module__with-icon__C4Cw6",A="button-module__without-icon__GOGFF";const $=["variant","size","icon","textSecondary","isActive","compact","className","children","classes"];function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const G=(0,S.forwardRef)(function(e,t){let{variant:o="filled",size:i="medium",icon:l,textSecondary:a,isActive:s,compact:u,className:d,children:f,classes: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,$);return n("button",B(B({className:_()(I,c[o],c[i],l?f?z:D:A,s?P:void 0,a?F:void 0,u?j:void 0,d,p?.root)},h),{},{ref:t,children:r("span",{className:_()(N,p?.stateLayer),children:[l,f]})}))});function q(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var U=parseInt(S.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=q(r,t),o="function"==typeof e;n.push(o?e:()=>q(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)q(n,t)}},K="typography-module__body1__x76Hw",Y="typography-module__body2__xQKKj",X="typography-module__body3__yogkL",Z="typography-module__button__dx69P",J="typography-module__caption__cWpWz",Q="typography-module__caption2__EqwAG",ee="typography-module__doubleCaption__uInp1",te="typography-module__h1__pRuCD",ne="typography-module__h2__tNSpQ",re="typography-module__h3__YqCF_",oe="typography-module__h4__BCkqi",ie="typography-module__h5__z84mf",le="typography-module__h6__C2Wqz",ae="typography-module__h7__B6VO6",se="typography-module__label__C1Tlg",ce="typography-module__overline__IkqBV",ue="typography-module__subtitle1__NO_el",de="typography-module__subtitle2__TKKn5",fe="typography-module__subtitle3__FK3eb";const pe=["variant","component","children","className"];function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(t){me(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function me(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const be=(0,S.forwardRef)(function(e,t){let{variant:r="body2",component:o,children:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,pe);return n(o||"span",ge(ge({className:_()(u[r],l)},a),{},{ref:t,children:i}))});function ve(){const e=S;return"function"==typeof e.useId?e.useId():(0,S.useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const ye=({size:e=24,color:t="currentColor",className:r,children:o})=>n("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,className:r,xmlns:"http://www.w3.org/2000/svg",children:o});function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?we(Object(n),!0).forEach(function(t){_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _e(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Se=e=>n(ye,Oe(Oe({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})}));function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach(function(t){xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xe(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ce=e=>n(ye,je(je({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}));function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach(function(t){ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ke(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const De=e=>n(ye,Re(Re({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2zm0-4H7V7h10v2z"})}));var Me="checkbox-module__checkbox__x6SCC",Ie="checkbox-module__pressed__mLWO0";const Le=["label","several","componentSize","classes","id","ref"];function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach(function(t){Fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fe(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 Ve(e){const{label:o,several:i,componentSize:l="medium",classes:a,id:s,ref:c}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Le),d=(0,S.useRef)(null),f=ve(),p=s??f;(0,S.useEffect)(()=>{const e=d.current;if(!e)return;const t=()=>e.classList.remove(Ie),n=()=>e.classList.add(Ie);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const h="large"===l?"subtitle1":"subtitle2";return r("div",{className:_()("checkbox-module__root__xJtJG",a?.root),children:[n("input",Te({ref:U([d,c]),type:"checkbox",className:_()("checkbox-module__input__SjKVz",a?.input),id:p,title:o},u)),r("label",{htmlFor:p,className:_()("checkbox-module__label__tkrMd",a?.label),title:o,children:[i?n("span",{className:_()(Me,"checkbox-module__several__TYjeg",a?.checkbox),children:n(De,{})}):r(t,{children:[n("span",{className:_()(Me,"checkbox-module__deselected__ZuA24",a?.checkbox),children:n(Se,{})}),n("span",{className:_()(Me,"checkbox-module__selected__pLwVq",a?.checkbox),children:n(Ce,{})})]}),!!o&&n(be,{variant:h,className:_()("checkbox-module__label-text__kXha_",a?.labelText),children:o})]})]})}const ze=new Uint8Array(16),Ae=[];for(let e=0;e<256;++e)Ae.push((e+256).toString(16).slice(1));const $e=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(ze);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(Ae[e[t+0]]+Ae[e[t+1]]+Ae[e[t+2]]+Ae[e[t+3]]+"-"+Ae[e[t+4]]+Ae[e[t+5]]+"-"+Ae[e[t+6]]+Ae[e[t+7]]+"-"+Ae[e[t+8]]+Ae[e[t+9]]+"-"+Ae[e[t+10]]+Ae[e[t+11]]+Ae[e[t+12]]+Ae[e[t+13]]+Ae[e[t+14]]+Ae[e[t+15]]).toLowerCase()}(r)}(e,t,n):crypto.randomUUID()};var He="tooltip-module__arrow__SONUP",Be="tooltip-module__bottom-arrow__GdFYs",We="tooltip-module__content__nH6p2",Ge="tooltip-module__error__XWI8s",qe="tooltip-module__info__un5n7",Ue="tooltip-module__left-arrow__BFwGV",Ke="tooltip-module__right-arrow__ZFRBE",Ye="tooltip-module__success__OXBJT",Xe="tooltip-module__top-arrow__UHvch",Ze="tooltip-module__trigger__PIfJx",Je="tooltip-module__warning__Xb_Wr";function Qe(){return"undefined"!=typeof window}function et(e){return rt(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function nt(e){var t;return null==(t=(rt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function rt(e){return!!Qe()&&(e instanceof Node||e instanceof tt(e).Node)}function ot(e){return!!Qe()&&(e instanceof Element||e instanceof tt(e).Element)}function it(e){return!!Qe()&&(e instanceof HTMLElement||e instanceof tt(e).HTMLElement)}function lt(e){return!(!Qe()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot)}function at(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function st(e){return/^(table|td|th)$/.test(et(e))}function ct(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const ut=/transform|translate|scale|rotate|perspective|filter/,dt=/paint|layout|strict|content/,ft=e=>!!e&&"none"!==e;let pt;function ht(e){const t=ot(e)?bt(e):e;return ft(t.transform)||ft(t.translate)||ft(t.scale)||ft(t.rotate)||ft(t.perspective)||!gt()&&(ft(t.backdropFilter)||ft(t.filter))||ut.test(t.willChange||"")||dt.test(t.contain||"")}function gt(){return null==pt&&(pt="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),pt}function mt(e){return/^(html|body|#document)$/.test(et(e))}function bt(e){return tt(e).getComputedStyle(e)}function vt(e){return ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yt(e){if("html"===et(e))return e;const t=e.assignedSlot||e.parentNode||lt(e)&&e.host||nt(e);return lt(t)?t.host:t}function wt(e){const t=yt(e);return mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&at(t)?t:wt(t)}function Ot(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=wt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=tt(o);if(i){const e=_t(l);return t.concat(l,l.visualViewport||[],at(o)?o:[],e&&n?Ot(e):[])}return t.concat(o,Ot(o,[],n))}function _t(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var St=["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(","),Pt="undefined"==typeof Element,jt=Pt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,xt=!Pt&&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},Ct=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]"):Ct(e.parentNode))},Et=function(e,t,n){if(Ct(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(St));return t&&jt.call(e,St)&&r.unshift(e),r.filter(n)},Rt=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!Ct(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),a=l.length?l:i.children,s=Rt(a,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{jt.call(i,St)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!Ct(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=Rt(!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},kt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Dt=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))&&!kt(e)?0:e.tabIndex},Mt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},It=function(e){return"INPUT"===e.tagName},Lt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Nt=function(e,t){return!(t.disabled||function(e){return It(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=jt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(jt.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Lt(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,a=xt(e);if(l&&!l.shadowRoot&&!0===r(l))return Lt(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&&xt(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=xt(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!!jt.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Tt=function(e,t){return!(function(e){return function(e){return It(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||xt(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)||Dt(t)<0||!Nt(e,t))},Ft=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Vt=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=Dt(e);return n<0&&t&&!kt(e)?0:n}(i,o),a=o?Vt(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(Mt).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},zt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Rt([e],t.includeContainer,{filter:Tt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ft}):Et(e,t.includeContainer,Tt.bind(null,t)),Vt(n)},At=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==jt.call(e,St)&&Tt(t,e)};function $t(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Ht(){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 Bt(){return/apple/i.test(navigator.vendor)}function Wt(){const e=/android/i;return e.test($t())||e.test(Ht())}function Gt(){return Ht().includes("jsdom/")}const qt="data-floating-ui-focusable";function Ut(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 Kt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&lt(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Yt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Xt(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 Zt(e){return(null==e?void 0:e.ownerDocument)||document}function Jt(e){return it(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Qt(e){return!!e&&"combobox"===e.getAttribute("role")&&Jt(e)}function en(e){return e?e.hasAttribute(qt)?e:e.querySelector("["+qt+"]")||e:null}function tn(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,...tn(e,t.id,n)])}function nn(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 rn(e){e.preventDefault(),e.stopPropagation()}function on(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var ln="undefined"!=typeof document?S.useLayoutEffect:function(){};function an(e){const t=S.useRef(e);return ln(()=>{t.current=e}),t}const sn={...S}.useInsertionEffect||(e=>e());function cn(e){const t=S.useRef(()=>{});return sn(()=>{t.current=e}),S.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 un=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function dn(e,t){const n=zt(e,un()),r=n.length;if(0===r)return;const o=Ut(Zt(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function fn(e){return dn(Zt(e).body,1)||e}function pn(e){return dn(Zt(e).body,-1)||e}function hn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Kt(n,r)}function gn(e){zt(e,un()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function mn(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 bn=Math.min,vn=Math.max,yn=Math.round,wn=Math.floor,On=e=>({x:e,y:e}),_n={left:"right",right:"left",bottom:"top",top:"bottom"};function Sn(e,t,n){return vn(e,bn(t,n))}function Pn(e,t){return"function"==typeof e?e(t):e}function jn(e){return e.split("-")[0]}function xn(e){return e.split("-")[1]}function Cn(e){return"x"===e?"y":"x"}function En(e){return"y"===e?"height":"width"}function Rn(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function kn(e){return Cn(Rn(e))}function Dn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Mn=["left","right"],In=["right","left"],Ln=["top","bottom"],Nn=["bottom","top"];function Tn(e){const t=jn(e);return _n[t]+e.slice(t.length)}function Fn(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 Vn(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 zn(e,t,n){let{reference:r,floating:o}=e;const i=Rn(t),l=kn(t),a=En(l),s=jn(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(xn(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function An(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}=Pn(t,e),h=Fn(p),g=a[f?"floating"===d?"reference":"floating":d],m=Vn(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=Vn(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 $n=new Set(["left","top"]);function Hn(e){const t=bt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=it(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=yn(n)!==i||yn(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Bn(e){return ot(e)?e:e.contextElement}function Wn(e){const t=Bn(e);if(!it(t))return On(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Hn(t);let l=(i?yn(n.width):n.width)/r,a=(i?yn(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Gn=On(0);function qn(e){const t=tt(e);return gt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Gn}function Un(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Bn(e);let l=On(1);t&&(r?ot(r)&&(l=Wn(r)):l=Wn(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==tt(e))&&t}(i,n,r)?qn(i):On(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=tt(i),t=r&&ot(r)?tt(r):r;let n=e,o=_t(n);for(;o&&r&&t!==n;){const e=Wn(o),t=o.getBoundingClientRect(),r=bt(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=tt(o),o=_t(n)}}return Vn({width:u,height:d,x:s,y:c})}function Kn(e,t){const n=vt(e).scrollLeft;return t?t.left+n:Un(nt(e)).left+n}function Yn(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Kn(e,n),y:n.top+t.scrollTop}}function Xn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=tt(e),r=nt(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=gt();(!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=nt(e),n=vt(e),r=e.ownerDocument.body,o=vn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Kn(e);const a=-n.scrollTop;return"rtl"===bt(r).direction&&(l+=vn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(nt(e));else if(ot(t))r=function(e,t){const n=Un(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=it(e)?Wn(e):On(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 Vn(r)}function Zn(e,t){const n=yt(e);return!(n===t||!ot(n)||mt(n))&&("fixed"===bt(n).position||Zn(n,t))}function Jn(e,t,n){const r=it(t),o=nt(t),i="fixed"===n,l=Un(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=On(0);function c(){s.x=Kn(o)}if(r||!r&&!i)if(("body"!==et(t)||at(o))&&(a=vt(t)),r){const e=Un(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?On(0):Yn(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"===bt(e).position}function er(e,t){if(!it(e)||"fixed"===bt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return nt(e)===n&&(n=n.ownerDocument.body),n}function tr(e,t){const n=tt(e);if(ct(e))return n;if(!it(e)){let t=yt(e);for(;t&&!mt(t);){if(ot(t)&&!Qn(t))return t;t=yt(t)}return n}let r=er(e,t);for(;r&&st(r)&&Qn(r);)r=er(r,t);return r&&mt(r)&&Qn(r)&&!ht(r)?n:r||function(e){let t=yt(e);for(;it(t)&&!mt(t);){if(ht(t))return t;if(ct(t))return null;t=yt(t)}return null}(e)||n}const nr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=nt(r),a=!!t&&ct(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=On(1);const u=On(0),d=it(r);if((d||!d&&!i)&&(("body"!==et(r)||at(l))&&(s=vt(r)),d)){const e=Un(r);c=Wn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?On(0):Yn(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:nt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ct(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ot(e,[],!1).filter(e=>ot(e)&&"body"!==et(e)),o=null;const i="fixed"===bt(e).position;let l=i?yt(e):e;for(;ot(l)&&!mt(l);){const t=bt(l),n=ht(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||at(l)&&!n&&Zn(e,l))?r=r.filter(e=>e!==l):o=t,l=yt(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=Xn(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=Xn(t,i[e],o);a=vn(n.top,a),s=bn(n.right,s),c=bn(n.bottom,c),u=vn(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:tr,getElementRects:async function(e){const t=this.getOffsetParent||tr,n=this.getDimensions,r=await n(e.floating);return{reference:Jn(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}=Hn(e);return{width:t,height:n}},getScale:Wn,isElement:ot,isRTL:function(e){return"rtl"===bt(e).direction}};function rr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function or(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=Bn(e),u=o||i?[...c?Ot(c):[],...t?Ot(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=nt(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:-wn(d)+"px "+-wn(o.clientWidth-(u+f))+"px "+-wn(o.clientHeight-(d+p))+"px "+-wn(u)+"px",threshold:vn(0,bn(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||rr(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?Un(e):null;return s&&function t(){const r=Un(e);g&&!rr(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 ir=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}=Pn(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=jn(o),v=Rn(a),y=jn(a)===a,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),O=f||(y||!g?[Tn(a)]:function(e){const t=Tn(e);return[Dn(e),t,Dn(t)]}(a)),_="none"!==h;!f&&_&&O.push(...function(e,t,n,r){const o=xn(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?In:Mn:t?Mn:In;case"left":case"right":return t?Ln:Nn;default:return[]}}(jn(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Dn)))),i}(a,g,h,w));const S=[a,...O],P=await s.detectOverflow(t,m),j=[];let x=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&j.push(P[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=xn(e),o=kn(e),i=En(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Tn(l)),[l,Tn(l)]}(o,l,w);j.push(P[e[0]],P[e[1]])}if(x=[...x,{placement:o,overflows:j}],!j.every(e=>e<=0)){var C,E;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=S[e];if(t&&("alignment"!==d||v===Rn(t)||x.every(e=>Rn(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:x},reset:{placement:t}};let n=null==(E=x.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=x.filter(e=>{if(_){const t=Rn(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},lr=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}=Pn(e,t)||{};if(null==c)return{};const d=Fn(u),f={x:n,y:r},p=kn(o),h=En(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],_=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let S=_?_[y]:0;S&&await(null==l.isElement?void 0:l.isElement(_))||(S=a.floating[y]||i.floating[h]);const P=w/2-O/2,j=S/2-g[h]/2-1,x=bn(d[b],j),C=bn(d[v],j),E=x,R=S-g[h]-C,k=S/2-g[h]/2+P,D=Sn(E,k,R),M=!s.arrow&&null!=xn(o)&&k!==D&&i.reference[h]/2-(k<E?x:C)-g[h]/2<0,I=M?k<E?k-E:k-R:0;return{[p]:f[p]+I,data:{[p]:D,centerOffset:k-D-I,...M&&{alignmentOffset:I}},reset:M}}}),ar=(e,t,n)=>{const r=new Map,o={platform:nr,...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:An},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}=zn(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}=zn(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var sr="undefined"!=typeof document?S.useLayoutEffect:function(){};function cr(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(!cr(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||cr(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function ur(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dr(e,t){const n=ur(e);return Math.round(t*n)/n}function fr(e){const t=S.useRef(e);return sr(()=>{t.current=e}),t}const pr=(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=jn(n),a=xn(n),s="y"===Rn(n),c=$n.has(l)?-1:1,u=i&&s?-1:1,d=Pn(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]}},hr=(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}=Pn(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=Rn(jn(o)),p=Cn(f);let h=u[p],g=u[f];if(l){const e="y"===p?"bottom":"right";h=Sn(h+d["y"===p?"top":"left"],h,h-d[e])}if(a){const e="y"===f?"bottom":"right";g=Sn(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]}},gr=(e,t)=>{const n=ir(e);return{name:n.name,fn:n.fn,options:[e,t]}},mr=(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?lr({element:n.current,padding:r}).fn(t):{}:n?lr({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function br(e){const t=S.useRef(void 0),n=S.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 S.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const vr="data-floating-ui-focusable",yr="active",wr="selected",Or={...S};let _r=!1,Sr=0;const Pr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Sr++,jr=Or.useId||function(){const[e,t]=S.useState(()=>_r?Pr():void 0);return ln(()=>{null==e&&t(Pr())},[]),S.useEffect(()=>{_r=!0},[]),e};const xr=S.createContext(null),Cr=S.createContext(null),Er=()=>{var e;return(null==(e=S.useContext(xr))?void 0:e.id)||null},Rr=()=>S.useContext(Cr);function kr(e){return"data-floating-ui-"+e}function Dr(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const Mr=kr("safe-polygon");function Ir(e,t,n){if(n&&!on(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 Lr(e){return"function"==typeof e?e():e}let Nr=0;function Tr(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Nr);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Nr=requestAnimationFrame(i)}const Fr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Vr(e){return"inert"===e?Fr.inert:"aria-hidden"===e?Fr["aria-hidden"]:Fr.none}let zr=new WeakSet,Ar={},$r=0;function Hr(e){return e?lt(e)?e.host:Hr(e.parentNode):null}const Br=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Hr(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Wr(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=Br(t,e),a=new Set,s=new Set(l),c=[];Ar[o]||(Ar[o]=new WeakMap);const u=Ar[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"!==et(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=Vr(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&&zr.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),a.clear(),$r++,()=>{c.forEach(e=>{const t=Vr(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!zr.has(e)&&i&&e.removeAttribute(i),zr.delete(e)),r||e.removeAttribute(o)}),$r--,$r||(Fr.inert=new WeakMap,Fr["aria-hidden"]=new WeakMap,Fr.none=new WeakMap,zr=new WeakSet,Ar={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Gr={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=S.forwardRef(function(e,t){const[r,o]=S.useState();ln(()=>{Bt()&&o("button")},[]);const i={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[kr("focus-guard")]:"",style:Gr};return n("span",{...e,...i})}),Ur={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Kr=S.createContext(null),Yr=kr("portal");function Xr(e){const{children:t,id:i,root:l,preserveTabOrder:a=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=jr(),o=Zr(),[i,l]=S.useState(null),a=S.useRef(null);return ln(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),ln(()=>{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(Yr,""),e.appendChild(n),a.current=n,l(n)},[t,r]),ln(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!rt(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(Yr,""),e=i||e,e.appendChild(s),a.current=s,l(s)},[t,n,r,o]),i}({id:i,root:l}),[c,u]=S.useState(null),d=S.useRef(null),f=S.useRef(null),p=S.useRef(null),h=S.useRef(null),g=null==c?void 0:c.modal,m=null==c?void 0:c.open,b=!!c&&!c.modal&&c.open&&a&&!(!l&&!s);return S.useEffect(()=>{if(s&&a&&!g)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&hn(e)&&("focusin"===e.type?mn:gn)(s)}},[s,a,g]),S.useEffect(()=>{s&&(m||mn(s))},[m,s]),r(Kr.Provider,{value:S.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:h,portalNode:s,setFocusManagerState:u}),[a,s]),children:[b&&s&&n(qr,{"data-type":"outside",ref:d,onFocus:e=>{if(hn(e,s)){var t;null==(t=p.current)||t.focus()}else{const e=pn(c?c.domReference:null);null==e||e.focus()}}}),b&&s&&n("span",{"aria-owns":s.id,style:Ur}),s&&o(t,s),b&&s&&n(qr,{"data-type":"outside",ref:f,onFocus:e=>{if(hn(e,s)){var t;null==(t=h.current)||t.focus()}else{const t=fn(c?c.domReference:null);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Zr=()=>S.useContext(Kr);function Jr(e){return S.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Qr=[];function eo(){Qr=Qr.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function to(){eo();const e=Qr[Qr.length-1];return null==e?void 0:e.deref()}function no(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=un(),o=function(e,t){return(t=t||{}).getShadowRoot?Rt([e],t.includeContainer,{filter:Nt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Et(e,t.includeContainer,Nt.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return At(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 ro=S.forwardRef(function(e,t){return n("button",{...e,type:"button",ref:t,tabIndex:-1,style:Gr})});function oo(e){const{context:o,children:i,disabled:l=!1,order:a=["content"],guards:s=!0,initialFocus:c=0,returnFocus:u=!0,restoreFocus:d=!1,modal:f=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:h=!0,outsideElementsInert:g=!1,getInsideElements:m=()=>[]}=e,{open:b,onOpenChange:v,events:y,dataRef:w,elements:{domReference:O,floating:_}}=o,P=cn(()=>{var e;return null==(e=w.current.floatingContext)?void 0:e.nodeId}),j=cn(m),x="number"==typeof c&&c<0,C=Qt(O)&&x,E="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,R=!E||s,k=!R||E&&g,D=an(a),M=an(c),I=an(u),L=Rr(),N=Zr(),T=S.useRef(null),F=S.useRef(null),V=S.useRef(!1),z=S.useRef(!1),A=S.useRef(-1),$=S.useRef(-1),H=null!=N,B=en(_),W=cn(function(e){return void 0===e&&(e=B),e?zt(e,un()):[]}),G=cn(e=>{const t=W(e);return D.current.map(e=>O&&"reference"===e?O:B&&"floating"===e?B:t).filter(Boolean).flat()});S.useEffect(()=>{if(l)return;if(!f)return;function e(e){if("Tab"===e.key){Kt(B,Ut(Zt(B)))&&0===W().length&&!C&&rn(e);const t=G(),n=Yt(e);"reference"===D.current[0]&&n===O&&(rn(e),e.shiftKey?Tr(t[t.length-1]):Tr(t[1])),"floating"===D.current[1]&&n===B&&e.shiftKey&&(rn(e),Tr(t[0]))}}const t=Zt(B);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[l,O,B,f,D,C,W,G]),S.useEffect(()=>{if(!l&&_)return _.addEventListener("focusin",e),()=>{_.removeEventListener("focusin",e)};function e(e){const t=Yt(e),n=W().indexOf(t);-1!==n&&(A.current=n)}},[l,_,W]),S.useEffect(()=>{if(l)return;if(!h)return;function e(){z.current=!0,setTimeout(()=>{z.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Yt(e);queueMicrotask(()=>{const o=P(),i=!(Kt(O,t)||Kt(_,t)||Kt(t,_)||Kt(null==N?void 0:N.portalNode,t)||null!=t&&t.hasAttribute(kr("focus-guard"))||L&&(tn(L.nodesRef.current,o).find(e=>{var n,r;return Kt(null==(n=e.context)?void 0:n.elements.floating,t)||Kt(null==(r=e.context)?void 0:r.elements.domReference,t)})||nn(L.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,en(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===O&&B&&no(B,D),d&&n!==O&&(null==r||!r.isConnected)&&Ut(Zt(B))===Zt(B).body){it(B)&&B.focus();const e=A.current,t=W(),n=t[e]||t[t.length-1]||B;it(n)&&n.focus()}w.current.insideReactTree?w.current.insideReactTree=!1:!C&&f||!t||!i||z.current||t===to()||(V.current=!0,v(!1,e,"focus-out"))})}const n=Boolean(!L&&N);function r(){Dr($),w.current.insideReactTree=!0,$.current=window.setTimeout(()=>{w.current.insideReactTree=!1})}return _&&it(O)?(O.addEventListener("focusout",t),O.addEventListener("pointerdown",e),_.addEventListener("focusout",t),n&&_.addEventListener("focusout",r,!0),()=>{O.removeEventListener("focusout",t),O.removeEventListener("pointerdown",e),_.removeEventListener("focusout",t),n&&_.removeEventListener("focusout",r,!0)}):void 0},[l,O,_,B,f,L,N,v,h,d,W,C,P,D,w]);const q=S.useRef(null),U=S.useRef(null),K=Jr([q,null==N?void 0:N.beforeInsideRef]),Y=Jr([U,null==N?void 0:N.afterInsideRef]);function X(e){return!l&&p&&f?n(ro,{ref:"start"===e?T:F,onClick:e=>v(!1,e.nativeEvent),children:"string"==typeof p?p:"Dismiss"}):null}S.useEffect(()=>{var e,t;if(l)return;if(!_)return;const n=Array.from((null==N||null==(e=N.portalNode)?void 0:e.querySelectorAll("["+kr("portal")+"]"))||[]),r=null==(t=(L?nn(L.nodesRef.current,P()):[]).find(e=>{var t;return Qt((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,o=[_,r,...n,...j(),T.current,F.current,q.current,U.current,null==N?void 0:N.beforeOutsideRef.current,null==N?void 0:N.afterOutsideRef.current,D.current.includes("reference")||C?O:null].filter(e=>null!=e),i=f||C?Wr(o,!k,k):Wr(o);return()=>{i()}},[l,O,_,f,D,N,C,R,k,L,P,j]),ln(()=>{if(l||!it(B))return;const e=Ut(Zt(B));queueMicrotask(()=>{const t=G(B),n=M.current,r=("number"==typeof n?t[n]:n.current)||B,o=Kt(B,e);x||o||!b||Tr(r,{preventScroll:r===B})})},[l,b,B,x,G,M]),ln(()=>{if(l||!B)return;const e=Zt(B);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(V.current=!0),"outside-press"===t)if(r)V.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Wt()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!Gt()&&(!Wt()&&0===e.width&&0===e.height||Wt()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}(n))V.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),V.current=!e}}t=Ut(e),eo(),t&&"body"!==et(t)&&(Qr.push(new WeakRef(t)),Qr.length>20&&(Qr=Qr.slice(-20))),y.on("openchange",n);const r=e.createElement("span");return r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),Object.assign(r.style,Gr),H&&O&&O.insertAdjacentElement("afterend",r),()=>{y.off("openchange",n);const t=Ut(e),o=Kt(_,t)||L&&tn(L.nodesRef.current,P(),!1).some(e=>{var n;return Kt(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof I.current){const e=O||to();return e&&e.isConnected?e:r}return I.current.current||r}();queueMicrotask(()=>{const n=function(e){const t=un();return At(e,t)?e:zt(e,t)[0]||e}(i);I.current&&!V.current&&it(n)&&(n===t||t===e.body||o)&&n.focus({preventScroll:!0}),r.remove()})}},[l,_,B,I,w,y,L,H,O,P]),S.useEffect(()=>(queueMicrotask(()=>{V.current=!1}),()=>{queueMicrotask(eo)}),[l]),ln(()=>{if(!l&&N)return N.setFocusManagerState({modal:f,closeOnFocusOut:h,open:b,onOpenChange:v,domReference:O}),()=>{N.setFocusManagerState(null)}},[l,N,f,b,v,h,O]),ln(()=>{l||B&&no(B,D)},[l,B,D]);const Z=!l&&R&&(!f||!C)&&(H||f);return r(t,{children:[Z&&n(qr,{"data-type":"inside",ref:K,onFocus:e=>{if(f){const e=G();Tr("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(V.current=!1,hn(e,N.portalNode)){const e=fn(O);null==e||e.focus()}else{var t;null==(t=N.beforeOutsideRef.current)||t.focus()}}}),!C&&X("start"),i,X("end"),Z&&n(qr,{"data-type":"inside",ref:Y,onFocus:e=>{if(f)Tr(G()[0]);else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(h&&(V.current=!0),hn(e,N.portalNode)){const e=pn(O);null==e||e.focus()}else{var t;null==(t=N.afterOutsideRef.current)||t.focus()}}})]})}function io(e){return it(e.target)&&"BUTTON"===e.target.tagName}function lo(e){return Jt(e)}function ao(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=S.useRef(),p=S.useRef(!1),h=S.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&(on(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:on(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||io(e)||(" "!==e.key||lo(i)||(e.preventDefault(),p.current=!0),function(e){return it(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||io(e)||lo(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,s]);return S.useMemo(()=>l?{reference:h}:{},[l,h])}const so={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},co={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},uo=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 fo(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=Rr(),m=cn("function"==typeof s?s:()=>!1),b="function"==typeof s?m:s,v=S.useRef(!1),{escapeKey:y,outsidePress:w}=uo(p),{escapeKey:O,outsidePress:_}=uo(h),P=S.useRef(!1),j=cn(e=>{var t;if(!n||!l||!a||"Escape"!==e.key)return;if(P.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=g?tn(g.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),x=cn(e=>{var t;const n=()=>{var t;j(e),null==(t=Yt(e))||t.removeEventListener("keydown",n)};null==(t=Yt(e))||t.addEventListener("keydown",n)}),C=cn(e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const l=v.current;if(v.current=!1,"click"===c&&l)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=Yt(e),s="["+kr("inert")+"]",u=Zt(o.floating).querySelectorAll(s);let d=ot(a)?a:null;for(;d&&!mt(d);){const e=yt(d);if(mt(e)||!ot(e))break;d=e}if(u.length&&ot(a)&&!a.matches("html,body")&&!Kt(a,o.floating)&&Array.from(u).every(e=>!Kt(d,e)))return;if(it(a)&&k){const t=mt(a),n=bt(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&&tn(g.nodesRef.current,f).some(t=>{var n;return Xt(e,null==(n=t.context)?void 0:n.elements.floating)});if(Xt(e,o.floating)||Xt(e,o.domReference)||p)return;const h=g?tn(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")}),E=cn(e=>{var t;const n=()=>{var t;C(e),null==(t=Yt(e))||t.removeEventListener(c,n)};null==(t=Yt(e))||t.addEventListener(c,n)});S.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),P.current=!0}function u(){e=window.setTimeout(()=>{P.current=!1},gt()?5:0)}const d=Zt(o.floating);a&&(d.addEventListener("keydown",O?x:j,O),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),b&&d.addEventListener(c,_?E:C,_);let p=[];return f&&(ot(o.domReference)&&(p=Ot(o.domReference)),ot(o.floating)&&(p=p.concat(Ot(o.floating))),!ot(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(Ot(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{a&&(d.removeEventListener("keydown",O?x:j,O),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),b&&d.removeEventListener(c,_?E:C,_),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,b,c,n,r,f,l,y,w,j,O,x,C,_,E]),S.useEffect(()=>{i.current.insideReactTree=!1},[i,b,c]);const R=S.useMemo(()=>({onKeyDown:j,...u&&{[so[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[j,r,u,d]),k=S.useMemo(()=>{function e(e){0===e.button&&(v.current=!0)}return{onKeyDown:j,onMouseDown:e,onMouseUp:e,[co[c]]:()=>{i.current.insideReactTree=!0}}},[j,c,i]);return S.useMemo(()=>l?{reference:R,floating:k}:{},[l,R,k])}function po(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=jr(),i=S.useRef({}),[l]=S.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!=Er(),[s,c]=S.useState(r.reference),u=cn((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=S.useMemo(()=>({setPositionReference:c}),[]),f=S.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return S.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:l,floatingId:o,refs:d}),[t,u,f,l,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[l,a]=S.useState(null),[s,c]=S.useState(null),u=(null==o?void 0:o.domReference)||l,d=S.useRef(null),f=Rr();ln(()=>{u&&(d.current=u)},[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=S.useState(r);cr(p,r)||h(r);const[g,m]=S.useState(null),[b,v]=S.useState(null),y=S.useCallback(e=>{e!==P.current&&(P.current=e,m(e))},[]),w=S.useCallback(e=>{e!==j.current&&(j.current=e,v(e))},[]),O=l||g,_=a||b,P=S.useRef(null),j=S.useRef(null),x=S.useRef(d),C=null!=c,E=fr(c),R=fr(o),k=fr(u),D=S.useCallback(()=>{if(!P.current||!j.current)return;const e={placement:t,strategy:n,middleware:p};R.current&&(e.platform=R.current),ar(P.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==k.current};M.current&&!cr(x.current,t)&&(x.current=t,i(()=>{f(t)}))})},[p,t,n,R,k]);sr(()=>{!1===u&&x.current.isPositioned&&(x.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const M=S.useRef(!1);sr(()=>(M.current=!0,()=>{M.current=!1}),[]),sr(()=>{if(O&&(P.current=O),_&&(j.current=_),O&&_){if(E.current)return E.current(O,_,D);D()}},[O,_,D,E,C]);const I=S.useMemo(()=>({reference:P,floating:j,setReference:y,setFloating:w}),[y,w]),L=S.useMemo(()=>({reference:O,floating:_}),[O,_]),N=S.useMemo(()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=dr(L.floating,d.x),r=dr(L.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ur(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,L.floating,d.x,d.y]);return S.useMemo(()=>({...d,update:D,refs:I,elements:L,floatingStyles:N}),[d,D,I,L,N])}({...e,elements:{...o,...s&&{reference:s}}}),h=S.useCallback(e=>{const t=ot(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),g=S.useCallback(e=>{(ot(e)||null===e)&&(d.current=e,a(e)),(ot(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!ot(e))&&p.refs.setReference(e)},[p.refs]),m=S.useMemo(()=>({...p.refs,setReference:g,setPositionReference:h,domReference:d}),[p.refs,g,h]),b=S.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=S.useMemo(()=>({...p,...r,refs:m,elements:b,nodeId:t}),[p,m,b,t,r]);return ln(()=>{r.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),S.useMemo(()=>({...p,context:v,refs:m,elements:b}),[p,m,b,v])}function ho(){return $t().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&Bt()}function go(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=S.useRef(!1),u=S.useRef(-1),d=S.useRef(!0);S.useEffect(()=>{if(!a)return;const e=tt(l.domReference);function t(){!n&&it(l.domReference)&&l.domReference===Ut(Zt(l.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),ho()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),ho()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[l.domReference,n,a]),S.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]),S.useEffect(()=>()=>{Dr(u)},[]);const f=S.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Yt(e.nativeEvent);if(s&&ot(t))if(ho()&&!e.relatedTarget){if(!d.current&&!Jt(t))return}else if(!function(e){if(!e||Gt())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=ot(t)&&t.hasAttribute(kr("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=Ut(l.domReference?l.domReference.ownerDocument:document);(t||a!==l.domReference)&&(Kt(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Kt(l.domReference,a)||o||r(!1,n,"focus"))})}}),[i,l.domReference,r,s]);return S.useMemo(()=>a?{reference:f}:{},[a,f])}function mo(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[yr]:t,[wr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[vr]:""},...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&&[yr,wr].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 bo(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=S.useCallback(t=>mo(t,e,"reference"),t),i=S.useCallback(t=>mo(t,e,"floating"),n),l=S.useCallback(t=>mo(t,e,"item"),r);return S.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}const vo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function yo(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=jr(),u=(null==(n=i.domReference)?void 0:n.id)||c,d=S.useMemo(()=>{var e;return(null==(e=en(i.floating))?void 0:e.id)||l},[i.floating,l]),f=null!=(r=vo.get(s))?r:s,p=null!=Er(),h=S.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=S.useMemo(()=>{const e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),m=S.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 S.useMemo(()=>a?{reference:h,floating:g,item:m}:{},[a,h,g,m])}const wo=(0,S.createContext)(null),Oo=["styles","style","children"],_o=["context"];function So(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function 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){jo(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 jo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 xo(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 Co=(0,S.forwardRef)(function(e,t){let{styles:o,style:i,children:l}=e,a=xo(e,Oo);const s=(0,S.useContext)(wo);if(!s)return null;const{context:c}=s,u=xo(s,_o),d=br([u.refs.setFloating,t]);if(!c.open)return null;let f="",p=null,h=null;switch(u.placement){case"top":case"top-end":case"top-start":f="topArrow",h=!1;break;case"bottom":case"bottom-end":case"bottom-start":f="bottomArrow",h=!0;break;case"left":case"left-end":case"left-start":f="leftArrow",p=!0;break;case"right":case"right-end":case"right-start":f="rightArrow",p=!1}return n(Xr,{root:u.root,children:r("div",Po(Po({ref:d,style:Po(Po({},u.floatingStyles),i)},u.getFloatingProps(a)),{},{children:[l,!u.withoutArrow&&n("div",{className:o&&_()(o.arrow,o[f]),ref:u.arrowRef,style:{position:"absolute",left:null===h&&!1===p?0:u.middlewareData.arrow?.x,right:null===h&&!0===p?0:u.middlewareData.arrow?.x,top:null===p&&!0===h?0:u.middlewareData.arrow?.y,bottom:null===p&&!1===h?0:u.middlewareData.arrow?.y}})]}))})});function Eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eo(Object(n),!0).forEach(function(t){ko(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ko(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Do=["children"],Mo=e=>{const{children:t}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Do),o=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:o,withoutArrow:i,arrowRef:l,root:a}=e,[s,c]=(0,S.useState)(t),u=r??s,d=o??c,f=po({placement:n,open:u,onOpenChange:d,whileElementsMounted:or,middleware:[pr(12),gr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),hr({padding:5}),...!i&&l?.current?[mr({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=Rr(),h=Er(),g=an(c),m=an(s),b=an(n),v=an(d),y=S.useRef(),w=S.useRef(-1),O=S.useRef(),_=S.useRef(-1),P=S.useRef(!0),j=S.useRef(!1),x=S.useRef(()=>{}),C=S.useRef(!1),E=cn(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});S.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(Dr(w),Dr(_),P.current=!0,C.current=!1)}},[a,i]),S.useEffect(()=>{if(!a)return;if(!g.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=Zt(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[l.floating,n,r,a,g,E]);const R=S.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Ir(m.current,"close",y.current);o&&!O.current?(Dr(w),w.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(Dr(w),r(!1,e,n))},[m,r]),k=cn(()=>{x.current(),O.current=void 0}),D=cn(()=>{if(j.current){const e=Zt(l.floating).body;e.style.pointerEvents="",e.removeAttribute(Mr),j.current=!1}}),M=cn(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));S.useEffect(()=>{if(a&&ot(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(Dr(w),P.current=!1,u&&!on(y.current)||Lr(v.current)>0&&!Ir(m.current,"open"))return;const t=Ir(m.current,"open",y.current);t?w.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(M())return void D();x.current();const t=Zt(l.floating);if(Dr(_),C.current=!1,g.current&&o.current.floatingContext){n||Dr(w),O.current=g.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e,!0,"safe-polygon")}});const r=O.current;return t.addEventListener("mousemove",r),void(x.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Kt(l.floating,e.relatedTarget))&&R(e)}function i(e){M()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e)}})(e))}function s(){Dr(w)}function c(e){M()||R(e,!1)}},[l,a,e,u,f,R,k,D,r,n,b,p,m,g,o,M,v]),ln(()=>{var e;if(a&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&E()){j.current=!0;const e=l.floating;if(ot(l.domReference)&&e){var t;const n=Zt(l.floating).body;n.setAttribute(Mr,"");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,E]),ln(()=>{n||(y.current=void 0,C.current=!1,k(),D())},[n,k,D]),S.useEffect(()=>()=>{k(),Dr(w),Dr(_),D()},[a,l.domReference,k,D]);const I=S.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){P.current||b.current||r(!0,t,"hover")}u&&!on(y.current)||n||0===Lr(v.current)||C.current&&e.movementX**2+e.movementY**2<2||(Dr(_),"touch"===y.current?o():(C.current=!0,_.current=window.setTimeout(o,Lr(v.current))))}}},[u,r,n,b,v]);return S.useMemo(()=>a?{reference:I}:{},[a,I])}(p,{move:!1,enabled:null==r}),g=bo([h,go(p,{enabled:null==r}),fo(p),yo(p,{role:"tooltip"})]);return(0,S.useMemo)(()=>Ro(Ro({open:u,setOpen:d,withoutArrow:i,arrowRef:l,root:a},g),f),[u,d,g,f,a])}(r);return n(wo.Provider,{value:o,children:t})},Io=["children","wrapTrigger"];function Lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach(function(t){To(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function To(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fo=(0,S.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Io);const l=(0,S.useContext)(wo),a=r.ref,s=br([l?.refs.setReference,t,a]);return l?!o&&(0,S.isValidElement)(r)?(0,S.cloneElement)(r,l.getReferenceProps(No(No(No({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",No(No({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function Vo(e){const{label:o,clickable:i,initialOpen:l,placement:a,withoutArrow:s,wrapTrigger:c,alertType:u="default",root:f,children:p,classes:h}=e,[g,m]=(0,S.useState)(!1),b=(0,S.useRef)(null);return o?p?r(Mo,{placement:a,initialOpen:l,open:i?g:void 0,onOpenChange:i?m:void 0,withoutArrow:s,arrowRef:b,root:f,children:[n(Fo,{wrapTrigger:c,onClick:i?()=>m(e=>!e):void 0,className:c?_()(Ze,h?.trigger):void 0,children:p}),n(Co,{className:_()(We,d[u],h?.content),styles:d,children:o})]}):null:p?n(t,{children:p}):null}var zo="fieldShell-module__arrow__dXtPp",Ao="fieldShell-module__chips__Eyi_K",$o="fieldShell-module__end-icon__ajeP3",Ho="fieldShell-module__input__mpHQB";function Bo(e){const{variant:t="outlined",componentSize:o="medium",fullWidth:i,label:l,error:a,labelExtra:s,inputId:c,onLabelClick:u,wrapperRef:d,hasStartIcon:f,hasEndIcon:p,hasDualEndIcon:h,hasErrorIcon:g,hasClearButton:m,hasArrow:b,chipsMode:v,children:y,classes:w}=e;return r("div",{"data-size":o,className:_()("fieldShell-module__root__vQ9PI",i&&"fieldShell-module__full-width__bYt_Z",w?.root),children:[!!l&&r("div",{className:_()("fieldShell-module__label-row__bOAYh",w?.labelRow),children:[r(be,{className:_()("fieldShell-module__label__fdgQq",w?.label),component:"label",variant:"caption",htmlFor:c,onClick:u,children:[l,s]}),!!a&&n(Vo,{label:a.description,alertType:"error",children:n("span",{className:_()("fieldShell-module__error-name__LUg8D",w?.errorName),children:a.name})})]}),n("div",{ref:d,"data-variant":t,"data-error":a?"":void 0,"data-start-icon":f?"":void 0,"data-end-icon":p?"":void 0,"data-dual-end-icon":h?"":void 0,"data-error-icon":g?"":void 0,"data-clear":m?"":void 0,"data-arrow":b?"":void 0,"data-chips":v?"":void 0,className:_()("fieldShell-module__wrapper__OLPGQ",w?.wrapper),children:y})]})}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 Go(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){qo(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 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 Uo=e=>n(ye,Go(Go({},e),{},{children:n("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 Ko(e){return r(t,{children:[e.name,n("br",{}),e.description]})}function Yo(e){const{error:t,componentSize:r="medium",className:o}=e,i="large"===r||"extraLarge"===r?24:20;return n(Vo,{label:Ko(t),alertType:"error",children:n("span",{className:_()($o,"fieldShell-module__error-icon__Nyh0h",o),children:n(Uo,{size:i})})})}function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach(function(t){Jo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qo=e=>n(ye,Zo(Zo({},e),{},{children:n("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}));var 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=e=>{const{variant:t="filled",componentSize:o="medium",icon:i,disabled:l,onClick:a,onRemove:s,children:c,classes:u}=e;return r("div",{className:_()(ci,f[t],f[o],!!i&&fi,l&&ti,a&&!l&&ei,u?.root),tabIndex:a&&!l?0:void 0,onClick:l?void 0:a,children:[!!i&&n("span",{className:_()(oi,u?.icon),children:i}),n("span",{className:_()(di,u?.text),children:c}),!!s&&n("button",{type:"button",className:_()(si,u?.remove),onClick:e=>{e.stopPropagation(),l||s?.()},disabled:l,"aria-label":"Удалить",children:n(Qo,{})})]})},hi=(0,S.createContext)(null),gi=["style","children"],mi=["context"];function bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach(function(t){yi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(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 Oi=(0,S.forwardRef)(function(e,t){let{style:r,children:o}=e,i=wi(e,gi);const l=(0,S.useContext)(hi);if(!l)return null;const{context:a}=l,s=wi(l,mi),c=br([s.refs.setFloating,t]),u=ve();return(0,S.useLayoutEffect)(()=>(l.setDescriptionId(u),()=>l.setDescriptionId(void 0)),[u,l.setDescriptionId]),a.open?n(Xr,{root:s.root,children:n(oo,{context:a,modal:s.modal,children:n("div",vi(vi({id:u,ref:c,style:vi(vi({},s.floatingStyles),r),"aria-describedby":s.descriptionId},s.getFloatingProps(i)),{},{children:o}))})}):null}),_i=["update"];function Si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Si(Object(n),!0).forEach(function(t){ji(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Si(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ji(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xi=["children","modal"];function Ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ei(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ri=e=>{const{children:t,modal:r=!1}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,xi),i=function(e={}){const{initialOpen:t=!1,placement:n="bottom",modal:r,root:o,open:i,onOpenChange:l,containerOffset:a=12,layoutVersion:s}=e,[c,u]=(0,S.useState)(t),[d,f]=(0,S.useState)(),p=i??c,h=l??u,g=po({placement:n,open:p,onOpenChange:h,whileElementsMounted:or,middleware:[pr(a),gr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),hr({padding:5})]}),{update:m}=g,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(g,_i),{context:v}=b;(0,S.useLayoutEffect)(()=>{p&&m()},[p,s,m]);const y=bo([ao(v,{enabled:null==i}),fo(v),yo(v)]);return(0,S.useMemo)(()=>Pi(Pi(Pi({open:p,setOpen:h},y),b),{},{update:m,modal:r,root:o,descriptionId:d,setDescriptionId:f}),[p,h,y,b,m,r,o,d])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ci(Object(n),!0).forEach(function(t){Ei(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:r},o));return n(hi.Provider,{value:i,children:t})},ki=["children","wrapTrigger"];function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(n),!0).forEach(function(t){Ii(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ii(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Li=(0,S.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ki);const l=(0,S.useContext)(hi),a=r.ref,s=br([l?.refs.setReference,t,a]);return l?!o&&(0,S.isValidElement)(r)?(0,S.cloneElement)(r,l.getReferenceProps(Mi(Mi(Mi({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",Mi(Mi({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function Ni(e){const{description:t,clickable:o,initialOpen:i,placement:l,wrapTrigger:a,containerOffset:s,root:c,open:u,onOpenChange:d,children:f,classes:p,contentStyle:h,layoutVersion:g}=e,[m,b]=(0,S.useState)(!1);return f?t?r(Ri,{placement:l,initialOpen:i,open:void 0!==u?u:o?m:void 0,onOpenChange:void 0!==d?d:o?b:void 0,containerOffset:s,root:c,layoutVersion:g,children:[n(Li,{wrapTrigger:a,onClick:o?()=>b(e=>!e):void 0,className:_()(a?"popover-module__trigger__hYNqD":void 0,p?.trigger),children:f}),n(Oi,{className:_()("popover-module__content__cXVJ_",p?.content),style:h,children:t})]}):f:null}function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(n),!0).forEach(function(t){Vi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zi=e=>n(ye,Fi(Fi({},e),{},{children:n("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach(function(t){Hi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bi=e=>n(ye,$i($i({},e),{},{children:n("path",{d:"M7 10l5 5 5-5z"})}));function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Wi(Object(n),!0).forEach(function(t){qi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ui=e=>n(ye,Gi(Gi({},e),{},{children:n("path",{d:"M7 14l5-5 5 5z"})}));function Ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ki(Object(n),!0).forEach(function(t){Xi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ki(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 Zi=e=>n(ye,Yi(Yi({},e),{},{children:n("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"})}));function 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 Qi(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){el(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 el(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tl=e=>n(ye,Qi(Qi({},e),{},{children:n("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})}));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 rl(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){ol(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 ol(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const il=e=>n(ye,rl(rl({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ll(Object(n),!0).forEach(function(t){sl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ll(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(ye,al(al({},e),{},{children:n("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ul(Object(n),!0).forEach(function(t){fl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ul(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pl=e=>n(ye,dl(dl({},e),{},{children:n("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hl(Object(n),!0).forEach(function(t){ml(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ml(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(ye,gl(gl({},e),{},{children:n("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));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 yl(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){wl(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 wl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ol=e=>n(ye,yl(yl({},e),{},{children:n("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"})}));function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach(function(t){Pl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jl=e=>n(ye,Sl(Sl({},e),{},{children:n("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"})}));function 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 Cl(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){El(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 El(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(ye,Cl(Cl({},e),{},{children:n("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})}));function 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 Dl(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){Ml(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 Ml(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(ye,Dl(Dl({},e),{},{children:n("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function Ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ll(Object(n),!0).forEach(function(t){Tl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function 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=>n(ye,Nl(Nl({},e),{},{children:n("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 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 zl(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){Al(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 Al(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $l=e=>n(ye,zl(zl({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach(function(t){Wl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gl=e=>n(ye,Bl(Bl({},e),{},{children:n("path",{d:"M4.24993 5.61C6.26993 8.2 9.99993 13 9.99993 13V19C9.99993 19.55 10.4499\n 20 10.9999 20H12.9999C13.5499 20 13.9999 19.55 13.9999 19V13C13.9999 13 17.7199 8.2\n 19.7399 5.61C20.2499 4.95 19.7799 4 18.9499 4H5.03993C4.20993 4 3.73993 4.95 4.24993 5.61Z"})}));function ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(n),!0).forEach(function(t){Kl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ql(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>r(ye,Ul(Ul({},e),{},{children:[n("g",{"clip-path":"url(#clip0_851_25267)",children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00015 4L3.46792 0.467773L2.05371 1.88199L4.4002 4.22847C4.01467 4.55071 3.89485 5.1506 4.24984\n 5.61C6.26984 8.2 9.99984 13 9.99984 13V19C9.99984 19.55 10.4498 20 10.9998 20H12.9998C13.5498 20\n 13.9998 19.55 13.9998 19V13.8281L18.9708 18.7991L20.385 17.3849L20.3849 17.3847L14.8734 11.8733L7.00015\n 4ZM16.1091 10.2805C17.2922 8.75591 18.7289 6.90619 19.7398 5.61C20.2498 4.95 19.7798 4 18.9498\n 4H9.82861L16.1091 10.2805Z"})}),n("defs",{children:n("clipPath",{id:"clip0_851_25267",children:n("rect",{width:"24",height:"24",fill:"white"})})})]}));function 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 Zl(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){Jl(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 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 Ql=e=>n(ye,Zl(Zl({},e),{},{children:n("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10\n 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(n),!0).forEach(function(t){na(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(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 ra=e=>n(ye,ta(ta({},e),{},{children:n("path",{d:"M23 21.5H1L12 2.5L23 21.5ZM4.47005 19.5H19.53L12 6.48959L4.47005 19.5ZM13 18.5H11V16.5H13V18.5ZM13 10.5V14.5H11V10.5H13Z"})}));function oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?oa(Object(n),!0).forEach(function(t){la(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function la(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aa=e=>n(ye,ia(ia({},e),{},{children:n("path",{d:"M12 8.29498L6 14.295L7.41 15.705L12 11.125L16.59 15.705L18 14.295L12 8.29498Z"})}));function sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?sa(Object(n),!0).forEach(function(t){ua(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ua(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const da=e=>n(ye,ca(ca({},e),{},{children:n("path",{d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z"})}));function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach(function(t){ha(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ha(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ga=e=>n(ye,pa(pa({},e),{},{children:n("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?ma(Object(n),!0).forEach(function(t){va(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ma(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 ya=e=>n(ye,ba(ba({},e),{},{children:n("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}));function wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wa(Object(n),!0).forEach(function(t){_a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _a(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sa=e=>n(ye,Oa(Oa({},e),{},{children:n("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}));function Pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(n),!0).forEach(function(t){xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function 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 Ca=e=>n(ye,ja(ja({},e),{},{children:n("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function Ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Ea(Object(n),!0).forEach(function(t){ka(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ea(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 Da=e=>n(ye,Ra(Ra({},e),{},{children:n("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})}));function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Ma(Object(n),!0).forEach(function(t){La(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function La(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Na=e=>n(ye,Ia(Ia({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));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 za=e=>n(ye,Fa(Fa({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(n),!0).forEach(function(t){Ha(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ha(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ba=e=>n(ye,$a($a({},e),{},{children:n("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"})}));function Wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Wa(Object(n),!0).forEach(function(t){qa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ua=e=>n(ye,Ga(Ga({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Ka(Object(n),!0).forEach(function(t){Xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(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 Za=e=>n(ye,Ya(Ya({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"})}));function 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 Qa(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){es(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 es(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ts=e=>n(ye,Qa(Qa({},e),{},{children:n("path",{d:"M18.3688 3.29L20.7088 5.63C21.0988 6.02 21.0988 6.65 20.7088 7.04L18.8788 8.87L15.1288 5.12L16.9588 3.29C17.1488 3.1 17.3988 3 17.6588 3C17.9188 3 18.1688 3.09 18.3688 3.29ZM2.99878 17.25V21H6.74878L17.8088 9.94L14.0588 6.19L2.99878 17.25ZM5.91878 19H4.99878V18.08L14.0588 9.02L14.9788 9.94L5.91878 19Z"})}));function 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 rs(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){os(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 os(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(ye,rs(rs({},e),{},{children:n("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2\n 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})}));function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ls(Object(n),!0).forEach(function(t){ss(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ss(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(ye,as(as({},e),{},{children:n("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach(function(t){fs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ps=e=>n(ye,ds(ds({},e),{},{children:n("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z"})}));function hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach(function(t){ms(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ms(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(ye,gs(gs({},e),{},{children:n("path",{d:"M17 11v6.97l-5-2.14-5 2.14V5h6V3H7c-1.1 0-2\n .9-2 2v16l7-3 7 3V11h-2zm4-4h-2v2h-2V7h-2V5h2V3h2v2h2v2z"})}));function 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 ys(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){ws(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 ws(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Os=e=>n(ye,ys(ys({},e),{},{children:n("path",{fill:"currentColor",d:"m16.2 20.5 2.8-2.8V20h1v-4h-4v1h2.3l-2.8 2.8zM5 21q-.824\n 0-1.412-.587A1.93 1.93 0 0 1 3 19V5Q3 4.176 3.588 3.588A1.93\n 1.93 0 0 1 5 3h14q.824 0 1.413.588Q21 4.175 21 5v6.7a8 8 0\n 0 0-.975-.387A6 6 0 0 0 19 11.075V5H5v14h6.05q.076.55.237\n 1.05.163.5.388.95zm0-3v1V5v8.075V11zm2-1h4.075q.076-.525.238-1.025T11.675\n 15H7zm0-4h6.1q.8-.75 1.787-1.25A7 7 0 0 1 17 11.075V11H7zm0-4h10V7H7zm15\n 14q-2.075 0-3.537-1.462Q13 20.074 13 18q0-2.075 1.463-3.537Q15.926 13\n 18 13q2.075 0 3.538 1.463T23 18t-1.462 3.538Q20.074 23 18 23"})}));function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(n),!0).forEach(function(t){Ps(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ps(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const js=e=>n(ye,Ss(Ss({},e),{},{children:n("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?xs(Object(n),!0).forEach(function(t){Es(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Es(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(ye,Cs(Cs({},e),{},{children:n("path",{d:"M12 6.375C15.75 6.375 18.9525 8.7075 20.25 12C18.9525 15.2925 15.75 17.625 12 17.625C8.25\n 17.625 5.0475 15.2925 3.75 12C5.0475 8.7075 8.25 6.375 12 6.375ZM12 7.875C9.15755 7.87505\n 6.62225 9.47254 5.38477 12C6.62225 14.52746 9.15755 16.12495 12 16.125C14.8425\n 16.125 17.3777 14.5275 18.6152 12C17.3777 9.4725 14.8425 7.875 12 7.875ZM12\n 8.625C13.86 8.625 15.375 10.14 15.375 12C15.375 13.86 13.86 15.375 12 15.375C10.14 15.375\n 8.625 13.86 8.625 12C8.625 10.14 10.14 8.625 12 8.625ZM12 10.125C10.965 10.125 10.125 10.965\n 10.125 12C10.125 13.035 10.965 13.875 12 13.875C13.035 13.875 13.875 13.035\n 13.875 12C13.875 10.965 13.035 10.125 12 10.125Z"})}));function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ks(Object(n),!0).forEach(function(t){Ms(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ms(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=>n(ye,Ds(Ds({},e),{},{children:n("path",{d:"M12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V8Z"})}));function Ls(){const e=(0,S.useContext)(hi);return n(e?.open?Ui:Bi,{})}const Ns=e=>{const{children:t,fillEvenly:r,classes:o}=e;return n("div",{className:_()("buttonsGroup-module__root__rBp1o",r&&"buttonsGroup-module__fill-evenly__J5T6H",o?.root),children:t})};var Ts="menu-module__divider__kik9c",Fs="menu-module__extraLarge__RIQUR",Vs="menu-module__item__DO2AJ",zs="menu-module__item-actions__ecU8y",As="menu-module__item-description__BxxnF",$s="menu-module__item-disabled__E7Z4s",Hs="menu-module__item-icon___HDe4",Bs="menu-module__item-selected__m9VFe",Ws="menu-module__item-text-block__zgpGT",Gs="menu-module__item-title__gcK7P",qs="menu-module__item-title-top__PSYWj",Us="menu-module__large__jYm_Q",Ks="menu-module__medium__Jev6c",Ys="menu-module__root__pR_5h",Xs="menu-module__small__uGqFV",Zs="menu-module__state-layer__m8uMf";function Js(e){const{items:o,size:i="medium",descriptionPosition:l="right",classes:a}=e,s=(0,S.useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]);return n("div",{className:_()(Ys,p[i],a?.root),children:o.map((e,o)=>{const c="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?n(c,{tabIndex:-10,className:_()(Vs,e.selected?Bs:void 0,e.disabled?$s:void 0,a?.item,e.selected?a?.itemSelected:void 0,e.disabled?a?.itemDisabled:void 0),onClick:e.disabled?void 0:s(e),title:e.name,children:r("span",{className:_()(Zs),children:[!!e.icon&&n("span",{className:_()(Hs,a?.itemIcon,e.selected?a?.itemSelectedIcon:void 0,e.disabled?a?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===l&&e.description?r("span",{className:_()(Ws),children:[n("span",{className:_()(qs,Gs,a?.itemTitle,e.selected?a?.itemSelectedTitle:void 0,e.disabled?a?.itemDisabledTitle:void 0),children:e.name}),n("span",{className:_()(As,a?.itemDescription,e.selected?a?.itemSelectedDescription:void 0,e.disabled?a?.itemDisabledDescription:void 0),children:e.description})]}):r(t,{children:[n("span",{className:_()(Gs,a?.itemTitle,e.selected?a?.itemSelectedTitle:void 0,e.disabled?a?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&n("span",{className:_()(As,a?.itemDescription,e.selected?a?.itemSelectedDescription:void 0,e.disabled?a?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&n("div",{className:_()(zs,a?.itemActions,e.selected?a?.itemSelectedActions:void 0,e.disabled?a?.itemDisabledActions:void 0),children:n(Ns,{children:e.subButtons.map((e,t)=>n(G,{variant:e.variant,size:i,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${o}`):n("div",{className:_()(Ts,a?.divider),children:e.name},`menu-divider-${e.name}-${o}`)})})}function Qs(e){const{items:t,componentSize:r,selectedValue:o,changeSelectedItem:i,classes:l}=e,a=(0,S.useContext)(hi);return n(Js,{size:r,classes:l?.menu,items:t.map(e=>"divider"===e.type?{type:"divider",name:e.name}:{type:"item",name:e.name,icon:e.icon,description:e.description,disabled:e.disabled,selected:e.value===o,onClick:()=>{i(e),a&&a.setOpen(!1)}})})}const ec=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","defaultValue","onValueChange","selected","chips","classes","ref","disabled","id"];function tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tc(Object(n),!0).forEach(function(t){rc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 oc(e){const{variant:t="filled",componentSize:o="medium",icon:i,fullWidth:l,label:a,error:s,placeholder:c,items:u,defaultValue:d,onValueChange:f,selected:p,chips:h,classes:g,ref:m,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,ec),w=d&&!p,[O,P]=(0,S.useState)(w?u.find(e=>"item"===e.type&&e.value===d):void 0),j=w?O:p,x=(0,S.useRef)(null),C=(0,S.useRef)(null),E=(0,S.useCallback)(e=>{e.preventDefault(),b||C?.current?.click()},[C]),R=e=>{w&&P(e),f?.(e)};(0,S.useEffect)(()=>{if(j){const e=u.find(e=>"item"===e.type&&e.value===j?.value);e||R(e)}},[u,j]);const k=v??$e(),D=!!s&&!a;return r(Bo,{variant:t,componentSize:o,fullWidth:l,label:a,error:s,inputId:k,onLabelClick:E,hasStartIcon:!!i||!!j?.icon,hasArrow:!0,hasErrorIcon:D,chipsMode:h&&!!j,classes:nc(nc({},g),{},{wrapper:_()(i?"select-module__with-icon__sdr2r":void 0,j?.icon?"select-module__with-item-icon__j4VL9":void 0,g?.wrapper)}),children:[n("input",nc(nc({ref:U([x,m]),id:k,className:_()(Ho,"select-module__input__ajhdt",g?.input),placeholder:h&&j?void 0:c},y),{},{value:h?"":j?.name??"",onChange:()=>{},onClick:E,disabled:b})),h&&!!j&&n("span",{className:_()(Ao,g?.chips),children:n(pi,{componentSize:o,disabled:b,onClick:()=>C?.current?.click(),onRemove:()=>R(void 0),children:j.name})}),!!i&&n("span",{onClick:E,className:_()("select-module__icon__eKwKi",g?.icon),children:i}),!!j?.icon&&n("span",{onClick:E,className:_()("select-module__item-icon__qWzAS",g?.itemIcon),children:j?.icon}),n("span",{onClick:E,className:_()(zo,g?.arrow),children:n(Ls,{})}),D&&s&&n(Yo,{error:s,componentSize:o,className:g?.errorIcon}),n(Ni,{placement:"bottom-start",classes:nc({content:_()("select-module__popover-content__jWbFy","styledScroll",g?.popoverContent)},g?.popover),containerOffset:4,description:n(Qs,{items:u,classes:g,componentSize:o,selectedValue:j?.value,changeSelectedItem:R}),children:n("div",{ref:C,className:_()("select-module__popover-target__utEyc")})})]})}var ic=s(353),lc=s.n(ic),ac="calendarPopover-module__button__Dpl18",sc="calendarPopover-module__buttons-container__sW9eE",cc="calendarPopover-module__calendar-container__fGMyq",uc="calendarPopover-module__cell__fwBxE",dc="calendarPopover-module__cell-circle__PykI1",fc="calendarPopover-module__cell-data__fnxK0",pc="calendarPopover-module__cell-selection__jmUxe",hc="calendarPopover-module__cell-selection-first__bRcBr",gc="calendarPopover-module__cell-selection-last__hyv9Z",mc="calendarPopover-module__cells-container__B6mTs",bc="calendarPopover-module__date-time-mode__eJCHs",vc="calendarPopover-module__medium__pk6es",yc="calendarPopover-module__month__FCpIG",wc="calendarPopover-module__month-cell-selection__phhRr",Oc="calendarPopover-module__month-cell-selection-first__lSKG9",_c="calendarPopover-module__month-cell-selection-last__IKh98",Sc="calendarPopover-module__month-view__wNOC9",Pc="calendarPopover-module__navigation-arrow__oiWet",jc="calendarPopover-module__navigation-container__Hut1m",xc="calendarPopover-module__navigation-title__sp73c",Cc="calendarPopover-module__navigation-value__Ht40y",Ec="calendarPopover-module__root__R8QOY",Rc="calendarPopover-module__small__GlV62",kc="calendarPopover-module__time-container__x4jnu",Dc="calendarPopover-module__time-divider__aRbbR",Mc="calendarPopover-module__time-selection-marker__bVI6A",Ic="calendarPopover-module__year__BTz_s";const Lc=(e,t,n,r=1,o=!1)=>e(o?Date.UTC(t,n,r):new Date(t,n,r));function Nc(e){const{values:t,selectedValue:r,onSelect:o}=e,i=t.length,l=36*(i+r),a=(0,S.useRef)(null),s=(0,S.useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,S.useEffect)(()=>{const e=a.current;e&&(Math.abs(e.scrollTop-l)<=1||(e.scrollTop=l))},[l]);const c=(0,S.useCallback)(e=>t[(e%i+i)%i],[t,i]),u=(0,S.useCallback)(()=>{const e=a.current;if(!e)return;const t=Math.round(e.scrollTop/36),n=c(t);n!==r&&o(n),(t<i||t>=2*i)&&(e.scrollTop=36*(i+n))},[c,o,r,i]),d=(0,S.useCallback)(e=>()=>{const t=a.current;t?(t.scrollTo({top:36*(i+e),behavior:"smooth"}),o(e)):o(e)},[o,i]);return n("div",{ref:a,className:_()("timeWheelColumn-module__time-wheel__fk6Jj"),onScroll:u,tabIndex:-1,children:s.map((e,t)=>n("button",{type:"button",className:_()("timeWheelColumn-module__time-wheel-button__c61An","timeWheelColumn-module__time-wheel-item__Gjqub",e===r&&"timeWheelColumn-module__time-wheel-item-active__PLWg9"),onClick:d(e),children:n(be,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function Tc(e){const{dayjs:o,componentSize:i,isPeriod:l=!0,valueType:a="date",initStartDate:s,initEndDate:c,changeDates:u,onClear:d,useUtc:f=!1,classes:p}=e,g=o??lc(),m="dateTime"===a&&!l,[b,v]=(0,S.useState)("year"===a?"yearsRange":"month"),[y,w]=(0,S.useState)(()=>{if(s){const e=g(s);return{year:e.year(),month:e.month()}}const e=g();return{year:e.year(),month:e.month()}}),[O,P]=(0,S.useState)(s?m?g(s).second(0).millisecond(0).valueOf():g(s).startOf("D").valueOf():void 0),[j,x]=(0,S.useState)(c?g(c).startOf("D").valueOf():void 0),[C,E]=(0,S.useState)(m&&s?g(s).hour():0),[R,k]=(0,S.useState)(m&&s?g(s).minute():0),D=(0,S.useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),M=(0,S.useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),I=(0,S.useMemo)(()=>O?g(O).startOf("D").valueOf():void 0,[O,g]),L=(0,S.useMemo)(()=>j?g(j).startOf("D").valueOf():void 0,[j,g]),N=(0,S.useMemo)(()=>I?g(I).startOf("M").valueOf():void 0,[I,g]),T=(0,S.useMemo)(()=>L?g(L).startOf("M").valueOf():void 0,[L,g]),F=(0,S.useMemo)(()=>I?g(I).year():void 0,[I,g]),V=(0,S.useMemo)(()=>L?g(L).year():void 0,[L,g]),z=(0,S.useMemo)(()=>Lc(g,y.year,y.month,1,f).startOf("month"===b?"M":"y"),[y,b,g,f]),A=z.daysInMonth();let $=z.startOf("M").day()-1;$<0&&($=6),(0,S.useEffect)(()=>O||j?"year"===a?!l&&O?void u(g(O).format("YYYY")):l&&O&&j?void u(g(O).format("YYYY"),g(j).format("YYYY")):void 0:void(m&&O?u(g(O).second(0).millisecond(0).format()):l||!O?l&&O&&j&&u(g(O).format(),g(j).format()):u(g(O).format())):(d?.(),void u()),[O,j,l,a,m,g,u,d]);const H=(0,S.useCallback)((e,t,n)=>g(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[g]);(0,S.useEffect)(()=>{if(!m||!O)return;const e=H(O,C,R);e!==O&&P(e)},[m,O,C,R,H]);const B=(0,S.useCallback)(e=>()=>{const t=Lc(g,y.year,y.month,1,f),n="yearsRange"===b?20*e:e,r="month"===b?"month":"year",o=t.add(n,r);w({month:o.month(),year:o.year()})},[b,y,g,f]),W=(0,S.useCallback)(()=>{"year"!==a&&v("month"===b?"year":"year"===b?"yearsRange":"month")},[b,a]),q=(0,S.useCallback)(e=>()=>{w({month:e.month(),year:e.year()}),v("month")},[]),U=(0,S.useCallback)(e=>()=>{const t=Lc(g,e,0,1,f).startOf("y").valueOf();if(!l)return P(m&&I===t?void 0:m||O!==t?m?H(t,C,R):t:void 0),void x(void 0);O&&j?t===O?P(void 0):(t===j||P(t),x(void 0)):O?t===O?P(void 0):t<O?(x(O),P(t)):x(t):j?t===j?x(void 0):t<j?P(t):(P(j),x(t)):P(t)},[H,j,m,l,C,R,O,I,g,f]),K=(0,S.useMemo)(()=>{const e=z.year();return 20*Math.floor(e/20)},[z]),Y=(0,S.useCallback)(e=>()=>{if(!l)return P(O===e?void 0:e),void x(void 0);O&&j?e===O?P(void 0):(e===j||P(e),x(void 0)):O?e===O?P(void 0):e<O?(x(O),P(e)):x(e):j?e===j?x(void 0):e<j?P(e):(P(j),x(e)):P(e)},[O,j,l]),X=(0,S.useCallback)(e=>{P(void 0),x(void 0),m&&(E(0),k(0)),e.currentTarget.blur()},[m]),Z=(0,S.useCallback)(e=>{const t=g();w({year:t.year(),month:t.month()}),e.currentTarget.blur()},[g]);return r("div",{className:_()(Ec,h[i],m&&bc,p?.root),children:[r("div",{className:_()(cc,"month"===b&&Sc),children:[n("div",{className:_()(sc,p?.buttonsContainer),children:r(Ns,{fillEvenly:!0,children:[n(G,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:X,children:"Сбросить"}),"year"!==a&&n(G,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:Z,children:"Сегодня"})]})}),r("div",{className:_()(jc,p?.navigationContainer),children:[n("button",{type:"button",className:_()(ac,Pc,p?.navigationArrow),onClick:B(-1),"aria-label":"Предыдущий период",children:n(pl,{})}),n("button",{type:"button",className:_()(ac,Cc,p?.navigationValue),onClick:W,children:r(be,{variant:"subtitle1",className:_()(xc,p?.navigationTitle),children:["month"===b&&z.format("MMMM YYYY"),"year"===b&&z.format("YYYY"),"yearsRange"===b&&`${K} - ${K+19}`]})}),n("button",{type:"button",className:_()(ac,Pc,p?.navigationArrow),onClick:B(1),"aria-label":"Следующий период",children:n(bl,{})})]}),r("div",{className:_()(mc,p?.cellsContainer),children:["yearsRange"===b&&n(t,{children:[...Array(20)].map((e,t)=>{const o=K+t,i="year"===a?U(o):()=>{w({month:0,year:o}),v("year")},s="year"===a&&void 0!==F&&(o===F||o===V);let c=!1,u=!1,d=!1;return void 0!==F&&(l?void 0!==V&&(F===V?o===F&&(c=!0):o>=F&&o<=V&&(c=!0,o===F?u=!0:o===V&&(d=!0))):"year"!==a&&o===F&&(c=!0)),r("button",{type:"button",className:_()(ac,uc,Ic,p?.cell,p?.year),onClick:i,children:[s&&n("span",{className:_()(dc,p?.cellCircle)}),c&&n("span",{className:_()(pc,p?.cellSelection,u&&hc,u&&p?.cellSelectionFirst,d&&gc,d&&p?.cellSelectionLast)}),n(be,{variant:"subtitle1",className:_()(fc,p?.cellData),children:o})]},`cell-year-${o}`)})}),"year"===b&&n(t,{children:[...Array(12)].map((e,t)=>{const o=z.add(t,"M"),i=o.valueOf();let s=!1,c=!1,u=!1;return l&&"year"!==a&&void 0!==N&&void 0!==T?N===T?i===N&&(s=!0):i>=N&&i<=T&&(s=!0,i===N?c=!0:i===T&&(u=!0)):l||"year"===a||void 0===N?s=l?void 0!==N&&void 0!==T&&i>=N&&i<=T:void 0!==N&&i===N:i===N&&(s=!0),r("button",{type:"button",className:_()(ac,uc,yc,p?.cell,p?.month),onClick:q(o),children:[s&&n("span",{className:_()(wc,p?.monthCellSelection,c&&Oc,c&&p?.monthCellSelectionFirst,u&&_c,u&&p?.monthCellSelectionLast)}),n(be,{variant:"subtitle1",className:_()(fc,p?.cellData),children:o.format("MMMM")})]},`cell-month-${t}`)})}),"month"===b&&r(t,{children:[[...Array($)].map((e,t)=>n("div",{className:_()(uc,p?.cell)},`empty-cell-${t}`)),[...Array(A)].map((e,t)=>{const o=z.add(t,"d").valueOf();return r("button",{type:"button",className:_()(ac,uc,p?.cell),onClick:Y(o),children:[(o===I||o===L)&&n("span",{className:_()(dc,p?.cellCircle)}),void 0!==I&&void 0!==L&&o>=I&&o<=L&&n("span",{className:_()(pc,p?.cellSelection,o===I&&hc,o===I&&p?.cellSelectionFirst,o===L&&gc,o===L&&p?.cellSelectionLast)}),n(be,{variant:"subtitle1",className:_()(fc,p?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),m&&r("div",{className:_()(kc),children:[n("div",{className:_()(Mc)}),n(Nc,{values:D,selectedValue:C,onSelect:E}),n(be,{variant:"subtitle1",className:_()(Dc),children:":"}),n(Nc,{values:M,selectedValue:R,onSelect:k})]})]})}const Fc=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","error","placeholder","defaultValues","values","onClear","onValueChange","dayjs","useUtc","classes","id","onFocus","onBlur"];function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(n),!0).forEach(function(t){Ac(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ac(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $c=(0,S.forwardRef)((e,t)=>{let{variant:o="filled",isPeriod:i=!1,valueType:l="date",defaultOpen:a=!1,componentSize:s="medium",fullWidth:c,label:u,error:d,placeholder:f,defaultValues:p,values:h,onClear:g,onValueChange:m,dayjs:b,useUtc:v=!1,classes:y,id:w,onFocus:O,onBlur:P}=e,j=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 x=b??lc(),[C,E]=(0,S.useState)(void 0!==h?h:p),[R,k]=(0,S.useState)(a),D=(0,S.useRef)(C);(0,S.useEffect)(()=>{void 0!==h&&E(h)},[h]),(0,S.useEffect)(()=>{void 0===h&&void 0!==p&&E(p)},[p,h]),(0,S.useEffect)(()=>{D.current=C},[C]);const M=i&&"dateTime"===l?"date":l,I=(0,S.useRef)(null),L=ve(),N=w??L,T=(0,S.useCallback)(e=>{k(!0),O?.(e)},[O]),F=(0,S.useCallback)(e=>{R||P?.(e)},[R,P]),V=(0,S.useCallback)(e=>{if(k(e),!e){const e=D.current;void 0!==e&&m?.(e);const t=I.current;if(!t)return;if(document.activeElement===t)return void t.blur();P?.({target:t,currentTarget:t})}},[P,m]),z=(0,S.useCallback)(()=>{I.current?.focus()},[]),A=!!d&&!u,$=(0,S.useCallback)((e,t)=>{const n=i?[e,t]:[e],r=D.current,o=(r?.length??0)===n.length&&r?.every((e,t)=>e===n[t]);o||(D.current=n,E(n))},[i]);return r(Bo,{variant:o,componentSize:s,fullWidth:c,label:u,error:d,inputId:N,hasArrow:!0,hasErrorIcon:A,classes:y,children:[n("input",zc(zc({ref:U([I,t]),id:N,className:_()(Ho,"dateTime-module__input__p1lxx",y?.input),placeholder:f},j),{},{value:C?.[0]?i&&C[1]?`${x(C[0]).format("year"===M?"YYYY":"DD.MM.YYYY")} - ${x(C[1]).format("year"===M?"YYYY":"DD.MM.YYYY")}`:`${x(C[0]).format("year"===M?"YYYY":"dateTime"===M?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:T,onBlur:F})),n("span",{onClick:z,className:_()(zo,y?.icon),children:n(jl,{})}),A&&d&&n(Yo,{error:d,componentSize:s,className:y?.errorIcon}),n(Ni,{placement:"bottom-start",open:R,onOpenChange:V,classes:zc(zc({},y?.popover),{},{content:"dateTime-module__popover-content__I6nGv"}),containerOffset:4,description:n(Tc,{dayjs:x,useUtc:v,classes:y,componentSize:"small"===s||"medium"===s?s:"medium",isPeriod:i,valueType:M,initStartDate:C?.[0],initEndDate:C?.[1],changeDates:$,onClear:g}),children:n("div",{className:_()("dateTime-module__popover-target__PS8vx")})})]})});function Hc(){return(Hc=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 Bc(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 Wc(e){var t=(0,S.useRef)(e),n=(0,S.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var Gc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},qc=function(e){return"touches"in e},Uc=function(e){return e&&e.ownerDocument.defaultView||self},Kc=function(e,t,n){var r=e.getBoundingClientRect(),o=qc(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:Gc((o.pageX-(r.left+Uc(e).pageXOffset))/r.width),top:Gc((o.pageY-(r.top+Uc(e).pageYOffset))/r.height)}},Yc=function(e){!qc(e)&&e.preventDefault()},Xc=S.default.memo(function(e){var t=e.onMove,n=e.onKey,r=Bc(e,["onMove","onKey"]),o=(0,S.useRef)(null),i=Wc(t),l=Wc(n),a=(0,S.useRef)(null),s=(0,S.useRef)(!1),c=(0,S.useMemo)(function(){var e=function(e){Yc(e),(qc(e)?e.touches.length>0:e.buttons>0)&&o.current?i(Kc(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=s.current,i=Uc(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&&(Yc(t),!function(e,t){return t&&!qc(e)}(t,s.current)&&r)){if(qc(t)){s.current=!0;var l=t.changedTouches||[];l.length&&(a.current=l[0].identifier)}r.focus(),i(Kc(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,S.useEffect)(function(){return f},[f]),S.default.createElement("div",Hc({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),Zc=function(e){return e.filter(Boolean).join(" ")},Jc=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=Zc(["react-colorful__pointer",e.className]);return S.default.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},S.default.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Qc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},eu=(Math.PI,function(e){return lu(tu(e))}),tu=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?Qc(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?Qc(parseInt(e.substring(6,8),16)/255,2):1}},nu=function(e){var t=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Qc(e.h),s:Qc(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Qc(o/2),a:Qc(r,2)}}(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},ru=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:Qc(255*[r,a,l,l,s,r][c]),g:Qc(255*[s,r,r,a,l,l][c]),b:Qc(255*[l,l,s,r,r,a][c]),a:Qc(o,2)}},ou=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},iu=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?ou(Qc(255*o)):"";return"#"+ou(t)+ou(n)+ou(r)+i},lu=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:Qc(60*(a<0?a+6:a)),s:Qc(i?l/i*100:0),v:Qc(i/255*100),a:o}},au=S.default.memo(function(e){var t=e.hue,n=e.onChange,r=Zc(["react-colorful__hue",e.className]);return S.default.createElement("div",{className:r},S.default.createElement(Xc,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:Gc(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Qc(t),"aria-valuemax":"360","aria-valuemin":"0"},S.default.createElement(Jc,{className:"react-colorful__hue-pointer",left:t/360,color:nu({h:t,s:100,v:100,a:1})})))}),su=S.default.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:nu({h:t.h,s:100,v:100,a:1})};return S.default.createElement("div",{className:"react-colorful__saturation",style:r},S.default.createElement(Xc,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:Gc(t.s+100*e.left,0,100),v:Gc(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Qc(t.s)+"%, Brightness "+Qc(t.v)+"%"},S.default.createElement(Jc,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:nu(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 uu(e,t,n){var r=Wc(n),o=(0,S.useState)(function(){return e.toHsva(t)}),i=o[0],l=o[1],a=(0,S.useRef)({color:t,hsva:i});(0,S.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,S.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,S.useCallback)(function(e){l(function(t){return Object.assign({},t,e)})},[]);return[i,s]}var du="undefined"!=typeof window?S.useLayoutEffect:S.useEffect,fu=new Map,pu=function(e){var t,n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,l=e.onChange,a=Bc(e,["className","colorModel","color","onChange"]),c=(0,S.useRef)(null);t=c,du(function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!fu.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}',fu.set(e,n);var r=s.nc;r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[]);var u=uu(r,i,l),d=u[0],f=u[1],p=Zc(["react-colorful",n]);return S.default.createElement("div",Hc({},a,{ref:c,className:p}),S.default.createElement(su,{hsva:d,onChange:f}),S.default.createElement(au,{hue:d.h,onChange:f,className:"react-colorful__last-control"}))},hu={defaultColor:"000",toHsva:eu,fromHsva:function(e){return function(e){return iu(ru(e))}({h:e.h,s:e.s,v:e.v,a:1})},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||cu(tu(e),tu(t))}},gu=function(e){return S.default.createElement(pu,Hc({},e,{colorModel:hu}))};const mu=["variant","componentSize","fullWidth","label","error","classes","placeholder","ref","disabled","defaultValue","id","onValueChange"];function bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach(function(t){yu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==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=e=>{const{variant:t="outlined",componentSize:o="medium",fullWidth:i,label:l,error:a,classes:s,placeholder:c,ref:u,disabled:d,defaultValue:f,id:p,onValueChange:h}=e,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,mu),[m,b]=(0,S.useState)(f?.toString()??"#AABBCC"),v=(0,S.useRef)(null),y=(0,S.useRef)(null),w=(0,S.useCallback)(e=>{b(e.toUpperCase()),h?.(e.toUpperCase())},[]),O=(0,S.useCallback)(e=>{e.preventDefault(),d||y?.current?.click()},[y]),P=p??$e(),j=!!a&&!l;return r(Bo,{variant:t,componentSize:o,fullWidth:i,label:l,error:a,inputId:P,onLabelClick:O,hasStartIcon:!0,hasArrow:!0,hasErrorIcon:j,classes:vu(vu({},s),{},{root:_()("colorPicker-module__root__yWPxF",s?.root)}),children:[n("input",vu(vu({ref:U([v,u]),id:P,className:_()(Ho,"colorPicker-module__input__gaesN",s?.input),placeholder:c},g),{},{value:m,onChange:()=>{},onClick:O,disabled:d})),n("span",{onClick:O,className:_()("colorPicker-module__swatch__MvnQ3",s?.icon),style:{backgroundColor:m}}),n("span",{onClick:O,className:_()(zo,s?.arrow),children:n(Ls,{})}),j&&a&&n(Yo,{error:a,componentSize:o,className:s?.errorIcon}),n(Ni,{placement:"bottom-start",classes:vu({content:_()("colorPicker-module__popover-content__lql7r",s?.popoverContent)},s?.popover),containerOffset:4,description:n(gu,{color:m,onChange:w}),children:n("div",{ref:y,className:_()("colorPicker-module__popover-target__M5buG")})})]})};var Ou="input-module__field-icon__OVtdo";const _u=["variant","componentSize","fullWidth","label","error","startIcon","endIcon","classes","placeholder","id","type","onChange"];function Su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Su(Object(n),!0).forEach(function(t){ju(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Su(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ju(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xu=(0,S.forwardRef)((e,o)=>{let{variant:i="outlined",componentSize:l="medium",fullWidth:a,label:s,error:c,startIcon:u,endIcon:d,classes:f,placeholder:p,id:h,type:g,onChange:m}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,_u);const v=(0,S.useRef)(null),[y,w]=(0,S.useState)(""),O=ve(),P=h??O,j="file"===g,x=!!c&&!j&&!s,C=!j&&!!d,E=()=>{v.current?.focus()};return r(Bo,{variant:i,componentSize:l,fullWidth:a,label:s,error:c,inputId:P,hasStartIcon:!j&&!!u,hasEndIcon:C||x,hasDualEndIcon:C&&x,classes:f,children:[j?r(t,{children:[n("input",Pu({ref:U([v,o]),id:P,className:_()("input-module__file-input__Hj1fC",f?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];w(t?.name??""),m?.(e)}},b)),r("div",{role:"button",tabIndex:0,className:_()(Ho,"input-module__file-display__GKw0F",f?.input),onClick:()=>v.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),v.current?.click())},children:[n("span",{className:_()("input-module__file-name__AVwRH",!y&&"input-module__placeholder__QpTXt"),children:y||p}),n(Zi,{size:20,className:"input-module__attach-icon__W3URr"})]})]}):n("input",Pu({ref:U([v,o]),id:P,className:_()(Ho,"input-module__input__Xce3x",f?.input),placeholder:p,type:g,autoComplete:"off",onChange:m},b)),!!u&&!j&&n("span",{onClick:E,className:_()("fieldShell-module__start-icon__FNrDk",Ou,f?.startIcon),children:u}),C&&n("span",{onClick:E,className:_()($o,Ou,f?.endIcon),children:d}),x&&c&&n(Yo,{error:c,componentSize:l,className:f?.errorIcon})]})}),Cu=e=>"string"==typeof e,Eu=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Ru=e=>null==e?"":String(e),ku=/###/g,Du=e=>e&&e.includes("###")?e.replace(ku,"."):e,Mu=e=>!e||Cu(e),Iu=(e,t,n)=>{const r=Cu(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Mu(e))return{};const t=Du(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return Mu(e)?{}:{obj:e,k:Du(r[o])}},Lu=(e,t,n)=>{const{obj:r,k:o}=Iu(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=Iu(e,l,Object);for(;void 0===a.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),a=Iu(e,l,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},Nu=(e,t)=>{const{obj:n,k:r}=Iu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Tu=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?Cu(e[r])||e[r]instanceof String||Cu(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Tu(e[r],t[r],n):e[r]=t[r]);return e},Fu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Vu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},zu=e=>Cu(e)?e.replace(/[&<>"'\/]/g,e=>Vu[e]):e,Au=[" ",",","?","!",";"],$u=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Hu=(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},Bu=e=>e?.replace(/_/g,"-"),Wu={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 Gu{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Wu,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=>Cu(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),Cu(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Gu(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Gu(this.logger,e)}}var qu=new Gu;class Uu{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 Ku extends Uu{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):Cu(n)&&o?l.push(...n.split(o)):l.push(n)));const a=Nu(this.data,l);return a||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!a&&i&&Cu(n)?Hu(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),Lu(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)(Cu(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=Nu(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Tu(a,n,o):a={...a,...n},Lu(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 Yu={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 Xu=Symbol("i18next/PATH_KEY");function Zu(e,t){const{[Xu]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Xu?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 Ju=e=>!Cu(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Qu extends Uu{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=qu.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=Ju(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=Au.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=$u.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!l){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:Cu(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:Cu(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=Zu(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?Zu(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&&!Cu(r.count),y=Qu.hasDefaultValue(r),w=v?this.pluralResolver.getSuffix(u,r.count,r):"",O=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",_=v&&!r.ordinal&&0===r.count,S=_&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${O}`]||r.defaultValue;let P=p;b&&!p&&y&&(P=S);const j=Ju(P),x=Object.prototype.toString.apply(P);if(!(b&&P&&j)||["[object Number]","[object Function]","[object RegExp]"].includes(x)||Cu(m)&&Array.isArray(P))if(b&&Cu(m)&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&y&&(t=!0,p=S),this.isValidLookup(p)||(o=!0,p=l);const a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=y&&S!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,s,v&&!d?`${l}${this.pluralResolver.getSuffix(u,r.count,r)}`:l,d?S:p),i){const e=this.resolve(l,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=y&&n!==p?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,o,d,r),this.emit("missingKey",e,s,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);_&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],l+t,r[`defaultValue${t}`]||S)})}):n(e,l,S))}p=this.extendTranslation(p,e,r,f,n),o&&p===l&&this.options.appendNamespaceToMissingKey&&(p=`${s}${c}${l}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${l}`:l,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,P,{...r,ns:a}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(i){const e=Array.isArray(P),t=e?[]:{},n=e?g:h;for(const e in P)if(Object.prototype.hasOwnProperty.call(P,e)){const o=`${n}${i}${e}`;t[e]=y&&!p?this.translate(o,{...r,defaultValue:Ju(S)?S[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...r,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=P[e])}p=t}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(r),f):p}extendTranslation(e,t,n,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=Cu(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&&!Cu(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=Cu(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=Yu.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 Cu(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?Zu(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&&!Cu(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(Cu(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&&!Cu(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 ed{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=qu.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Bu(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=Bu(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Cu(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)),Cu(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 Cu(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))):Cu(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||o(this.formatLanguageCode(e))}),r}}const td={zero:0,one:1,two:2,few:3,many:4,other:5},nd={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class rd{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=qu.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=Bu("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!"),nd;if(!e.match(/-|_/))return nd;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)=>td[e]-td[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 od=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=Nu(e,n);return void 0!==r?r:Nu(t,n)})(e,t,n);return!i&&o&&Cu(n)&&(i=Hu(e,n,r),void 0===i&&(i=Hu(t,n,r))),i},id=e=>e.replace(/\$/g,"$$$$");class ld{constructor(e={}){this.logger=qu.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:zu,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?Fu(o):i||"{{",this.suffix=l?Fu(l):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u?Fu(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?Fu(c):"",this.nestingPrefix=d?Fu(d):f||Fu("$t("),this.nestingSuffix=p?Fu(p):h||Fu(")"),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=od(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(od(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=>id(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?id(this.escape(e)):id(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=Cu(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 Cu(i)||this.useRawValueToEscape||(i=Ru(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(`${Fu(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&&!Cu(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&&!Cu(o))return o;Cu(o)||(o=Ru(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 ad=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(Bu(r),o),t[l]=a),a(n)}},sd=e=>(t,n,r)=>e(Bu(n),r)(t);class cd{constructor(e={}){this.logger=qu.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?ad:sd;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()]=ad(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 ud extends Uu{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=qu.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}=Iu(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();Cu(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Cu(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 dd=()=>({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]),Cu(e[1])&&(t.defaultValue=e[1]),Cu(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}),fd=e=>(Cu(e.ns)&&(e.ns=[e.ns]),Cu(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Cu(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),pd=()=>{};class hd extends Uu{constructor(e={},t){var n;if(super(),this.options=fd(e),this.services={},this.logger=qu,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&&(Cu(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=dd();this.options={...n,...this.options,...fd(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?qu.init(r(this.modules.logger),this.options):qu.init(null,this.options),e=this.modules.formatter?this.modules.formatter:cd;const t=new ed(this.options);this.store=new Ku(this.options.resources,this.options);const n=this.services;n.logger=qu,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new rd(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 ld(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new ud(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 Qu(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=pd),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=Eu(),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=pd){let n=t;const r=Cu(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=Eu();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=pd),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&&Yu.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=Eu();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=Cu(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(Cu(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=Zu(i.keyPrefix,l));const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=Zu(e,l)),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=Zu(e,l)),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return Cu(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=Eu();return this.options.ns?(Cu(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=Eu();Cu(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 ed(dd());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 hd(e,t);return n.createInstance=hd.createInstance,n}cloneInstance(e={},t=pd){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new hd(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 Ku(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...dd().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new ld(n)}return o.translator=new Qu(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 gd=hd.createInstance();gd.createInstance,gd.dir,gd.init,gd.loadResources,gd.reloadResources,gd.use,gd.changeLanguage,gd.getFixedT,gd.t,gd.exists,gd.setDefaultNamespace,gd.hasLoadedNamespace,gd.loadNamespaces,gd.loadLanguages,s(915),Object.create(null);const md=(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);_d(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},bd={},vd=(e,t,n,r)=>{_d(n)&&bd[n]||(_d(n)&&(bd[n]=new Date),md(e,t,n,r))},yd=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},wd=(e,t,n)=>{e.loadNamespaces(t,yd(e,n))},Od=(e,t,n,r)=>{if(_d(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return wd(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,yd(e,r))},_d=e=>"string"==typeof e,Sd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Pd={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},jd=e=>Pd[e];let xd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Sd,jd),transDefaultProps:void 0};const Cd=(0,S.createContext)();class Ed{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}Error;const Rd={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"};new RegExp(Object.keys(Rd).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var kd=s(888);const Dd={t:(e,t)=>{if(_d(t))return t;if("object"==typeof(n=t)&&null!==n&&_d(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},Md=()=>()=>{},Id=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=(0,S.useContext)(Cd)||{},i=n||r||void 0;i&&!i.reportNamespaces&&(i.reportNamespaces=new Ed),i||vd(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=(0,S.useMemo)(()=>({...xd,...i?.options?.react,...t}),[i,t]),{useSuspense:a,keyPrefix:s}=l,c=e||o||i?.options?.defaultNS,u=_d(c)?[c]:c||["translation"],d=(0,S.useMemo)(()=>u,u);i?.reportNamespaces?.addUsedNamespaces?.(d);const f=(0,S.useRef)(0),p=(0,S.useCallback)(e=>{if(!i)return Md;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,S.useRef)(),g=(0,S.useCallback)(()=>{if(!i)return Dd;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}}):(vd(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]),[m,b]=(0,S.useState)(0),{t:v,ready:y}=(0,kd.useSyncExternalStore)(p,g,g);(0,S.useEffect)(()=>{if(i&&!y&&!a){const e=()=>b(e=>e+1);t.lng?Od(i,t.lng,d,e):wd(i,d,e)}},[i,t.lng,d,y,a,m]);const w=i||{},O=(0,S.useRef)(null),_=(0,S.useRef)(),P=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},j=(0,S.useMemo)(()=>{const e=w,t=e?.language;let n=e;e&&(O.current&&O.current.__original===e?_.current!==t?(n=P(e),O.current=n,_.current=t):n=O.current:(n=P(e),O.current=n,_.current=t));const r=y||a?v:(...e)=>(vd(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...e)),o=[r,n,y];return o.t=r,o.i18n=n,o.ready=y,o},[v,w,y,w.resolvedLanguage,w.language,w.languages]);if(i&&a&&!y)throw new Promise(e=>{const n=()=>e();t.lng?Od(i,t.lng,d,n):wd(i,d,n)});return j},Ld=()=>{const{t:e,i18n:t}=Id();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}},Nd=["variant","disableIcon","placeholder","ref"];function Td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 Vd(e){const{variant:t="filled",disableIcon:r,placeholder:o,ref:i}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Nd),{t:a}=Ld();return n(xu,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Td(Object(n),!0).forEach(function(t){Fd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:i,variant:t,startIcon:r?void 0:n(Sa,{}),placeholder:o??a("Поиск...")},l))}var zd="wrapForLabel-module__medium__xK1gW",Ad="wrapForLabel-module__root__qo0J8",$d="wrapForLabel-module__small__esSsd";const Hd=e=>{const{componentSize:t="medium",children:r,classes:o}=e;return n("div",{className:_()(Ad,g[t],o?.root),children:r})};function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 Gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gd(Object(n),!0).forEach(function(t){Ud(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ud(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kd(e){const{items:o,selected:i,disableSearch:l,isDisabled:a,actionWithSelected:s,onChangeItem:c,classes:u}=e,{t:d}=Ld(),[f,p]=(0,S.useState)(""),h=(0,S.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?Bd(Object(n),!0).forEach(function(t){Wd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]))(o,f,i),[o,f,i]),g=(0,S.useMemo)(()=>o.filter(e=>!!i[e.value]),[o,i]),m=(0,S.useCallback)(e=>{const t=!i[e.value];c&&c(e);const n=qd(qd({},i),{},{[e.value]:t});s(n)},[i,c,s]),b=(0,S.useCallback)(()=>{const e=qd({},i);h.forEach(t=>{e[t.value]=!0}),s(e)},[i,h,s]),v=(0,S.useCallback)(()=>{const e=qd({},i);g.forEach(t=>{delete e[t.value]}),s(e)},[i,g,s]),y=(0,S.useCallback)(e=>{p(e.target.value)},[]),w=(0,S.useCallback)(e=>t=>{t.stopPropagation(),m(e)},[m]);return r("div",{className:_()("checklist-module__root__AKDzG",u?.root),children:[!l&&n(Vd,{variant:"outlined",disabled:a,value:f,fullWidth:!0,classes:u?.searchInput,onChange:y}),r("div",{className:_()("checklist-module__scrolled__mpmGi","styledScroll",u?.scrolled),children:[g.length>0&&r(t,{children:[r("div",{className:_()("checklist-module__action-wrap__rW_zg",u?.actionWrap),children:[n(be,{className:_()(u?.typography),children:d("Выбранное")}),n(G,{variant:"text",size:"small",compact:!0,disabled:a,onClick:v,className:_()(u?.button),children:d("Отменить")})]}),n("div",{children:g.map(e=>n(Ve,{label:e.name,checked:!!i[e.value],onChange:w(e),disabled:a,classes:u?.checkbox},`selected-${e.value}`))})]}),!a&&!!h.length&&n(G,{variant:"text",size:"small",compact:!0,disabled:a,onClick:b,className:_()(u?.button),children:d("Выбрать все")}),n("div",{children:h.map(e=>n(Ve,{label:e.name,checked:!!i[e.value],onChange:w(e),disabled:a,classes:u?.checkbox},`filtered-${e.value}`))})]})]})}const Yd=["checklistWrapper"];function Xd(e){const{items:t,selected:r,onSelectedChange:o,classes:i,enableSearch:l=!1,disabled:a}=e,s=(0,S.useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),c=(0,S.useMemo)(()=>{const e={};return r?.forEach(t=>{e[t]=!0}),e},[r]),u=(0,S.useCallback)(e=>{const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const r=t.find(e=>e.value===n);r&&e.push(r)}return e},[]);o(n)},[o,t]),d=i??{},{checklistWrapper:f}=d,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(d,Yd);return n("div",{className:_()(f),children:n(Kd,{disableSearch:!l,isDisabled:a,items:s,selected:c,actionWithSelected:u,classes:p})})}const Zd=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onValueChange","selected","classes","ref","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jd(Object(n),!0).forEach(function(t){ef(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ef(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 tf(e){const{variant:t="filled",componentSize:o="medium",icon:i,fullWidth:l,label:a,error:s,placeholder:c,items:u,onValueChange:d,selected:f,classes:p,ref:h,disabled:g,id:m,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,Zd),P="chips"===b,{t:j}=Id(),x=(0,S.useRef)(null),C=(0,S.useRef)(null),E=(0,S.useRef)(null),[R,k]=(0,S.useState)(!1),[D,M]=(0,S.useState)(),[I,L]=(0,S.useState)(0),N=(0,S.useMemo)(()=>u.filter(e=>f?.includes(e.value)),[f,u]);(0,S.useLayoutEffect)(()=>{const e=x.current;if(!e)return;const t=()=>{const{width:t}=e.getBoundingClientRect();M(t),L(e=>e+1)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),(0,S.useLayoutEffect)(()=>{P&&L(e=>e+1)},[P,N.length]);const T=(0,S.useCallback)(e=>{e.preventDefault(),g||k(e=>!e)},[g]),F=(0,S.useCallback)(e=>{d?.(e)},[d]),V=(0,S.useMemo)(()=>N.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,N,j):"",[b,N,j]),z=m??$e(),A=!!s&&!a;return r(Bo,{variant:t,componentSize:o,fullWidth:l,label:a,error:s,labelExtra:v&&N.length>0?n("span",{className:_()("multiSelect-module__label-selected-count__gCPqL",p?.labelSelectedCount),children:` (${N.length})`}):void 0,inputId:z,onLabelClick:T,wrapperRef:x,hasStartIcon:!!i,hasArrow:!0,hasErrorIcon:A,hasClearButton:!!N.length,chipsMode:P,classes:p,children:[n("input",Qd(Qd({ref:U([C,h]),id:z,className:_()(Ho,"multiSelect-module__input__Hk3TU",p?.input),placeholder:P&&N.length?void 0:c},O),{},{value:P?"":V,onClick:T,disabled:g,readOnly:!0,title:P?void 0:N.map(e=>e.name).join(", "),autoComplete:"off"})),P&&!!N.length&&n("span",{className:_()(Ao,"multiSelect-module__chips__CUViE",p?.chips),children:N.map(e=>n(pi,{componentSize:o,disabled:g,onClick:()=>{g||k(e=>!e)},onRemove:()=>{const t=N.filter(t=>t.value!==e.value);d?.(t.length?t:null)},children:e.name},e.value))}),!!i&&n("span",{onClick:T,className:_()("multiSelect-module__icon__TnLPX",p?.icon),children:i}),!!N.length&&n("span",{onClick:()=>{d?.(null)},className:_()("multiSelect-module__clear__CwQiH",p?.clear),children:n(Qo,{})}),n("span",{onClick:T,className:_()(zo,p?.arrow),children:n(Ls,{})}),A&&s&&n(Yo,{error:s,componentSize:o,className:p?.errorIcon}),n(Ni,{placement:"bottom-start",open:R,onOpenChange:k,contentStyle:D?{width:D,minWidth:D,maxWidth:D}:void 0,classes:Qd({content:_()("multiSelect-module__popover-content__p_jyb",p?.popoverContent)},p?.popover),containerOffset:4,layoutVersion:I,root:w?x.current:void 0,description:n(Xd,{items:u,classes:Qd({searchInput:Qd({root:"multiSelect-module__search-input-root__rCmDl"},p?.selectPopover?.searchInput),root:"multiSelect-module__checklist-root__hidSo",checklistWrapper:_()("multiSelect-module__checklist-wrapper__EDrnx"),scrolled:"multiSelect-module__checklist-scrolled__KC8yS"},p?.selectPopover),componentSize:o,selected:f,onSelectedChange:F,enableSearch:y,disabled:g}),children:n("div",{ref:E,className:_()("multiSelect-module__popover-target__x51qe")})})]})}var nf="radioButton-module__pressed__n_bXs",rf="radioButton-module__radio__fDsQH";const of=["label","componentSize","canUncheck","onUncheck","classes","id","ref","onClick"];function lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(n),!0).forEach(function(t){sf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 cf(e){const{label:t,componentSize:o="medium",canUncheck:i,onUncheck:l,classes:a,id:s,ref:c,onClick:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,of),f=(0,S.useRef)(null),p=(0,S.useRef)(!1),h=ve(),g=s??h;(0,S.useEffect)(()=>{const e=f.current;if(!e)return;const t=()=>e.classList.remove(nf),n=()=>{e.classList.add(nf),p.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const m=(0,S.useCallback)(e=>{i&&p.current&&(f.current.checked=!1,l?.()),u?.(e)},[i,l,u]),b="large"===o?"subtitle1":"subtitle2";return r("div",{className:_()("radioButton-module__root__fxVmv",a?.root),children:[n("input",af({ref:U([f,c]),type:"radio",className:_()("radioButton-module__input__O_xQT",a?.input),id:g,title:t,onClick:m},d)),r("label",{htmlFor:g,className:_()("radioButton-module__label__A9fWR",a?.label),title:t,children:[n("span",{className:_()(rf,"radioButton-module__deselected__kGeIi",a?.radio),children:n(il,{})}),n("span",{className:_()(rf,"radioButton-module__selected__atkc_",a?.radio),children:n(cl,{})}),!!t&&n(be,{variant:b,className:_()("radioButton-module__label-text__KSEbB",a?.labelText),children:t})]})]})}var uf="surface-module__modal__CtpUb",df="surface-module__panel__WAxUP",ff="surface-module__primary__k8467",pf="surface-module__root__h8d8c";function hf(e){const{type:t="primary",children:r,classes:o}=e;return n("div",{className:_()(pf,o?.root,m[t]),children:r})}function gf(e){const{withoutHeader:t,children:r,classes:o}=e;return n("div",{className:_()("layout-module__root__I9KVI",t?void 0:"layout-module__with-header___aKcB",o?.root),children:r})}var mf="tabs-module__disable-border__Vw9nt",bf="tabs-module__disabled__e_X85",vf="tabs-module__filled__Kzrnb",yf="tabs-module__icon-only__qDPjH",wf="tabs-module__medium__dvN0f",Of="tabs-module__root__m7YiQ",_f="tabs-module__selected__YEXTT",Sf="tabs-module__selected-filled__MkMIt",Pf="tabs-module__small__hiwdI",jf="tabs-module__tab__NoNie",xf="tabs-module__tab-border__tvFwj",Cf="tabs-module__tab-border-vertical__TVo15",Ef="tabs-module__tab-filled__Gmwpo",Rf="tabs-module__tab-icon__Kj5Oa",kf="tabs-module__tab-title__XsuJP",Df="tabs-module__tab-vertical__WQDkd",Mf="tabs-module__vertical__sPO6h";function If(e){const{items:t,defaultSelected:o,onChange:i,size:l="medium",filled:a=!1,isVertical:s=!1,disableBorder:c=!1,allowDeselect:u=!1,showTooltips:d=!1,useExternalState:f=!1,value:p,classes:h}=e,[g,m]=(0,S.useState)(!1),[v,y]=(0,S.useState)(o),w=f?p:v,O=e=>()=>{e.isDisabled||(e.onClick?e.onClick():f?u&&w===e.value?i?.(void 0):i?.(e.value):u&&v===e.value?y(void 0):y(e.value))};return(0,S.useEffect)(()=>{g&&!f&&i?.(v),g||m(!0)},[v,f]),n("div",{className:_()(Of,a&&vf,s&&Mf,c&&mf,b[l],h?.root),children:t.map(e=>{const t=!e.onClick&&w===e.value,o=r("div",{className:_()(jf,a&&Ef,s&&Df,c&&mf,t?_f:void 0,t&&a?Sf:void 0,e.isDisabled&&bf,h?.tab,t?h?.tabSelected:void 0,e.isDisabled?h?.tabDisabled:void 0),onClick:O(e),children:[r("div",{className:_()(kf,d&&e.icon&&yf,h?.tabTitle,t?h?.tabSelectedTitle:void 0),children:[e.icon&&n("span",{className:Rf,children:"string"==typeof e.icon?n("span",{className:Rf,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!d&&e.name&&n("span",{title:e.name,children:e.name})]}),n("div",{className:_()(xf,s&&Cf,c&&mf,h?.tabBorder,t?h?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return d&&e.name?n(Vo,{label:e.name,placement:s?"right":"top",children:o},`tab-${e.value}`):o})})}function Lf(e,t){return"function"==typeof e?e(t):e}function Nf(e,t){return n=>{t.setState(t=>({...t,[e]:Lf(n,t[e])}))}}function Tf(e){return e instanceof Function}function Ff(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 Vf(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 zf="debugHeaders";function Af(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 $f={createTable:e=>{e.getHeaderGroups=Ff(()=>[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 Hf(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...s],e)},Vf(e.options,zf)),e.getCenterHeaderGroups=Ff(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>Hf(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),Vf(e.options,zf)),e.getLeftHeaderGroups=Ff(()=>[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 Hf(t,i,e,"left")},Vf(e.options,zf)),e.getRightHeaderGroups=Ff(()=>[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 Hf(t,i,e,"right")},Vf(e.options,zf)),e.getFooterGroups=Ff(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Vf(e.options,zf)),e.getLeftFooterGroups=Ff(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Vf(e.options,zf)),e.getCenterFooterGroups=Ff(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Vf(e.options,zf)),e.getRightFooterGroups=Ff(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Vf(e.options,zf)),e.getFlatHeaders=Ff(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Vf(e.options,zf)),e.getLeftFlatHeaders=Ff(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Vf(e.options,zf)),e.getCenterFlatHeaders=Ff(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Vf(e.options,zf)),e.getRightFlatHeaders=Ff(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Vf(e.options,zf)),e.getCenterLeafHeaders=Ff(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Vf(e.options,zf)),e.getLeftLeafHeaders=Ff(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Vf(e.options,zf)),e.getRightLeafHeaders=Ff(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Vf(e.options,zf)),e.getLeafHeaders=Ff(()=>[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()},Vf(e.options,zf))}};function Hf(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=Af(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)=>Af(n,e,{depth:l,index:t}));c(u,l-1),s.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const Bf=(e,t,n,r,o,i,l)=>{let a={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,r),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}(a.subRows,e=>e.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Ff(()=>[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:Ff(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Vf(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),Vf(e.options,"debugRows")),_getAllCellsByColumnId:Ff(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Vf(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},Wf={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()}}},Gf=(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))};Gf.autoRemove=e=>tp(e);const qf=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};qf.autoRemove=e=>tp(e);const Uf=(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())};Uf.autoRemove=e=>tp(e);const Kf=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Kf.autoRemove=e=>tp(e);const Yf=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});Yf.autoRemove=e=>tp(e)||!(null!=e&&e.length);const Xf=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});Xf.autoRemove=e=>tp(e)||!(null!=e&&e.length);const Zf=(e,t,n)=>e.getValue(t)===n;Zf.autoRemove=e=>tp(e);const Jf=(e,t,n)=>e.getValue(t)==n;Jf.autoRemove=e=>tp(e);const Qf=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Qf.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]},Qf.autoRemove=e=>tp(e)||tp(e[0])&&tp(e[1]);const ep={includesString:Gf,includesStringSensitive:qf,equalsString:Uf,arrIncludes:Kf,arrIncludesAll:Yf,arrIncludesSome:Xf,equals:Zf,weakEquals:Jf,inNumberRange:Qf};function tp(e){return null==e||""===e}const np={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Nf("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?ep.includesString:"number"==typeof r?ep.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?ep.equals:Array.isArray(r)?ep.arrIncludes:ep.weakEquals},e.getFilterFn=()=>{var n,r;return Tf(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:ep[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=Lf(n,o?o.value:void 0);var l;if(rp(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=Lf(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!rp(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 rp(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const op={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},ip={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:Nf("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?op.sum:"[object Date]"===Object.prototype.toString.call(r)?op.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Tf(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:op[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)}}},lp={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Nf("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Ff(e=>[pp(t,e)],t=>t.findIndex(t=>t.id===e.id),Vf(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=pp(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=pp(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=Ff(()=>[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)},Vf(e.options,"debugTable"))}},ap={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Nf("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=Ff(()=>[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))},Vf(t.options,"debugRows")),e.getLeftVisibleCells=Ff(()=>[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},Vf(t.options,"debugRows")),e.getRightVisibleCells=Ff(()=>[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},Vf(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=Ff(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Vf(e.options,"debugColumns")),e.getRightLeafColumns=Ff(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Vf(e.options,"debugColumns")),e.getCenterLeafColumns=Ff(()=>[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))},Vf(e.options,"debugColumns"))}},sp={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},cp={getDefaultColumnDef:()=>sp,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Nf("columnSizing",e),onColumnSizingInfoChange:Nf("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:sp.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:sp.size),null!=(o=e.columnDef.maxSize)?o:sp.maxSize)},e.getStart=Ff(e=>[e,pp(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Vf(t.options,"debugColumns")),e.getAfter=Ff(e=>[e,pp(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Vf(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(),dp(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=dp(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 up)return up;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 up=e,up}()&&{passive:!1};dp(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 up=null;function dp(e){return"touchstart"===e.type}const fp={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Nf("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=Ff(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Vf(t.options,"debugRows")),e.getVisibleCells=Ff(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Vf(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Ff(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Vf(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 pp(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const hp={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Nf("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=>Lf(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=Lf(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,Lf(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=Lf(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Ff(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Vf(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}}},gp={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:Nf("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=Ff(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Vf(e.options,"debugRows")),e.getBottomRows=Ff(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Vf(e.options,"debugRows")),e.getCenterRows=Ff(()=>[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))},Vf(e.options,"debugRows"))}},mp={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Nf("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=>{bp(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Ff(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?vp(e,n):{rows:[],flatRows:[],rowsById:{}},Vf(e.options,"debugTable")),e.getFilteredSelectedRowModel=Ff(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?vp(e,n):{rows:[],flatRows:[],rowsById:{}},Vf(e.options,"debugTable")),e.getGroupedSelectedRowModel=Ff(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?vp(e,n):{rows:[],flatRows:[],rowsById:{}},Vf(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 bp(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return yp(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===wp(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===wp(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)}}}},bp=(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=>bp(e,t.id,n,r,o))};function vp(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=yp(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 yp(e,t){var n;return null!=(n=t[e.id])&&n}function wp(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()&&(yp(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=wp(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const Op=/([0-9]+)/gm;function _p(e,t){return e===t?0:e>t?1:-1}function Sp(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Pp(e,t){const n=e.split(Op).filter(Boolean),r=t.split(Op).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 jp={alphanumeric:(e,t,n)=>Pp(Sp(e.getValue(n)).toLowerCase(),Sp(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Pp(Sp(e.getValue(n)),Sp(t.getValue(n))),text:(e,t,n)=>_p(Sp(e.getValue(n)).toLowerCase(),Sp(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>_p(Sp(e.getValue(n)),Sp(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)=>_p(e.getValue(n),t.getValue(n))},xp={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Nf("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 jp.datetime;if("string"==typeof n&&(r=!0,n.split(Op).length>1))return jp.alphanumeric}return r?jp.text:jp.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 Tf(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:jp[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())}},Cp=[$f,fp,lp,ap,Wf,np,{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:Nf("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=()=>ep.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Tf(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:ep[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},xp,ip,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Nf("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()}}}},hp,gp,mp,cp];function Ep(e){var t,n;const r=[...Cp,...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=Lf(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:Ff(()=>[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}},Vf(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Ff(()=>[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:Ff(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Vf(e.options,"debugColumns")),getLeafColumns:Ff(()=>[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]},Vf(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)},Vf(e,"debugColumns")),getAllFlatColumns:Ff(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Vf(e,"debugColumns")),_getAllFlatColumnsById:Ff(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Vf(e,"debugColumns")),getAllLeafColumns:Ff(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),Vf(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function Rp(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?S.createElement(e,t):e:null;var n}function kp(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 Dp(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const Mp=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},Ip=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Lp=e=>e,Np=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},Tp=(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(Ip(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(Ip(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},Fp={passive:!0},Vp="undefined"==typeof window||"onscrollend"in window,zp=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&Vp?()=>{}:Mp(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,Fp);const c=e.options.useScrollendEvent&&Vp;return c&&n.addEventListener("scrollend",s,Fp),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",s)}},Ap=(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"]},$p=(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 Hp{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:Lp,rangeExtractor:Np,onChange:()=>{},measureElement:Ap,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=kp(()=>(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=kp(()=>[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=kp(()=>[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=kp(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:o};let i=Bp(0,o,t=>e[t].start,n),l=i;if(1===r)for(;l<o&&e[l].end<n+t;)l++;else if(r>1){const a=Array(r).fill(0);for(;l<o&&a.some(e=>e<n+t);){const t=e[l];a[t.lane]=t.end,l++}const s=Array(r).fill(n+t);for(;i>=0&&s.some(e=>e>=n);){const t=e[i];s[t.lane]=t.start,i--}i=Math.max(0,i-i%r),l=Math.min(o,l+(r-1-l%r))}return{startIndex:i,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=kp(()=>{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=kp(()=>[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 Dp(t[Bp(0,t.length-1,e=>Dp(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),o=this.measurementsCache[e];if(!o)return;if("auto"===t)if(o.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(o.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const i="end"===t?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,o.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{const r=this.getOffsetForAlignment(e,t),o=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:o,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,t);if(!r)return;const[o,i]=r,l=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&((e,t)=>Math.abs(e-t)<1.01)(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return void(this.scrollState=null)}else this.scrollState.stableFrames=0,n&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior="auto",this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Bp=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},Wp="undefined"!=typeof document?S.useLayoutEffect:S.useEffect;function Gp(e){return function({useFlushSync:e=!0,...t}){const n=S.useReducer(()=>({}),{})[1],r={...t,onChange:(r,o)=>{var l;e&&o?i(n):n(),null==(l=t.onChange)||l.call(t,r,o)}},[o]=S.useState(()=>new Hp(r));return o.setOptions(r),Wp(()=>o._didMount(),[]),Wp(()=>o._willUpdate()),o}({observeElementRect:Tp,observeElementOffset:zp,scrollToFn:$p,...e})}const qp=32,Up=["open","onClose","root","children"];function Kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kp(Object(n),!0).forEach(function(t){Xp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zp=(0,S.forwardRef)(function(e,t){let{open:r,onClose:i,root:l=document.body,children:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Up);const c=(0,S.useRef)(null),u=(0,S.useRef)(null);if(!r||!a)return null;const d=n("div",Yp(Yp({ref:c,className:"modal-module__overlay__qGmy7",onClick:e=>{e.target!==c.current&&u.current?.contains(e.target)||(e.stopPropagation(),i?.())}},s),{},{children:n("div",{ref:e=>{e&&(u.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:"modal-module__modal__SyCF2",onClick:e=>e.stopPropagation(),children:a})}));return o(d,l)});var Jp="virtualTable-module__align-center__GE7hn",Qp="virtualTable-module__align-left__UwmQP",eh="virtualTable-module__align-right__BgN21",th="virtualTable-module__borders-all__4E7iX",nh="virtualTable-module__borders-horizontal__sJHrp",rh="virtualTable-module__borders-vertical__vW5hC",oh="virtualTable-module__bottom-border__Aqyxx",ih="virtualTable-module__clickable__rairY",lh="virtualTable-module__editable__vHC_D",ah="virtualTable-module__error__Pc_YH",sh="virtualTable-module__even-row__UtfmY",ch="virtualTable-module__first-th-row__Ic3VG",uh="virtualTable-module__input__URGVM",dh="virtualTable-module__label__RRtAL",fh="virtualTable-module__margin-left-changing__DeOwh",ph="virtualTable-module__medium__fWjBj",hh="virtualTable-module__modal-content__y8dAa",gh="virtualTable-module__right-border___sLGh",mh="virtualTable-module__root__oT8Aa",bh="virtualTable-module__row-button-trigger__qLWa9",vh="virtualTable-module__rowspan-content__uNqDw",yh="virtualTable-module__selected__LXpK4",wh="virtualTable-module__show-in-modal__v55Sn",Oh="virtualTable-module__small__Pbe1H",_h="virtualTable-module__sticky__kLGF2",Sh="virtualTable-module__success__xPKub",Ph="virtualTable-module__table__GccG7",jh="virtualTable-module__table-container__Z27Uv",xh="virtualTable-module__td__INgoI",Ch="virtualTable-module__th__xeEGg",Eh="virtualTable-module__th-cell__r6ckx",Rh="virtualTable-module__th-hidden-column__jr_ZK",kh="virtualTable-module__th-left-border__Ns0MX",Dh="virtualTable-module__th-right-border__PR4eS",Mh="virtualTable-module__tr__chmfp",Ih="virtualTable-module__vertical-align-center__Xun5O",Lh="virtualTable-module__vertical-align-flex-end__wOSxq",Nh="virtualTable-module__vertical-align-flex-start__uBUX9",Th="virtualTable-module__view-cell__bXl8D",Fh="virtualTable-module__view-span__HfOpN";const Vh={cell:({getValue:e,row:{index:o,original:i},column:{id:l,columnDef:a},table:s})=>{const c=e(),{meta:u}=a,d=s.options.meta,[f,p]=(0,S.useState)(c),[h,g]=(0,S.useState)(!1),[m,b]=(0,S.useState)(!1),y=(0,S.useRef)();y.current=()=>{b(!1)},(0,S.useEffect)(()=>{p(c)},[c]);const w=d?.additionalColumnsViews?.(l,c,i[l]?.payload);if(h&&u?.editable){const e=()=>{d?.updateData(o,l,f,i),g(!1)},r=(e,t)=>{p(e),t&&(d?.updateData(o,l,e,i),g(!1))};return n(Vo,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:null!=w?.edit?w.edit(r,e):n(t,{children:n(xu,{classes:{input:uh},componentSize:"small",variant:"outlined",onChange:e=>r(e.target.value),onBlur:e,value:f??"",type:u.inputType,fullWidth:!0,autoFocus:!0})})})}const O=null!=w?.view?w.view:u?.valueFormat?u.valueFormat(c):void 0===u?.toFixed||Number.isNaN(parseFloat(c))?c:parseFloat(Number(c).toFixed(u.toFixed));return n(Vo,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:r("div",{className:_()(Th,u?.rowsAlign?v[`align${u?.rowsAlign}`]:void 0,u?.showInModal?wh:void 0,u?.onClick&&i[l]?.payload?ih:void 0,i[l]?.fill?v[i[l].fill]:void 0,u?.editable?lh:void 0,u?.verticalAlign?v[`verticalAlign${u?.verticalAlign}`]:void 0),onClick:u?.editable?()=>{g(!0)}:u?.showInModal?()=>{b(!0)}:u?.onClick&&i[l]?.payload?()=>u?.onClick?.(i[l]?.payload??{}):void 0,children:[n("span",{className:Fh,children:O}),m&&n(Zp,{root:d?.tableContainerRef?.current,open:m,onClose:()=>y.current?.(),children:n(hf,{type:"panel",children:n("div",{className:hh,children:O})})})]})})}},zh=(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 Ah(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:o}=e,[i,l]=(0,S.useState)(t);(0,S.useEffect)(()=>{o(i)},[i]);const a=(0,S.useCallback)(()=>{l([void 0,void 0]),o([void 0,void 0])},[]);return r("div",{className:_()("dateFiltration-module__root__hOXOU"),children:[n($c,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:i,onValueChange:e=>{l(e)},tabIndex:-1}),n(Vo,{label:"Сбросить",children:n(G,{onClick:a,className:_()("dateFiltration-module__button__kboWN"),variant:"text",size:"small",textSecondary:!0,icon:n(Qo,{})})})]})}var $h="numberFiltration-module__input___94YM";const Hh=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function Bh(e){const{defaultValues:o=[-1/0,1/0],actionWithSelected:i}=e,[l,a]=(0,S.useState)(o[0]===-1/0&&o[1]===1/0?Hh[0]:o[0]===o[1]?Hh[3]:o[0]===-1/0?Hh[2]:o[1]===1/0?Hh[1]:Hh[0]),[s,c]=(0,S.useState)(o),u=(e,t)=>{c(n=>"equal"===e?[t.length?+t:-1/0,t.length?+t:1/0]:"more"===e?[t.length?+t:-1/0,n[1]]:[n[0],t.length?+t:1/0])},d=(0,S.useCallback)(()=>{c([-1/0,1/0]),i([-1/0,1/0])},[]);return r("div",{className:_()("numberFiltration-module__root__k2DSM"),children:[n(oc,{items:Hh,componentSize:"small",variant:"filled",selected:l,onValueChange:e=>{if(e){const t=[...s];switch(e.value){case"more":t[1]=1/0;break;case"less":t[0]=-1/0;break;case"equal":const e=t[0]!==-1/0?t[0]:t[1];t[0]=e,t[1]=e}c(t),i(t),a(e)}},classes:{root:"numberFiltration-module__select__vQqEg"},tabIndex:-1}),n("div",{className:_()("numberFiltration-module__inputs-container__tjcwf"),children:"range"===l.value?r(t,{children:[n(xu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:$h},value:s[0]>-1/0&&s[0]<1/0?s[0]:"",onChange:e=>{u("more",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}}),n(xu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:$h},value:s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u("less",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})]}):n(xu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:$h},value:"more"===l.value?s[0]>-1/0&&s[0]<1/0?s[0]:"":s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u(l.value,e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})}),n(Vo,{label:"Сбросить",children:n(G,{onClick:d,className:_()("numberFiltration-module__button__GIxRq"),variant:"text",size:"small",textSecondary:!0,icon:n(Qo,{})})})]})}function Wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(n),!0).forEach(function(t){qh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"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 Uh(e){const{headerMeta:{sortable:o=!1,selectUnique:i=!1,sortType:l,sortAnotherName:a,filtrationByNumber:s=!1,filtrationByDate:c=!1,filtrationByValue:u=!1,valueFormat:d,toFixed:f},sortBy:p,setSortBy:h,filterBy:g,setFilterBy:m,headerName:b,containerRef:v,showUniqueValuesCount:y,leftAdditionalContent:w,rightAdditionalContent:O,children:P,rows:j,rowsForUniqueCount:x}=e,C=a??b,E=(0,S.useMemo)(()=>{const e=j.map(e=>({name:e[C]?d?d(e[C].value):void 0===f||Number.isNaN(parseFloat(e[C].value))?e[C].value?.toString()||"< нет значения >":parseFloat(Number(e[C].value).toFixed(f)).toString():"< нет значения >",value:e[C]?.value?.toString()||""})).sort((e,t)=>{const n=e.name.toString(),r=t.name.toString(),o="< нет значения >";return n===o?-1:r===o?1:zh(n,r)}),t=[...e.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()];return t},[j,C,d,f]),R=(0,S.useMemo)(()=>{const e=x??j,t=new Set;e.forEach(e=>{const n=e?.[C];t.add(n?(n.value??"")?.toString():"")});const n=g.find(e=>e.columnName===C&&"value"===e.type),r=(n?.values??[]).map(e=>(e??"")?.toString());if(r.length>0){const e=new Set(r);let n=0;return t.forEach(t=>{e.has(t)&&(n+=1)}),n}return t.size},[x,j,C,g]),k=(0,S.useMemo)(()=>{const e={};return g.find(e=>e.columnName===C)?.values.forEach(t=>{e[t]=!0}),e},[g,C]),D=(0,S.useMemo)(()=>g.find(e=>e.columnName===C&&"numberRange"===e.type)?.values,[g,C]),M=(0,S.useMemo)(()=>g.find(e=>e.columnName===C&&"dateRange"===e.type)?.values,[g,C]),I=e=>()=>{h(t=>t.some(t=>t.columnName===C&&t.direction===e)?t.filter(t=>!(t.columnName===C&&t.direction===e)):t.some(e=>e.columnName===C)?t.map(t=>t.columnName===C?Gh(Gh({},t),{},{direction:e}):Gh({},t)):t.concat([{columnName:C,direction:e,sortType:l}]))},L=g.some(e=>e.columnName===C&&"value"===e.type&&e.uniqueFirstPerValue),N=Object.keys(k).length>0||L,T=p.some(e=>e.columnName===C&&"desc"===e.direction),F=p.some(e=>e.columnName===C&&"asc"===e.direction),{t:V}=Ld(),z=[];return i&&(z.push({type:"divider",name:V("Уникальность значений")}),z.push({type:"item",name:V("Только уникальные"),icon:n(Ca,{}),selected:L,onClick:()=>{m(e=>{const t=e.findIndex(e=>e.columnName===C&&"value"===e.type);if(-1!==t){const n=e[t],r=!n.uniqueFirstPerValue;return r||0!==n.values.length?e.map((e,n)=>n!==t?e:r?Gh(Gh({},e),{},{uniqueFirstPerValue:!0}):{columnName:e.columnName,type:e.type,values:e.values}):e.filter((e,n)=>n!==t)}return[...e,{columnName:C,type:"value",values:[],uniqueFirstPerValue:!0}]})}})),o&&(z.push({type:"divider",name:V("Сортировка")}),z.push({type:"item",name:V("По возрастанию"),icon:n(Na,{}),selected:p.some(e=>e.columnName===C&&"asc"===e.direction),onClick:I("asc")}),z.push({type:"item",name:V("По убыванию"),icon:n(za,{}),selected:p.some(e=>e.columnName===C&&"desc"===e.direction),onClick:I("desc")})),r("div",{className:_()("headerDropdown-module__root__vO30T"),children:[w?.(C),P?.(y&&n("div",{children:`(${R})`})),O?.(C),(o||i||u||c||s)&&n(Ni,{placement:"bottom-end",wrapTrigger:!0,root:v,description:r(t,{children:[s&&n(Bh,{defaultValues:D,actionWithSelected:e=>{m(t=>{if(e[0]===-1/0&&e[1]===1/0)return[...t.filter(e=>!(e.columnName===C&&"numberRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===C&&"numberRange"===e.type);return-1!==r?n[r]=Gh(Gh({},n[r]),{},{values:e}):n.push({columnName:C,type:"numberRange",values:e}),n}})}}),c&&n(Ah,{defaultValues:M,actionWithSelected:e=>{m(t=>{if(void 0===e[0]||void 0===e[1])return[...t.filter(e=>!(e.columnName===C&&"dateRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===C&&"dateRange"===e.type);return-1!==r?n[r]=Gh(Gh({},n[r]),{},{values:e}):n.push({columnName:C,type:"dateRange",values:e}),n}})}}),u&&n("div",{className:_()("headerDropdown-module__checklist-wrap__7C0pz"),children:n(Kd,{items:E,selected:k,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e);m(e=>{if(0===t.length)return e.map(e=>e.columnName!==C||"value"!==e.type?e:e.uniqueFirstPerValue?Gh(Gh({},e),{},{values:[]}):null).filter(e=>null!==e);const n=[...e],r=n.findIndex(e=>e.columnName===C&&"value"===e.type);return-1!==r?n[r]=Gh(Gh({},n[r]),{},{values:t}):n.push({columnName:C,type:"value",values:t}),n})}})}),(o||i)&&n("div",{children:n(Js,{items:z})})]}),children:n(Vo,{label:V("Сортировка и фильтрация"),placement:"bottom-end",root:v,children:n(G,{size:"small",variant:"text",textSecondary:!N&&!T&&!F,icon:n(N?Gl:T?za:F?Na:Bi,{})})})})]})}function Kh(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 Yh=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}},Xh=(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:Yh(t?.accessorKey?t:e),columns:e.columns?Xh(e.columns,e):void 0})),Zh=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(Zh(e,t+1,n)):[],Jh=(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(Jh(e,t-1,n)):[],Qh=(e,t,n)=>e[t+1]&&Jh(e,t+1,n).length?[e[t+1].headers[n]].concat(Qh(e,t+1,n)):[],eg=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(eg(e,t-1)):[],tg=(e,t)=>{if(t.length){const n=t[t.length-1],r="dateRange"===n.type?lc()(n.values[0]):null,o="dateRange"===n.type?lc()(n.values[1]):null,i=n.values.length?e.filter(e=>{const t="dateRange"===n.type?lc()(e[n.columnName].value):null;return(e[n.columnName]?"dateRange"===n.type?(t.isAfter(r)||t.isSame(r))&&(t.isBefore(o)||t.isSame(o)):"numberRange"===n.type?e[n.columnName].value>=n.values[0]&&e[n.columnName].value<=n.values[1]:n.values.includes((e[n.columnName].value||"")?.toString()):n.values.includes(""))||1===e.isNew?.value}):e;return tg(i,t.slice(0,t.length-1))}return e},ng=(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=zh(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return ng(r,t.slice(0,t.length-1))}return e};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 og(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){ig(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 ig(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lg=(0,S.forwardRef)((e,o)=>{const{rows:i,columns:l,additionalColumnsViews:a,onChangeCell:s,cellWidth:c,rowButtons:u,fixedColumnsCount:d=0,headerRowHeight:f=[qp],bodyRowHeight:p=qp,rowActionWidth:h=77,classes:g,dynamicRowHeight:m=!1,height:b,scrollToBottom:y,useTableContainerAsRootForPopup:w,size:O="small",borders:P="horizontal",showUniqueValuesCount:j=!1,globalFilters:x,globalSorts:C,onFiltersChange:E,onSortsChange:R,leftAdditionalHeaderContent:k,rightAdditionalHeaderContent:D,showRowsNumbers:M,stripedRows:I=!0}=e,L=d+(M?1:0),[N,T]=(0,S.useState)(x??[]),[F,V]=(0,S.useState)([...C??[],{columnName:"isNew",direction:"desc"}]),z=(0,S.useRef)(null),A=(0,S.useMemo)(()=>M?`rowNumber_${$e()}`:null,[M]),$=(0,S.useMemo)(()=>{if(!A)return Xh(l);const e=t=>og(og({id:A},t?.columns?.length?void 0:{accessorKey:A}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(l[0]),...l];return Xh(t)},[l,A]),H=(0,S.useMemo)(()=>{const e=[...i],t=N.filter(e=>{if("value"===e.type&&e.uniqueFirstPerValue&&0===e.values.length)return!0;const t="dateRange"===e.type?lc()(e.values[0]):null,n="dateRange"===e.type?lc()(e.values[1]):null;return i.some(r=>{const o="dateRange"===e.type?lc()(r[e.columnName].value):null;return r[e.columnName]?"dateRange"===e.type?(o.isAfter(t)||o.isSame(t))&&(o.isBefore(n)||o.isSame(n)):"numberRange"===e.type?r[e.columnName].value>=e.values[0]&&r[e.columnName].value<=e.values[1]:e.values.includes((r[e.columnName].value||"")?.toString()):e.values.includes("")})}),n=t.length?tg(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=>!lc()(e).isSame(lc()(0))&&!lc()(e).isSame(lc()(Number.MAX_SAFE_INTEGER))))?[]:e;let r=F.length?ng(n,F):n;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(r=Kh(r,e.columnName));const o=A?r.map((e,t)=>og(og({},e),{},{[A]:{value:t+1}})):r;return window.dispatchEvent(new CustomEvent("filteringRows",{detail:o})),o},[i,F,N,A]),B=(0,S.useMemo)(()=>{const e=[...i];return Array.from({length:N.length+1},(t,n)=>tg(e,N.slice(0,n)))},[i,N]),W=(0,S.useMemo)(()=>c??(e=>A&&0===e?8*H.length.toString().length+24:$[e]?.meta?.width??200),[c,$,H,A]),q=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=S.useState(()=>({current:Ep(t)})),[r,o]=S.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:H,columns:$,defaultColumn:Vh,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>Ff(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const l=[];for(let s=0;s<t.length;s++){const c=Bf(e,e._getRowId(t[s],s,i),t[s],s,o,void 0,null==i?void 0:i.id);var a;n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return l};return n.rows=r(t),n},Vf(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)=>{s?.(e,t,n,r)},tableContainerRef:z,additionalColumnsViews:a}}),{rows:U}=q.getRowModel(),K=q.getHeaderGroups(),Y=Gp({count:U.length,getScrollElement:()=>z?.current,estimateSize:()=>p,overscan:5}),X=Gp({horizontal:!0,count:K[0]?.headers.length??1,rangeExtractor:(0,S.useCallback)(e=>{const t=[...Array(L)].map((e,t)=>t);return[...new Set([...t,...Np(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>z?.current,estimateSize:W,overscan:5}),Z=(0,S.useMemo)(()=>[...Array(L)].reduce((e,t,n)=>e+W(n),0),[L,W]),J=(0,S.useMemo)(()=>{const e=K.length-f.length,t=[...f];if(e>0)for(let n=0;n<e;n++)t.push(qp);return t},[f,K]),Q=(0,S.useMemo)(()=>J.reduce((e,t,n)=>n<K.length?e+t:e,0),[J,K]),ee=(0,S.useCallback)(e=>J.reduce((t,n,r)=>r<e?t+n:t,0),[J,K]),te=Y.getTotalSize(),ne=X.getTotalSize(),re=()=>{T([])},oe=()=>{V([{columnName:"isNew",direction:"desc"}])};(0,S.useImperativeHandle)(o,()=>({resetFilters:re,resetSorts:oe})),(0,S.useEffect)(()=>{if(z?.current){const e=z?.current,t=e.querySelector(`.${gh}`);if(t){const n=e.clientWidth,r=ne+(u?h:0);t.style.left=`${n>r?r:n}px`}}},[z?.current?.clientWidth,ne,u,h]),(0,S.useEffect)(()=>{if(z?.current){const e=z?.current,t=e.querySelector(`.${oh}`);if(t){const n=e.clientHeight,r=te+Q;t.style.top=`${n>r?r:n}px`}}},[z?.current?.clientHeight,te]),(0,S.useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${fh}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return z?.current&&(z.current.addEventListener("scroll",e),y&&z.current.scrollTo(0,z.current.scrollHeight)),()=>{z?.current&&z.current.removeEventListener("scroll",e)}},[z,y]);const ie=Y.getVirtualItems(),le=X.getVirtualItems(),ae=le[le.length-1]?.index,se=(0,S.useMemo)(()=>new Map(ie.map(e=>[e.index,e.size])),[ie]),ce=(0,S.useCallback)(e=>se.get(e)??p,[p,se]),ue=(0,S.useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=Math.min(U.length-1,e+n-1),o=r-e+1;let i=0;for(let t=e;t<=r;t+=1)i+=ce(t);const l="all"===P||"horizontal"===P?Math.max(0,o-1):0;return Math.max(0,i-l)},[P,ce,U.length]),de=(0,S.useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=U[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[U]),fe=(0,S.useCallback)((e,t)=>1===e?.isNew?.value?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[]),pe=(0,S.useMemo)(()=>{const e=U.length,t=new Map;return U.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},[U]),he=(0,S.useMemo)(()=>U.length*U.length+U.length+10,[U.length]),ge=e=>{const o=e.column.columnDef.meta?.label;if("string"==typeof o){const i=o.split(/\r\n|\\r\\n|\n|\\n/);if(i.length>1)return n(t,{children:i.map((t,o)=>r(S.Fragment,{children:[t,o<i.length-1&&n("br",{})]},`${e.id}_${o}`))})}return Rp(e.column.columnDef.header,e.getContext())},[me,be]=le.length>0?[L&&le[L].index!==L?le[L].start-Z:le[0].start,ne-le[le.length-1].end]:[0,0];return(0,S.useEffect)(()=>{E?.(N)},[N]),(0,S.useEffect)(()=>{R?.(F.filter(e=>"isNew"!==e.columnName))},[F]),n("div",{className:_()(mh,v[O],v[`borders${ve=P,ve[0].toUpperCase()+ve.substring(1)}`],g?.root),style:b?{height:b}:void 0,children:r("div",{ref:z,className:_()(jh,"styledScroll"),children:[r("div",{className:Ph,style:{height:`${te+Q}px`},children:[n("div",{style:{position:"sticky",top:0,zIndex:he},children:K.map((e,t)=>{const o=e=>{const t=e.column.columnDef.meta,o=t?.sortAnotherName??e.column.columnDef.id??e.id,i=N.findIndex(e=>e.columnName===o),l=-1===i?H:B[i];return n("div",{className:_()(Eh),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==A&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&j)?n(Uh,{headerMeta:t,sortBy:F,setSortBy:V,filterBy:N,setFilterBy:T,rows:l,rowsForUniqueCount:H,headerName:e.column.columnDef.id??e.id,containerRef:w?z:void 0,showUniqueValuesCount:j,leftAdditionalContent:k,rightAdditionalContent:D,children:n=>r("div",{className:_()(dh,t?.headerAlign?v[`align${t?.headerAlign}`]:Qp),children:[ge(e),n]})}):n("div",{className:_()(dh,t?.headerAlign?v[`align${t?.headerAlign}`]:Qp),children:ge(e)})})};return r(S.Fragment,{children:[[...Array(L)].map((r,i)=>{const l=e.headers[i],a=Zh(e.headers,i,ae),s=Qh(K,t,i);return n("div",{className:_()(Ch,0===t?ch:void 0,!s.length&&i!==e.headers.length-1&&Dh,0===i&&kh,s.length&&!a.length&&Rh,fh),style:{zIndex:he+1,width:`${W(i)}px`,height:`${J[t]}px`,transform:`translateX(${Array.from({length:i},(e,t)=>W(t)).reduce((e,t)=>e+t,0)}px) translateY(${ee(t)}px)`},children:o(l)},`${e.id}-${l.id}`)}),le.map(r=>{if(r.index>L-1){const i=e.headers[r.index],l=Zh(e.headers,r.index,ae),a=eg(e.headers,r.index),s=Qh(K,t,r.index),c=Jh(K,t,r.index),u=l.length||a.length?r.size+l.reduce((e,t)=>e+(t.column.columnDef.meta?.width??0),0):r.size,d=l.length||a.length?he+l.length+2:void 0,f=c.length?J[t]+c.reduce((e,n,r)=>e+(J[t-r-1]??0),0):J[t],p=c.length?ee(t)-c.reduce((e,n,r)=>e+(J[t-r-1]??0),0):ee(t);return n("div",{className:_()(Ch,0===t&&ch,!s.length&&r.index!==e.headers.length-1&&Dh,0===r.index&&kh,s.length&&!l.length&&Rh),style:{width:`${u}px`,zIndex:d,height:`${f}px`,transform:`translateX(${r.start+(L?-1:0)}px) translateY(${p}px)`,borderTop:"none"!==P&&0===p?"1px solid var(--border-color)":void 0},children:o(i)},`${e.id}-${i.id}`)}return null}),!!u&&n("div",{className:_()(Ch,0===t?ch:void 0),style:{width:`${h}px`,height:`${J[t]}px`,transform:`translateX(${ne+(L?-2:0)}px) translateY(${ee(t)}px)`}})]},e.id)})}),ie.map(e=>{const t=U[e.index];return r("div",{"data-index":e.index,ref:m?Y.measureElement:void 0,className:_()(Mh,I&&e.index%2!=0&&sh,1===t.original?.isNew?.value&&yh),style:og(og({zIndex:pe.get(e.index)??1},!m&&{height:e.size}),{},{transform:"translateY("+(Q+e.start-Y.options.scrollMargin)+"px)"}),children:[n("div",{style:{width:`${me}px`}}),le.map(r=>{const o=t.getAllCells()[r.index],i="left"===o.column.getIsPinned(),l=t.original?.[o.column.id],a=Math.max(1,l?.rowspan??1),s=de(e.index,o.column.id),c=a>1&&!s;return n("div",{"data-col-index":r.index,className:_()(xh,i&&_h),style:og(og({},i&&{left:r.start,marginLeft:0===r.index?-1:0}),{},{width:`${r.size}px`},!m&&!c&&{overflow:"hidden"}),"data-index":e.index,children:!s&&(c?n("div",{className:vh,style:{height:`${ue(e.index,a)}px`,backgroundColor:fe(t.original,e.index)},children:Rp(o.column.columnDef.cell,o.getContext())}):Rp(o.column.columnDef.cell,o.getContext()))},`cell-${e.key}-${r.key}`)}),!!u&&n("div",{className:_()(xh),style:og({width:`${h}px`,justifyContent:"flex-start",padding:"4px"},!m&&{overflow:"hidden"}),children:u?.(t.original)?.map(r=>n(S.Fragment,{children:r.template?r.template(r):n(Vo,{label:r.title,placement:"top",wrapTrigger:!0,classes:{trigger:bh},children:n(G,{onClick:()=>r.onClick?.(e.index,t.original),size:"small",variant:"text",icon:r.icon})})},r.title))}),n("div",{style:{width:`${be}px`}})]},`row-${e.key}`)})]}),"none"!==P&&r(t,{children:[n("div",{className:gh,style:{height:`${te+Q}px`}}),n("div",{className:oh,style:{width:`${ne}px`}})]})]})});var ve});var ag="treeViewItem-module__selectable__ZnWqc",sg="treeViewItem-module__selected__uwOfq";const cg=(0,S.memo)(function e({title:t,value:o,searchValue:i,selected:l,onSelect:a,type:s,isSelectable:c,startIcons:u,children:d}){const[f,p]=(0,S.useState)(!1);(0,S.useEffect)(()=>{p(!!i)},[i]);const h=!!d?.length,g=s&&u?.[s],m=l[o];return r("div",{children:[r("div",{className:_()("treeViewItem-module__item__Ddenr",{[ag]:c}),onClick:()=>{c&&a?a(o):p(!f)},children:[h&&n(da,{}),r("div",{className:_()("treeViewItem-module__title___JZMU",{[sg]:m}),children:[g,n(be,{variant:"subtitle2",children:t}),c&&n("span",{className:"treeViewItem-module__select-icon__Ma7T6",children:n(m?Il:zi,{})})]})]}),f&&h&&n("div",{className:"treeViewItem-module__children__SBb_p",children:d.map(t=>n(e,{title:t.name,value:t.id,children:t.children,selected:l,searchValue:i,type:t.type,isSelectable:t.isSelectable,startIcons:u,onSelect:a},t.id))})]})});function ug(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(n),!0).forEach(function(t){fg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pg=(0,S.memo)(function({data:e,selected:o,startIcons:i,onSelect:l,withSearch:a=!1}){const[s,c]=(0,S.useState)(""),u=(0,S.useCallback)(e=>c(e.target.value),[]),d=(0,S.useMemo)(()=>o.reduce((e,t)=>(e[t]=!0,e),{}),[o]),f=(0,S.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(dg(dg({},t),{},{children:n}))}return e};return e.reduce(r,[])})(e,s),[e,s]);return r(t,{children:[a&&n(Vd,{variant:"outlined",value:s,fullWidth:!0,onChange:u,classes:{root:"treeView-module__search__CptHY"}}),n("div",{className:"styledScroll",children:f.map(({id:e,name:t,children:r})=>n(cg,{title:t,value:e,searchValue:s,children:r,startIcons:i,onSelect:l,selected:d},e))})]})});var hg="pairs-module__labels-with-borders__iC6y_",gg="pairs-module__row-container-borders__H3rCB",mg="pairs-module__values-with-borders__ssGZ0";function bg(e){const{label:t}=e,[r,o]=(0,S.useState)(t);return n(Vo,{label:r,children:n(be,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{o(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}function vg(e){const{pairs:o,column1Width:i="50%",column2Width:l="50%",showBorder:a,minRowHeight:s,classes:c}=e;return n("div",{className:_()(c?.root),children:o.map((e,o)=>n("div",{style:{minHeight:s,display:"flex"},className:_()(c?.rowContainer,{[gg]:a}),children:e&&r(t,{children:[n("div",{className:_()("pairs-module__labels-container__AKW8x",c?.labelsContainer,{[hg]:a}),style:{width:i,minWidth:i},children:n(be,{className:"pairs-module__dim-typography__CX_Sf",children:e.label})}),n("div",{style:{width:l,minWidth:l},className:_()("pairs-module__values-container__a4t60",c?.valuesContainer,{[mg]:a}),children:n(bg,{label:e.value})})]})},o))})}var yg="card-module__actions__ctfFt",wg="card-module__body-full-size__oalrd",Og="card-module__body-padded__xaBA8",_g="card-module__body-padded-no-header__RBxi1",Sg="card-module__header__NdV6G",Pg="card-module__header-overlay__VpVTO",jg="card-module__medium__TpRzi",xg="card-module__root__uGlLT",Cg="card-module__small__liJkd";function Eg(e){const{surfaceType:t="primary",componentSize:o="medium",title:i,actions:l,children:a,classes:s,headerOverlay:c=!0,fullSizeBody:u=!1}=e,d=!!i||!!l;return r(hf,{type:t,classes:{root:_()(xg,y[o],s?.root)},children:[d&&r("div",{className:_()(Sg,c&&Pg,s?.header),children:[i??n("div",{}),!!l&&n("div",{className:_()(yg,s?.actions),children:l})]}),n("div",{className:_()(u?wg:d?Og:_g,s?.body),children:a})]})}var Rg="chip-module__clickable__dOcCr",kg="chip-module__filled__LKP4O",Dg="chip-module__icon__yybCP",Mg="chip-module__icon-clickable__BPoAa",Ig="chip-module__icon-left__LhniG",Lg="chip-module__icon-right__CnqJ6",Ng="chip-module__icon-right-slot__p8bmk",Tg="chip-module__label__RySGy",Fg="chip-module__medium__RRnyf",Vg="chip-module__outlined__HHje4",zg="chip-module__root__QN7P0",Ag="chip-module__secondary__yquCM",$g="chip-module__small__UbquU",Hg="chip-module__with-icon__ORESD";const Bg=e=>{const{variant:t="filled",size:o="medium",icon:i,iconPlacement:l="right",secondary:a,onClick:s,onIconClick:c,children:u,classes:d}=e,f=e=>{e.stopPropagation(),c?.()},p=c?"button":"span",h=!!i&&"left"===l,g=!!i&&"right"===l;return r("div",{className:_()(zg,w[t],w[o],!!i&&Hg,h&&Ig,g&&Lg,a&&Ag,s&&Rg,d?.root),tabIndex:s?0:void 0,role:s?"button":void 0,onClick:s,children:[h&&n(p,{className:_()(Dg,c&&Mg,d?.icon),onClick:c?f:void 0,"aria-label":c?"Удалить":void 0,children:i}),u&&n("span",{className:_()(Tg,d?.label),children:u}),g&&n(p,{className:_()(Dg,Ng,c&&Mg,d?.icon),onClick:c?f:void 0,"aria-label":c?"Удалить":void 0,children:i})]})};function Wg(e,t){return function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot}(t)?e.replace(/:root\b/g,":host"):e}function Gg(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 qg=(0,S.createContext)(void 0);function Ug(){return(0,S.useContext)(qg)??null}function Kg(){return Ug()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function Yg({children:e,styleContainer:t}){const[r,o]=(0,S.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,S.useEffect)(()=>{const e=t??document.head;Gg(e,"nntc-ui-base-styles").textContent=Wg(":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",e)},[t]),(0,S.useEffect)(()=>{const e={light:":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-background: #ffffff;\n --theme-surface-modal: #ffffff;\n --theme-surface-dropdown: #ffffff;\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",dark:":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-background: #2b2b2b;\n --theme-surface-modal: #373737;\n --theme-surface-dropdown: #515151;\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",darkBlue:":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-background: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n --theme-surface-dropdown: #183043;\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"},n=t??document.head;Gg(n,"nntc-ui-theme-styles").textContent=Wg(e[r]??e.light,n)},[r,t]),(0,S.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=>{o(e.matches?"dark":"light")};return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]);const i={theme:r,toggleTheme:()=>{o(e=>{const t="light"===e?"dark":"dark"===e?"darkBlue":"light";try{localStorage.setItem("theme",t)}catch{}return t})},setTheme:e=>{o(e);try{localStorage.setItem("theme",e)}catch{}}};return n(qg.Provider,{value:i,children:e})}export{zi as AddIcon,ra as AlertIcon,Bi as ArrowDropDownIcon,Ui as ArrowDropUpIcon,Zi as AttachIcon,tl as BarChartIcon,bs as BookmarkAddIcon,ps as BookmarkIcon,G as Button,Ns as ButtonsGroup,Eg as Card,Ve as Checkbox,Se as CheckboxDeselectedIcon,Ce as CheckboxIcon,De as CheckboxSeveralIcon,Kd as Checklist,da as ChevronDownIcon,pl as ChevronLeftIcon,bl as ChevronRightIcon,aa as ChevronUpIcon,Bg as Chip,Ol as CircleFilledIcon,Qo as CloseIcon,wu as ColorPicker,jl as DateRangeIcon,$c as DateTime,Rl as DeleteIcon,Il as DoneIcon,js as DownloadIcon,Fl as DragIcon,ts as EditIcon,Uo as ErrorOutlineIcon,Os as ExportTableIcon,$l as FileUploadIcon,Yl as FilterClearIcon,Gl as FilterIcon,cs as FullScreenOffIcon,is as FullScreenOnIcon,Ql as InfoIcon,xu as Input,pi as InputChip,gf as Layout,ga as ListIcon,Js as Menu,Zp as Modal,ya as MoreVerticalIcon,tf as MultiSelect,vg as Pairs,Is as PointIcon,Ni as Popover,cf as RadioButton,il as RadioDeselectedIcon,cl as RadioSelectedIcon,Sa as SearchIcon,Vd as SearchInput,oc as Select,Ca as SelectUniqueIcon,Da as SettingsIcon,Na as SortDownIcon,za as SortUpIcon,hf as Surface,Ba as TableChartIcon,If as Tabs,Yg as ThemeProvider,Vo as Tooltip,pg as TreeView,be as Typography,Ua as UploadIcon,lg as VirtualTable,Rs as VisibilityIcon,Za as WellIcon,Hd as WrapForLabel,Lc as createCalendarDate,Ug as useTheme,Kg as useThemeWithFallback,qp as virtualTableDefaultRowHeight};
3
3
  //# sourceMappingURL=index.mjs.map