/*! For license information please see 593.bundle.js.LICENSE.txt */ (self.webpackChunkfront=self.webpackChunkfront||[]).push([[593],{322:(e,t,o)=>{"use strict";function n(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let r=0;rn})},654:(e,t,o)=>{"use strict";var n=o(85072),r=o.n(n),i=o(97825),a=o.n(i),l=o(77659),s=o.n(l),c=o(55056),u=o.n(c),d=o(10540),p=o.n(d),h=o(41113),m=o.n(h),f=o(15411),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=s().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p(),r()(f.A,g),f.A&&f.A.locals&&f.A.locals},659:(e,t,o)=>{var n=o(51873),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),o=e[l];try{e[l]=void 0;var n=!0}catch(e){}var r=a.call(e);return n&&(t?e[l]=o:delete e[l]),r}},1233:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(5544),r=o(96540);function i(e){var t=r.useRef(!1),o=r.useState(e),i=(0,n.A)(o,2),a=i[0],l=i[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,o){o&&t.current||l(e)}]}},1883:(e,t,o)=>{"use strict";o.d(t,{A:()=>i}),o(96540);var n=o(9792),r=o(74848);const i=(0,n.A)((0,r.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},2616:(e,t,o)=>{"use strict";o.d(t,{Y:()=>s});var n=o(64467);const r=Math.round;function i(e,t){const o=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=o.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)n[e]=t(n[e]||0,o[e]||"",e);return o[3]?n[3]=o[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const a=(e,t,o)=>0===o?e:e/100;function l(e,t){const o=t||255;return e>o?o:e<0?0:e}class s{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,n.A)(this,"isValid",!0),(0,n.A)(this,"r",0),(0,n.A)(this,"g",0),(0,n.A)(this,"b",0),(0,n.A)(this,"a",1),(0,n.A)(this,"_h",void 0),(0,n.A)(this,"_s",void 0),(0,n.A)(this,"_l",void 0),(0,n.A)(this,"_v",void 0),(0,n.A)(this,"_max",void 0),(0,n.A)(this,"_min",void 0),(0,n.A)(this,"_brightness",void 0),e)if("string"==typeof e){const o=e.trim();function r(e){return o.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):r("rgb")?this.fromRgbString(o):r("hsl")?this.fromHslString(o):(r("hsv")||r("hsb"))&&this.fromHsvString(o)}else if(e instanceof s)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=l(e.r),this.g=l(e.g),this.b=l(e.b),this.a="number"==typeof e.a?l(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:r(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(n=1),this._c({h:t,s:o,l:n,a:this.a})}mix(e,t=50){const o=this._c(e),n=t/100,i=e=>(o[e]-this[e])*n+this[e],a={r:r(i("r")),g:r(i("g")),b:r(i("b")),a:r(100*i("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),o=this.a+t.a*(1-this.a),n=e=>r((this[e]*this.a+t[e]*t.a*(1-this.a))/o);return this._c({r:n("r"),g:n("g"),b:n("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const o=(this.g||0).toString(16);e+=2===o.length?o:"0"+o;const n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=r(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=r(100*this.getSaturation()),o=r(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${o}%,${this.a})`:`hsl(${e},${t}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,o){const n=this.clone();return n[e]=l(t,o),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function o(e,o){return parseInt(t[e]+t[o||e],16)}t.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=t[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=t[6]?o(6,7)/255:1)}fromHsl({h:e,s:t,l:o,a:n}){if(this._h=e%360,this._s=t,this._l=o,this.a="number"==typeof n?n:1,t<=0){const e=r(255*o);this.r=e,this.g=e,this.b=e}let i=0,a=0,l=0;const s=e/60,c=(1-Math.abs(2*o-1))*t,u=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,a=u):s>=1&&s<2?(i=u,a=c):s>=2&&s<3?(a=c,l=u):s>=3&&s<4?(a=u,l=c):s>=4&&s<5?(i=u,l=c):s>=5&&s<6&&(i=c,l=u);const d=o-c/2;this.r=r(255*(i+d)),this.g=r(255*(a+d)),this.b=r(255*(l+d))}fromHsv({h:e,s:t,v:o,a:n}){this._h=e%360,this._s=t,this._v=o,this.a="number"==typeof n?n:1;const i=r(255*o);if(this.r=i,this.g=i,this.b=i,t<=0)return;const a=e/60,l=Math.floor(a),s=a-l,c=r(o*(1-t)*255),u=r(o*(1-t*s)*255),d=r(o*(1-t*(1-s))*255);switch(l){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;default:this.g=c,this.b=u}}fromHsvString(e){const t=i(e,a);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=i(e,a);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=i(e,((e,t)=>t.includes("%")?r(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},2694:(e,t,o)=>{"use strict";var n=o(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,i,a){if(a!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return o.PropTypes=o,o}},3068:(e,t,o)=>{"use strict";o.d(t,{K:()=>n,u:()=>r});let n=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const r={left:[],right:[]}},5009:(e,t,o)=>{"use strict";o.d(t,{J6:()=>s,RJ:()=>l,XU:()=>c,oF:()=>u});var n=o(92661),r=o(24349),i=o(65347);const a=(0,n.gz)((e=>e.sorting)),l=(0,n.Mz)(a,(e=>e.sortedRows)),s=(0,n.S)(l,r.rI,r.qj,((e,t,o)=>e.reduce(((e,n)=>{const r=t[n];if(r)e.push({id:n,model:r});else{const t=o[n];t&&(0,i.nF)(t)&&e.push({id:n,model:{[i.gb]:n}})}return e}),[]))),c=(0,n.Mz)(a,(e=>e.sortModel)),u=(0,n.S)(c,(e=>e.reduce(((t,o,n)=>(t[o.field]={sortDirection:o.sort,sortIndex:e.length>1?n+1:void 0},t)),{})));(0,n.S)(l,(e=>e.reduce(((e,t,o)=>(e[t]=o,e)),Object.create(null))))},5544:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(96369),r=o(27800),i=o(76562);function a(e,t){return(0,n.A)(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i,a,l=[],s=!0,c=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;s=!1}else for(;!(s=(n=i.call(o)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||(0,r.A)(e,t)||(0,i.A)()}},5556:(e,t,o)=>{e.exports=o(2694)()},6481:(e,t,o)=>{"use strict";o.d(t,{A:()=>h});var n=o(96540),r=o(34164),i=o(26739),a=o(58296),l=o(21362),s=o(1908);function c(e){return(0,s.Ay)("MuiTabPanel",e)}(0,o(96148).A)("MuiTabPanel",["root","hidden"]);var u=o(65836),d=o(74848);const p=(0,i.Ay)("div",{name:"MuiTabPanel",slot:"Root"})((({theme:e})=>({padding:e.spacing(3)}))),h=n.forwardRef((function(e,t){const o=(0,a.A)({props:e,name:"MuiTabPanel"}),{children:n,className:i,value:s,keepMounted:h=!1,...m}=o,f={...o},g=(e=>{const{classes:t,hidden:o}=e,n={root:["root",o&&"hidden"]};return(0,l.A)(n,c,t)})(f),b=(0,u.QM)();if(null===b)throw new TypeError("No TabContext provided");const v=(0,u.eR)(b,s),y=(0,u.vU)(b,s);return(0,d.jsx)(p,{"aria-labelledby":y,className:(0,r.A)(g.root,i),hidden:s!==b.value,id:v,ref:t,role:"tabpanel",ownerState:f,...m,children:(h||s===b.value)&&n})}))},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7193:(e,t,o)=>{"use strict";o.d(t,{A:()=>Sv});var n=o(96540),r=o.t(n,2),i={},a="rc-table-internal-hook",l=o(5544),s=o(26956),c=o(30981),u=o(43210),d=o(40961),p=o.t(d,2);function h(e){var t=n.createContext(void 0);return{Context:t,Provider:function(e){var o=e.value,r=e.children,i=n.useRef(o);i.current=o;var a=n.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),s=(0,l.A)(a,1)[0];return(0,c.A)((function(){(0,d.unstable_batchedUpdates)((function(){s.listeners.forEach((function(e){e(o)}))}))}),[o]),n.createElement(t.Provider,{value:s},r)},defaultValue:e}}function m(e,t){var o=(0,s.A)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var o={};return t.forEach((function(t){o[t]=e[t]})),o}),r=n.useContext(null==e?void 0:e.Context),i=r||{},a=i.listeners,d=i.getValue,p=n.useRef();p.current=o(r?d():null==e?void 0:e.defaultValue);var h=n.useState({}),m=(0,l.A)(h,2)[1];return(0,c.A)((function(){if(r)return a.add(e),function(){a.delete(e)};function e(e){var t=o(e);(0,u.A)(p.current,t,!0)||m({})}}),[r]),p.current}var f=o(58168),g=o(8719);function b(){var e=n.createContext(null);function t(){return n.useContext(e)}return{makeImmutable:function(o,r){var i=(0,g.f3)(o),a=function(a,l){var s=i?{ref:l}:{},c=n.useRef(0),u=n.useRef(a);return null!==t()?n.createElement(o,(0,f.A)({},a,s)):(r&&!r(u.current,a)||(c.current+=1),u.current=a,n.createElement(e.Provider,{value:c.current},n.createElement(o,(0,f.A)({},a,s))))};return i?n.forwardRef(a):a},responseImmutable:function(e,o){var r=(0,g.f3)(e),i=function(o,i){var a=r?{ref:i}:{};return t(),n.createElement(e,(0,f.A)({},o,a))};return r?n.memo(n.forwardRef(i),o):n.memo(i,o)},useImmutableMark:t}}var v=b(),y=(v.makeImmutable,v.responseImmutable,v.useImmutableMark,b()),w=y.makeImmutable,C=y.responseImmutable,x=y.useImmutableMark;const A=h();var E=o(82284),S=o(89379),k=o(64467),R=o(46942),M=o.n(R),I=o(28104),P=o(16300),O=o(68210);const T=n.createContext({renderWithProps:!1});function $(e){var t=[],o={};return e.forEach((function(e){for(var n,r=e||{},i=r.key,a=r.dataIndex,l=i||(n=a,null==n?[]:Array.isArray(n)?n:[n]).join("-")||"RC_TABLE_KEY";o[l];)l="".concat(l,"_next");o[l]=!0,t.push(l)})),t}function z(e){return null!=e}var D=o(81470);function L(e){var t,o,r,i,a,s,c,d,p=e.component,h=e.children,g=e.ellipsis,b=e.scope,v=e.prefixCls,y=e.className,w=e.align,C=e.record,R=e.render,O=e.dataIndex,$=e.renderIndex,L=e.shouldCellUpdate,F=e.index,N=e.rowType,H=e.colSpan,j=e.rowSpan,B=e.fixLeft,_=e.fixRight,V=e.firstFixLeft,W=e.lastFixLeft,G=e.firstFixRight,K=e.lastFixRight,U=e.appendNode,q=e.additionalProps,X=void 0===q?{}:q,Y=e.isSticky,Q="".concat(v,"-cell"),J=m(A,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Z=J.supportSticky,ee=J.allColumnsFixedLeft,te=J.rowHoverable,oe=function(e,t,o,r,i,a){var s=n.useContext(T),c=x();return(0,I.A)((function(){if(z(r))return[r];var a,l=null==t||""===t?[]:Array.isArray(t)?t:[t],c=(0,P.A)(e,l),u=c,d=void 0;if(i){var p=i(c,e,o);!(a=p)||"object"!==(0,E.A)(a)||Array.isArray(a)||n.isValidElement(a)?u=p:(u=p.children,d=p.props,s.renderWithProps=!0)}return[u,d]}),[c,e,r,t,i,o],(function(e,t){if(a){var o=(0,l.A)(e,2)[1],n=(0,l.A)(t,2)[1];return a(n,o)}return!!s.renderWithProps||!(0,u.A)(e,t,!0)}))}(C,O,$,h,R,L),ne=(0,l.A)(oe,2),re=ne[0],ie=ne[1],ae={},le="number"==typeof B&&Z,se="number"==typeof _&&Z;le&&(ae.position="sticky",ae.left=B),se&&(ae.position="sticky",ae.right=_);var ce=null!==(t=null!==(o=null!==(r=null==ie?void 0:ie.colSpan)&&void 0!==r?r:X.colSpan)&&void 0!==o?o:H)&&void 0!==t?t:1,ue=null!==(i=null!==(a=null!==(s=null==ie?void 0:ie.rowSpan)&&void 0!==s?s:X.rowSpan)&&void 0!==a?a:j)&&void 0!==i?i:1,de=function(e,t){return m(A,(function(o){var n,r,i,a;return[(n=e,r=t||1,i=o.hoverStartRow,a=o.hoverEndRow,n<=a&&n+r-1>=i),o.onHover]}))}(F,ue),pe=(0,l.A)(de,2),he=pe[0],me=pe[1],fe=(0,D._q)((function(e){var t;C&&me(F,F+ue-1),null==X||null===(t=X.onMouseEnter)||void 0===t||t.call(X,e)})),ge=(0,D._q)((function(e){var t;C&&me(-1,-1),null==X||null===(t=X.onMouseLeave)||void 0===t||t.call(X,e)}));if(0===ce||0===ue)return null;var be=null!==(c=X.title)&&void 0!==c?c:function(e){var t,o=e.ellipsis,r=e.rowType,i=e.children,a=!0===o?{showTitle:!0}:o;return a&&(a.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?t=i.toString():n.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:N,ellipsis:g,children:re}),ve=M()(Q,y,(d={},(0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)(d,"".concat(Q,"-fix-left"),le&&Z),"".concat(Q,"-fix-left-first"),V&&Z),"".concat(Q,"-fix-left-last"),W&&Z),"".concat(Q,"-fix-left-all"),W&&ee&&Z),"".concat(Q,"-fix-right"),se&&Z),"".concat(Q,"-fix-right-first"),G&&Z),"".concat(Q,"-fix-right-last"),K&&Z),"".concat(Q,"-ellipsis"),g),"".concat(Q,"-with-append"),U),"".concat(Q,"-fix-sticky"),(le||se)&&Y&&Z),(0,k.A)(d,"".concat(Q,"-row-hover"),!ie&&he)),X.className,null==ie?void 0:ie.className),ye={};w&&(ye.textAlign=w);var we=(0,S.A)((0,S.A)((0,S.A)((0,S.A)({},null==ie?void 0:ie.style),ae),ye),X.style),Ce=re;return"object"!==(0,E.A)(Ce)||Array.isArray(Ce)||n.isValidElement(Ce)||(Ce=null),g&&(W||G)&&(Ce=n.createElement("span",{className:"".concat(Q,"-content")},Ce)),n.createElement(p,(0,f.A)({},ie,X,{className:ve,style:we,title:be,scope:b,onMouseEnter:te?fe:void 0,onMouseLeave:te?ge:void 0,colSpan:1!==ce?ce:null,rowSpan:1!==ue?ue:null}),U,Ce)}const F=n.memo(L);function N(e,t,o,n,r){var i,a,l=o[e]||{},s=o[t]||{};"left"===l.fixed?i=n.left["rtl"===r?t:e]:"right"===s.fixed&&(a=n.right["rtl"===r?e:t]);var c=!1,u=!1,d=!1,p=!1,h=o[t+1],m=o[e-1],f=h&&!h.fixed||m&&!m.fixed||o.every((function(e){return"left"===e.fixed}));return"rtl"===r?void 0!==i?p=!(m&&"left"===m.fixed)&&f:void 0!==a&&(d=!(h&&"right"===h.fixed)&&f):void 0!==i?c=!(h&&"left"===h.fixed)&&f:void 0!==a&&(u=!(m&&"right"===m.fixed)&&f),{fixLeft:i,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:p,isSticky:n.isSticky}}const H=n.createContext({});var j=o(80045),B=["children"];function _(e){return e.children}_.Row=function(e){var t=e.children,o=(0,j.A)(e,B);return n.createElement("tr",o,t)},_.Cell=function(e){var t=e.className,o=e.index,r=e.children,i=e.colSpan,a=void 0===i?1:i,l=e.rowSpan,s=e.align,c=m(A,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,p=n.useContext(H),h=p.scrollColumnIndex,g=p.stickyOffsets,b=o+a-1+1===h?a+1:a,v=N(o,o+b-1,p.flattenColumns,g,d);return n.createElement(F,(0,f.A)({className:t,index:o,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:b,rowSpan:l,render:function(){return r}},v))};const V=_,W=C((function(e){var t=e.children,o=e.stickyOffsets,r=e.flattenColumns,i=m(A,"prefixCls"),a=r.length-1,l=r[a],s=n.useMemo((function(){return{stickyOffsets:o,flattenColumns:r,scrollColumnIndex:null!=l&&l.scrollbar?a:null}}),[l,r,a,o]);return n.createElement(H.Provider,{value:s},n.createElement("tfoot",{className:"".concat(i,"-summary")},t))}));var G=V,K=o(76288);function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[];return n.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?o=o.concat(U(e)):(0,K.A)(e)&&e.props?o=o.concat(U(e.props.children,t)):o.push(e))})),o}var q=o(66588),X=n.createContext(null),Y=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var o=-1;return e.some((function(e,n){return e[0]===t&&(o=n,!0)})),o}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var o=e(this.__entries__,t),n=this.__entries__[o];return n&&n[1]},t.prototype.set=function(t,o){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=o:this.__entries__.push([t,o])},t.prototype.delete=function(t){var o=this.__entries__,n=e(o,t);~n&&o.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var o=0,n=this.__entries__;o0},e.prototype.connect_=function(){Q&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),te?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Q&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,o=void 0===t?"":t;ee.some((function(e){return!!~o.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ne=function(e,t){for(var o=0,n=Object.keys(t);o0},e}(),me="undefined"!=typeof WeakMap?new WeakMap:new Y,fe=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var o=oe.getInstance(),n=new he(t,o,this);me.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){fe.prototype[e]=function(){var t;return(t=me.get(this))[e].apply(t,arguments)}}));const ge=void 0!==J.ResizeObserver?J.ResizeObserver:fe;var be=new Map,ve=new ge((function(e){e.forEach((function(e){var t,o=e.target;null===(t=be.get(o))||void 0===t||t.forEach((function(e){return e(o)}))}))})),ye=o(23029),we=o(92901),Ce=o(85501),xe=o(49640),Ae=function(e){(0,Ce.A)(o,e);var t=(0,xe.A)(o);function o(){return(0,ye.A)(this,o),t.apply(this,arguments)}return(0,we.A)(o,[{key:"render",value:function(){return this.props.children}}]),o}(n.Component);function Ee(e,t){var o=e.children,r=e.disabled,i=n.useRef(null),a=n.useRef(null),l=n.useContext(X),s="function"==typeof o,c=s?o(i):o,u=n.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&n.isValidElement(c)&&(0,g.f3)(c),p=d?(0,g.A9)(c):null,h=(0,g.xK)(p,i),m=function(){var e;return(0,q.Ay)(i.current)||(i.current&&"object"===(0,E.A)(i.current)?(0,q.Ay)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,q.Ay)(a.current)};n.useImperativeHandle(t,(function(){return m()}));var f=n.useRef(e);f.current=e;var b=n.useCallback((function(e){var t=f.current,o=t.onResize,n=t.data,r=e.getBoundingClientRect(),i=r.width,a=r.height,s=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),p=Math.floor(a);if(u.current.width!==d||u.current.height!==p||u.current.offsetWidth!==s||u.current.offsetHeight!==c){var h={width:d,height:p,offsetWidth:s,offsetHeight:c};u.current=h;var m=s===Math.round(i)?i:s,g=c===Math.round(a)?a:c,b=(0,S.A)((0,S.A)({},h),{},{offsetWidth:m,offsetHeight:g});null==l||l(b,e,n),o&&Promise.resolve().then((function(){o(b,e)}))}}),[]);return n.useEffect((function(){var e,t,o=m();return o&&!r&&(e=o,t=b,be.has(e)||(be.set(e,new Set),ve.observe(e)),be.get(e).add(t)),function(){return function(e,t){be.has(e)&&(be.get(e).delete(t),be.get(e).size||(ve.unobserve(e),be.delete(e)))}(o,b)}}),[i.current,r]),n.createElement(Ae,{ref:a},d?n.cloneElement(c,{ref:h}):c)}const Se=n.forwardRef(Ee);function ke(e,t){var o=e.children;return("function"==typeof o?[o]:U(o)).map((function(o,r){var i=(null==o?void 0:o.key)||"".concat("rc-observer-key","-").concat(r);return n.createElement(Se,(0,f.A)({},e,{key:i,ref:0===r?t:void 0}),o)}))}var Re=n.forwardRef(ke);Re.Collection=function(e){var t=e.children,o=e.onBatchResize,r=n.useRef(0),i=n.useRef([]),a=n.useContext(X),l=n.useCallback((function(e,t,n){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){l===r.current&&(null==o||o(i.current),i.current=[])})),null==a||a(e,t,n)}),[o,a]);return n.createElement(X.Provider,{value:l},t)};const Me=Re;var Ie=o(20998),Pe=function(e){if((0,Ie.A)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],o=window.document.documentElement;return t.some((function(e){return e in o.style}))}return!1};var Oe,Te=o(34552);function $e(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),o=document.createElement("div");o.id=t;var n,r,i=o.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=s?"width: ".concat(l.width,";"):"",d=c?"height: ".concat(l.height,";"):"";(0,Te.BD)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),n=s,r=c}}document.body.appendChild(o);var p=e&&n&&!isNaN(n)?n:o.offsetWidth-o.clientWidth,h=e&&r&&!isNaN(r)?r:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),(0,Te.m6)(t),{width:p,height:h}}function ze(e){return"undefined"==typeof document?0:((e||void 0===Oe)&&(Oe=$e()),Oe.width)}function De(e){return"undefined"!=typeof document&&e&&e instanceof Element?$e(e):{width:0,height:0}}var Le="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Fe(e,t){return 0===e.indexOf(t)}function Ne(e){var t,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===o?{aria:!0,data:!0,attr:!0}:!0===o?{aria:!0}:(0,S.A)({},o);var n={};return Object.keys(e).forEach((function(o){(t.aria&&("role"===o||Fe(o,"aria-"))||t.data&&Fe(o,"data-")||t.attr&&Le.includes(o))&&(n[o]=e[o])})),n}function He(e,t,o,n,r,i,a){var l=i(t,a);e.push({record:t,indent:o,index:a,rowKey:l});var s=null==r?void 0:r.has(l);if(t&&Array.isArray(t[n])&&s)for(var c=0;c1?o-1:0),r=1;r5&&void 0!==arguments[5]?arguments[5]:[],c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=e.record,d=e.prefixCls,p=e.columnsKey,h=e.fixedInfoList,m=e.expandIconColumnIndex,f=e.nestExpandable,g=e.indentSize,b=e.expandIcon,v=e.expanded,y=e.hasNestChildren,w=e.onTriggerExpand,C=e.expandable,x=e.expandedKeys,A=p[o],E=h[o];o===(m||0)&&f&&(l=n.createElement(n.Fragment,null,n.createElement("span",{style:{paddingLeft:"".concat(g*r,"px")},className:"".concat(d,"-row-indent indent-level-").concat(r)}),b({prefixCls:d,expanded:v,expandable:y,record:u,onExpand:w})));var S=(null===(a=t.onCell)||void 0===a?void 0:a.call(t,u,i))||{};if(c){var k=S.rowSpan,R=void 0===k?1:k;if(C&&R&&o=1)),style:(0,S.A)((0,S.A)({},o),null==C?void 0:C.style)}),v.map((function(e,t){var o=e.render,l=e.dataIndex,c=e.className,d=Ge(g,e,t,u,i,s,null==m?void 0:m.offset),v=d.key,y=d.fixedInfo,w=d.appendCellNode,C=d.additionalCellProps;return n.createElement(F,(0,f.A)({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?h:p,prefixCls:b,key:v,record:r,index:i,renderIndex:a,dataIndex:l,render:o,shouldCellUpdate:e.shouldCellUpdate},y,{appendNode:w,additionalProps:C}))})));if(A&&(E.current||x)){var O=w(r,i,u+1,x);R=n.createElement(_e,{expanded:x,className:M()("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(u+1),I),prefixCls:b,component:d,cellComponent:p,colSpan:m?m.colSpan:v.length,stickyOffset:null==m?void 0:m.sticky,isEmpty:!1},O)}return n.createElement(n.Fragment,null,P,R)}));function Ue(e){var t=e.columnKey,o=e.onColumnResize,r=n.useRef();return(0,c.A)((function(){r.current&&o(t,r.current.offsetWidth)}),[]),n.createElement(Me,{data:t},n.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},n.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}const qe=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),o=t.width,n=t.height;if(o||n)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1};function Xe(e){var t=e.prefixCls,o=e.columnsKey,r=e.onColumnResize,i=n.useRef(null);return n.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:i},n.createElement(Me.Collection,{onBatchResize:function(e){qe(i.current)&&e.forEach((function(e){var t=e.data,o=e.size;r(t,o.offsetWidth)}))}},o.map((function(e){return n.createElement(Ue,{key:e,columnKey:e,onColumnResize:r})}))))}const Ye=C((function(e){var t,o=e.data,r=e.measureColumnWidth,i=m(A,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=i.prefixCls,l=i.getComponent,s=i.onColumnResize,c=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,p=i.childrenColumnName,h=i.emptyNode,f=i.expandedRowOffset,g=void 0===f?0:f,b=i.colWidths,v=je(o,p,d,u),y=n.useMemo((function(){return v.map((function(e){return e.rowKey}))}),[v]),w=n.useRef({renderWithProps:!1}),C=n.useMemo((function(){for(var e=c.length-g,t=0,o=0;o=0;s-=1){var c=t[s],u=o&&o[s],d=void 0,p=void 0;if(u&&(d=u[Je],"auto"===i&&(p=u.minWidth)),c||p||d||l){var h=d||{},g=(h.columnType,(0,j.A)(h,Ze));a.unshift(n.createElement("col",(0,f.A)({key:s,style:{width:c,minWidth:p}},g))),l=!0}}return n.createElement("colgroup",null,a)};var tt=o(60436),ot=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],nt=n.forwardRef((function(e,t){var o=e.className,r=e.noData,i=e.columns,a=e.flattenColumns,l=e.colWidths,s=e.columCount,c=e.stickyOffsets,u=e.direction,d=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,f=e.stickyClassName,b=e.onScroll,v=e.maxContentScroll,y=e.children,w=(0,j.A)(e,ot),C=m(A,["prefixCls","scrollbarSize","isSticky","getComponent"]),x=C.prefixCls,E=C.scrollbarSize,R=C.isSticky,I=(0,C.getComponent)(["header","table"],"table"),P=R&&!d?0:E,O=n.useRef(null),T=n.useCallback((function(e){(0,g.Xf)(t,e),(0,g.Xf)(O,e)}),[]);n.useEffect((function(){function e(e){var t=e,o=t.currentTarget,n=t.deltaX;n&&(b({currentTarget:o,scrollLeft:o.scrollLeft+n}),e.preventDefault())}var t=O.current;return null==t||t.addEventListener("wheel",e,{passive:!1}),function(){null==t||t.removeEventListener("wheel",e)}}),[]);var $=n.useMemo((function(){return a.every((function(e){return e.width}))}),[a]),z=a[a.length-1],D={fixed:z?z.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(x,"-cell-scrollbar")}}},L=(0,n.useMemo)((function(){return P?[].concat((0,tt.A)(i),[D]):i}),[P,i]),F=(0,n.useMemo)((function(){return P?[].concat((0,tt.A)(a),[D]):a}),[P,a]),N=(0,n.useMemo)((function(){var e=c.right,t=c.left;return(0,S.A)((0,S.A)({},c),{},{left:"rtl"===u?[].concat((0,tt.A)(t.map((function(e){return e+P}))),[0]):t,right:"rtl"===u?e:[].concat((0,tt.A)(e.map((function(e){return e+P}))),[0]),isSticky:R})}),[P,c,R]),H=function(e,t){return(0,n.useMemo)((function(){for(var o=[],n=0;n1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:l,prefixCls:d,key:h[t]},s,{additionalProps:o,rowType:"header"}))})))},at=C((function(e){var t=e.stickyOffsets,o=e.columns,r=e.flattenColumns,i=e.onHeaderRow,a=m(A,["prefixCls","getComponent"]),l=a.prefixCls,s=a.getComponent,c=n.useMemo((function(){return function(e){var t=[];!function e(o,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var i=n;return o.filter(Boolean).map((function(o){var n={key:o.key,className:o.className||"",children:o.title,column:o,colStart:i},a=1,l=o.children;return l&&l.length>0&&(a=e(l,i,r+1).reduce((function(e,t){return e+t}),0),n.hasSubColumns=!0),"colSpan"in o&&(a=o.colSpan),"rowSpan"in o&&(n.rowSpan=o.rowSpan),n.colSpan=a,n.colEnd=n.colStart+a-1,t[r].push(n),i+=a,a}))}(e,0);for(var o=t.length,n=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=o-e)}))},r=0;r1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var st=["children"],ct=["fixed"];function ut(e){return U(e).filter((function(e){return n.isValidElement(e)})).map((function(e){var t=e.key,o=e.props,n=o.children,r=(0,j.A)(o,st),i=(0,S.A)({key:t},r);return n&&(i.children=ut(n)),i}))}function dt(e){return e.filter((function(e){return e&&"object"===(0,E.A)(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?(0,S.A)((0,S.A)({},e),{},{children:dt(t)}):e}))}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,E.A)(e)})).reduce((function(e,o,n){var r=o.fixed,i=!0===r?"left":r,a="".concat(t,"-").concat(n),l=o.children;return l&&l.length>0?[].concat((0,tt.A)(e),(0,tt.A)(pt(l,a).map((function(e){return(0,S.A)({fixed:i},e)})))):[].concat((0,tt.A)(e),[(0,S.A)((0,S.A)({key:a},o),{},{fixed:i})])}),[])}const ht=function(e,t){var o=e.prefixCls,r=e.columns,a=e.children,s=e.expandable,c=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,p=e.onTriggerExpand,h=e.expandIcon,m=e.rowExpandable,f=e.expandIconColumnIndex,g=e.expandedRowOffset,b=void 0===g?0:g,v=e.direction,y=e.expandRowByClick,w=e.columnWidth,C=e.fixed,x=e.scrollWidth,A=e.clientWidth,E=n.useMemo((function(){return dt((r||ut(a)||[]).slice())}),[r,a]),R=n.useMemo((function(){if(s){var e=E.slice();if(!e.includes(i)){var t=f||0;t>=0&&(t||"left"===C||!C)&&e.splice(t,0,i),"right"===C&&e.splice(E.length,0,i)}var r=e.indexOf(i);e=e.filter((function(e,t){return e!==i||t===r}));var a,l=E[r];a=C||(l?l.fixed:null);var g=(0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)({},Je,{className:"".concat(o,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",a),"className","".concat(o,"-row-expand-icon-cell")),"width",w),"render",(function(e,t,r){var i=d(t,r),a=c.has(i),l=!m||m(t),s=h({prefixCls:o,expanded:a,expandable:l,record:t,onExpand:p});return y?n.createElement("span",{onClick:function(e){return e.stopPropagation()}},s):s}));return e.map((function(e,t){var o=e===i?g:e;return t=0;t-=1){var o=I[t].fixed;if("left"===o||!0===o){e=t;break}}if(e>=0)for(var n=0;n<=e;n+=1){var r=I[n].fixed;if("left"!==r&&!0!==r)return!0}var i=I.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a0){var n=0,r=0;e.forEach((function(e){var o=lt(t,e.width);o?n+=o:r+=1}));var i=Math.max(t,o),a=Math.max(i-n,r),l=r,s=a/r,c=0,u=e.map((function(e){var o=(0,S.A)({},e),n=lt(t,o.width);if(n)o.width=n;else{var r=Math.floor(s);o.width=1===l?a:r,a-=r,l-=1}return c+=o.width,o}));if(c=o-f?P((function(e){return(0,S.A)((0,S.A)({},e),{},{isHiddenScrollBar:!0})})):P((function(e){return(0,S.A)((0,S.A)({},e),{},{isHiddenScrollBar:!1})}))}}))},j=function(e){P((function(t){return(0,S.A)((0,S.A)({},t),{},{scrollLeft:e/y*w||0})}))};return n.useImperativeHandle(t,(function(){return{setScrollLeft:j,checkScrollBarVisible:H}})),n.useEffect((function(){var e=gt(document.body,"mouseup",F,!1),t=gt(document.body,"mousemove",N,!1);return H(),function(){e.remove(),t.remove()}}),[C,z]),n.useEffect((function(){if(p.current){for(var e=[],t=(0,q.rb)(p.current);t;)e.push(t),t=t.parentElement;return e.forEach((function(e){return e.addEventListener("scroll",H,!1)})),window.addEventListener("resize",H,!1),window.addEventListener("scroll",H,!1),g.addEventListener("scroll",H,!1),function(){e.forEach((function(e){return e.removeEventListener("scroll",H)})),window.removeEventListener("resize",H),window.removeEventListener("scroll",H),g.removeEventListener("scroll",H)}}}),[g]),n.useEffect((function(){I.isHiddenScrollBar||P((function(e){var t=p.current;return t?(0,S.A)((0,S.A)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[I.isHiddenScrollBar]),y<=w||!C||I.isHiddenScrollBar?null:n.createElement("div",{style:{height:ze(),width:w,bottom:f},className:"".concat(v,"-sticky-scroll")},n.createElement("div",{onMouseDown:function(e){e.persist(),O.current.delta=e.pageX-I.scrollLeft,O.current.x=0,D(!0),e.preventDefault()},ref:x,className:M()("".concat(v,"-sticky-scroll-bar"),(0,k.A)({},"".concat(v,"-sticky-scroll-bar-active"),z)),style:{width:"".concat(C,"px"),transform:"translate3d(".concat(I.scrollLeft,"px, 0, 0)")}}))};const wt=n.forwardRef(yt);var Ct="rc-table",xt=[],At={};function Et(){return"No Data"}function St(e,t){var o=(0,S.A)({rowKey:"key",prefixCls:Ct,emptyText:Et},e),r=o.prefixCls,i=o.className,d=o.rowClassName,p=o.style,h=o.data,m=o.rowKey,g=o.scroll,b=o.tableLayout,v=o.direction,y=o.title,w=o.footer,C=o.summary,x=o.caption,R=o.id,O=o.showHeader,T=o.components,D=o.emptyText,L=o.onRow,F=o.onHeaderRow,H=o.onScroll,B=o.internalHooks,_=o.transformColumns,G=o.internalRefs,K=o.tailor,U=o.getContainerWidth,X=o.sticky,Y=o.rowHoverable,Q=void 0===Y||Y,J=h||xt,Z=!!J.length,ee=B===a,te=n.useCallback((function(e,t){return(0,P.A)(T,e)||t}),[T]),oe=n.useMemo((function(){return"function"==typeof m?m:function(e){return e&&e[m]}}),[m]),ne=te(["body"]),re=function(){var e=n.useState(-1),t=(0,l.A)(e,2),o=t[0],r=t[1],i=n.useState(-1),a=(0,l.A)(i,2),s=a[0],c=a[1];return[o,s,n.useCallback((function(e,t){r(e),c(t)}),[])]}(),ie=(0,l.A)(re,3),ae=ie[0],le=ie[1],se=ie[2],ce=function(e,t,o){var r=function(e){var t,o=e.expandable,n=(0,j.A)(e,Qe);return!1===(t="expandable"in e?(0,S.A)((0,S.A)({},n),o):n).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),i=r.expandIcon,s=r.expandedRowKeys,c=r.defaultExpandedRowKeys,u=r.defaultExpandAllRows,d=r.expandedRowRender,p=r.onExpand,h=r.onExpandedRowsChange,m=i||Ve,f=r.childrenColumnName||"children",g=n.useMemo((function(){return d?"row":!!(e.expandable&&e.internalHooks===a&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===(0,E.A)(e)&&e[f]})))&&"nest"}),[!!d,t]),b=n.useState((function(){return c||(u?function(e,t,o){var n=[];return function e(r){(r||[]).forEach((function(r,i){n.push(t(r,i)),e(r[o])}))}(e),n}(t,o,f):[])})),v=(0,l.A)(b,2),y=v[0],w=v[1],C=n.useMemo((function(){return new Set(s||y||[])}),[s,y]),x=n.useCallback((function(e){var n,r=o(e,t.indexOf(e)),i=C.has(r);i?(C.delete(r),n=(0,tt.A)(C)):n=[].concat((0,tt.A)(C),[r]),w(n),p&&p(!i,e),h&&h(n)}),[o,C,t,p,h]);return[r,g,C,m,f,x]}(o,J,oe),ue=(0,l.A)(ce,6),de=ue[0],pe=ue[1],he=ue[2],me=ue[3],fe=ue[4],ge=ue[5],be=null==g?void 0:g.x,ve=n.useState(0),ye=(0,l.A)(ve,2),we=ye[0],Ce=ye[1],xe=ht((0,S.A)((0,S.A)((0,S.A)({},o),de),{},{expandable:!!de.expandedRowRender,columnTitle:de.columnTitle,expandedKeys:he,getRowKey:oe,onTriggerExpand:ge,expandIcon:me,expandIconColumnIndex:de.expandIconColumnIndex,direction:v,scrollWidth:ee&&K&&"number"==typeof be?be:null,clientWidth:we}),ee?_:null),Ae=(0,l.A)(xe,4),Ee=Ae[0],Se=Ae[1],ke=Ae[2],Re=Ae[3],Ie=null!=ke?ke:be,Oe=n.useMemo((function(){return{columns:Ee,flattenColumns:Se}}),[Ee,Se]),Te=n.useRef(),$e=n.useRef(),ze=n.useRef(),Le=n.useRef();n.useImperativeHandle(t,(function(){return{nativeElement:Te.current,scrollTo:function(e){var t,o;if(ze.current instanceof HTMLElement){var n=e.index,r=e.top,i=e.key;if("number"!=typeof(o=r)||Number.isNaN(o)){var a,l=null!=i?i:oe(J[n]);null===(a=ze.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var s;null===(s=ze.current)||void 0===s||s.scrollTo({top:r})}}else null!==(t=ze.current)&&void 0!==t&&t.scrollTo&&ze.current.scrollTo(e)}}}));var Fe,He,je,Be=n.useRef(),_e=n.useState(!1),We=(0,l.A)(_e,2),Ge=We[0],Ke=We[1],Ue=n.useState(!1),qe=(0,l.A)(Ue,2),Xe=qe[0],Je=qe[1],Ze=n.useState(new Map),ot=(0,l.A)(Ze,2),nt=ot[0],it=ot[1],lt=$(Se).map((function(e){return nt.get(e)})),st=n.useMemo((function(){return lt}),[lt.join("_")]),ct=function(e,t,o){return(0,n.useMemo)((function(){var n=t.length,r=function(o,n,r){for(var i=[],a=0,l=o;l!==n;l+=r)i.push(a),t[l].fixed&&(a+=e[l]||0);return i},i=r(0,n,1),a=r(n-1,-1,-1).reverse();return"rtl"===o?{left:a,right:i}:{left:i,right:a}}),[e,t,o])}(st,Se,v),ut=g&&z(g.y),dt=g&&z(Ie)||Boolean(de.fixed),pt=dt&&Se.some((function(e){return e.fixed})),gt=n.useRef(),bt=function(e,t){var o="object"===(0,E.A)(e)?e:{},r=o.offsetHeader,i=void 0===r?0:r,a=o.offsetSummary,l=void 0===a?0:a,s=o.offsetScroll,c=void 0===s?0:s,u=o.getContainer,d=(void 0===u?function(){return mt}:u)()||mt,p=!!e;return n.useMemo((function(){return{isSticky:p,stickyClassName:p?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:c,container:d}}),[p,c,i,l,t,d])}(X,r),vt=bt.isSticky,yt=bt.offsetHeader,St=bt.offsetSummary,kt=bt.offsetScroll,Rt=bt.stickyClassName,Mt=bt.container,It=n.useMemo((function(){return null==C?void 0:C(J)}),[C,J]),Pt=(ut||vt)&&n.isValidElement(It)&&It.type===V&&It.props.fixed;ut&&(He={overflowY:Z?"scroll":"auto",maxHeight:g.y}),dt&&(Fe={overflowX:"auto"},ut||(He={overflowY:"hidden"}),je={width:!0===Ie?"auto":Ie,minWidth:"100%"});var Ot=n.useCallback((function(e,t){it((function(o){if(o.get(e)!==t){var n=new Map(o);return n.set(e,t),n}return o}))}),[]),Tt=function(){var e=(0,n.useRef)(null),t=(0,n.useRef)();function o(){window.clearTimeout(t.current)}return(0,n.useEffect)((function(){return o}),[]),[function(n){e.current=n,o(),t.current=window.setTimeout((function(){e.current=null,t.current=void 0}),100)},function(){return e.current}]}(),$t=(0,l.A)(Tt,2),zt=$t[0],Dt=$t[1];function Lt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Ft=(0,s.A)((function(e){var t,o=e.currentTarget,n=e.scrollLeft,r="rtl"===v,i="number"==typeof n?n:o.scrollLeft,a=o||At;Dt()&&Dt()!==a||(zt(a),Lt(i,$e.current),Lt(i,ze.current),Lt(i,Be.current),Lt(i,null===(t=gt.current)||void 0===t?void 0:t.setScrollLeft));var l=o||$e.current;if(l){var s=ee&&K&&"number"==typeof Ie?Ie:l.scrollWidth,c=l.clientWidth;if(s===c)return Ke(!1),void Je(!1);r?(Ke(-i0)):(Ke(i>0),Je(i2&&void 0!==arguments[2]&&arguments[2],n=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return o&&n?(clearTimeout(a.current),i.current=!1):n&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&n}};const Dt=function(){function e(){(0,ye.A)(this,e),(0,k.A)(this,"maps",void 0),(0,k.A)(this,"id",0),(0,k.A)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,we.A)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function Lt(e){var t=parseFloat(e);return isNaN(t)?0:t}var Ft=14/15;function Nt(e){return Math.floor(Math.pow(e,.5))}function Ht(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var jt=n.forwardRef((function(e,t){var o=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,s=e.onStartMove,c=e.onStopMove,u=e.onScroll,d=e.horizontal,p=e.spinSize,h=e.containerSize,m=e.style,f=e.thumbStyle,g=e.showScrollBar,b=n.useState(!1),v=(0,l.A)(b,2),y=v[0],w=v[1],C=n.useState(null),x=(0,l.A)(C,2),A=x[0],E=x[1],R=n.useState(null),I=(0,l.A)(R,2),P=I[0],O=I[1],T=!r,$=n.useRef(),z=n.useRef(),D=n.useState(g),L=(0,l.A)(D,2),F=L[0],N=L[1],H=n.useRef(),j=function(){!0!==g&&!1!==g&&(clearTimeout(H.current),N(!0),H.current=setTimeout((function(){N(!1)}),3e3))},B=a-h||0,_=h-p||0,V=n.useMemo((function(){return 0===i||0===B?0:i/B*_}),[i,B,_]),W=n.useRef({top:V,dragging:y,pageY:A,startTop:P});W.current={top:V,dragging:y,pageY:A,startTop:P};var G=function(e){w(!0),E(Ht(e,d)),O(W.current.top),s(),e.stopPropagation(),e.preventDefault()};n.useEffect((function(){var e=function(e){e.preventDefault()},t=$.current,o=z.current;return t.addEventListener("touchstart",e,{passive:!1}),o.addEventListener("touchstart",G,{passive:!1}),function(){t.removeEventListener("touchstart",e),o.removeEventListener("touchstart",G)}}),[]);var K=n.useRef();K.current=B;var U=n.useRef();U.current=_,n.useEffect((function(){if(y){var e,t=function(t){var o=W.current,n=o.dragging,r=o.pageY,i=o.startTop;bt.A.cancel(e);var a=$.current.getBoundingClientRect(),l=h/(d?a.width:a.height);if(n){var s=(Ht(t,d)-r)*l,c=i;!T&&d?c-=s:c+=s;var p=K.current,m=U.current,f=m?c/m:0,g=Math.ceil(f*p);g=Math.max(g,0),g=Math.min(g,p),e=(0,bt.A)((function(){u(g,d)}))}},o=function(){w(!1),c()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",o,{passive:!0}),window.addEventListener("touchend",o,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",o),window.removeEventListener("touchend",o),bt.A.cancel(e)}}}),[y]),n.useEffect((function(){return j(),function(){clearTimeout(H.current)}}),[i]),n.useImperativeHandle(t,(function(){return{delayHidden:j}}));var q="".concat(o,"-scrollbar"),X={position:"absolute",visibility:F?null:"hidden"},Y={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(X,{height:8,left:0,right:0,bottom:0}),Object.assign(Y,(0,k.A)({height:"100%",width:p},T?"left":"right",V))):(Object.assign(X,(0,k.A)({width:8,top:0,bottom:0},T?"right":"left",0)),Object.assign(Y,{width:"100%",height:p,top:V})),n.createElement("div",{ref:$,className:M()(q,(0,k.A)((0,k.A)((0,k.A)({},"".concat(q,"-horizontal"),d),"".concat(q,"-vertical"),!d),"".concat(q,"-visible"),F)),style:(0,S.A)((0,S.A)({},X),m),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:j},n.createElement("div",{ref:z,className:M()("".concat(q,"-thumb"),(0,k.A)({},"".concat(q,"-thumb-moving"),y)),style:(0,S.A)((0,S.A)({},Y),f),onMouseDown:G}))}));const Bt=jt;function _t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var Vt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Wt=[],Gt={overflowY:"auto",overflowAnchor:"none"};function Kt(e,t){var o=e.prefixCls,r=void 0===o?"rc-virtual-list":o,i=e.className,a=e.height,s=e.itemHeight,u=e.fullHeight,p=void 0===u||u,h=e.style,m=e.data,g=e.children,b=e.itemKey,v=e.virtual,y=e.direction,w=e.scrollWidth,C=e.component,x=void 0===C?"div":C,A=e.onScroll,R=e.onVirtualScroll,I=e.onVisibleChange,P=e.innerProps,O=e.extraRender,T=e.styles,$=e.showScrollBar,z=void 0===$?"optional":$,L=(0,j.A)(e,Vt),F=n.useCallback((function(e){return"function"==typeof b?b(e):null==e?void 0:e[b]}),[b]),N=function(e){var t=n.useState(0),o=(0,l.A)(t,2),r=o[0],i=o[1],a=(0,n.useRef)(new Map),s=(0,n.useRef)(new Dt),c=(0,n.useRef)(0);function u(){c.current+=1}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){var e=!1;a.current.forEach((function(t,o){if(t&&t.offsetParent){var n=t.offsetHeight,r=getComputedStyle(t),i=r.marginTop,a=r.marginBottom,l=n+Lt(i)+Lt(a);s.current.get(o)!==l&&(s.current.set(o,l),e=!0)}})),e&&i((function(e){return e+1}))};if(e)t();else{c.current+=1;var o=c.current;Promise.resolve().then((function(){o===c.current&&t()}))}}return(0,n.useEffect)((function(){return u}),[]),[function(t,o){var n=e(t);a.current.get(n);o?(a.current.set(n,o),d()):a.current.delete(n)},d,s.current,r]}(F),H=(0,l.A)(N,4),B=H[0],_=H[1],V=H[2],W=H[3],G=!(!1===v||!a||!s),K=n.useMemo((function(){return Object.values(V.maps).reduce((function(e,t){return e+t}),0)}),[V.id,V.maps]),U=G&&m&&(Math.max(s*m.length,K)>a||!!w),q="rtl"===y,X=M()(r,(0,k.A)({},"".concat(r,"-rtl"),q),i),Y=m||Wt,Q=(0,n.useRef)(),J=(0,n.useRef)(),Z=(0,n.useRef)(),ee=(0,n.useState)(0),te=(0,l.A)(ee,2),oe=te[0],ne=te[1],re=(0,n.useState)(0),ie=(0,l.A)(re,2),ae=ie[0],le=ie[1],se=(0,n.useState)(!1),ce=(0,l.A)(se,2),ue=ce[0],de=ce[1],pe=function(){de(!0)},he=function(){de(!1)},me={getKey:F};function fe(e){ne((function(t){var o=function(e){var t=e;return Number.isNaN(De.current)||(t=Math.min(t,De.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return Q.current.scrollTop=o,o}))}var ge=(0,n.useRef)({start:0,end:Y.length}),be=(0,n.useRef)(),ve=function(e,t,o){var r=n.useState(e),i=(0,l.A)(r,2),a=i[0],s=i[1],c=n.useState(null),u=(0,l.A)(c,2),d=u[0],p=u[1];return n.useEffect((function(){var n=function(e,t,o){var n,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i=oe&&void 0===t&&(t=l,o=r),p>oe+a&&void 0===n&&(n=l),r=p}return void 0===t&&(t=0,o=0,n=Math.ceil(a/s)),void 0===n&&(n=Y.length-1),{scrollHeight:r,start:t,end:n=Math.min(n+1,Y.length-1),offset:o}}),[U,G,oe,Y,W,a]),Ce=we.scrollHeight,xe=we.start,Ae=we.end,Ee=we.offset;ge.current.start=xe,ge.current.end=Ae,n.useLayoutEffect((function(){var e=V.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],o=e.get(t),n=Y[xe];if(n&&void 0===o&&F(n)===t){var r=V.get(t)-s;fe((function(e){return e+r}))}}V.resetRecord()}),[Ce]);var Se=n.useState({width:0,height:a}),ke=(0,l.A)(Se,2),Re=ke[0],Ie=ke[1],Pe=(0,n.useRef)(),Oe=(0,n.useRef)(),Te=n.useMemo((function(){return _t(Re.width,w)}),[Re.width,w]),$e=n.useMemo((function(){return _t(Re.height,Ce)}),[Re.height,Ce]),ze=Ce-a,De=(0,n.useRef)(ze);De.current=ze;var Le=oe<=0,Fe=oe>=ze,Ne=ae<=0,He=ae>=w,je=zt(Le,Fe,Ne,He),Be=function(){return{x:q?-ae:ae,y:oe}},_e=(0,n.useRef)(Be()),Ve=(0,D._q)((function(e){if(R){var t=(0,S.A)((0,S.A)({},Be()),e);_e.current.x===t.x&&_e.current.y===t.y||(R(t),_e.current=t)}}));function We(e,t){var o=e;t?((0,d.flushSync)((function(){le(o)})),Ve()):fe(o)}var Ge=function(e){var t=e,o=w?w-Re.width:0;return t=Math.max(t,0),Math.min(t,o)},Ke=(0,D._q)((function(e,t){t?((0,d.flushSync)((function(){le((function(t){return Ge(t+(q?-e:e))}))})),Ve()):fe((function(t){return t+e}))})),Ue=function(e,t,o,r,i,a,l){var s=(0,n.useRef)(0),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useRef)(!1),p=zt(t,o,r,i),h=(0,n.useRef)(null),m=(0,n.useRef)(null);return[function(t){if(e){bt.A.cancel(m.current),m.current=(0,bt.A)((function(){h.current=null}),2);var o=t.deltaX,n=t.deltaY,r=t.shiftKey,i=o,f=n;("sx"===h.current||!h.current&&r&&n&&!o)&&(i=n,f=0,h.current="sx");var g=Math.abs(i),b=Math.abs(f);null===h.current&&(h.current=a&&g>b?"x":"y"),"y"===h.current?function(e,t){if(bt.A.cancel(c.current),!p(!1,t)){var o=e;o._virtualHandled||(o._virtualHandled=!0,s.current+=t,u.current=t,$t||o.preventDefault(),c.current=(0,bt.A)((function(){var e=d.current?10:1;l(s.current*e,!1),s.current=0})))}}(t,f):function(e,t){l(t,!0),$t||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}(G,Le,Fe,Ne,He,!!w,Ke),qe=(0,l.A)(Ue,2),Xe=qe[0],Ye=qe[1];!function(e,t,o){var r,i=(0,n.useRef)(!1),a=(0,n.useRef)(0),l=(0,n.useRef)(0),s=(0,n.useRef)(null),u=(0,n.useRef)(null),d=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),r=a.current-t,s=l.current-n,c=Math.abs(r)>Math.abs(s);c?a.current=t:l.current=n;var d=o(c,c?r:s,!1,e);d&&e.preventDefault(),clearInterval(u.current),d&&(u.current=setInterval((function(){c?r*=Ft:s*=Ft;var e=Math.floor(c?r:s);(!o(c,e,!0)||Math.abs(e)<=.1)&&clearInterval(u.current)}),16))}},p=function(){i.current=!1,r()},h=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",d,{passive:!1}),s.current.addEventListener("touchend",p,{passive:!0}))};r=function(){s.current&&(s.current.removeEventListener("touchmove",d),s.current.removeEventListener("touchend",p))},(0,c.A)((function(){return e&&t.current.addEventListener("touchstart",h,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",h),r(),clearInterval(u.current)}}),[e])}(G,Q,(function(e,t,o,n){var r=n;return!(je(e,t,o)||r&&r._virtualHandled||(r&&(r._virtualHandled=!0),Xe({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))})),function(e,t){n.useEffect((function(){var o=t.current;if(e&&o){var n,r,i=!1,a=function(){bt.A.cancel(n)},l=function e(){a(),n=(0,bt.A)((function(){var t;t=r,fe((function(e){return e+t})),e()}))},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,i=!0)}},c=function(){i=!1,a()},u=function(e){if(i){var t=Ht(e,!1),n=o.getBoundingClientRect(),s=n.top,c=n.bottom;t<=s?(r=-Nt(s-t),l()):t>=c?(r=Nt(t-c),l()):a()}};return o.addEventListener("mousedown",s),o.ownerDocument.addEventListener("mouseup",c),o.ownerDocument.addEventListener("mousemove",u),function(){o.removeEventListener("mousedown",s),o.ownerDocument.removeEventListener("mouseup",c),o.ownerDocument.removeEventListener("mousemove",u),a()}}}),[e])}(U,Q),(0,c.A)((function(){function e(e){var t=Le&&e.detail<0,o=Fe&&e.detail>0;!G||t||o||e.preventDefault()}var t=Q.current;return t.addEventListener("wheel",Xe,{passive:!1}),t.addEventListener("DOMMouseScroll",Ye,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Xe),t.removeEventListener("DOMMouseScroll",Ye),t.removeEventListener("MozMousePixelScroll",e)}}),[G,Le,Fe]),(0,c.A)((function(){if(w){var e=Ge(ae);le(e),Ve({x:e})}}),[Re.width,w]);var Qe=function(){var e,t;null===(e=Pe.current)||void 0===e||e.delayHidden(),null===(t=Oe.current)||void 0===t||t.delayHidden()},Je=function(e,t,o,r,i,a,s,u){var d=n.useRef(),p=n.useState(null),h=(0,l.A)(p,2),m=h[0],f=h[1];return(0,c.A)((function(){if(m&&m.times<10){if(!e.current)return void f((function(e){return(0,S.A)({},e)}));a();var n=m.targetAlign,l=m.originAlign,c=m.index,u=m.offset,d=e.current.clientHeight,p=!1,h=n,g=null;if(d){for(var b=n||l,v=0,y=0,w=0,C=Math.min(t.length-1,c),x=0;x<=C;x+=1){var A=i(t[x]);y=v;var E=o.get(A);v=w=y+(void 0===E?r:E)}for(var k="top"===b?u:d-u,R=C;R>=0;R-=1){var M=i(t[R]),I=o.get(M);if(void 0===I){p=!0;break}if((k-=I)<=0)break}switch(b){case"top":g=y-u;break;case"bottom":g=w-d+u;break;default:var P=e.current.scrollTop;yP+d&&(h="bottom")}null!==g&&s(g),g!==m.lastTop&&(p=!0)}p&&f((0,S.A)((0,S.A)({},m),{},{times:m.times+1,targetAlign:h,lastTop:g}))}}),[m,e.current]),function(e){if(null!=e){if(bt.A.cancel(d.current),"number"==typeof e)s(e);else if(e&&"object"===(0,E.A)(e)){var o,n=e.align;o="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var r=e.offset;f({times:0,index:o,offset:void 0===r?0:r,originAlign:n})}}else u()}}(Q,Y,V,s,F,(function(){return _(!0)}),fe,Qe);n.useImperativeHandle(t,(function(){return{nativeElement:Z.current,getScrollInfo:Be,scrollTo:function(e){var t;(t=e)&&"object"===(0,E.A)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&le(Ge(e.left)),Je(e.top)):Je(e)}}})),(0,c.A)((function(){if(I){var e=Y.slice(xe,Ae+1);I(e,Y)}}),[xe,Ae,Y]);var Ze=function(e,t,o,r){var i=n.useMemo((function(){return[new Map,[]]}),[e,o.id,r]),a=(0,l.A)(i,2),s=a[0],c=a[1];return function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,a=s.get(n),l=s.get(i);if(void 0===a||void 0===l)for(var u=e.length,d=c.length;da&&n.createElement(Bt,{ref:Pe,prefixCls:r,scrollOffset:oe,scrollRange:Ce,rtl:q,onScroll:We,onStartMove:pe,onStopMove:he,spinSize:$e,containerSize:Re.height,style:null==T?void 0:T.verticalScrollBar,thumbStyle:null==T?void 0:T.verticalScrollBarThumb,showScrollBar:z}),U&&w>Re.width&&n.createElement(Bt,{ref:Oe,prefixCls:r,scrollOffset:ae,scrollRange:w,rtl:q,onScroll:We,onStartMove:pe,onStopMove:he,spinSize:Te,containerSize:Re.width,horizontal:!0,style:null==T?void 0:T.horizontalScrollBar,thumbStyle:null==T?void 0:T.horizontalScrollBarThumb,showScrollBar:z}))}var Ut=n.forwardRef(Kt);Ut.displayName="List";const qt=Ut;var Xt=h(null),Yt=h(null);const Qt=function(e){var t=e.rowInfo,o=e.column,r=e.colIndex,i=e.indent,a=e.index,l=e.component,s=e.renderIndex,c=e.record,u=e.style,d=e.className,p=e.inverse,h=e.getHeight,g=o.render,b=o.dataIndex,v=o.className,y=o.width,w=m(Yt,["columnsOffset"]).columnsOffset,C=Ge(t,o,r,i,a),x=C.key,A=C.fixedInfo,E=C.appendCellNode,k=C.additionalCellProps,R=k.style,I=k.colSpan,P=void 0===I?1:I,O=k.rowSpan,T=void 0===O?1:O,$=function(e,t,o){return o[e+(t||1)]-(o[e]||0)}(r-1,P,w),z=P>1?y-$:0,D=(0,S.A)((0,S.A)((0,S.A)({},R),u),{},{flex:"0 0 ".concat($,"px"),width:"".concat($,"px"),marginRight:z,pointerEvents:"auto"}),L=n.useMemo((function(){return p?T<=1:0===P||0===T||T>1}),[T,P,p]);L?D.visibility="hidden":p&&(D.height=null==h?void 0:h(T));var N=L?function(){return null}:g,H={};return 0!==T&&0!==P||(H.rowSpan=1,H.colSpan=1),n.createElement(F,(0,f.A)({className:M()(v,d),ellipsis:o.ellipsis,align:o.align,scope:o.rowScope,component:l,prefixCls:t.prefixCls,key:x,record:c,index:a,renderIndex:s,dataIndex:b,render:N,shouldCellUpdate:o.shouldCellUpdate},A,{appendNode:E,additionalProps:(0,S.A)((0,S.A)({},k),{},{style:D},H)}))};var Jt=["data","index","className","rowKey","style","extra","getHeight"],Zt=n.forwardRef((function(e,t){var o,r=e.data,i=e.index,a=e.className,l=e.rowKey,s=e.style,c=e.extra,u=e.getHeight,d=(0,j.A)(e,Jt),p=r.record,h=r.indent,g=r.index,b=m(A,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),v=b.scrollX,y=b.flattenColumns,w=b.prefixCls,C=b.fixColumn,x=b.componentWidth,E=m(Xt,["getComponent"]).getComponent,R=Be(p,l,i,h),I=E(["body","row"],"div"),P=E(["body","cell"],"div"),O=R.rowSupportExpand,T=R.expanded,$=R.rowProps,z=R.expandedRowRender,D=R.expandedRowClassName;if(O&&T){var L=z(p,i,h+1,T),N=We(D,p,i,h),H={};C&&(H={style:(0,k.A)({},"--virtual-width","".concat(x,"px"))});var B="".concat(w,"-expanded-row-cell");o=n.createElement(I,{className:M()("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(h+1),N)},n.createElement(F,{component:P,prefixCls:w,className:M()(B,(0,k.A)({},"".concat(B,"-fixed"),C)),additionalProps:H},L))}var _=(0,S.A)((0,S.A)({},s),{},{width:v});c&&(_.position="absolute",_.pointerEvents="none");var V=n.createElement(I,(0,f.A)({},$,d,{"data-row-key":l,ref:O?null:t,className:M()(a,"".concat(w,"-row"),null==$?void 0:$.className,(0,k.A)({},"".concat(w,"-row-extra"),c)),style:(0,S.A)((0,S.A)({},_),null==$?void 0:$.style)}),y.map((function(e,t){return n.createElement(Qt,{key:t,component:P,rowInfo:R,column:e,colIndex:t,indent:h,index:i,renderIndex:g,record:p,inverse:c,getHeight:u})})));return O?n.createElement("div",{ref:t},V,o):V}));const eo=C(Zt);var to=n.forwardRef((function(e,t){var o=e.data,r=e.onScroll,i=m(A,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=i.flattenColumns,s=i.onColumnResize,c=i.getRowKey,u=i.expandedKeys,d=i.prefixCls,p=i.childrenColumnName,h=i.scrollX,f=i.direction,g=m(Xt),b=g.sticky,v=g.scrollY,y=g.listItemHeight,w=g.getComponent,C=g.onScroll,x=n.useRef(),S=je(o,p,u,c),k=n.useMemo((function(){var e=0;return a.map((function(t){var o=t.width;return[t.key,o,e+=o]}))}),[a]),R=n.useMemo((function(){return k.map((function(e){return e[2]}))}),[k]);n.useEffect((function(){k.forEach((function(e){var t=(0,l.A)(e,2),o=t[0],n=t[1];s(o,n)}))}),[k]),n.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=x.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),t}));var M=function(e,t){var o,n=null===(o=S[t])||void 0===o?void 0:o.record,r=e.onCell;if(r){var i,a=r(n,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},I=n.useMemo((function(){return{columnsOffset:R}}),[R]),P="".concat(d,"-tbody"),O=w(["body","wrapper"]),T={};return b&&(T.position="sticky",T.bottom=0,"object"===(0,E.A)(b)&&b.offsetScroll&&(T.bottom=b.offsetScroll)),n.createElement(Yt.Provider,{value:I},n.createElement(qt,{fullHeight:!1,ref:x,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:T},className:P,height:v,itemHeight:y||24,data:S,itemKey:function(e){return c(e.record)},component:O,scrollWidth:h,direction:f,onVirtualScroll:function(e){var t,o=e.x;r({currentTarget:null===(t=x.current)||void 0===t?void 0:t.nativeElement,scrollLeft:o})},onScroll:C,extraRender:function(e){var t=e.start,o=e.end,r=e.getSize,i=e.offsetY;if(o<0)return null;for(var l=a.filter((function(e){return 0===M(e,t)})),s=t,u=function(e){if(!(l=l.filter((function(t){return 0===M(t,e)}))).length)return s=e,1},d=t;d>=0&&!u(d);d-=1);for(var p=a.filter((function(e){return 1!==M(e,o)})),h=o,m=function(e){if(!(p=p.filter((function(t){return 1!==M(t,e)}))).length)return h=Math.max(e-1,o),1},f=o;f1}))&&g.push(e)},v=s;v<=h;v+=1)b(v);return g.map((function(e){var t=S[e],o=c(t.record,e),a=r(o);return n.createElement(eo,{key:e,data:t,rowKey:o,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var n=e+t-1,i=c(S[n].record,n),a=r(o,i);return a.bottom-a.top}})}))}},(function(e,t,o){var r=c(e.record,t);return n.createElement(eo,{data:e,rowKey:r,index:t,style:o.style})})))}));const oo=C(to);var no=function(e,t){var o=t.ref,r=t.onScroll;return n.createElement(oo,{ref:o,data:e,onScroll:r})};function ro(e,t){var o=e.data,r=e.columns,i=e.scroll,l=e.sticky,s=e.prefixCls,c=void 0===s?Ct:s,u=e.className,d=e.listItemHeight,p=e.components,h=e.onScroll,m=i||{},g=m.x,b=m.y;"number"!=typeof g&&(g=1),"number"!=typeof b&&(b=500);var v=(0,D._q)((function(e,t){return(0,P.A)(p,e)||t})),y=(0,D._q)(h),w=n.useMemo((function(){return{sticky:l,scrollY:b,listItemHeight:d,getComponent:v,onScroll:y}}),[l,b,d,v,y]);return n.createElement(Xt.Provider,{value:w},n.createElement(It,(0,f.A)({},e,{className:M()(u,"".concat(c,"-virtual")),scroll:(0,S.A)((0,S.A)({},i),{},{x:g}),components:(0,S.A)((0,S.A)({},p),{},{body:null!=o&&o.length?no:void 0}),columns:r,internalHooks:a,tailor:!0,ref:t})))}var io=n.forwardRef(ro);function ao(e){return w(io,e)}ao();const lo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var so=o(45748),co=o(61053);function uo(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function po(e){return function(e){return uo(e)instanceof ShadowRoot}(e)?uo(e):null}function ho(e){return"object"===(0,E.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,E.A)(e.icon)||"function"==typeof e.icon)}function mo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,o){var n,r=e[o];return"class"===o?(t.className=r,delete t.class):(delete t[o],t[(n=o,n.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=r),t}),{})}function fo(e,t,o){return o?n.createElement(e.tag,(0,S.A)((0,S.A)({key:t},mo(e.attrs)),o),(e.children||[]).map((function(o,n){return fo(o,"".concat(t,"-").concat(e.tag,"-").concat(n))}))):n.createElement(e.tag,(0,S.A)({key:t},mo(e.attrs)),(e.children||[]).map((function(o,n){return fo(o,"".concat(t,"-").concat(e.tag,"-").concat(n))})))}function go(e){return(0,so.cM)(e)[0]}function bo(e){return e?Array.isArray(e)?e:[e]:[]}var vo=["icon","className","onClick","style","primaryColor","secondaryColor"],yo={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},wo=function(e){var t,o,r,i,a,l,s,c,u=e.icon,d=e.className,p=e.onClick,h=e.style,m=e.primaryColor,f=e.secondaryColor,g=(0,j.A)(e,vo),b=n.useRef(),v=yo;if(m&&(v={primaryColor:m,secondaryColor:f||go(m)}),t=b,o=(0,n.useContext)(co.A),r=o.csp,i=o.prefixCls,a=o.layer,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(l=l.replace(/anticon/g,i)),a&&(l="@layer ".concat(a," {\n").concat(l,"\n}")),(0,n.useEffect)((function(){var e=po(t.current);(0,Te.BD)(l,"@ant-design-icons",{prepend:!a,csp:r,attachTo:e})}),[]),s=ho(u),c="icon should be icon definiton, but got ".concat(u),(0,O.Ay)(s,"[@ant-design/icons] ".concat(c)),!ho(u))return null;var y=u;return y&&"function"==typeof y.icon&&(y=(0,S.A)((0,S.A)({},y),{},{icon:y.icon(v.primaryColor,v.secondaryColor)})),fo(y.icon,"svg-".concat(y.name),(0,S.A)((0,S.A)({className:d,onClick:p,style:h,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:b}))};wo.displayName="IconReact",wo.getTwoToneColors=function(){return(0,S.A)({},yo)},wo.setTwoToneColors=function(e){var t=e.primaryColor,o=e.secondaryColor;yo.primaryColor=t,yo.secondaryColor=o||go(t),yo.calculated=!!o};const Co=wo;function xo(e){var t=bo(e),o=(0,l.A)(t,2),n=o[0],r=o[1];return Co.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Ao=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];xo(so.z1.primary);var Eo=n.forwardRef((function(e,t){var o=e.className,r=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,u=e.twoToneColor,d=(0,j.A)(e,Ao),p=n.useContext(co.A),h=p.prefixCls,m=void 0===h?"anticon":h,g=p.rootClassName,b=M()(g,m,(0,k.A)((0,k.A)({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!i||"loading"===r.name),o),v=s;void 0===v&&c&&(v=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=bo(u),C=(0,l.A)(w,2),x=C[0],A=C[1];return n.createElement("span",(0,f.A)({role:"img","aria-label":r.name},d,{ref:t,tabIndex:v,onClick:c,className:b}),n.createElement(Co,{icon:r,primaryColor:x,secondaryColor:A,style:y}))}));Eo.displayName="AntdIcon",Eo.getTwoToneColor=function(){var e=Co.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Eo.setTwoToneColor=xo;const So=Eo;var ko=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:lo}))};const Ro=n.forwardRef(ko);var Mo=n.createContext(null),Io=n.createContext({}),Po=function(e){for(var t=e.prefixCls,o=e.level,r=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:null;return o.map((function(c,u){for(var d,p=Do(n?n.pos:"0",u),h=Lo(c[i],p),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},o=t.initWrapper,n=t.processEntity,r=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,s=i||(arguments.length>2?arguments[2]:void 0),c={},u={},d={posEntities:c,keyEntities:u};return o&&(d=o(d)||d),function(e,t,o){var r,i=("object"===(0,E.A)(o)?o:{externalGetKey:o})||{},a=i.childrenPropName,l=i.externalGetKey,s=Fo(i.fieldNames),p=s.key,h=s.children,m=a||h;l?"string"==typeof l?r=function(e){return e[l]}:"function"==typeof l&&(r=function(e){return l(e)}):r=function(e,t){return Lo(e[p],t)},function t(o,i,a,l){var s=o?o[m]:e,p=o?Do(a.pos,i):"0",h=o?[].concat((0,tt.A)(l),[o]):[];if(o){var f=r(o,p);!function(e){var t=e.node,o=e.index,r=e.pos,i=e.key,a=e.parentPos,l=e.level,s={node:t,nodes:e.nodes,index:o,key:i,pos:r,level:l},p=Lo(i,r);c[r]=s,u[p]=s,s.parent=c[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),n&&n(s,d)}({node:o,index:i,pos:p,key:f,parentPos:a.node?a.pos:null,level:a.level+1,nodes:h})}s&&s.forEach((function(e,n){t(e,n,{node:o,pos:p,level:a?a.level+1:-1},h)}))}(null)}(e,0,{externalGetKey:s,childrenPropName:a,fieldNames:l}),r&&r(d),d}function Bo(e,t){var o=t.expandedKeys,n=t.selectedKeys,r=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,c=t.dropPosition,u=To(t.keyEntities,e);return{eventKey:e,expanded:-1!==o.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function _o(e){var t=e.data,o=e.expanded,n=e.selected,r=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,s=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,p=e.active,h=e.eventKey,m=(0,S.A)((0,S.A)({},t),{},{expanded:o,selected:n,checked:r,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,key:h});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,O.Ay)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}var Vo=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Wo="open",Go="close",Ko=function(e){var t,o,r,i=e.eventKey,a=e.className,s=e.style,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,p=e.isLeaf,h=e.isStart,m=e.isEnd,g=e.expanded,b=e.selected,v=e.checked,y=e.halfChecked,w=e.loading,C=e.domRef,x=e.active,A=e.data,E=e.onMouseMove,R=e.selectable,I=(0,j.A)(e,Vo),P=n.useContext(Mo),O=n.useContext(Io),T=n.useRef(null),$=n.useState(!1),z=(0,l.A)($,2),D=z[0],L=z[1],F=!!(P.disabled||e.disabled||null!==(t=O.nodeDisabled)&&void 0!==t&&t.call(O,A)),N=n.useMemo((function(){return!(!P.checkable||!1===e.checkable)&&P.checkable}),[P.checkable,e.checkable]),H=function(t){F||N&&!e.disableCheckbox&&P.onNodeCheck(t,_o(e),!v)},B=n.useMemo((function(){return"boolean"==typeof R?R:P.selectable}),[R,P.selectable]),_=function(t){P.onNodeClick(t,_o(e)),B?function(t){F||P.onNodeSelect(t,_o(e))}(t):H(t)},V=function(t){P.onNodeDoubleClick(t,_o(e))},W=function(t){P.onNodeMouseEnter(t,_o(e))},G=function(t){P.onNodeMouseLeave(t,_o(e))},K=function(t){P.onNodeContextMenu(t,_o(e))},U=n.useMemo((function(){return!(!P.draggable||P.draggable.nodeDraggable&&!P.draggable.nodeDraggable(A))}),[P.draggable,A]),q=function(t){w||P.onNodeExpand(t,_o(e))},X=n.useMemo((function(){var e=(To(P.keyEntities,i)||{}).children;return Boolean((e||[]).length)}),[P.keyEntities,i]),Y=n.useMemo((function(){return!1!==p&&(p||!P.loadData&&!X||P.loadData&&e.loaded&&!X)}),[p,P.loadData,X,e.loaded]);n.useEffect((function(){w||"function"!=typeof P.loadData||!g||Y||e.loaded||P.onNodeLoad(_o(e))}),[w,P.loadData,P.onNodeLoad,g,Y,e]);var Q=n.useMemo((function(){var e;return null!==(e=P.draggable)&&void 0!==e&&e.icon?n.createElement("span",{className:"".concat(P.prefixCls,"-draggable-icon")},P.draggable.icon):null}),[P.draggable]),J=function(t){var o=e.switcherIcon||P.switcherIcon;return"function"==typeof o?o((0,S.A)((0,S.A)({},e),{},{isLeaf:t})):o},Z=n.useMemo((function(){if(!N)return null;var t="boolean"!=typeof N?N:null;return n.createElement("span",{className:M()("".concat(P.prefixCls,"-checkbox"),(0,k.A)((0,k.A)((0,k.A)({},"".concat(P.prefixCls,"-checkbox-checked"),v),"".concat(P.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(P.prefixCls,"-checkbox-disabled"),F||e.disableCheckbox)),onClick:H,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":F||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[N,v,y,F,e.disableCheckbox,e.title]),ee=n.useMemo((function(){return Y?null:g?Wo:Go}),[Y,g]),te=n.useMemo((function(){return n.createElement("span",{className:M()("".concat(P.prefixCls,"-iconEle"),"".concat(P.prefixCls,"-icon__").concat(ee||"docu"),(0,k.A)({},"".concat(P.prefixCls,"-icon_loading"),w))})}),[P.prefixCls,ee,w]),oe=n.useMemo((function(){var t=Boolean(P.draggable);return!e.disabled&&t&&P.dragOverNodeKey===i?P.dropIndicatorRender({dropPosition:P.dropPosition,dropLevelOffset:P.dropLevelOffset,indent:P.indent,prefixCls:P.prefixCls,direction:P.direction}):null}),[P.dropPosition,P.dropLevelOffset,P.indent,P.prefixCls,P.direction,P.draggable,P.dragOverNodeKey,P.dropIndicatorRender]),ne=n.useMemo((function(){var t,o,r=e.title,i=void 0===r?"---":r,a="".concat(P.prefixCls,"-node-content-wrapper");if(P.showIcon){var l=e.icon||P.icon;t=l?n.createElement("span",{className:M()("".concat(P.prefixCls,"-iconEle"),"".concat(P.prefixCls,"-icon__customize"))},"function"==typeof l?l(e):l):te}else P.loadData&&w&&(t=te);return o="function"==typeof i?i(A):P.titleRender?P.titleRender(A):i,n.createElement("span",{ref:T,title:"string"==typeof i?i:"",className:M()(a,"".concat(a,"-").concat(ee||"normal"),(0,k.A)({},"".concat(P.prefixCls,"-node-selected"),!F&&(b||D))),onMouseEnter:W,onMouseLeave:G,onContextMenu:K,onClick:_,onDoubleClick:V},t,n.createElement("span",{className:"".concat(P.prefixCls,"-title")},o),oe)}),[P.prefixCls,P.showIcon,e,P.icon,te,P.titleRender,A,ee,W,G,K,_,V]),re=Ne(I,{aria:!0,data:!0}),ie=(To(P.keyEntities,i)||{}).level,ae=m[m.length-1],le=!F&&U,se=P.draggingNodeKey===i,ce=void 0!==R?{"aria-selected":!!R}:void 0;return n.createElement("div",(0,f.A)({ref:C,role:"treeitem","aria-expanded":p?void 0:g,className:M()(a,"".concat(P.prefixCls,"-treenode"),(r={},(0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)(r,"".concat(P.prefixCls,"-treenode-disabled"),F),"".concat(P.prefixCls,"-treenode-switcher-").concat(g?"open":"close"),!p),"".concat(P.prefixCls,"-treenode-checkbox-checked"),v),"".concat(P.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(P.prefixCls,"-treenode-selected"),b),"".concat(P.prefixCls,"-treenode-loading"),w),"".concat(P.prefixCls,"-treenode-active"),x),"".concat(P.prefixCls,"-treenode-leaf-last"),ae),"".concat(P.prefixCls,"-treenode-draggable"),U),"dragging",se),(0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)(r,"drop-target",P.dropTargetKey===i),"drop-container",P.dropContainerKey===i),"drag-over",!F&&c),"drag-over-gap-top",!F&&u),"drag-over-gap-bottom",!F&&d),"filter-node",null===(o=P.filterTreeNode)||void 0===o?void 0:o.call(P,_o(e))),"".concat(P.prefixCls,"-treenode-leaf"),Y))),style:s,draggable:le,onDragStart:le?function(t){t.stopPropagation(),L(!0),P.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:U?function(t){t.preventDefault(),t.stopPropagation(),P.onNodeDragEnter(t,e)}:void 0,onDragOver:U?function(t){t.preventDefault(),t.stopPropagation(),P.onNodeDragOver(t,e)}:void 0,onDragLeave:U?function(t){t.stopPropagation(),P.onNodeDragLeave(t,e)}:void 0,onDrop:U?function(t){t.preventDefault(),t.stopPropagation(),L(!1),P.onNodeDrop(t,e)}:void 0,onDragEnd:U?function(t){t.stopPropagation(),L(!1),P.onNodeDragEnd(t,e)}:void 0,onMouseMove:E},ce,re),n.createElement(Oo,{prefixCls:P.prefixCls,level:ie,isStart:h,isEnd:m}),Q,function(){if(Y){var e=J(!0);return!1!==e?n.createElement("span",{className:M()("".concat(P.prefixCls,"-switcher"),"".concat(P.prefixCls,"-switcher-noop"))},e):null}var t=J(!1);return!1!==t?n.createElement("span",{onClick:q,className:M()("".concat(P.prefixCls,"-switcher"),"".concat(P.prefixCls,"-switcher_").concat(g?Wo:Go))},t):null}(),Z,ne)};Ko.isTreeNode=1;const Uo=Ko;function qo(e,t){if(!e)return[];var o=e.slice(),n=o.indexOf(t);return n>=0&&o.splice(n,1),o}function Xo(e,t){var o=(e||[]).slice();return-1===o.indexOf(t)&&o.push(t),o}function Yo(e){return e.split("-")}function Qo(e,t){var o=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var n=t.key,r=t.children;o.push(n),e(r)}))}(To(t,e).children),o}function Jo(e){if(e.parent){var t=Yo(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Zo(e,t,o,n,r,i,a,l,s,c){var u,d=e.clientX,p=e.clientY,h=e.target.getBoundingClientRect(),m=h.top,f=h.height,g=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/n,b=s.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),v=To(l,o.eventKey);if(p-1.5?i({dragNode:M,dropNode:I,dropPosition:1})?E=1:P=!1:i({dragNode:M,dropNode:I,dropPosition:0})?E=0:i({dragNode:M,dropNode:I,dropPosition:1})?E=1:P=!1:i({dragNode:M,dropNode:I,dropPosition:1})?E=1:P=!1,{dropPosition:E,dropLevelOffset:S,dropTargetKey:v.key,dropTargetPos:v.pos,dragOverNodeKey:A,dropContainerKey:0===E?null:(null===(u=v.parent)||void 0===u?void 0:u.key)||null,dropAllowed:P}}function en(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function tn(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,E.A)(e))return(0,O.Ay)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function on(e,t){var o=new Set;function n(e){if(!o.has(e)){var r=To(t,e);if(r){o.add(e);var i=r.parent;r.node.disabled||i&&n(i.key)}}}return(e||[]).forEach((function(e){n(e)})),(0,tt.A)(o)}function nn(e,t){var o=new Set;return e.forEach((function(e){t.has(e)||o.add(e)})),o}function rn(e){var t=e||{},o=t.disabled,n=t.disableCheckbox,r=t.checkable;return!(!o&&!n)||!1===r}function an(e,t,o,n){var r,i=[];r=n||rn;var a,l=new Set(e.filter((function(e){var t=!!To(o,e);return t||i.push(e),t}))),s=new Map,c=0;return Object.keys(o).forEach((function(e){var t=o[e],n=t.level,r=s.get(n);r||(r=new Set,s.set(n,r)),r.add(t),c=Math.max(c,n)})),(0,O.Ay)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,o,n){for(var r=new Set(e),i=new Set,a=0;a<=o;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,o=e.node,i=e.children,a=void 0===i?[]:i;r.has(t)&&!n(o)&&a.filter((function(e){return!n(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var l=new Set,s=o;s>=0;s-=1)(t.get(s)||new Set).forEach((function(e){var t=e.parent,o=e.node;if(!n(o)&&e.parent&&!l.has(e.parent.key))if(n(e.parent.node))l.add(t.key);else{var a=!0,s=!1;(t.children||[]).filter((function(e){return!n(e.node)})).forEach((function(e){var t=e.key,o=r.has(t);a&&!o&&(a=!1),s||!o&&!i.has(t)||(s=!0)})),a&&r.add(t.key),s&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(nn(i,r))}}(l,s,c,r):function(e,t,o,n,r){for(var i=new Set(e),a=new Set(t),l=0;l<=n;l+=1)(o.get(l)||new Set).forEach((function(e){var t=e.key,o=e.node,n=e.children,l=void 0===n?[]:n;i.has(t)||a.has(t)||r(o)||l.filter((function(e){return!r(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var s=new Set,c=n;c>=0;c-=1)(o.get(c)||new Set).forEach((function(e){var t=e.parent,o=e.node;if(!r(o)&&e.parent&&!s.has(e.parent.key))if(r(e.parent.node))s.add(t.key);else{var n=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,o=i.has(t);n&&!o&&(n=!1),l||!o&&!a.has(t)||(l=!0)})),n||i.delete(t.key),l&&a.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(nn(a,i))}}(l,t.halfCheckedKeys,s,c,r),a}var ln=o(12533),sn=o(18877),cn=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],un=(0,n.forwardRef)((function(e,t){var o=e.prefixCls,r=void 0===o?"rc-checkbox":o,i=e.className,a=e.style,s=e.checked,c=e.disabled,u=e.defaultChecked,d=void 0!==u&&u,p=e.type,h=void 0===p?"checkbox":p,m=e.title,g=e.onChange,b=(0,j.A)(e,cn),v=(0,n.useRef)(null),y=(0,n.useRef)(null),w=(0,ln.A)(d,{value:s}),C=(0,l.A)(w,2),x=C[0],A=C[1];(0,n.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=v.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=v.current)||void 0===e||e.blur()},input:v.current,nativeElement:y.current}}));var E=M()(r,i,(0,k.A)((0,k.A)({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),c));return n.createElement("span",{className:E,title:m,style:a,ref:y},n.createElement("input",(0,f.A)({},b,{className:"".concat(r,"-input"),ref:v,onChange:function(t){c||("checked"in e||A(t.target.checked),null==g||g({target:(0,S.A)((0,S.A)({},e),{},{type:h,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:c,checked:!!x,type:h})),n.createElement("span",{className:"".concat(r,"-inner")}))}));const dn=un;var pn=o(62279);function hn(e){return e&&n.isValidElement(e)&&e.type===n.Fragment}function mn(e,t){return((e,t,o)=>n.isValidElement(e)?n.cloneElement(e,"function"==typeof o?o(e.props||{}):o):t)(e,e,t)}var fn=o(77132),gn=o(9417);const bn=(0,we.A)((function e(){(0,ye.A)(this,e)}));var vn="CALC_UNIT",yn=new RegExp(vn,"g");function wn(e){return"number"==typeof e?"".concat(e).concat(vn):e}var Cn=function(e){(0,Ce.A)(o,e);var t=(0,xe.A)(o);function o(e,n){var r;(0,ye.A)(this,o),r=t.call(this),(0,k.A)((0,gn.A)(r),"result",""),(0,k.A)((0,gn.A)(r),"unitlessCssVar",void 0),(0,k.A)((0,gn.A)(r),"lowPriority",void 0);var i=(0,E.A)(e);return r.unitlessCssVar=n,e instanceof o?r.result="(".concat(e.result,")"):"number"===i?r.result=wn(e):"string"===i&&(r.result=e),r}return(0,we.A)(o,[{key:"add",value:function(e){return e instanceof o?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(wn(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof o?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(wn(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof o?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof o?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,o=(e||{}).unit,n=!0;return"boolean"==typeof o?n=o:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(n=!1),this.result=this.result.replace(yn,n?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),o}(bn);const xn=function(e){(0,Ce.A)(o,e);var t=(0,xe.A)(o);function o(e){var n;return(0,ye.A)(this,o),n=t.call(this),(0,k.A)((0,gn.A)(n),"result",0),e instanceof o?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,we.A)(o,[{key:"add",value:function(e){return e instanceof o?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof o?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof o?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof o?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),o}(bn),An=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},En=function(e,t,o,n){var r=(0,S.A)({},t[e]);null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach((function(e){var t,o=(0,l.A)(e,2),n=o[0],i=o[1];(null!=r&&r[n]||null!=r&&r[i])&&(null!==(t=r[i])&&void 0!==t||(r[i]=null==r?void 0:r[n]))}));var i=(0,S.A)((0,S.A)({},o),r);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i};var Sn="undefined"!=typeof CSSINJS_STATISTIC,kn=!0;function Rn(){for(var e=arguments.length,t=new Array(e),o=0;o1e4){var t=Date.now();this.lastAccessBeat.forEach((function(o,n){t-o>6e5&&(e.map.delete(n),e.lastAccessBeat.delete(n))})),this.accessBeat=0}}}]),e}());const Tn=function(){return{}};var $n=o(25905),zn=o(39319);const{genStyleHooks:Dn,genComponentStyleHook:Ln,genSubStyleComponent:Fn}=function(e){var t=e.useCSP,o=void 0===t?Tn:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,s=e.getCommonStyle,c=e.getCompUnitless;function u(t,c,u){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],h=(0,l.A)(p,1)[0],m=p.join("-"),f=e.layer||{name:"antd"};return function(e){var t,l,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=r(),b=g.theme,v=g.realToken,y=g.hashId,w=g.token,C=g.cssVar,x=i(),A=x.rootPrefixCls,k=x.iconPrefixCls,R=o(),M=C?"css":"js",I=(t=function(){var e=new Set;return C&&Object.keys(d.unitless||{}).forEach((function(t){e.add((0,fn.Ki)(t,C.prefix)),e.add((0,fn.Ki)(t,An(h,C.prefix)))})),function(e,t){var o="css"===e?Cn:xn;return function(e){return new o(e,t)}}(M,e)},l=[M,h,null==C?void 0:C.prefix],n.useMemo((function(){var e=On.get(l);if(e)return e;var o=t();return On.set(l,o),o}),l)),P=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:e,o=f(e,t),n=(0,l.A)(o,2)[1],r=g(t),i=(0,l.A)(r,2);return[i[0],n,i[1]]}},genSubStyleComponent:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=u(e,t,o,(0,S.A)({resetStyle:!1,order:-998},n));return function(e){var t=e.prefixCls,o=e.rootCls;return r(t,void 0===o?t:o),null}},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,n.useContext)(pn.QO);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,o,n,r]=(0,zn.Ay)();return{theme:e,realToken:t,hashId:o,token:n,cssVar:r}},useCSP:()=>{const{csp:e}=(0,n.useContext)(pn.QO);return null!=e?e:{}},getResetStyles:(e,t)=>{var o;const n=(0,$n.av)(e);return[n,{"&":n},(0,$n.jz)(null!==(o=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==o?o:pn.pM)]},getCommonStyle:$n.vj,getCompUnitless:()=>zn.Is}),Nn=e=>{const{componentCls:t,colorPrimary:o}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${o})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Hn=Ln("Wave",(e=>[Nn(e)])),jn=`${pn.yH}-wave-target`;var Bn=o(90754);function _n(e,t){this.v=e,this.k=t}function Vn(e,t,o,n){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Vn=function(e,t,o,n){if(t)r?r(e,t,{value:o,enumerable:!n,configurable:!n,writable:!n}):e[t]=o;else{var i=function(t,o){Vn(e,t,(function(e){return this._invoke(t,o,e)}))};i("next",0),i("throw",1),i("return",2)}},Vn(e,t,o,n)}function Wn(){var e,t,o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",r=o.toStringTag||"@@toStringTag";function i(o,n,r,i){var s=n&&n.prototype instanceof l?n:l,c=Object.create(s.prototype);return Vn(c,"_invoke",function(o,n,r){var i,l,s,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,o){return i=t,l=0,s=e,p.n=o,a}};function h(o,n){for(l=o,s=n,t=0;!d&&c&&!r&&t3?(r=m===n)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=h&&((r=o<2&&hn||n>m)&&(i[4]=o,i[5]=n,p.n=m,l=0))}if(r||o>1)return a;throw d=!0,n}return function(r,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,m),l=u,s=m;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(p.n=-1),h(l,s)):p.n=s:p.v=s);try{if(c=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?s:o.call(n,p))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(o,r,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Vn(t={},n,(function(){return this})),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Vn(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Vn(d,"constructor",c),Vn(c,"constructor",s),s.displayName="GeneratorFunction",Vn(c,r,"GeneratorFunction"),Vn(d),Vn(d,r,"Generator"),Vn(d,n,(function(){return this})),Vn(d,"toString",(function(){return"[object Generator]"})),(Wn=function(){return{w:i,m:p}})()}function Gn(e,t){function o(n,r,i,a){try{var l=e[n](r),s=l.value;return s instanceof _n?t.resolve(s.v).then((function(e){o("next",e,i,a)}),(function(e){o("throw",e,i,a)})):t.resolve(s).then((function(e){l.value=e,i(l)}),(function(e){return o("throw",e,i,a)}))}catch(e){a(e)}}var n;this.next||(Vn(Gn.prototype),Vn(Gn.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),Vn(this,"_invoke",(function(e,r,i){function a(){return new t((function(t,n){o(e,i,t,n)}))}return n=n?n.then(a,a):a()}),!0)}function Kn(e,t,o,n,r){return new Gn(Wn().w(e,t,o,n),r||Promise)}function Un(e,t,o,n,r){var i=Kn(e,t,o,n,r);return i.next().then((function(e){return e.done?e.value:i.next()}))}function qn(e){var t=Object(e),o=[];for(var n in t)o.unshift(n);return function e(){for(;o.length;)if((n=o.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function Xn(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],o=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}}}throw new TypeError((0,E.A)(e)+" is not iterable")}function Yn(){var e=Wn(),t=e.m(Yn),o=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))}var r={throw:1,return:2,break:3,continue:3};function i(e){var t,o;return function(n){t||(t={stop:function(){return o(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return o(n.a,r[e],t)},delegateYield:function(e,r,i){return t.resultName=r,o(n.d,Xn(e),i)},finish:function(e){return o(n.f,e)}},o=function(e,o,r){n.p=t.prev,n.n=t.next;try{return e(o,r)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(Yn=function(){return{wrap:function(t,o,n,r){return e.w(i(t),o,n,r&&r.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new _n(e,t)},AsyncIterator:Gn,async:function(e,t,o,r,a){return(n(t)?Kn:Un)(i(e),t,o,r,a)},keys:qn,values:Xn}})()}function Qn(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function Jn(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){Qn(i,n,r,a,l,"next",e)}function l(e){Qn(i,n,r,a,l,"throw",e)}a(void 0)}))}}var Zn,er=(0,S.A)({},p),tr=er.version,or=er.render,nr=er.unmountComponentAtNode;try{Number((tr||"").split(".")[0])>=18&&(Zn=er.createRoot)}catch(e){}function rr(e){var t=er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,E.A)(t)&&(t.usingClientEntryPoint=e)}var ir="__rc_react_root__";function ar(e){return lr.apply(this,arguments)}function lr(){return(lr=Jn(Yn().mark((function e(t){return Yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[ir])||void 0===e||e.unmount(),delete t[ir]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sr(e){nr(e)}function cr(){return(cr=Jn(Yn().mark((function e(t){return Yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Zn){e.next=2;break}return e.abrupt("return",ar(t));case 2:sr(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let ur=(e,t)=>(function(e,t){Zn?function(e,t){rr(!0);var o=t[ir]||Zn(t);rr(!1),o.render(e),t[ir]=o}(e,t):function(e,t){null==or||or(e,t)}(e,t)}(e,t),()=>function(e){return cr.apply(this,arguments)}(t));function dr(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function pr(e){return Number.isNaN(e)?0:e}const hr=e=>{const{className:t,target:o,component:r,registerUnmount:i}=e,a=n.useRef(null),l=n.useRef(null);n.useEffect((()=>{l.current=i()}),[]);const[s,c]=n.useState(null),[u,d]=n.useState([]),[p,h]=n.useState(0),[m,f]=n.useState(0),[b,v]=n.useState(0),[y,w]=n.useState(0),[C,x]=n.useState(!1),A={left:p,top:m,width:b,height:y,borderRadius:u.map((e=>`${e}px`)).join(" ")};function E(){const e=getComputedStyle(o);c(function(e){const{borderTopColor:t,borderColor:o,backgroundColor:n}=getComputedStyle(e);return dr(t)?t:dr(o)?o:dr(n)?n:null}(o));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:r}=e;h(t?o.offsetLeft:pr(-parseFloat(n))),f(t?o.offsetTop:pr(-parseFloat(r))),v(o.offsetWidth),w(o.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:s}=e;d([i,a,s,l].map((e=>pr(parseFloat(e)))))}if(s&&(A["--wave-color"]=s),n.useEffect((()=>{if(o){const e=(0,bt.A)((()=>{E(),x(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(E),t.observe(o)),()=>{bt.A.cancel(e),null==t||t.disconnect()}}}),[]),!C)return null;const S=("Checkbox"===r||"Radio"===r)&&(null==o?void 0:o.classList.contains(jn));return n.createElement(Bn.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var o,n;if(t.deadline||"opacity"===t.propertyName){const e=null===(o=a.current)||void 0===o?void 0:o.parentElement;null===(n=l.current)||void 0===n||n.call(l).then((()=>{null==e||e.remove()}))}return!1}},(({className:e},o)=>n.createElement("div",{ref:(0,g.K4)(a,o),className:M()(t,e,{"wave-quick":S}),style:A})))},mr=(e,t)=>{var o;const{component:r}=t;if("Checkbox"===r&&!(null===(o=e.querySelector("input"))||void 0===o?void 0:o.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild);let a=null;a=ur(n.createElement(hr,Object.assign({},t,{target:e,registerUnmount:function(){return a}})),i)},fr=(e,t,o)=>{const{wave:r}=n.useContext(pn.QO),[,i,a]=(0,zn.Ay)(),l=(0,s.A)((n=>{const l=e.current;if((null==r?void 0:r.disabled)||!l)return;const s=l.querySelector(`.${jn}`)||l,{showEffect:c}=r||{};(c||mr)(s,{className:t,token:i,component:o,event:n,hashId:a})})),c=n.useRef(null);return e=>{bt.A.cancel(c.current),c.current=(0,bt.A)((()=>{l(e)}))}},gr=e=>{const{children:t,disabled:o,component:r}=e,{getPrefixCls:i}=(0,n.useContext)(pn.QO),a=(0,n.useRef)(null),l=i("wave"),[,s]=Hn(l),c=fr(a,M()(l,s),r);return n.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!qe(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||c(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),n.isValidElement(t)?mn(t,{ref:(0,g.f3)(t)?(0,g.K4)((0,g.A9)(t),a):a}):null!=t?t:null};var br=o(98119);const vr=e=>{const[,,,,t]=(0,zn.Ay)();return t?`${e}-css-var`:""};var yr="RC_FORM_INTERNAL_HOOKS",wr=function(){(0,O.Ay)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const Cr=n.createContext({getFieldValue:wr,getFieldsValue:wr,getFieldError:wr,getFieldWarning:wr,getFieldsError:wr,isFieldsTouched:wr,isFieldTouched:wr,isFieldValidating:wr,isFieldsValidating:wr,resetFields:wr,setFields:wr,setFieldValue:wr,setFieldsValue:wr,validateFields:wr,submit:wr,getInternalHooks:function(){return wr(),{dispatch:wr,initEntityValue:wr,registerField:wr,useSubscribe:wr,setInitialValues:wr,destroyForm:wr,setCallbacks:wr,registerWatch:wr,getFields:wr,setValidateMessages:wr,setPreserve:wr,getInitialValue:wr}}}),xr=n.createContext(null);function Ar(e){return null==e?[]:Array.isArray(e)?e:[e]}function Er(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Sr=Er(),kr=o(53954),Rr=o(63662),Mr=o(52176);function Ir(e){var t="function"==typeof Map?new Map:void 0;return Ir=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return function(e,t,o){if((0,Mr.A)())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var r=new(e.bind.apply(e,n));return o&&(0,Rr.A)(r,o.prototype),r}(e,arguments,(0,kr.A)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),(0,Rr.A)(o,e)},Ir(e)}var Pr=/%[sdj%]/g;function Or(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var o=e.field;t[o]=t[o]||[],t[o].push(e)})),t}function Tr(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n=i)return e;switch(e){case"%s":return String(o[r++]);case"%d":return Number(o[r++]);case"%j":try{return JSON.stringify(o[r++])}catch(e){return"[Circular]"}default:return e}})):e}function $r(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function zr(e,t,o){var n=0,r=e.length;!function i(a){if(a&&a.length)o(a);else{var l=n;n+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,_r=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Vr={integer:function(e){return Vr.number(e)&&parseInt(e,10)===e},float:function(e){return Vr.number(e)&&!Vr.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,E.A)(e)&&!Vr.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Br)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(jr)return jr;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},o="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",r=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(o,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(o,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(o,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(o,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(o,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(o,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(o,"|(?::").concat(n,"){1,7}|:))")],i="(?:".concat(r.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(o,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(o,"$")),s=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(o).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(o).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return jr=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(_r)}};const Wr=Hr,Gr=function(e,t,o,n,r){(/^\s+$/.test(t)||""===t)&&n.push(Tr(r.messages.whitespace,e.fullField))},Kr=function(e,t,o,n,r){if(e.required&&void 0===t)Hr(e,t,o,n,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Vr[i](t)||n.push(Tr(r.messages.types[i],e.fullField,e.type)):i&&(0,E.A)(t)!==e.type&&n.push(Tr(r.messages.types[i],e.fullField,e.type))}},Ur=function(e,t,o,n,r){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&n.push(Tr(r.messages[c].len,e.fullField,e.len)):a&&!l&&se.max?n.push(Tr(r.messages[c].max,e.fullField,e.max)):a&&l&&(se.max)&&n.push(Tr(r.messages[c].range,e.fullField,e.min,e.max))},qr=function(e,t,o,n,r){e[Nr]=Array.isArray(e[Nr])?e[Nr]:[],-1===e[Nr].indexOf(t)&&n.push(Tr(r.messages[Nr],e.fullField,e[Nr].join(", ")))},Xr=function(e,t,o,n,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(Tr(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||n.push(Tr(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Yr=function(e,t,o,n,r){var i=e.type,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t,i)&&!e.required)return o();Wr(e,t,n,a,r,i),$r(t,i)||Kr(e,t,n,a,r)}o(a)},Qr={string:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t,"string")&&!e.required)return o();Wr(e,t,n,i,r,"string"),$r(t,"string")||(Kr(e,t,n,i,r),Ur(e,t,n,i,r),Xr(e,t,n,i,r),!0===e.whitespace&&Gr(e,t,n,i,r))}o(i)},method:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t)&&!e.required)return o();Wr(e,t,n,i,r),void 0!==t&&Kr(e,t,n,i,r)}o(i)},number:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),$r(t)&&!e.required)return o();Wr(e,t,n,i,r),void 0!==t&&(Kr(e,t,n,i,r),Ur(e,t,n,i,r))}o(i)},boolean:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t)&&!e.required)return o();Wr(e,t,n,i,r),void 0!==t&&Kr(e,t,n,i,r)}o(i)},regexp:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t)&&!e.required)return o();Wr(e,t,n,i,r),$r(t)||Kr(e,t,n,i,r)}o(i)},integer:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t)&&!e.required)return o();Wr(e,t,n,i,r),void 0!==t&&(Kr(e,t,n,i,r),Ur(e,t,n,i,r))}o(i)},float:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t)&&!e.required)return o();Wr(e,t,n,i,r),void 0!==t&&(Kr(e,t,n,i,r),Ur(e,t,n,i,r))}o(i)},array:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return o();Wr(e,t,n,i,r,"array"),null!=t&&(Kr(e,t,n,i,r),Ur(e,t,n,i,r))}o(i)},object:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t)&&!e.required)return o();Wr(e,t,n,i,r),void 0!==t&&Kr(e,t,n,i,r)}o(i)},enum:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t)&&!e.required)return o();Wr(e,t,n,i,r),void 0!==t&&qr(e,t,n,i,r)}o(i)},pattern:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t,"string")&&!e.required)return o();Wr(e,t,n,i,r),$r(t,"string")||Xr(e,t,n,i,r)}o(i)},date:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t,"date")&&!e.required)return o();var a;Wr(e,t,n,i,r),$r(t,"date")||(a=t instanceof Date?t:new Date(t),Kr(e,a,n,i,r),a&&Ur(e,a.getTime(),n,i,r))}o(i)},url:Yr,hex:Yr,email:Yr,required:function(e,t,o,n,r){var i=[],a=Array.isArray(t)?"array":(0,E.A)(t);Wr(e,t,n,i,r,a),o(i)},any:function(e,t,o,n,r){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if($r(t)&&!e.required)return o();Wr(e,t,n,i,r)}o(i)}};var Jr=function(){function e(t){(0,ye.A)(this,e),(0,k.A)(this,"rules",null),(0,k.A)(this,"_messages",Sr),this.define(t)}return(0,we.A)(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,E.A)(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(o){var n=e[o];t.rules[o]=Array.isArray(n)?n:[n]}))}},{key:"messages",value:function(e){return e&&(this._messages=Fr(Er(),e)),this._messages}},{key:"validate",value:function(t){var o=this,n=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof r&&(i=r,r={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,n),Promise.resolve(n);if(r.messages){var a=this.messages();a===Sr&&(a=Er()),Fr(a,r.messages),r.messages=a}else r.messages=this.messages();var l={};(r.keys||Object.keys(this.rules)).forEach((function(e){var r=o.rules[e],i=n[e];r.forEach((function(r){var a=r;"function"==typeof a.transform&&(n===t&&(n=(0,S.A)({},n)),null!=(i=n[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":(0,E.A)(i)))),(a="function"==typeof a?{validator:a}:(0,S.A)({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:n,field:e}))}))}));var s={};return function(e,t,o,n,r){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(o){t.push.apply(t,(0,tt.A)(e[o]||[]))})),t}(e);zr(a,o,(function(e){return n(e),e.length?i(new Dr(e,Or(e))):t(r)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===s)return n(u),u.length?i(new Dr(u,Or(u))):t(r)};l.length||(n(u),t(r)),l.forEach((function(t){var n=e[t];-1!==a.indexOf(t)?zr(n,o,d):function(e,t,o){var n=[],r=0,i=e.length;function a(e){n.push.apply(n,(0,tt.A)(e||[])),++r===i&&o(n)}e.forEach((function(e){t(e,a)}))}(n,o,d)}))}));return d.catch((function(e){return e})),d}(l,r,(function(t,o){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==(0,E.A)(a.fields)&&"object"!==(0,E.A)(a.defaultField));function c(e,t){return(0,S.A)((0,S.A)({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat((0,tt.A)(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!r.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Lr(a,n));if(r.first&&d.length)return s[a.field]=1,o(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Lr(a,n)):r.error&&(d=[r.error(a,Tr(r.messages.required,a.field))]),o(d);var p={};a.defaultField&&Object.keys(t.value).map((function(e){p[e]=a.defaultField})),p=(0,S.A)((0,S.A)({},p),t.rule.fields);var h={};Object.keys(p).forEach((function(e){var t=p[e],o=Array.isArray(t)?t:[t];h[e]=o.map(c.bind(null,e))}));var m=new e(h);m.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),m.validate(t.value,t.rule.options||r,(function(e){var t=[];d&&d.length&&t.push.apply(t,(0,tt.A)(d)),e&&e.length&&t.push.apply(t,(0,tt.A)(e)),o(t.length?t:null)}))}else o(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,r);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,r)}catch(e){var d,p;null===(d=(p=console).error)||void 0===d||d.call(p,e),r.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,o,r=[],a={},l=0;l2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return mi(t,e,o)}))}function mi(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,o){return e[o]===t}))}function fi(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,E.A)(t.target)&&e in t.target?t.target[e]:t}function gi(e,t,o){var n=e.length;if(t<0||t>=n||o<0||o>=n)return e;var r=e[t],i=t-o;return i>0?[].concat((0,tt.A)(e.slice(0,o)),[r],(0,tt.A)(e.slice(o,t)),(0,tt.A)(e.slice(t+1,n))):i<0?[].concat((0,tt.A)(e.slice(0,t)),(0,tt.A)(e.slice(t+1,o+1)),[r],(0,tt.A)(e.slice(o+1,n))):e}var bi=["name"],vi=[];function yi(e,t,o,n,r,i){return"function"==typeof e?e(t,o,"source"in i?{source:i.source}:{}):n!==r}var wi=function(e){(0,Ce.A)(o,e);var t=(0,xe.A)(o);function o(e){var r;return(0,ye.A)(this,o),r=t.call(this,e),(0,k.A)((0,gn.A)(r),"state",{resetCount:0}),(0,k.A)((0,gn.A)(r),"cancelRegisterFunc",null),(0,k.A)((0,gn.A)(r),"mounted",!1),(0,k.A)((0,gn.A)(r),"touched",!1),(0,k.A)((0,gn.A)(r),"dirty",!1),(0,k.A)((0,gn.A)(r),"validatePromise",void 0),(0,k.A)((0,gn.A)(r),"prevValidating",void 0),(0,k.A)((0,gn.A)(r),"errors",vi),(0,k.A)((0,gn.A)(r),"warnings",vi),(0,k.A)((0,gn.A)(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,o=e.isListField,n=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(o,t,di(n)),r.cancelRegisterFunc=null})),(0,k.A)((0,gn.A)(r),"getNamePath",(function(){var e=r.props,t=e.name,o=e.fieldContext.prefixName,n=void 0===o?[]:o;return void 0!==t?[].concat((0,tt.A)(n),(0,tt.A)(t)):[]})),(0,k.A)((0,gn.A)(r),"getRules",(function(){var e=r.props,t=e.rules,o=void 0===t?[]:t,n=e.fieldContext;return o.map((function(e){return"function"==typeof e?e(n):e}))})),(0,k.A)((0,gn.A)(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),(0,k.A)((0,gn.A)(r),"metaCache",null),(0,k.A)((0,gn.A)(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var o=(0,S.A)((0,S.A)({},r.getMeta()),{},{destroy:e});(0,u.A)(r.metaCache,o)||t(o),r.metaCache=o}else r.metaCache=null})),(0,k.A)((0,gn.A)(r),"onStoreChange",(function(e,t,o){var n=r.props,i=n.shouldUpdate,a=n.dependencies,l=void 0===a?[]:a,s=n.onReset,c=o.store,d=r.getNamePath(),p=r.getValue(e),h=r.getValue(c),m=t&&hi(t,d);switch("valueUpdate"!==o.type||"external"!==o.source||(0,u.A)(p,h)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=vi,r.warnings=vi,r.triggerMetaEvent()),o.type){case"reset":if(!t||m)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=vi,r.warnings=vi,r.triggerMetaEvent(),null==s||s(),void r.refresh();break;case"remove":if(i&&yi(i,e,c,p,h,o))return void r.reRender();break;case"setField":var f=o.data;if(m)return"touched"in f&&(r.touched=f.touched),"validating"in f&&!("originRCField"in f)&&(r.validatePromise=f.validating?Promise.resolve([]):null),"errors"in f&&(r.errors=f.errors||vi),"warnings"in f&&(r.warnings=f.warnings||vi),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in f&&hi(t,d,!0))return void r.reRender();if(i&&!d.length&&yi(i,e,c,p,h,o))return void r.reRender();break;case"dependenciesUpdate":if(l.map(di).some((function(e){return hi(o.relatedFields,e)})))return void r.reRender();break;default:if(m||(!l.length||d.length||i)&&yi(i,e,c,p,h,o))return void r.reRender()}!0===i&&r.reRender()})),(0,k.A)((0,gn.A)(r),"validateRules",(function(e){var t=r.getNamePath(),o=r.getValue(),n=e||{},i=n.triggerName,a=n.validateOnly,l=void 0!==a&&a,s=Promise.resolve().then(Jn(Yn().mark((function n(){var a,l,c,u,d,p,h;return Yn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.mounted){n.next=2;break}return n.abrupt("return",[]);case 2:if(a=r.props,l=a.validateFirst,c=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,p=r.getRules(),i&&(p=p.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Ar(t).includes(i)}))),!d||!i){n.next=10;break}return n.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===s){n.next=10;break}return n.abrupt("return",[]);case 10:return(h=si(t,o,p,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vi;if(r.validatePromise===s){var t;r.validatePromise=null;var o=[],n=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?vi:r;t?n.push.apply(n,(0,tt.A)(i)):o.push.apply(o,(0,tt.A)(i))})),r.errors=o,r.warnings=n,r.triggerMetaEvent(),r.reRender()}})),n.abrupt("return",h);case 13:case"end":return n.stop()}}),n)}))));return l||(r.validatePromise=s,r.dirty=!0,r.errors=vi,r.warnings=vi,r.triggerMetaEvent(),r.reRender()),s})),(0,k.A)((0,gn.A)(r),"isFieldValidating",(function(){return!!r.validatePromise})),(0,k.A)((0,gn.A)(r),"isFieldTouched",(function(){return r.touched})),(0,k.A)((0,gn.A)(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(yr).getInitialValue)(r.getNamePath())})),(0,k.A)((0,gn.A)(r),"getErrors",(function(){return r.errors})),(0,k.A)((0,gn.A)(r),"getWarnings",(function(){return r.warnings})),(0,k.A)((0,gn.A)(r),"isListField",(function(){return r.props.isListField})),(0,k.A)((0,gn.A)(r),"isList",(function(){return r.props.isList})),(0,k.A)((0,gn.A)(r),"isPreserve",(function(){return r.props.preserve})),(0,k.A)((0,gn.A)(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),(0,k.A)((0,gn.A)(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return(0,S.A)((0,S.A)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var o=U(e);return 1===o.length&&n.isValidElement(o[0])?{child:o[0],isFunction:!1}:{child:o,isFunction:!1}})),(0,k.A)((0,gn.A)(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,o=r.getNamePath();return(0,P.A)(e||t(!0),o)})),(0,k.A)((0,gn.A)(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,o=t.name,n=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,s=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),h=u.getInternalHooks,m=u.getFieldsValue,f=h(yr).dispatch,g=r.getValue(),b=c||function(e){return(0,k.A)({},s,e)},v=e[n],y=void 0!==o?b(g):{},w=(0,S.A)((0,S.A)({},e),y);return w[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,o=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];if(o.watchList.length){var t=o.getFieldsValue(),n=o.getFieldsValue(!0);o.watchList.forEach((function(o){o(t,n,e)}))}})),(0,k.A)(this,"timeoutId",null),(0,k.A)(this,"warningUnhooked",(function(){})),(0,k.A)(this,"updateStore",(function(e){o.store=e})),(0,k.A)(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?o.fieldEntities.filter((function(e){return e.getNamePath().length})):o.fieldEntities})),(0,k.A)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Si;return o.getFieldEntities(e).forEach((function(e){var o=e.getNamePath();t.set(o,e)})),t})),(0,k.A)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return o.getFieldEntities(!0);var t=o.getFieldsMap(!0);return e.map((function(e){var o=di(e);return t.get(o)||{INVALIDATE_NAME_PATH:di(e)}}))})),(0,k.A)(this,"getFieldsValue",(function(e,t){var n,r,i;if(o.warningUnhooked(),!0===e||Array.isArray(e)?(n=e,r=t):e&&"object"===(0,E.A)(e)&&(i=e.strict,r=e.filter),!0===n&&!r)return o.store;var a=o.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),l=[];return a.forEach((function(e){var t,o,a,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!n&&null!==(t=(o=e).isListField)&&void 0!==t&&t.call(o))return;if(r){var u="getMeta"in e?e.getMeta():null;r(u)&&l.push(c)}else l.push(c)})),pi(o.store,l.map(di))})),(0,k.A)(this,"getFieldValue",(function(e){o.warningUnhooked();var t=di(e);return(0,P.A)(o.store,t)})),(0,k.A)(this,"getFieldsError",(function(e){return o.warningUnhooked(),o.getFieldEntitiesForNamePathList(e).map((function(t,o){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:di(e[o]),errors:[],warnings:[]}}))})),(0,k.A)(this,"getFieldError",(function(e){o.warningUnhooked();var t=di(e);return o.getFieldsError([t])[0].errors})),(0,k.A)(this,"getFieldWarning",(function(e){o.warningUnhooked();var t=di(e);return o.getFieldsError([t])[0].warnings})),(0,k.A)(this,"isFieldsTouched",(function(){o.warningUnhooked();for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=new Si,r=o.getFieldEntities(!0);r.forEach((function(e){var t=e.props.initialValue,o=e.getNamePath();if(void 0!==t){var r=n.get(o)||new Set;r.add({entity:e,value:t}),n.set(o,r)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var o,r=n.get(t);r&&(o=e).push.apply(o,(0,tt.A)((0,tt.A)(r).map((function(e){return e.entity}))))}))):e=r,e.forEach((function(e){if(void 0!==e.props.initialValue){var r=e.getNamePath();if(void 0!==o.getInitialValue(r))(0,O.Ay)(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=n.get(r);if(i&&i.size>1)(0,O.Ay)(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=o.getFieldValue(r);e.isListField()||t.skipExist&&void 0!==a||o.updateStore((0,oi.A)(o.store,r,(0,tt.A)(i)[0].value))}}}}))})),(0,k.A)(this,"resetFields",(function(e){o.warningUnhooked();var t=o.store;if(!e)return o.updateStore((0,oi.h)(o.initialValues)),o.resetWithFieldInitialValue(),o.notifyObservers(t,null,{type:"reset"}),void o.notifyWatch();var n=e.map(di);n.forEach((function(e){var t=o.getInitialValue(e);o.updateStore((0,oi.A)(o.store,e,t))})),o.resetWithFieldInitialValue({namePathList:n}),o.notifyObservers(t,n,{type:"reset"}),o.notifyWatch(n)})),(0,k.A)(this,"setFields",(function(e){o.warningUnhooked();var t=o.store,n=[];e.forEach((function(e){var r=e.name,i=(0,j.A)(e,ki),a=di(r);n.push(a),"value"in i&&o.updateStore((0,oi.A)(o.store,a,i.value)),o.notifyObservers(t,[a],{type:"setField",data:e})})),o.notifyWatch(n)})),(0,k.A)(this,"getFields",(function(){return o.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),n=e.getMeta(),r=(0,S.A)((0,S.A)({},n),{},{name:t,value:o.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),(0,k.A)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var n=e.getNamePath();void 0===(0,P.A)(o.store,n)&&o.updateStore((0,oi.A)(o.store,n,t))}})),(0,k.A)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:o.preserve;return null==t||t})),(0,k.A)(this,"registerField",(function(e){o.fieldEntities.push(e);var t=e.getNamePath();if(o.notifyWatch([t]),void 0!==e.props.initialValue){var n=o.store;o.resetWithFieldInitialValue({entities:[e],skipExist:!0}),o.notifyObservers(n,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(o.fieldEntities=o.fieldEntities.filter((function(t){return t!==e})),!o.isMergedPreserve(r)&&(!n||i.length>1)){var a=n?void 0:o.getInitialValue(t);if(t.length&&o.getFieldValue(t)!==a&&o.fieldEntities.every((function(e){return!mi(e.getNamePath(),t)}))){var l=o.store;o.updateStore((0,oi.A)(l,t,a,!0)),o.notifyObservers(l,[t],{type:"remove"}),o.triggerDependenciesUpdate(l,t)}}o.notifyWatch([t])}})),(0,k.A)(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,n=e.value;o.updateValue(t,n);break;case"validateField":var r=e.namePath,i=e.triggerName;o.validateFields([r],{triggerName:i})}})),(0,k.A)(this,"notifyObservers",(function(e,t,n){if(o.subscribable){var r=(0,S.A)((0,S.A)({},n),{},{store:o.getFieldsValue(!0)});o.getFieldEntities().forEach((function(o){(0,o.onStoreChange)(e,t,r)}))}else o.forceRootUpdate()})),(0,k.A)(this,"triggerDependenciesUpdate",(function(e,t){var n=o.getDependencyChildrenFields(t);return n.length&&o.validateFields(n),o.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t].concat((0,tt.A)(n))}),n})),(0,k.A)(this,"updateValue",(function(e,t){var n=di(e),r=o.store;o.updateStore((0,oi.A)(o.store,n,t)),o.notifyObservers(r,[n],{type:"valueUpdate",source:"internal"}),o.notifyWatch([n]);var i=o.triggerDependenciesUpdate(r,n),a=o.callbacks.onValuesChange;a&&a(pi(o.store,[n]),o.getFieldsValue()),o.triggerOnFieldsChange([n].concat((0,tt.A)(i)))})),(0,k.A)(this,"setFieldsValue",(function(e){o.warningUnhooked();var t=o.store;if(e){var n=(0,oi.h)(o.store,e);o.updateStore(n)}o.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),o.notifyWatch()})),(0,k.A)(this,"setFieldValue",(function(e,t){o.setFields([{name:e,value:t,errors:[],warnings:[]}])})),(0,k.A)(this,"getDependencyChildrenFields",(function(e){var t=new Set,n=[],r=new Si;return o.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var o=di(t);r.update(o,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(o){(r.get(o)||new Set).forEach((function(o){if(!t.has(o)){t.add(o);var r=o.getNamePath();o.isFieldDirty()&&r.length&&(n.push(r),e(r))}}))}(e),n})),(0,k.A)(this,"triggerOnFieldsChange",(function(e,t){var n=o.callbacks.onFieldsChange;if(n){var r=o.getFields();if(t){var i=new Si;t.forEach((function(e){var t=e.name,o=e.errors;i.set(t,o)})),r.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=r.filter((function(t){var o=t.name;return hi(e,o)}));a.length&&n(a,r)}})),(0,k.A)(this,"validateFields",(function(e,t){var n,r;o.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(n=e,r=t):r=e;var i=!!n,a=i?n.map(di):[],l=[],s=String(Date.now()),c=new Set,u=r||{},d=u.recursive,p=u.dirty;o.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(s)),!i||hi(a,t,d)){var n=e.validateRules((0,S.A)({validateMessages:(0,S.A)((0,S.A)({},ti),o.validateMessages)},r));l.push(n.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var o,n=[],r=[];return null===(o=e.forEach)||void 0===o||o.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors;t?r.push.apply(r,(0,tt.A)(o)):n.push.apply(n,(0,tt.A)(o))})),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}})))}}}));var h=function(e){var t=!1,o=e.length,n=[];return e.length?new Promise((function(r,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){o-=1,n[a]=e,o>0||(t&&i(n),r(n))}))}))})):Promise.resolve([])}(l);o.lastValidatePromise=h,h.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));o.notifyObservers(o.store,t,{type:"validateFinish"}),o.triggerOnFieldsChange(t,e)}));var m=h.then((function(){return o.lastValidatePromise===h?Promise.resolve(o.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:o.getFieldsValue(a),errorFields:t,outOfDate:o.lastValidatePromise!==h})}));m.catch((function(e){return e}));var f=a.filter((function(e){return c.has(e.join(s))}));return o.triggerOnFieldsChange(f),m})),(0,k.A)(this,"submit",(function(){o.warningUnhooked(),o.validateFields().then((function(e){var t=o.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=o.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const Mi=function(e){var t=n.useRef(),o=n.useState({}),r=(0,l.A)(o,2)[1];if(!t.current)if(e)t.current=e;else{var i=new Ri((function(){r({})}));t.current=i.getForm()}return[t.current]};var Ii=n.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const Pi=Ii;var Oi=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const Ti=function(e,t){var o=e.name,r=e.initialValues,i=e.fields,a=e.form,s=e.preserve,c=e.children,u=e.component,d=void 0===u?"form":u,p=e.validateMessages,h=e.validateTrigger,m=void 0===h?"onChange":h,g=e.onValuesChange,b=e.onFieldsChange,v=e.onFinish,y=e.onFinishFailed,w=e.clearOnDestroy,C=(0,j.A)(e,Oi),x=n.useRef(null),A=n.useContext(Pi),k=Mi(a),R=(0,l.A)(k,1)[0],M=R.getInternalHooks(yr),I=M.useSubscribe,P=M.setInitialValues,O=M.setCallbacks,T=M.setValidateMessages,$=M.setPreserve,z=M.destroyForm;n.useImperativeHandle(t,(function(){return(0,S.A)((0,S.A)({},R),{},{nativeElement:x.current})})),n.useEffect((function(){return A.registerForm(o,R),function(){A.unregisterForm(o)}}),[A,R,o]),T((0,S.A)((0,S.A)({},A.validateMessages),p)),O({onValuesChange:g,onFieldsChange:function(e){if(A.triggerFormChange(o,e),b){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&t<=o.length?(u.keys=[].concat((0,tt.A)(u.keys.slice(0,t)),[u.id],(0,tt.A)(u.keys.slice(t))),i([].concat((0,tt.A)(o.slice(0,t)),[e],(0,tt.A)(o.slice(t))))):(u.keys=[].concat((0,tt.A)(u.keys),[u.id]),i([].concat((0,tt.A)(o),[e]))),u.id+=1},remove:function(e){var t=l(),o=new Set(Array.isArray(e)?e:[e]);o.size<=0||(u.keys=u.keys.filter((function(e,t){return!o.has(t)})),i(t.filter((function(e,t){return!o.has(t)}))))},move:function(e,t){if(e!==t){var o=l();e<0||e>=o.length||t<0||t>=o.length||(u.keys=gi(u.keys,e,t),i(gi(o,e,t)))}}},p=n||[];return Array.isArray(p)||(p=[]),r(p.map((function(e,t){var o=u.keys[t];return void 0===o&&(u.keys[t]=u.id,o=u.keys[t],u.id+=1),{name:t,key:o,isListField:!0}})),c,t)}))))},zi.useForm=Mi,zi.useWatch=function(){for(var e=arguments.length,t=new Array(e),o=0;o{const r=n.useContext(Di),i=n.useMemo((()=>{const e=Object.assign({},r);return o&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[t,o,r]);return n.createElement(Di.Provider,{value:i},e)},Fi=n.createContext(void 0),Ni=n.createContext(null),Hi=e=>{const{checkboxCls:t}=e,o=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,$n.dF)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[o]:Object.assign(Object.assign({},(0,$n.dF)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,$n.dF)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,$n.jk)(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,fn.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${o}:not(${o}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${o}-checked:not(${o}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function ji(e,t){const o=Rn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Hi(o)]}const Bi=Dn("Checkbox",((e,{prefixCls:t})=>[ji(t,e)]));function _i(e){const t=n.useRef(null),o=()=>{bt.A.cancel(t.current),t.current=null};return[()=>{o(),t.current=(0,bt.A)((()=>{t.current=null}))},n=>{t.current&&(n.stopPropagation(),o()),null==e||e(n)}]}const Vi=(e,t)=>{var o;const{prefixCls:r,className:i,rootClassName:a,children:l,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:p=!1,disabled:h}=e,m=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{null==y||y.registerValue(m.value)}),[]),n.useEffect((()=>{if(!p)return m.value!==A.current&&(null==y||y.cancelValue(A.current),null==y||y.registerValue(m.value),A.current=m.value),()=>null==y?void 0:y.cancelValue(m.value)}),[m.value]),n.useEffect((()=>{var e;(null===(e=E.current)||void 0===e?void 0:e.input)&&(E.current.input.indeterminate=s)}),[s]);const k=f("checkbox",r),R=vr(k),[I,P,O]=Bi(k,R),T=Object.assign({},m);y&&!p&&(T.onChange=(...e)=>{m.onChange&&m.onChange.apply(m,e),y.toggleOption&&y.toggleOption({label:l,value:m.value})},T.name=y.name,T.checked=y.value.includes(m.value));const $=M()(`${k}-wrapper`,{[`${k}-rtl`]:"rtl"===b,[`${k}-wrapper-checked`]:T.checked,[`${k}-wrapper-disabled`]:x,[`${k}-wrapper-in-form-item`]:w},null==v?void 0:v.className,i,a,O,R,P),z=M()({[`${k}-indeterminate`]:s},jn,P),[D,L]=_i(T.onClick);return I(n.createElement(gr,{component:"Checkbox",disabled:x},n.createElement("label",{className:$,style:Object.assign(Object.assign({},null==v?void 0:v.style),c),onMouseEnter:u,onMouseLeave:d,onClick:D},n.createElement(dn,Object.assign({},T,{onClick:L,prefixCls:k,className:z,disabled:x,ref:S})),null!=l&&n.createElement("span",{className:`${k}-label`},l))))},Wi=n.forwardRef(Vi);const Gi=n.forwardRef(((e,t)=>{const{defaultValue:o,children:r,options:i=[],prefixCls:a,className:l,rootClassName:s,style:c,onChange:u}=e,d=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{"value"in d&&f(d.value||[])}),[d.value]);const v=n.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),y=e=>{b((t=>t.filter((t=>t!==e))))},w=e=>{b((t=>[].concat((0,tt.A)(t),[e])))},C=e=>{const t=m.indexOf(e.value),o=(0,tt.A)(m);-1===t?o.push(e.value):o.splice(t,1),"value"in d||f(o),null==u||u(o.filter((e=>g.includes(e))).sort(((e,t)=>v.findIndex((t=>t.value===e))-v.findIndex((e=>e.value===t)))))},x=p("checkbox",a),A=`${x}-group`,E=vr(x),[S,k,R]=Bi(x,E),I=$o(d,["value","disabled"]),P=i.length?v.map((e=>n.createElement(Wi,{prefixCls:x,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:M()(`${A}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,O=n.useMemo((()=>({toggleOption:C,value:m,disabled:d.disabled,name:d.name,registerValue:w,cancelValue:y})),[C,m,d.disabled,d.name,w,y]),T=M()(A,{[`${A}-rtl`]:"rtl"===h},l,s,R,E,k);return S(n.createElement("div",Object.assign({className:T,style:c},I,{ref:t}),n.createElement(Ni.Provider,{value:O},P)))})),Ki=Gi,Ui=Wi;Ui.Group=Ki,Ui.__ANT_CHECKBOX=!0;const qi=Ui,Xi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var Yi=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Xi}))};const Qi=n.forwardRef(Yi),Ji={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var Zi=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Ji}))};const ea=n.forwardRef(Zi),ta=n.createContext(null);var oa=[],na="rc-util-locker-".concat(Date.now()),ra=0;var ia=!1,aa=function(e){return!1!==e&&((0,Ie.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},la=n.forwardRef((function(e,t){var o=e.open,r=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),s=void 0===a||a,u=e.children,p=n.useState(o),h=(0,l.A)(p,2),m=h[0],f=h[1],b=m||o;n.useEffect((function(){(s||o)&&f(o)}),[o,s]);var v=n.useState((function(){return aa(i)})),y=(0,l.A)(v,2),w=y[0],C=y[1];n.useEffect((function(){var e=aa(i);C(null!=e?e:null)}));var x=function(e){var t=n.useState((function(){return(0,Ie.A)()?document.createElement("div"):null})),o=(0,l.A)(t,1)[0],r=n.useRef(!1),i=n.useContext(ta),a=n.useState(oa),s=(0,l.A)(a,2),u=s[0],d=s[1],p=i||(r.current?void 0:function(e){d((function(t){return[e].concat((0,tt.A)(t))}))});function h(){o.parentElement||document.body.appendChild(o),r.current=!0}function m(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),r.current=!1}return(0,c.A)((function(){return e?i?i(h):h():m(),m}),[e]),(0,c.A)((function(){u.length&&(u.forEach((function(e){return e()})),d(oa))}),[u]),[o,p]}(b&&!w),A=(0,l.A)(x,2),E=A[0],S=A[1],k=null!=w?w:E;!function(e){var t=!!e,o=n.useState((function(){return ra+=1,"".concat(na,"_").concat(ra)})),r=(0,l.A)(o,1)[0];(0,c.A)((function(){if(t){var e=De(document.body).width,o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,Te.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(o?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else(0,Te.m6)(r);return function(){(0,Te.m6)(r)}}),[t,r])}(r&&o&&(0,Ie.A)()&&(k===E||k===document.body));var R=null;u&&(0,g.f3)(u)&&t&&(R=u.ref);var M=(0,g.xK)(R,t);if(!b||!(0,Ie.A)()||void 0===w)return null;var I=!1===k||ia,P=u;return t&&(P=n.cloneElement(u,{ref:M})),n.createElement(ta.Provider,{value:S},I?P:(0,d.createPortal)(P,k))}));const sa=la;var ca=0,ua=(0,S.A)({},r).useId;const da=ua?function(e){var t=ua();return e||t}:function(e){var t=n.useState("ssr-id"),o=(0,l.A)(t,2),r=o[0],i=o[1];return n.useEffect((function(){var e=ca;ca+=1,i("rc_unique_".concat(e))}),[]),e||r},pa=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};function ha(e){var t=e.prefixCls,o=e.align,r=e.arrow,i=e.arrowPos,a=r||{},l=a.className,s=a.content,c=i.x,u=void 0===c?0:c,d=i.y,p=void 0===d?0:d,h=n.useRef();if(!o||!o.points)return null;var m={position:"absolute"};if(!1!==o.autoArrow){var f=o.points[0],g=o.points[1],b=f[0],v=f[1],y=g[0],w=g[1];b!==y&&["t","b"].includes(b)?"t"===b?m.top=0:m.bottom=0:m.top=p,v!==w&&["l","r"].includes(v)?"l"===v?m.left=0:m.right=0:m.left=u}return n.createElement("div",{ref:h,className:M()("".concat(t,"-arrow"),l),style:m},s)}function ma(e){var t=e.prefixCls,o=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?n.createElement(Bn.Ay,(0,f.A)({},a,{motionAppear:!0,visible:o,removeOnLeave:!0}),(function(e){var o=e.className;return n.createElement("div",{style:{zIndex:r},className:M()("".concat(t,"-mask"),o)})})):null}const fa=n.memo((function(e){return e.children}),(function(e,t){return t.cache}));var ga=n.forwardRef((function(e,t){var o=e.popup,r=e.className,i=e.prefixCls,a=e.style,s=e.target,u=e.onVisibleChanged,d=e.open,p=e.keepDom,h=e.fresh,m=e.onClick,b=e.mask,v=e.arrow,y=e.arrowPos,w=e.align,C=e.motion,x=e.maskMotion,A=e.forceRender,E=e.getPopupContainer,k=e.autoDestroy,R=e.portal,I=e.zIndex,P=e.onMouseEnter,O=e.onMouseLeave,T=e.onPointerEnter,$=e.onPointerDownCapture,z=e.ready,D=e.offsetX,L=e.offsetY,F=e.offsetR,N=e.offsetB,H=e.onAlign,j=e.onPrepare,B=e.stretch,_=e.targetWidth,V=e.targetHeight,W="function"==typeof o?o():o,G=d||p,K=(null==E?void 0:E.length)>0,U=n.useState(!E||!K),q=(0,l.A)(U,2),X=q[0],Y=q[1];if((0,c.A)((function(){!X&&K&&s&&Y(!0)}),[X,K,s]),!X)return null;var Q="auto",J={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(z||!d){var Z,ee=w.points,te=w.dynamicInset||(null===(Z=w._experimental)||void 0===Z?void 0:Z.dynamicInset),oe=te&&"r"===ee[0][1],ne=te&&"b"===ee[0][0];oe?(J.right=F,J.left=Q):(J.left=D,J.right=Q),ne?(J.bottom=N,J.top=Q):(J.top=L,J.bottom=Q)}var re={};return B&&(B.includes("height")&&V?re.height=V:B.includes("minHeight")&&V&&(re.minHeight=V),B.includes("width")&&_?re.width=_:B.includes("minWidth")&&_&&(re.minWidth=_)),d||(re.pointerEvents="none"),n.createElement(R,{open:A||G,getContainer:E&&function(){return E(s)},autoDestroy:k},n.createElement(ma,{prefixCls:i,open:d,zIndex:I,mask:b,motion:x}),n.createElement(Me,{onResize:H,disabled:!d},(function(e){return n.createElement(Bn.Ay,(0,f.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(i,"-hidden")},C,{onAppearPrepare:j,onEnterPrepare:j,visible:d,onVisibleChanged:function(e){var t;null==C||null===(t=C.onVisibleChanged)||void 0===t||t.call(C,e),u(e)}}),(function(o,l){var s=o.className,c=o.style,u=M()(i,s,r);return n.createElement("div",{ref:(0,g.K4)(e,t,l),className:u,style:(0,S.A)((0,S.A)((0,S.A)((0,S.A)({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},J),re),c),{},{boxSizing:"border-box",zIndex:I},a),onMouseEnter:P,onMouseLeave:O,onPointerEnter:T,onClick:m,onPointerDownCapture:$},v&&n.createElement(ha,{prefixCls:i,arrow:v,arrowPos:y,align:w}),n.createElement(fa,{cache:!d&&!h},W))}))})))}));const ba=ga,va=n.forwardRef((function(e,t){var o=e.children,r=e.getTriggerDOMNode,i=(0,g.f3)(o),a=n.useCallback((function(e){(0,g.Xf)(t,r?r(e):e)}),[r]),l=(0,g.xK)(a,(0,g.A9)(o));return i?n.cloneElement(o,{ref:l}):o})),ya=n.createContext(null);function wa(e){return e?Array.isArray(e)?e:[e]:[]}function Ca(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function xa(e,t,o,n){return t||(o?{motionName:"".concat(e,"-").concat(o)}:n?{motionName:n}:null)}function Aa(e){return e.ownerDocument.defaultView}function Ea(e){for(var t=[],o=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];o;){var r=Aa(o).getComputedStyle(o);[r.overflowX,r.overflowY,r.overflow].some((function(e){return n.includes(e)}))&&t.push(o),o=o.parentElement}return t}function Sa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function ka(e){return Sa(parseFloat(e),0)}function Ra(e,t){var o=(0,S.A)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Aa(e).getComputedStyle(e),n=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,h=e.clientWidth,m=ka(i),f=ka(a),g=ka(l),b=ka(s),v=Sa(Math.round(c.width/p*1e3)/1e3),y=Sa(Math.round(c.height/u*1e3)/1e3),w=(p-h-g-b)*v,C=(u-d-m-f)*y,x=m*y,A=f*y,E=g*v,S=b*v,k=0,R=0;if("clip"===n){var M=ka(r);k=M*v,R=M*y}var I=c.x+E-k,P=c.y+x-R,O=I+c.width+2*k-E-S-w,T=P+c.height+2*R-x-A-C;o.left=Math.max(o.left,I),o.top=Math.max(o.top,P),o.right=Math.min(o.right,O),o.bottom=Math.min(o.bottom,T)}})),o}function Ma(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=t.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(t)}function Ia(e,t){var o=t||[],n=(0,l.A)(o,2),r=n[0],i=n[1];return[Ma(e.width,r),Ma(e.height,i)]}function Pa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Oa(e,t){var o,n=t[0],r=t[1];return o="t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:o}}function Ta(e,t){var o={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,n){return n===t?o[e]||"c":e})).join("")}var $a=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const za=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sa,t=n.forwardRef((function(t,o){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=t.children,u=t.action,d=void 0===u?"hover":u,p=t.showAction,h=t.hideAction,m=t.popupVisible,f=t.defaultPopupVisible,g=t.onPopupVisibleChange,b=t.afterPopupVisibleChange,v=t.mouseEnterDelay,y=t.mouseLeaveDelay,w=void 0===y?.1:y,C=t.focusDelay,x=t.blurDelay,A=t.mask,E=t.maskClosable,k=void 0===E||E,R=t.getPopupContainer,I=t.forceRender,P=t.autoDestroy,O=t.destroyPopupOnHide,T=t.popup,$=t.popupClassName,z=t.popupStyle,D=t.popupPlacement,L=t.builtinPlacements,F=void 0===L?{}:L,N=t.popupAlign,H=t.zIndex,B=t.stretch,_=t.getPopupClassNameFromAlign,V=t.fresh,W=t.alignPoint,G=t.onPopupClick,K=t.onPopupAlign,U=t.arrow,X=t.popupMotion,Y=t.maskMotion,Q=t.popupTransitionName,J=t.popupAnimation,Z=t.maskTransitionName,ee=t.maskAnimation,te=t.className,oe=t.getTriggerDOMNode,ne=(0,j.A)(t,$a),re=P||O||!1,ie=n.useState(!1),ae=(0,l.A)(ie,2),le=ae[0],se=ae[1];(0,c.A)((function(){se(pa())}),[]);var ce=n.useRef({}),ue=n.useContext(ya),de=n.useMemo((function(){return{registerSubPopup:function(e,t){ce.current[e]=t,null==ue||ue.registerSubPopup(e,t)}}}),[ue]),pe=da(),he=n.useState(null),me=(0,l.A)(he,2),fe=me[0],ge=me[1],be=n.useRef(null),ve=(0,s.A)((function(e){be.current=e,(0,q.fk)(e)&&fe!==e&&ge(e),null==ue||ue.registerSubPopup(pe,e)})),ye=n.useState(null),we=(0,l.A)(ye,2),Ce=we[0],xe=we[1],Ae=n.useRef(null),Ee=(0,s.A)((function(e){(0,q.fk)(e)&&Ce!==e&&(xe(e),Ae.current=e)})),Se=n.Children.only(a),ke=(null==Se?void 0:Se.props)||{},Re={},Ie=(0,s.A)((function(e){var t,o,n=Ce;return(null==n?void 0:n.contains(e))||(null===(t=po(n))||void 0===t?void 0:t.host)===e||e===n||(null==fe?void 0:fe.contains(e))||(null===(o=po(fe))||void 0===o?void 0:o.host)===e||e===fe||Object.values(ce.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Pe=xa(i,X,J,Q),Oe=xa(i,Y,ee,Z),Te=n.useState(f||!1),$e=(0,l.A)(Te,2),ze=$e[0],De=$e[1],Le=null!=m?m:ze,Fe=(0,s.A)((function(e){void 0===m&&De(e)}));(0,c.A)((function(){De(m||!1)}),[m]);var Ne=n.useRef(Le);Ne.current=Le;var He=n.useRef([]);He.current=[];var je=(0,s.A)((function(e){var t;Fe(e),(null!==(t=He.current[He.current.length-1])&&void 0!==t?t:Le)!==e&&(He.current.push(e),null==g||g(e))})),Be=n.useRef(),_e=function(){clearTimeout(Be.current)},Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_e(),0===t?je(e):Be.current=setTimeout((function(){je(e)}),1e3*t)};n.useEffect((function(){return _e}),[]);var We=n.useState(!1),Ge=(0,l.A)(We,2),Ke=Ge[0],Ue=Ge[1];(0,c.A)((function(e){e&&!Le||Ue(!0)}),[Le]);var Xe=n.useState(null),Ye=(0,l.A)(Xe,2),Qe=Ye[0],Je=Ye[1],Ze=n.useState(null),et=(0,l.A)(Ze,2),ot=et[0],nt=et[1],rt=function(e){nt([e.clientX,e.clientY])},it=function(e,t,o,r,i,a,u){var d=n.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),p=(0,l.A)(d,2),h=p[0],m=p[1],f=n.useRef(0),g=n.useMemo((function(){return t?Ea(t):[]}),[t]),b=n.useRef({});e||(b.current={});var v=(0,s.A)((function(){if(t&&o&&e){var n,s,c,d,p,h=t,f=h.ownerDocument,v=Aa(h),y=v.getComputedStyle(h).position,w=h.style.left,C=h.style.top,x=h.style.right,A=h.style.bottom,E=h.style.overflow,k=(0,S.A)((0,S.A)({},i[r]),a),R=f.createElement("div");if(null===(n=h.parentElement)||void 0===n||n.appendChild(R),R.style.left="".concat(h.offsetLeft,"px"),R.style.top="".concat(h.offsetTop,"px"),R.style.position=y,R.style.height="".concat(h.offsetHeight,"px"),R.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",h.style.overflow="hidden",Array.isArray(o))p={x:o[0],y:o[1],width:0,height:0};else{var M,I,P=o.getBoundingClientRect();P.x=null!==(M=P.x)&&void 0!==M?M:P.left,P.y=null!==(I=P.y)&&void 0!==I?I:P.top,p={x:P.x,y:P.y,width:P.width,height:P.height}}var O=h.getBoundingClientRect(),T=v.getComputedStyle(h),$=T.height,z=T.width;O.x=null!==(s=O.x)&&void 0!==s?s:O.left,O.y=null!==(c=O.y)&&void 0!==c?c:O.top;var D=f.documentElement,L=D.clientWidth,F=D.clientHeight,N=D.scrollWidth,H=D.scrollHeight,j=D.scrollTop,B=D.scrollLeft,_=O.height,V=O.width,W=p.height,G=p.width,K={left:0,top:0,right:L,bottom:F},U={left:-B,top:-j,right:N-B,bottom:H-j},X=k.htmlRegion,Y="visible",Q="visibleFirst";"scroll"!==X&&X!==Q&&(X=Y);var J=X===Q,Z=Ra(U,g),ee=Ra(K,g),te=X===Y?ee:Z,oe=J?ee:te;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var ne=h.getBoundingClientRect();h.style.left=w,h.style.top=C,h.style.right=x,h.style.bottom=A,h.style.overflow=E,null===(d=h.parentElement)||void 0===d||d.removeChild(R);var re=Sa(Math.round(V/parseFloat(z)*1e3)/1e3),ie=Sa(Math.round(_/parseFloat($)*1e3)/1e3);if(0===re||0===ie||(0,q.fk)(o)&&!qe(o))return;var ae=k.offset,le=k.targetOffset,se=Ia(O,ae),ce=(0,l.A)(se,2),ue=ce[0],de=ce[1],pe=Ia(p,le),he=(0,l.A)(pe,2),me=he[0],fe=he[1];p.x-=me,p.y-=fe;var ge=k.points||[],be=(0,l.A)(ge,2),ve=be[0],ye=Pa(be[1]),we=Pa(ve),Ce=Oa(p,ye),xe=Oa(O,we),Ae=(0,S.A)({},k),Ee=Ce.x-xe.x+ue,Se=Ce.y-xe.y+de;function yt(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:te,n=O.x+e,r=O.y+t,i=n+V,a=r+_,l=Math.max(n,o.left),s=Math.max(r,o.top),c=Math.min(i,o.right),u=Math.min(a,o.bottom);return Math.max(0,(c-l)*(u-s))}var ke,Re,Me,Ie,Pe=yt(Ee,Se),Oe=yt(Ee,Se,ee),Te=Oa(p,["t","l"]),$e=Oa(O,["t","l"]),ze=Oa(p,["b","r"]),De=Oa(O,["b","r"]),Le=k.overflow||{},Fe=Le.adjustX,Ne=Le.adjustY,He=Le.shiftX,je=Le.shiftY,Be=function(e){return"boolean"==typeof e?e:e>=0};function wt(){ke=O.y+Se,Re=ke+_,Me=O.x+Ee,Ie=Me+V}wt();var _e=Be(Ne),Ve=we[0]===ye[0];if(_e&&"t"===we[0]&&(Re>oe.bottom||b.current.bt)){var We=Se;Ve?We-=_-W:We=Te.y-De.y-de;var Ge=yt(Ee,We),Ke=yt(Ee,We,ee);Ge>Pe||Ge===Pe&&(!J||Ke>=Oe)?(b.current.bt=!0,Se=We,de=-de,Ae.points=[Ta(we,0),Ta(ye,0)]):b.current.bt=!1}if(_e&&"b"===we[0]&&(kePe||Xe===Pe&&(!J||Ye>=Oe)?(b.current.tb=!0,Se=Ue,de=-de,Ae.points=[Ta(we,0),Ta(ye,0)]):b.current.tb=!1}var Qe=Be(Fe),Je=we[1]===ye[1];if(Qe&&"l"===we[1]&&(Ie>oe.right||b.current.rl)){var Ze=Ee;Je?Ze-=V-G:Ze=Te.x-De.x-ue;var et=yt(Ze,Se),tt=yt(Ze,Se,ee);et>Pe||et===Pe&&(!J||tt>=Oe)?(b.current.rl=!0,Ee=Ze,ue=-ue,Ae.points=[Ta(we,1),Ta(ye,1)]):b.current.rl=!1}if(Qe&&"r"===we[1]&&(MePe||nt===Pe&&(!J||rt>=Oe)?(b.current.lr=!0,Ee=ot,ue=-ue,Ae.points=[Ta(we,1),Ta(ye,1)]):b.current.lr=!1}wt();var it=!0===He?0:He;"number"==typeof it&&(Meee.right&&(Ee-=Ie-ee.right-ue,p.x>ee.right-it&&(Ee+=p.x-ee.right+it)));var at=!0===je?0:je;"number"==typeof at&&(keee.bottom&&(Se-=Re-ee.bottom-de,p.y>ee.bottom-at&&(Se+=p.y-ee.bottom+at)));var lt=O.x+Ee,st=lt+V,ct=O.y+Se,ut=ct+_,dt=p.x,pt=dt+G,ht=p.y,mt=ht+W,ft=(Math.max(lt,dt)+Math.min(st,pt))/2-lt,gt=(Math.max(ct,ht)+Math.min(ut,mt))/2-ct;null==u||u(t,Ae);var bt=ne.right-O.x-(Ee+O.width),vt=ne.bottom-O.y-(Se+O.height);1===re&&(Ee=Math.round(Ee),bt=Math.round(bt)),1===ie&&(Se=Math.round(Se),vt=Math.round(vt)),m({ready:!0,offsetX:Ee/re,offsetY:Se/ie,offsetR:bt/re,offsetB:vt/ie,arrowX:ft/re,arrowY:gt/ie,scaleX:re,scaleY:ie,align:Ae})}})),y=function(){m((function(e){return(0,S.A)((0,S.A)({},e),{},{ready:!1})}))};return(0,c.A)(y,[r]),(0,c.A)((function(){e||y()}),[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&v()}))}]}(Le,fe,W&&null!==ot?ot:Ce,D,F,N,K),at=(0,l.A)(it,11),lt=at[0],st=at[1],ct=at[2],ut=at[3],dt=at[4],pt=at[5],ht=at[6],mt=at[7],ft=at[8],gt=at[9],bt=at[10],vt=function(e,t,o,r){return n.useMemo((function(){var n=wa(null!=o?o:t),i=wa(null!=r?r:t),a=new Set(n),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,o,r])}(le,d,p,h),yt=(0,l.A)(vt,2),wt=yt[0],Ct=yt[1],xt=wt.has("click"),At=Ct.has("click")||Ct.has("contextMenu"),Et=(0,s.A)((function(){Ke||bt()}));!function(e,t,o,n){(0,c.A)((function(){if(e&&t&&o){var r=o,i=Ea(t),a=Ea(r),l=Aa(r),s=new Set([l].concat((0,tt.A)(i),(0,tt.A)(a)));function c(){n(),Ne.current&&W&&At&&Ve(!1)}return s.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),l.addEventListener("resize",c,{passive:!0}),n(),function(){s.forEach((function(e){e.removeEventListener("scroll",c),l.removeEventListener("resize",c)}))}}}),[e,t,o])}(Le,Ce,fe,Et),(0,c.A)((function(){Et()}),[ot,D]),(0,c.A)((function(){!Le||null!=F&&F[D]||Et()}),[JSON.stringify(N)]);var St=n.useMemo((function(){var e=function(e,t,o,n){for(var r=o.points,i=Object.keys(e),a=0;a1?a-1:0),s=1;s1?o-1:0),r=1;r1?o-1:0),r=1;r=Da.F1&&t<=Da.F12)return!1;switch(t){case Da.ALT:case Da.CAPS_LOCK:case Da.CONTEXT_MENU:case Da.CTRL:case Da.DOWN:case Da.END:case Da.ESC:case Da.HOME:case Da.INSERT:case Da.LEFT:case Da.MAC_FF_META:case Da.META:case Da.NUMLOCK:case Da.NUM_CENTER:case Da.PAGE_DOWN:case Da.PAGE_UP:case Da.PAUSE:case Da.PRINT_SCREEN:case Da.RIGHT:case Da.SHIFT:case Da.UP:case Da.WIN_KEY:case Da.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Da.ZERO&&e<=Da.NINE)return!0;if(e>=Da.NUM_ZERO&&e<=Da.NUM_MULTIPLY)return!0;if(e>=Da.A&&e<=Da.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Da.SPACE:case Da.QUESTION_MARK:case Da.NUM_PLUS:case Da.NUM_MINUS:case Da.NUM_PERIOD:case Da.NUM_DIVISION:case Da.SEMICOLON:case Da.DASH:case Da.EQUALS:case Da.COMMA:case Da.PERIOD:case Da.SLASH:case Da.APOSTROPHE:case Da.SINGLE_QUOTE:case Da.OPEN_SQUARE_BRACKET:case Da.BACKSLASH:case Da.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const La=Da;var Fa=La.ESC,Na=La.TAB;const Ha=(0,n.forwardRef)((function(e,t){var o=e.overlay,r=e.arrow,i=e.prefixCls,a=(0,n.useMemo)((function(){return"function"==typeof o?o():o}),[o]),l=(0,g.K4)(t,(0,g.A9)(a));return n.createElement(n.Fragment,null,r&&n.createElement("div",{className:"".concat(i,"-arrow")}),n.cloneElement(a,{ref:(0,g.f3)(a)?l:void 0}))}));var ja={adjustX:1,adjustY:1},Ba=[0,0];const _a={topLeft:{points:["bl","tl"],overflow:ja,offset:[0,-4],targetOffset:Ba},top:{points:["bc","tc"],overflow:ja,offset:[0,-4],targetOffset:Ba},topRight:{points:["br","tr"],overflow:ja,offset:[0,-4],targetOffset:Ba},bottomLeft:{points:["tl","bl"],overflow:ja,offset:[0,4],targetOffset:Ba},bottom:{points:["tc","bc"],overflow:ja,offset:[0,4],targetOffset:Ba},bottomRight:{points:["tr","br"],overflow:ja,offset:[0,4],targetOffset:Ba}};var Va=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Wa(e,t){var o,r=e.arrow,i=void 0!==r&&r,a=e.prefixCls,s=void 0===a?"rc-dropdown":a,c=e.transitionName,u=e.animation,d=e.align,p=e.placement,h=void 0===p?"bottomLeft":p,m=e.placements,b=void 0===m?_a:m,v=e.getPopupContainer,y=e.showAction,w=e.hideAction,C=e.overlayClassName,x=e.overlayStyle,A=e.visible,E=e.trigger,S=void 0===E?["hover"]:E,R=e.autoFocus,I=e.overlay,P=e.children,O=e.onVisibleChange,T=(0,j.A)(e,Va),$=n.useState(),z=(0,l.A)($,2),D=z[0],L=z[1],F="visible"in e?A:D,N=n.useRef(null),H=n.useRef(null),B=n.useRef(null);n.useImperativeHandle(t,(function(){return N.current}));var _=function(e){L(e),null==O||O(e)};!function(e){var t=e.visible,o=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=n.useRef(!1),s=function(){var e,n;t&&(null===(e=o.current)||void 0===e||null===(n=e.focus)||void 0===n||n.call(e),null==r||r(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case Fa:s();break;case Na:var t=!1;l.current||(t=c()),t?e.preventDefault():s()}};n.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&(0,bt.A)(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:F,triggerRef:B,onVisibleChange:_,autoFocus:R,overlayRef:H});var V,W,G,K=function(){return n.createElement(Ha,{ref:H,overlay:I,prefixCls:s,arrow:i})},U=n.cloneElement(P,{className:M()(null===(o=P.props)||void 0===o?void 0:o.className,F&&(V=e.openClassName,void 0!==V?V:"".concat(s,"-open"))),ref:(0,g.f3)(P)?(0,g.K4)(B,(0,g.A9)(P)):void 0}),q=w;return q||-1===S.indexOf("contextMenu")||(q=["click"]),n.createElement(za,(0,f.A)({builtinPlacements:b},T,{prefixCls:s,ref:N,popupClassName:M()(C,(0,k.A)({},"".concat(s,"-show-arrow"),i)),popupStyle:x,action:S,showAction:y,hideAction:q,popupPlacement:h,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:F,stretch:(W=e.minOverlayWidthMatchTrigger,G=e.alignPoint,("minOverlayWidthMatchTrigger"in e?W:!G)?"minWidth":""),popup:"function"==typeof I?K:K(),onPopupVisibleChange:_,onPopupClick:function(t){var o=e.onOverlayClick;L(!1),o&&o(t)},getPopupContainer:v}),U)}const Ga=n.forwardRef(Wa),Ka=n.createContext(void 0),Ua=100,qa={Modal:Ua,Drawer:Ua,Popover:Ua,Popconfirm:Ua,Tooltip:Ua,Tour:Ua,FloatButton:Ua},Xa={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Ya=(e,t)=>{const[,o]=(0,zn.Ay)(),r=n.useContext(Ka),i=e in qa;let a;if(void 0!==t)a=[t,t];else{let n=null!=r?r:0;n+=i?(r?0:o.zIndexPopupBase)+qa[e]:Xa[e],a=[void 0===r?t:n,n]}return a};function Qa(e){const{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:n}=e,r=t/2,i=r,a=1*n/Math.sqrt(2),l=r-n*(1-1/Math.sqrt(2)),s=r-o*(1/Math.sqrt(2)),c=n*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),u=2*r-s,d=c,p=2*r-a,h=l,m=2*r-0,f=i,g=r*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${n} ${n} 0 0 0 ${a} ${l} L ${s} ${c} A ${o} ${o} 0 0 1 ${u} ${d} L ${p} ${h} A ${n} ${n} 0 0 0 ${m} ${f} Z')`,arrowPolygon:`polygon(${b}px 100%, 50% ${b}px, ${2*r-b}px 100%, ${b}px 100%)`}}const Ja=(e,t,o)=>{const{sizePopupArrow:n,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:s(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,fn.zA)(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}};function Za(e){const{contentRadius:t,limitVerticalRadius:o}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:o?8:n}}function el(e,t){return e?t:{}}function tl(e,t,o){const{componentCls:n,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=o||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Ja(e,t,r)),{"&:before":{background:t}})]},el(!!s.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,fn.zA)(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),el(!!s.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,fn.zA)(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),el(!!s.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),el(!!s.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}const ol={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},nl={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},rl=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function il(e){const{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:n,offset:r,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(ol).forEach((e=>{const c=n&&nl[e]||ol[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,rl.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-r;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+r;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-r;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+r}const d=Za({contentRadius:i,limitVerticalRadius:!0});if(n)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,o,n){if(!1===n)return{adjustX:!1,adjustY:!1};const r=n&&"object"==typeof n?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+o,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+o,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,o),a&&(u.htmlRegion="visibleFirst")})),s}var al=o(82345);const ll=(e,t,o,r,i)=>function(e){return t=>n.createElement(al.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},n.createElement(e,Object.assign({},t)))}((a=>{const{prefixCls:l,style:s}=a,c=n.useRef(null),[u,d]=n.useState(0),[p,h]=n.useState(0),[m,f]=(0,ln.A)(!1,{value:a.open}),{getPrefixCls:g}=n.useContext(pn.QO),b=g(r||"select",l);n.useEffect((()=>{if(f(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;d(t.offsetHeight+8),h(t.offsetWidth)})),t=setInterval((()=>{var o;const n=i?`.${i(b)}`:`.${b}-dropdown`,r=null===(o=c.current)||void 0===o?void 0:o.querySelector(n);r&&(clearInterval(t),e.observe(r))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});o&&(v=o(v)),t&&Object.assign(v,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:u,position:"relative",minWidth:p};return n.createElement("div",{ref:c,style:y},n.createElement(e,Object.assign({},v)))}));var sl=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],cl=void 0;function ul(e,t){var o=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,p=e.style,h=e.children,m=e.display,g=e.order,b=e.component,v=void 0===b?"div":b,y=(0,j.A)(e,sl),w=l&&!m;function C(e){c(u,e)}n.useEffect((function(){return function(){C(null)}}),[]);var x,A=a&&i!==cl?a(i,{index:g}):h;r||(x={opacity:w?0:1,height:w?0:cl,overflowY:w?"hidden":cl,order:l?g:cl,pointerEvents:w?"none":cl,position:w?"absolute":cl});var E={};w&&(E["aria-hidden"]=!0);var k=n.createElement(v,(0,f.A)({className:M()(!r&&o,d),style:(0,S.A)((0,S.A)({},x),p)},E,y,{ref:t}),A);return l&&(k=n.createElement(Me,{onResize:function(e){C(e.offsetWidth)},disabled:s},k)),k}var dl=n.forwardRef(ul);dl.displayName="Item";const pl=dl;function hl(e,t){var o=n.useState(t),r=(0,l.A)(o,2),i=r[0],a=r[1];return[i,(0,s.A)((function(t){e((function(){a(t)}))}))]}var ml=n.createContext(null),fl=["component"],gl=["className"],bl=["className"],vl=function(e,t){var o=n.useContext(ml);if(!o){var r=e.component,i=void 0===r?"div":r,a=(0,j.A)(e,fl);return n.createElement(i,(0,f.A)({},a,{ref:t}))}var l=o.className,s=(0,j.A)(o,gl),c=e.className,u=(0,j.A)(e,bl);return n.createElement(ml.Provider,{value:null},n.createElement(pl,(0,f.A)({ref:t,className:M()(l,c)},s,u)))},yl=n.forwardRef(vl);yl.displayName="RawItem";const wl=yl;var Cl=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],xl="responsive",Al="invalidate";function El(e){return"+ ".concat(e.length," ...")}function Sl(e,t){var o,r=e.prefixCls,i=void 0===r?"rc-overflow":r,a=e.data,s=void 0===a?[]:a,u=e.renderItem,p=e.renderRawItem,h=e.itemKey,m=e.itemWidth,g=void 0===m?10:m,b=e.ssr,v=e.style,y=e.className,w=e.maxCount,C=e.renderRest,x=e.renderRawRest,A=e.suffix,E=e.component,k=void 0===E?"div":E,R=e.itemComponent,I=e.onVisibleChange,P=(0,j.A)(e,Cl),O="full"===b,T=(o=n.useRef(null),function(e){o.current||(o.current=[],function(e){if("undefined"==typeof MessageChannel)(0,bt.A)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,d.unstable_batchedUpdates)((function(){o.current.forEach((function(e){e()})),o.current=null}))}))),o.current.push(e)}),$=hl(T,null),z=(0,l.A)($,2),D=z[0],L=z[1],F=D||0,N=hl(T,new Map),H=(0,l.A)(N,2),B=H[0],_=H[1],V=hl(T,0),W=(0,l.A)(V,2),G=W[0],K=W[1],U=hl(T,0),q=(0,l.A)(U,2),X=q[0],Y=q[1],Q=hl(T,0),J=(0,l.A)(Q,2),Z=J[0],ee=J[1],te=(0,n.useState)(null),oe=(0,l.A)(te,2),ne=oe[0],re=oe[1],ie=(0,n.useState)(null),ae=(0,l.A)(ie,2),le=ae[0],se=ae[1],ce=n.useMemo((function(){return null===le&&O?Number.MAX_SAFE_INTEGER:le||0}),[le,D]),ue=(0,n.useState)(!1),de=(0,l.A)(ue,2),pe=de[0],he=de[1],me="".concat(i,"-item"),fe=Math.max(G,X),ge=w===xl,be=s.length&&ge,ve=w===Al,ye=be||"number"==typeof w&&s.length>w,we=(0,n.useMemo)((function(){var e=s;return be?e=null===D&&O?s:s.slice(0,Math.min(s.length,F/g)):"number"==typeof w&&(e=s.slice(0,w)),e}),[s,g,D,w,be]),Ce=(0,n.useMemo)((function(){return be?s.slice(ce+1):s.slice(we.length)}),[s,we,be,ce]),xe=(0,n.useCallback)((function(e,t){var o;return"function"==typeof h?h(e):null!==(o=h&&(null==e?void 0:e[h]))&&void 0!==o?o:t}),[h]),Ae=(0,n.useCallback)(u||function(e){return e},[u]);function Ee(e,t,o){(le!==e||void 0!==t&&t!==ne)&&(se(e),o||(he(eF){Ee(n-1,e-r-Z+X);break}}A&&ke(0)+Z>F&&re(null)}}),[F,B,X,Z,xe,we]);var Re=pe&&!!Ce.length,Ie={};null!==ne&&be&&(Ie={position:"absolute",left:ne,top:0});var Pe={prefixCls:me,responsive:be,component:R,invalidate:ve},Oe=p?function(e,t){var o=xe(e,t);return n.createElement(ml.Provider,{key:o,value:(0,S.A)((0,S.A)({},Pe),{},{order:t,item:e,itemKey:o,registerSize:Se,display:t<=ce})},p(e,t))}:function(e,t){var o=xe(e,t);return n.createElement(pl,(0,f.A)({},Pe,{order:t,key:o,item:e,renderItem:Ae,itemKey:o,registerSize:Se,display:t<=ce}))},Te={order:Re?ce:Number.MAX_SAFE_INTEGER,className:"".concat(me,"-rest"),registerSize:function(e,t){Y(t),K(X)},display:Re},$e=C||El,ze=x?n.createElement(ml.Provider,{value:(0,S.A)((0,S.A)({},Pe),Te)},x(Ce)):n.createElement(pl,(0,f.A)({},Pe,Te),"function"==typeof $e?$e(Ce):$e),De=n.createElement(k,(0,f.A)({className:M()(!ve&&i,y),style:v,ref:t},P),we.map(Oe),ye?ze:null,A&&n.createElement(pl,(0,f.A)({},Pe,{responsive:ge,responsiveDisabled:!be,order:ce,className:"".concat(me,"-suffix"),registerSize:function(e,t){ee(t)},display:!0,style:Ie}),A));return ge?n.createElement(Me,{onResize:function(e,t){L(t.clientWidth)},disabled:!be},De):De}var kl=n.forwardRef(Sl);kl.displayName="Overflow",kl.Item=wl,kl.RESPONSIVE=xl,kl.INVALIDATE=Al;const Rl=kl;var Ml=n.createContext(null);function Il(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Pl(e){return Il(n.useContext(Ml),e)}var Ol=["children","locked"],Tl=n.createContext(null);function $l(e){var t=e.children,o=e.locked,r=(0,j.A)(e,Ol),i=n.useContext(Tl),a=(0,I.A)((function(){return e=i,t=r,o=(0,S.A)({},e),Object.keys(t).forEach((function(e){var n=t[e];void 0!==n&&(o[e]=n)})),o;var e,t,o}),[i,r],(function(e,t){return!(o||e[0]===t[0]&&(0,u.A)(e[1],t[1],!0))}));return n.createElement(Tl.Provider,{value:a},t)}var zl=[],Dl=n.createContext(null);function Ll(){return n.useContext(Dl)}var Fl=n.createContext(zl);function Nl(e){var t=n.useContext(Fl);return n.useMemo((function(){return void 0!==e?[].concat((0,tt.A)(t),[e]):t}),[t,e])}var Hl=n.createContext(null);const jl=n.createContext({});function Bl(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(qe(e)){var o=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(o)||e.isContentEditable||"a"===o&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:n&&null===a&&(a=0),n&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var _l=La.LEFT,Vl=La.RIGHT,Wl=La.UP,Gl=La.DOWN,Kl=La.ENTER,Ul=La.ESC,ql=La.HOME,Xl=La.END,Yl=[Wl,Gl,_l,Vl];function Ql(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=(0,tt.A)(e.querySelectorAll("*")).filter((function(e){return Bl(e,t)}));return Bl(e,t)&&o.unshift(e),o}(e,!0).filter((function(e){return t.has(e)}))}function Jl(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=Ql(e,t),i=r.length,a=r.findIndex((function(e){return o===e}));return n<0?-1===a?a=i-1:a-=1:n>0&&(a+=1),r[a=(a+i)%i]}var Zl=function(e,t){var o=new Set,n=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Il(t,e),"']"));i&&(o.add(i),r.set(i,e),n.set(e,i))})),{elements:o,key2element:n,element2key:r}};var es="__RC_UTIL_PATH_SPLIT__",ts=function(e){return e.join(es)},os="rc-menu-more";function ns(e){var t=n.useRef(e);t.current=e;var o=n.useCallback((function(){for(var e,o=arguments.length,n=new Array(o),r=0;r1&&(C.motionAppear=!1);var x=C.onVisibleChanged;return C.onVisibleChanged=function(e){return m.current||e||y(!0),null==x?void 0:x(e)},v?null:n.createElement($l,{mode:a,locked:!m.current},n.createElement(Bn.Ay,(0,f.A)({visible:w},C,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var o=e.className,r=e.style;return n.createElement(Cs,{id:t,className:o,style:r},i)})))}var Ps=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Os=["active"],Ts=n.forwardRef((function(e,t){var o=e.style,r=e.className,i=e.title,a=e.eventKey,s=(e.warnKey,e.disabled),c=e.internalPopupClose,u=e.children,d=e.itemIcon,p=e.expandIcon,h=e.popupClassName,m=e.popupOffset,g=e.popupStyle,b=e.onClick,v=e.onMouseEnter,y=e.onMouseLeave,w=e.onTitleClick,C=e.onTitleMouseEnter,x=e.onTitleMouseLeave,A=(0,j.A)(e,Ps),E=Pl(a),R=n.useContext(Tl),I=R.prefixCls,P=R.mode,O=R.openKeys,T=R.disabled,$=R.overflowDisabled,z=R.activeKey,D=R.selectedKeys,L=R.itemIcon,F=R.expandIcon,N=R.onItemClick,H=R.onOpenChange,B=R.onActive,_=n.useContext(jl)._internalRenderSubMenuItem,V=n.useContext(Hl).isSubPathKey,W=Nl(),G="".concat(I,"-submenu"),K=T||s,U=n.useRef(),q=n.useRef(),X=null!=d?d:L,Y=null!=p?p:F,Q=O.includes(a),J=!$&&Q,Z=V(D,a),ee=as(a,K,C,x),te=ee.active,oe=(0,j.A)(ee,Os),ne=n.useState(!1),re=(0,l.A)(ne,2),ie=re[0],ae=re[1],le=function(e){K||ae(e)},se=n.useMemo((function(){return te||"inline"!==P&&(ie||V([z],a))}),[P,te,z,ie,a,V]),ce=ls(W.length),ue=ns((function(e){null==b||b(us(e)),N(e)})),de=E&&"".concat(E,"-popup"),pe=n.useMemo((function(){return n.createElement(ss,{icon:"horizontal"!==P?Y:void 0,props:(0,S.A)((0,S.A)({},e),{},{isOpen:J,isSubMenu:!0})},n.createElement("i",{className:"".concat(G,"-arrow")}))}),[P,Y,e,J,G]),he=n.createElement("div",(0,f.A)({role:"menuitem",style:ce,className:"".concat(G,"-title"),tabIndex:K?null:-1,ref:U,title:"string"==typeof i?i:null,"data-menu-id":$&&E?null:E,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":K,onClick:function(e){K||(null==w||w({key:a,domEvent:e}),"inline"===P&&H(a,!Q))},onFocus:function(){B(a)}},oe),i,pe),me=n.useRef(P);if("inline"!==P&&W.length>1?me.current="vertical":me.current=P,!$){var fe=me.current;he=n.createElement(Ms,{mode:fe,prefixCls:G,visible:!c&&J&&"inline"!==P,popupClassName:h,popupOffset:m,popupStyle:g,popup:n.createElement($l,{mode:"horizontal"===fe?"vertical":fe},n.createElement(Cs,{id:de,ref:q},u)),disabled:K,onVisibleChange:function(e){"inline"!==P&&H(a,e)}},he)}var ge=n.createElement(Rl.Item,(0,f.A)({ref:t,role:"none"},A,{component:"li",style:o,className:M()(G,"".concat(G,"-").concat(P),r,(0,k.A)((0,k.A)((0,k.A)((0,k.A)({},"".concat(G,"-open"),J),"".concat(G,"-active"),se),"".concat(G,"-selected"),Z),"".concat(G,"-disabled"),K)),onMouseEnter:function(e){le(!0),null==v||v({key:a,domEvent:e})},onMouseLeave:function(e){le(!1),null==y||y({key:a,domEvent:e})}}),he,!$&&n.createElement(Is,{id:de,open:J,keyPath:W},u));return _&&(ge=_(ge,e,{selected:Z,active:se,open:J,disabled:K})),n.createElement($l,{onItemClick:ue,mode:"horizontal"===P?"vertical":P,itemIcon:X,expandIcon:Y},ge)}));const $s=n.forwardRef((function(e,t){var o,r=e.eventKey,i=e.children,a=Nl(r),l=xs(i,a),s=Ll();return n.useEffect((function(){if(s)return s.registerPath(r,a),function(){s.unregisterPath(r,a)}}),[a]),o=s?l:n.createElement(Ts,(0,f.A)({ref:t},e),l),n.createElement(Fl.Provider,{value:a},o)}));function zs(e){var t=e.className,o=e.style,r=n.useContext(Tl).prefixCls;return Ll()?null:n.createElement("li",{role:"separator",className:M()("".concat(r,"-item-divider"),t),style:o})}var Ds=["className","title","eventKey","children"],Ls=n.forwardRef((function(e,t){var o=e.className,r=e.title,i=(e.eventKey,e.children),a=(0,j.A)(e,Ds),l=n.useContext(Tl).prefixCls,s="".concat(l,"-item-group");return n.createElement("li",(0,f.A)({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:M()(s,o)}),n.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof r?r:void 0},r),n.createElement("ul",{role:"group",className:"".concat(s,"-list")},i))}));const Fs=n.forwardRef((function(e,t){var o=e.eventKey,r=xs(e.children,Nl(o));return Ll()?r:n.createElement(Ls,(0,f.A)({ref:t},$o(e,["warnKey"])),r)}));var Ns=["label","children","key","type","extra"];function Hs(e,t,o){var r=t.item,i=t.group,a=t.submenu,l=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===(0,E.A)(e)){var c=e,u=c.label,d=c.children,p=c.key,h=c.type,m=c.extra,g=(0,j.A)(c,Ns),b=null!=p?p:"tmp-".concat(s);return d||"group"===h?"group"===h?n.createElement(i,(0,f.A)({key:b},g,{title:u}),Hs(d,t,o)):n.createElement(a,(0,f.A)({key:b},g,{title:u}),Hs(d,t,o)):"divider"===h?n.createElement(l,(0,f.A)({key:b},g)):n.createElement(r,(0,f.A)({key:b},g,{extra:m}),u,(!!m||0===m)&&n.createElement("span",{className:"".concat(o,"-item-extra")},m))}return null})).filter((function(e){return e}))}function js(e,t,o,n,r){var i=e,a=(0,S.A)({divider:zs,item:bs,group:Fs,submenu:$s},n);return t&&(i=Hs(t,a,r)),xs(i,o)}var Bs=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],_s=[],Vs=n.forwardRef((function(e,t){var o,r=e,i=r.prefixCls,a=void 0===i?"rc-menu":i,s=r.rootClassName,c=r.style,p=r.className,h=r.tabIndex,m=void 0===h?0:h,g=r.items,b=r.children,v=r.direction,y=r.id,w=r.mode,C=void 0===w?"vertical":w,x=r.inlineCollapsed,A=r.disabled,E=r.disabledOverflow,R=r.subMenuOpenDelay,I=void 0===R?.1:R,P=r.subMenuCloseDelay,O=void 0===P?.1:P,T=r.forceSubMenuRender,$=r.defaultOpenKeys,z=r.openKeys,D=r.activeKey,L=r.defaultActiveFirst,F=r.selectable,N=void 0===F||F,H=r.multiple,B=void 0!==H&&H,_=r.defaultSelectedKeys,V=r.selectedKeys,W=r.onSelect,G=r.onDeselect,K=r.inlineIndent,U=void 0===K?24:K,q=r.motion,X=r.defaultMotions,Y=r.triggerSubMenuAction,Q=void 0===Y?"hover":Y,J=r.builtinPlacements,Z=r.itemIcon,ee=r.expandIcon,te=r.overflowedIndicator,oe=void 0===te?"...":te,ne=r.overflowedIndicatorPopupClassName,re=r.getPopupContainer,ie=r.onClick,ae=r.onOpenChange,le=r.onKeyDown,se=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),ce=r._internalRenderSubMenuItem,ue=r._internalComponents,de=(0,j.A)(r,Bs),pe=n.useMemo((function(){return[js(b,g,_s,ue,a),js(b,g,_s,{},a)]}),[b,g,ue]),he=(0,l.A)(pe,2),me=he[0],fe=he[1],ge=n.useState(!1),be=(0,l.A)(ge,2),ve=be[0],ye=be[1],we=n.useRef(),Ce=function(e){var t=(0,ln.A)(e,{value:e}),o=(0,l.A)(t,2),r=o[0],i=o[1];return n.useEffect((function(){is+=1;var e="".concat(rs,"-").concat(is);i("rc-menu-uuid-".concat(e))}),[]),r}(y),xe="rtl"===v,Ae=(0,ln.A)($,{value:z,postState:function(e){return e||_s}}),Ee=(0,l.A)(Ae,2),Se=Ee[0],ke=Ee[1],Re=function(e){function t(){ke(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,d.flushSync)(t):t()},Me=n.useState(Se),Ie=(0,l.A)(Me,2),Pe=Ie[0],Oe=Ie[1],Te=n.useRef(!1),$e=n.useMemo((function(){return"inline"!==C&&"vertical"!==C||!x?[C,!1]:["vertical",x]}),[C,x]),ze=(0,l.A)($e,2),De=ze[0],Le=ze[1],Fe="inline"===De,Ne=n.useState(De),He=(0,l.A)(Ne,2),je=He[0],Be=He[1],_e=n.useState(Le),Ve=(0,l.A)(_e,2),We=Ve[0],Ge=Ve[1];n.useEffect((function(){Be(De),Ge(Le),Te.current&&(Fe?ke(Pe):Re(_s))}),[De,Le]);var Ke=n.useState(0),Ue=(0,l.A)(Ke,2),qe=Ue[0],Xe=Ue[1],Ye=qe>=me.length-1||"horizontal"!==je||E;n.useEffect((function(){Fe&&Oe(Se)}),[Se]),n.useEffect((function(){return Te.current=!0,function(){Te.current=!1}}),[]);var Qe=function(){var e=n.useState({}),t=(0,l.A)(e,2)[1],o=(0,n.useRef)(new Map),r=(0,n.useRef)(new Map),i=n.useState([]),a=(0,l.A)(i,2),s=a[0],c=a[1],u=(0,n.useRef)(0),d=(0,n.useRef)(!1),p=(0,n.useCallback)((function(e,n){var i=ts(n);r.current.set(i,e),o.current.set(e,i),u.current+=1;var a,l=u.current;a=function(){l===u.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),h=(0,n.useCallback)((function(e,t){var n=ts(t);r.current.delete(n),o.current.delete(e)}),[]),m=(0,n.useCallback)((function(e){c(e)}),[]),f=(0,n.useCallback)((function(e,t){var n=(o.current.get(e)||"").split(es);return t&&s.includes(n[0])&&n.unshift(os),n}),[s]),g=(0,n.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),b=(0,n.useCallback)((function(e){var t="".concat(o.current.get(e)).concat(es),n=new Set;return(0,tt.A)(r.current.keys()).forEach((function(e){e.startsWith(t)&&n.add(r.current.get(e))})),n}),[]);return n.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:h,refreshOverflowKeys:m,isSubPathKey:g,getKeyPath:f,getKeys:function(){var e=(0,tt.A)(o.current.keys());return s.length&&e.push(os),e},getSubPathKeys:b}}(),Je=Qe.registerPath,Ze=Qe.unregisterPath,et=Qe.refreshOverflowKeys,ot=Qe.isSubPathKey,nt=Qe.getKeyPath,rt=Qe.getKeys,it=Qe.getSubPathKeys,at=n.useMemo((function(){return{registerPath:Je,unregisterPath:Ze}}),[Je,Ze]),lt=n.useMemo((function(){return{isSubPathKey:ot}}),[ot]);n.useEffect((function(){et(Ye?_s:me.slice(qe+1).map((function(e){return e.key})))}),[qe,Ye]);var st=(0,ln.A)(D||L&&(null===(o=me[0])||void 0===o?void 0:o.key),{value:D}),ct=(0,l.A)(st,2),ut=ct[0],dt=ct[1],pt=ns((function(e){dt(e)})),ht=ns((function(){dt(void 0)}));(0,n.useImperativeHandle)(t,(function(){return{list:we.current,focus:function(e){var t,o,n=rt(),r=Zl(n,Ce),i=r.elements,a=r.key2element,l=r.element2key,s=Ql(we.current,i),c=null!=ut?ut:s[0]?l.get(s[0]):null===(t=me.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(o=u.focus)||void 0===o||o.call(u,e))}}}));var mt=(0,ln.A)(_||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?_s:[e]}}),ft=(0,l.A)(mt,2),gt=ft[0],vt=ft[1],yt=ns((function(e){null==ie||ie(us(e)),function(e){if(N){var t,o=e.key,n=gt.includes(o);t=B?n?gt.filter((function(e){return e!==o})):[].concat((0,tt.A)(gt),[o]):[o],vt(t);var r=(0,S.A)((0,S.A)({},e),{},{selectedKeys:t});n?null==G||G(r):null==W||W(r)}!B&&Se.length&&"inline"!==je&&Re(_s)}(e)})),wt=ns((function(e,t){var o=Se.filter((function(t){return t!==e}));if(t)o.push(e);else if("inline"!==je){var n=it(e);o=o.filter((function(e){return!n.has(e)}))}(0,u.A)(Se,o,!0)||Re(o,!0)})),Ct=function(e,t,o,r,i,a,l,s,c,u){var d=n.useRef(),p=n.useRef();p.current=t;var h=function(){bt.A.cancel(d.current)};return n.useEffect((function(){return function(){h()}}),[]),function(n){var m=n.which;if([].concat(Yl,[Kl,Ul,ql,Xl]).includes(m)){var f=a(),g=Zl(f,r),b=g,v=b.elements,y=b.key2element,w=b.element2key,C=function(e,t){for(var o=e||document.activeElement;o;){if(t.has(o))return o;o=o.parentElement}return null}(y.get(t),v),x=w.get(C),A=function(e,t,o,n){var r,i="prev",a="next",l="children",s="parent";if("inline"===e&&n===Kl)return{inlineTrigger:!0};var c=(0,k.A)((0,k.A)({},Wl,i),Gl,a),u=(0,k.A)((0,k.A)((0,k.A)((0,k.A)({},_l,o?a:i),Vl,o?i:a),Gl,l),Kl,l),d=(0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)({},Wl,i),Gl,a),Kl,l),Ul,s),_l,o?l:s),Vl,o?s:l);switch(null===(r={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===r?void 0:r[n]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(x,!0).length,o,m);if(!A&&m!==ql&&m!==Xl)return;(Yl.includes(m)||[ql,Xl].includes(m))&&n.preventDefault();var E=function(e){if(e){var t=e,o=e.querySelector("a");null!=o&&o.getAttribute("href")&&(t=o);var n=w.get(e);s(n),h(),d.current=(0,bt.A)((function(){p.current===n&&t.focus()}))}};if([ql,Xl].includes(m)||A.sibling||!C){var S,R,M=Ql(S=C&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,v);R=m===ql?M[0]:m===Xl?M[M.length-1]:Jl(S,v,C,A.offset),E(R)}else if(A.inlineTrigger)c(x);else if(A.offset>0)c(x,!0),h(),d.current=(0,bt.A)((function(){g=Zl(f,r);var e=C.getAttribute("aria-controls"),t=Jl(document.getElementById(e),g.elements);E(t)}),5);else if(A.offset<0){var I=l(x,!0),P=I[I.length-2],O=y.get(P);c(P,!1),E(O)}}null==u||u(n)}}(je,ut,xe,Ce,we,rt,nt,dt,(function(e,t){var o=null!=t?t:!Se.includes(e);wt(e,o)}),le);n.useEffect((function(){ye(!0)}),[]);var xt=n.useMemo((function(){return{_internalRenderMenuItem:se,_internalRenderSubMenuItem:ce}}),[se,ce]),At="horizontal"!==je||E?me:me.map((function(e,t){return n.createElement($l,{key:e.key,overflowDisabled:t>qe},e)})),Et=n.createElement(Rl,(0,f.A)({id:y,ref:we,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:bs,className:M()(a,"".concat(a,"-root"),"".concat(a,"-").concat(je),p,(0,k.A)((0,k.A)({},"".concat(a,"-inline-collapsed"),We),"".concat(a,"-rtl"),xe),s),dir:v,style:c,role:"menu",tabIndex:m,data:At,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,o=t?me.slice(-t):null;return n.createElement($s,{eventKey:os,title:oe,disabled:Ye,internalPopupClose:0===t,popupClassName:ne},o)},maxCount:"horizontal"!==je||E?Rl.INVALIDATE:Rl.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Xe(e)},onKeyDown:Ct},de));return n.createElement(jl.Provider,{value:xt},n.createElement(Ml.Provider,{value:Ce},n.createElement($l,{prefixCls:a,rootClassName:s,mode:je,openKeys:Se,rtl:xe,disabled:A,motion:ve?q:null,defaultMotions:ve?X:null,activeKey:ut,onActive:pt,onInactive:ht,selectedKeys:gt,inlineIndent:U,subMenuOpenDelay:I,subMenuCloseDelay:O,forceSubMenuRender:T,builtinPlacements:J,triggerSubMenuAction:Q,getPopupContainer:re,itemIcon:Z,expandIcon:ee,onItemClick:yt,onOpenChange:wt},n.createElement(Hl.Provider,{value:lt},Et),n.createElement("div",{style:{display:"none"},"aria-hidden":!0},n.createElement(Dl.Provider,{value:at},fe)))))})),Ws=Vs;Ws.Item=bs,Ws.SubMenu=$s,Ws.ItemGroup=Fs,Ws.Divider=zs;const Gs=Ws,Ks=n.createContext({}),Us={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var qs=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Us}))};const Xs=n.forwardRef(qs),Ys=()=>({height:0,opacity:0}),Qs=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Js=e=>({height:e?e.offsetHeight:0}),Zs=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,ec=(e,t,o)=>void 0!==o?o:`${e}-${t}`,tc=(e=pn.yH)=>({motionName:`${e}-motion-collapse`,onAppearStart:Ys,onEnterStart:Ys,onAppearActive:Qs,onEnterActive:Qs,onLeaveStart:Js,onLeaveActive:Ys,onAppearEnd:Zs,onEnterEnd:Zs,onLeaveEnd:Zs,motionDeadline:500}),oc=(0,n.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});const nc=e=>{const{prefixCls:t,className:o,dashed:r}=e,i=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const t=n.useContext(pc.A);return n.useMemo((()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t),[e,t])},mc=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},fc=e=>{const{componentCls:t,antCls:o}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},gc=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},bc=Dn("Space",(e=>{const t=Rn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[fc(t),gc(t),mc(t)]}),(()=>({})),{resetStyle:!1});var vc=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const o=n.useContext(yc),r=n.useMemo((()=>{if(!o)return"";const{compactDirection:n,isFirstItem:r,isLastItem:i}=o,a="vertical"===n?"-vertical-":"-";return M()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:r,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,o]);return{compactSize:null==o?void 0:o.compactSize,compactDirection:null==o?void 0:o.compactDirection,compactItemClassnames:r}},Cc=e=>{const{children:t}=e;return n.createElement(yc.Provider,{value:null},t)},xc=e=>{const{children:t}=e,o=vc(e,["children"]);return n.createElement(yc.Provider,{value:n.useMemo((()=>o),[o])},t)},Ac=e=>{const{space:t,form:o,children:r}=e;if(null==r)return null;let i=r;return o&&(i=n.createElement(Li,{override:!0,status:!0},i)),t&&(i=n.createElement(Cc,null,i)),i},Ec=e=>({animationDuration:e,animationFillMode:"both"}),Sc=e=>({animationDuration:e,animationFillMode:"both"}),kc=(e,t,o,n,r=!1)=>{const i=r?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},Ec(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Sc(n)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}},Rc=new fn.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Mc=new fn.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ic=new fn.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Pc=new fn.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Oc=new fn.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Tc=new fn.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),$c={zoom:{inKeyframes:Rc,outKeyframes:Mc},"zoom-big":{inKeyframes:Ic,outKeyframes:Pc},"zoom-big-fast":{inKeyframes:Ic,outKeyframes:Pc},"zoom-left":{inKeyframes:new fn.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new fn.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new fn.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new fn.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Oc,outKeyframes:Tc},"zoom-down":{inKeyframes:new fn.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new fn.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},zc=(e,t)=>{const{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:r,outKeyframes:i}=$c[t];return[kc(n,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Dc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Lc(e,t){return Dc.reduce(((o,n)=>{const r=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],l=e[`${n}7`];return Object.assign(Object.assign({},o),t(n,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Fc=e=>{const{calc:t,componentCls:o,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:p,sizePopupArrow:h}=e,m=t(a).add(h).add(p).equal(),f=t(a).mul(2).add(h).equal();return[{[o]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$n.dF)(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${o}-inner`]:{minWidth:f,minHeight:s,padding:`${(0,fn.zA)(e.calc(u).div(2).equal())} ${(0,fn.zA)(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(a,8)}},[`${o}-content`]:{position:"relative"}}),Lc(e,((e,{darkColor:t})=>({[`&${o}-${e}`]:{[`${o}-inner`]:{backgroundColor:t},[`${o}-arrow`]:{"--antd-arrow-background-color":t}}})))),{"&-rtl":{direction:"rtl"}})},tl(e,"var(--antd-arrow-background-color)"),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Nc=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Za({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Qa(Rn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Hc=(e,t=!0)=>Dn("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:o,colorBgSpotlight:n}=e,r=Rn(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:t,tooltipBg:n});return[Fc(r),zc(e,"zoom-big-fast")]}),Nc,{resetStyle:!1,injectStyle:t})(e),jc=Dc.map((e=>`${e}-inverse`));function Bc(e,t){const o=function(e,t=!0){return t?[].concat((0,tt.A)(jc),(0,tt.A)(Dc)).includes(e):Dc.includes(e)}(t),n=M()({[`${e}-${t}`]:t&&o}),r={},i={};return t&&!o&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:r,arrowStyle:i}}const _c=n.forwardRef(((e,t)=>{var o,r;const{prefixCls:i,openClassName:a,getTooltipContainer:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:p,destroyTooltipOnHide:h,destroyOnHidden:m,arrow:f=!0,title:g,overlay:b,builtinPlacements:v,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0,motion:C,getPopupContainer:x,placement:A="top",mouseEnterDelay:E=.1,mouseLeaveDelay:S=.1,overlayStyle:k,rootClassName:R,overlayClassName:I,styles:P,classNames:O}=e,T=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var e;null===(e=V.current)||void 0===e||e.forceAlign()};n.useImperativeHandle(t,(()=>{var e,t;return{forceAlign:W,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),W()},nativeElement:null===(e=V.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=V.current)||void 0===t?void 0:t.popupElement}}));const[G,K]=(0,ln.A)(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),U=!g&&!b&&0!==g,q=n.useMemo((()=>{var e,t;let o=y;return"object"==typeof f&&(o=null!==(t=null!==(e=f.pointAtCenter)&&void 0!==e?e:f.arrowPointAtCenter)&&void 0!==t?t:y),v||il({arrowPointAtCenter:o,autoAdjustOverflow:w,arrowWidth:$?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})}),[y,f,v,z]),X=n.useMemo((()=>0===g?g:b||g||""),[b,g]),Y=n.createElement(Ac,{space:!0},"function"==typeof X?X():X),Q=L("tooltip",i),J=L(),Z=e["data-popover-inject"];let ee=G;"open"in e||"visible"in e||!U||(ee=!1);const te=n.isValidElement(u)&&!hn(u)?u:n.createElement("span",null,u),oe=te.props,ne=oe.className&&"string"!=typeof oe.className?oe.className:M()(oe.className,a||`${Q}-open`),[re,ie,ae]=Hc(Q,!Z),le=Bc(Q,s),se=le.arrowStyle,ce=M()(I,{[`${Q}-rtl`]:"rtl"===F},le.className,R,ie,ae,N,j.root,null==O?void 0:O.root),ue=M()(j.body,null==O?void 0:O.body),[de,pe]=Ya("Tooltip",T.zIndex),he=n.createElement(dc,Object.assign({},T,{zIndex:de,showArrow:$,placement:A,mouseEnterDelay:E,mouseLeaveDelay:S,prefixCls:Q,classNames:{root:ce,body:ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},se),B.root),H),k),null==P?void 0:P.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},B.body),c),null==P?void 0:P.body),le.overlayStyle)},getTooltipContainer:x||l||D,ref:V,builtinPlacements:q,overlay:Y,visible:ee,onVisibleChange:t=>{var o,n;K(!U&&t),U||(null===(o=e.onOpenChange)||void 0===o||o.call(e,t),null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},afterVisibleChange:null!=d?d:p,arrowContent:n.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:ec(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=m?m:!!h}),ee?mn(te,{className:ne}):te);return re(n.createElement(Ka.Provider,{value:pe},he))})),Vc=_c;Vc._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:o,placement:r="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:s}=n.useContext(pn.QO),c=s("tooltip",t),[u,d,p]=Hc(c),h=Bc(c,a),m=h.arrowStyle,f=Object.assign(Object.assign({},l),h.overlayStyle),g=M()(d,p,c,`${c}-pure`,`${c}-placement-${r}`,o,h.className);return u(n.createElement("div",{className:g,style:m},n.createElement("div",{className:`${c}-arrow`}),n.createElement(rc,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:f}),i)))};const Wc=Vc,Gc=e=>{var t;const{className:o,children:r,icon:i,title:a,danger:l,extra:s}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:p,inlineCollapsed:h}=n.useContext(oc),{siderCollapsed:m}=n.useContext(Ks);let f=a;void 0===a?f=u?r:"":!1===a&&(f="");const g={title:f};m||h||(g.title=null,g.open=!1);const b=U(r).length;let v=n.createElement(bs,Object.assign({},$o(e,["title","icon","danger"]),{className:M()({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?b+1:b)},o),title:"string"==typeof a?a:void 0}),mn(i,{className:M()(n.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),(e=>{const t=null==r?void 0:r[0],o=n.createElement("span",{className:M()(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||0===s})},r);return(!i||n.isValidElement(r)&&"span"===r.type)&&r&&e&&u&&"string"==typeof t?n.createElement("div",{className:`${c}-inline-collapsed-noicon`},t.charAt(0)):o})(h));return p||(v=n.createElement(Wc,Object.assign({},g,{placement:"rtl"===d?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),v)),v};const Kc=n.createContext(null),Uc=n.forwardRef(((e,t)=>{const{children:o}=e,r=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);rObject.assign(Object.assign({},i),r)),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=(0,g.H3)(o),s=(0,g.xK)(t,l?(0,g.A9)(o):null);return n.createElement(Kc.Provider,{value:a},n.createElement(Ac,{space:!0},l?n.cloneElement(o,{ref:s}):o))})),qc=Kc;var Xc=o(2616);const Yc=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Qc=new fn.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Jc=new fn.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Zc=new fn.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),eu=new fn.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),tu=new fn.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ou=new fn.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),nu=new fn.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ru=new fn.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),iu={"slide-up":{inKeyframes:Qc,outKeyframes:Jc},"slide-down":{inKeyframes:Zc,outKeyframes:eu},"slide-left":{inKeyframes:tu,outKeyframes:ou},"slide-right":{inKeyframes:nu,outKeyframes:ru}},au=(e,t)=>{const{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:r,outKeyframes:i}=iu[t];return[kc(n,r,i,e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},lu=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${(0,fn.zA)(i)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},su=({componentCls:e,menuArrowOffset:t,calc:o})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,fn.zA)(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,fn.zA)(t)})`}}}}),cu=e=>Object.assign({},(0,$n.jk)(e)),uu=(e,t)=>{const{componentCls:o,itemColor:n,itemSelectedColor:r,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:p,motionDurationSlow:h,motionEaseInOut:m,motionEaseOut:f,itemPaddingInline:g,motionDurationMid:b,itemHoverColor:v,lineType:y,colorSplit:w,itemDisabledColor:C,dangerItemColor:x,dangerItemHoverColor:A,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:k,popupBg:R,itemHoverBg:M,itemActiveBg:I,menuSubMenuBg:P,horizontalItemSelectedColor:O,horizontalItemSelectedBg:T,horizontalItemBorderRadius:$,horizontalItemHoverBg:z}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:n,background:l,[`&${o}-root:focus-visible`]:Object.assign({},cu(e)),[`${o}-item`]:{"&-group-title, &-extra":{color:a}},[`${o}-submenu-selected > ${o}-submenu-title`]:{color:i},[`${o}-item, ${o}-submenu-title`]:{color:n,[`&:not(${o}-item-disabled):focus-visible`]:Object.assign({},cu(e))},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${C} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:v}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:I}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:I}}},[`${o}-item-danger`]:{color:x,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:A}},[`&${o}-item:active`]:{background:S}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:r,[`&${o}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:c,[`&${o}-item-danger`]:{backgroundColor:k}},[`&${o}-submenu > ${o}`]:{backgroundColor:P},[`&${o}-popup > ${o}`]:{backgroundColor:R},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:R},[`&${o}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${o}-item, > ${o}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:$,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${(0,fn.zA)(u)} solid transparent`,transition:`border-color ${h} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:z,"&::after":{borderBottomWidth:u,borderBottomColor:O}},"&-selected":{color:O,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:u,borderBottomColor:O}}}}),[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${(0,fn.zA)(p)} ${y} ${w}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:s},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,fn.zA)(d)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${f}`,`opacity ${b} ${f}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${m}`,`opacity ${b} ${m}`].join(",")}}}}}},du=e=>{const{componentCls:t,itemHeight:o,itemMarginInline:n,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,u=e.calc(i).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:(0,fn.zA)(o),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:(0,fn.zA)(o)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},pu=e=>{const{componentCls:t,iconCls:o,itemHeight:n,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:m,collapsedWidth:f,collapsedIconSize:g}=e,b={height:n,lineHeight:(0,fn.zA)(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},du(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},du(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${(0,fn.zA)(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:f,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,fn.zA)(e.calc(g).div(2).equal())} - ${(0,fn.zA)(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:g,lineHeight:(0,fn.zA)(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},$n.L9),{paddingInline:h})}}]},hu=e=>{const{componentCls:t,motionDurationSlow:o,motionDurationMid:n,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding calc(${o} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${n} ${i}`,`margin ${o} ${r}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${o} ${r}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,$n.Nk)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},mu=e=>{const{componentCls:t,motionDurationSlow:o,motionEaseInOut:n,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${n}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${o} ${n}`,`transform ${o} ${n}`,`top ${o} ${n}`,`color ${o} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,fn.zA)(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,fn.zA)(a)})`}}}}},fu=e=>{const{antCls:t,componentCls:o,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:h,menuArrowSize:m,menuArrowOffset:f,lineType:g,groupTitleLineHeight:b,groupTitleFontSize:v}=e;return[{"":{[o]:Object.assign(Object.assign({},(0,$n.t6)()),{"&-hidden":{display:"none"}})},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$n.dF)(e)),(0,$n.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${(0,fn.zA)(l)} ${(0,fn.zA)(s)}`,fontSize:v,lineHeight:b,transition:`all ${r}`},[`&-horizontal ${o}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${o}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${o}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),hu(e)),{[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${(0,fn.zA)(e.calc(n).mul(2).equal())} ${(0,fn.zA)(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},hu(e)),mu(e)),{[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:h},[`${o}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),mu(e)),{[`&-inline-collapsed ${o}-submenu-arrow,\n &-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,fn.zA)(f)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,fn.zA)(e.calc(f).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${(0,fn.zA)(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,fn.zA)(e.calc(f).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,fn.zA)(f)})`}}})},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},gu=e=>{var t,o,n;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:h,lineWidthBold:m,controlItemBgActive:f,colorBgTextHover:g,controlHeightLG:b,lineHeight:v,colorBgElevated:y,marginXXS:w,padding:C,fontSize:x,controlHeightSM:A,fontSizeLG:E,colorTextLightSolid:S,colorErrorHover:k}=e,R=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,M=null!==(o=e.activeBarBorderWidth)&&void 0!==o?o:h,I=null!==(n=e.itemMarginInline)&&void 0!==n?n:e.marginXXS,P=new Xc.Y(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:r,itemSelectedColor:r,subMenuItemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:p,itemActiveBg:f,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:R,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:h,activeBarBorderWidth:M,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:I,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:2*b,popupBg:y,itemMarginBlock:w,itemPaddingInline:C,horizontalLineHeight:1.15*b+"px",iconSize:x,iconMarginInlineEnd:A-x,collapsedIconSize:E,groupTitleFontSize:x,darkItemDisabledColor:new Xc.Y(S).setA(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:S,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:i,itemWidth:R?`calc(100% + ${M}px)`:`calc(100% - ${2*I}px)`}},bu=(e,t=e,o=!0)=>Dn("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:o,fontSize:n,darkItemColor:r,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:p,darkItemHoverColor:h,darkItemDisabledColor:m,darkDangerItemHoverColor:f,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:b,popupBg:v,darkPopupBg:y}=e,w=e.calc(n).div(7).mul(5).equal(),C=Rn(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(o).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),x=Rn(C,{itemColor:r,itemHoverColor:h,groupTitleColor:p,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:f,dangerItemSelectedColor:g,dangerItemActiveBg:b,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[fu(C),lu(C),pu(C),uu(C,"light"),uu(x,"dark"),su(C),Yc(C),au(C,"slide-up"),au(C,"slide-down"),zc(C,"zoom-big")]}),gu,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:o,unitless:{groupTitleLineHeight:!0}})(e,t),vu=e=>{var t;const{popupClassName:o,icon:r,title:i,theme:a}=e,l=n.useContext(oc),{prefixCls:s,inlineCollapsed:c,theme:u}=l,d=Nl();let p;if(r){const e=n.isValidElement(i)&&"span"===i.type;p=n.createElement(n.Fragment,null,mn(r,{className:M()(n.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?i:n.createElement("span",{className:`${s}-title-content`},i))}else p=c&&!d.length&&i&&"string"==typeof i?n.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):n.createElement("span",{className:`${s}-title-content`},i);const h=n.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[m]=Ya("Menu");return n.createElement(oc.Provider,{value:h},n.createElement($s,Object.assign({},$o(e,["icon"]),{title:p,popupClassName:M()(s,o,`${s}-${a||u}`),popupStyle:Object.assign({zIndex:m},e.popupStyle)})))};function yu(e){return null===e||!1===e}const wu={item:Gc,submenu:vu,divider:nc},Cu=(0,n.forwardRef)(((e,t)=>{var o;const r=n.useContext(qc),i=r||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:u}=n.useContext(pn.QO),d=a(),{prefixCls:p,className:h,style:m,theme:f="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:v,siderCollapsed:y,rootClassName:w,mode:C,selectable:x,onClick:A,overflowedIndicatorPopupClassName:E}=e,S=$o(function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var t;null==A||A.apply(void 0,e),null===(t=i.onClick)||void 0===t||t.call(i)})),R=i.mode||C,I=null!=x?x:i.selectable,P=null!=v?v:y,O={horizontal:{motionName:`${d}-slide-up`},inline:tc(d),other:{motionName:`${d}-zoom-big`}},T=a("menu",p||i.prefixCls),$=vr(T),[z,D,L]=bu(T,$,!r),F=M()(`${T}-${f}`,null==u?void 0:u.className,h),N=n.useMemo((()=>{var e,t;if("function"==typeof g||yu(g))return g||null;if("function"==typeof i.expandIcon||yu(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==u?void 0:u.expandIcon)||yu(null==u?void 0:u.expandIcon))return(null==u?void 0:u.expandIcon)||null;const o=null!==(e=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==u?void 0:u.expandIcon;return mn(o,{className:M()(`${T}-submenu-expand-icon`,n.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==u?void 0:u.expandIcon,T]),H=n.useMemo((()=>({prefixCls:T,inlineCollapsed:P||!1,direction:c,firstLevel:!0,theme:f,mode:R,disableMenuItemTitleTooltip:b})),[T,P,c,b,f]);return z(n.createElement(qc.Provider,{value:null},n.createElement(oc.Provider,{value:H},n.createElement(Gs,Object.assign({getPopupContainer:l,overflowedIndicator:n.createElement(Xs,null),overflowedIndicatorPopupClassName:M()(T,`${T}-${f}`,E),mode:R,selectable:I,onClick:k},S,{inlineCollapsed:P,style:Object.assign(Object.assign({},null==u?void 0:u.style),m),className:F,prefixCls:T,direction:c,defaultMotions:O,expandIcon:N,ref:t,rootClassName:M()(w,D,i.rootClassName,L,$),_internalComponents:wu})))))})),xu=Cu,Au=(0,n.forwardRef)(((e,t)=>{const o=(0,n.useRef)(null),r=n.useContext(Ks);return(0,n.useImperativeHandle)(t,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),n.createElement(xu,Object.assign({ref:o},e,r))}));Au.Item=Gc,Au.SubMenu=vu,Au.Divider=nc,Au.ItemGroup=Fs;const Eu=Au,Su=new fn.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ku=new fn.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Ru=new fn.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Mu=new fn.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Iu=new fn.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Pu=new fn.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ou={"move-up":{inKeyframes:new fn.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new fn.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Su,outKeyframes:ku},"move-left":{inKeyframes:Ru,outKeyframes:Mu},"move-right":{inKeyframes:Iu,outKeyframes:Pu}},Tu=(e,t)=>{const{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:r,outKeyframes:i}=Ou[t];return[kc(n,r,i,e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$u=e=>{const{componentCls:t,menuCls:o,colorError:n,colorTextLightSolid:r}=e,i=`${o}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${o} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:n,"&:hover":{color:r,backgroundColor:n}}}}}},zu=e=>{const{componentCls:t,menuCls:o,zIndexPopup:n,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:h,controlPaddingHorizontal:m,colorBgElevated:f}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:h},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Qc},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Zc},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Jc},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:eu}}},tl(e,f,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${o}`]:{position:"relative",margin:0},[`${o}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,$n.dF)(e)),{[o]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:f,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,$n.K8)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${o}-item-group-title`]:{padding:`${(0,fn.zA)(c)} ${(0,fn.zA)(m)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${o}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${o}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${o}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${o}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${o}-item, ${o}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,fn.zA)(c)} ${(0,fn.zA)(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,$n.K8)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:f,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,fn.zA)(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:h,fontStyle:"normal"}}}),[`${o}-item-group-list`]:{margin:`0 ${(0,fn.zA)(e.marginXS)}`,padding:0,listStyle:"none"},[`${o}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${o}-submenu-vertical`]:{position:"relative"},[`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:f,cursor:"not-allowed"}},[`${o}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[au(e,"slide-up"),au(e,"slide-down"),Tu(e,"move-up"),Tu(e,"move-down"),zc(e,"zoom-big")]]},Du=Dn("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:o,paddingXXS:n,componentCls:r}=e,i=Rn(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(o).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[zu(i),$u(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Za({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Qa(e))),{resetStyle:!1}),Lu=e=>{var t;const{menu:o,arrow:r,prefixCls:i,children:a,trigger:l,disabled:c,dropdownRender:u,popupRender:d,getPopupContainer:p,overlayClassName:h,rootClassName:m,overlayStyle:f,open:g,onOpenChange:b,visible:v,onVisibleChange:y,mouseEnterDelay:w=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:x=!0,placement:A="",overlay:E,transitionName:S,destroyOnHidden:k,destroyPopupOnHide:R}=e,{getPopupContainer:I,getPrefixCls:P,direction:O,dropdown:T}=n.useContext(pn.QO),$=d||u;(0,sn.rJ)("Dropdown");const z=n.useMemo((()=>{const e=P();return void 0!==S?S:A.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[P,A,S]),D=n.useMemo((()=>A?A.includes("Center")?A.slice(0,A.indexOf("Center")):A:"rtl"===O?"bottomRight":"bottomLeft"),[A,O]),L=P("dropdown",i),F=vr(L),[N,H,j]=Du(L,F),[,B]=(0,zn.Ay)(),_=n.Children.only("object"!=typeof(ee=a)&&"function"!=typeof ee||null===ee?n.createElement("span",null,a):a),V=mn(_,{className:M()(`${L}-trigger`,{[`${L}-rtl`]:"rtl"===O},_.props.className),disabled:null!==(t=_.props.disabled)&&void 0!==t?t:c}),W=c?[]:l,G=!!(null==W?void 0:W.includes("contextMenu")),[K,U]=(0,ln.A)(!1,{value:null!=g?g:v}),q=(0,s.A)((e=>{null==b||b(e,{source:"trigger"}),null==y||y(e),U(e)})),X=M()(h,m,H,j,F,null==T?void 0:T.className,{[`${L}-rtl`]:"rtl"===O}),Y=il({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:x,offset:B.marginXXS,arrowWidth:r?B.sizePopupArrow:0,borderRadius:B.borderRadius}),Q=n.useCallback((()=>{(null==o?void 0:o.selectable)&&(null==o?void 0:o.multiple)||(null==b||b(!1,{source:"menu"}),U(!1))}),[null==o?void 0:o.selectable,null==o?void 0:o.multiple]),[J,Z]=Ya("Dropdown",null==f?void 0:f.zIndex);var ee;let te=n.createElement(Ga,Object.assign({alignPoint:G},$o(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:C,visible:K,builtinPlacements:Y,arrow:!!r,overlayClassName:X,prefixCls:L,getPopupContainer:p||I,transitionName:z,trigger:W,overlay:()=>{let e;return e=(null==o?void 0:o.items)?n.createElement(Eu,Object.assign({},o)):"function"==typeof E?E():E,$&&(e=$(e)),e=n.Children.only("string"==typeof e?n.createElement("span",null,e):e),n.createElement(Uc,{prefixCls:`${L}-menu`,rootClassName:M()(j,F),expandIcon:n.createElement("span",{className:`${L}-menu-submenu-arrow`},"rtl"===O?n.createElement(Qi,{className:`${L}-menu-submenu-arrow-icon`}):n.createElement(ea,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:({mode:e})=>{}},e)},placement:D,onVisibleChange:q,overlayStyle:Object.assign(Object.assign(Object.assign({},null==T?void 0:T.style),f),{zIndex:J}),autoDestroy:null!=k?k:R}),V);return J&&(te=n.createElement(Ka.Provider,{value:Z},te)),N(te)},Fu=ll(Lu,"align",void 0,"dropdown",(e=>e));Lu._InternalPanelDoNotUseOrYouWillBeFired=e=>n.createElement(Fu,Object.assign({},e),n.createElement("span",null));const Nu=Lu;const Hu=n.createContext(void 0),ju=/^[\u4E00-\u9FA5]{2}$/,Bu=ju.test.bind(ju);function _u(e){return"string"==typeof e}function Vu(e){return"text"===e||"link"===e}["default","primary","danger"].concat((0,tt.A)(Dc));const Wu={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var Gu=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Wu}))};const Ku=n.forwardRef(Gu),Uu=(0,n.forwardRef)(((e,t)=>{const{className:o,style:r,children:i,prefixCls:a}=e,l=M()(`${a}-icon`,o);return n.createElement("span",{ref:t,className:l,style:r},i)})),qu=Uu,Xu=(0,n.forwardRef)(((e,t)=>{const{prefixCls:o,className:r,style:i,iconClassName:a}=e,l=M()(`${o}-loading-icon`,r);return n.createElement(qu,{prefixCls:o,className:l,style:i,ref:t},n.createElement(Ku,{className:a}))})),Yu=()=>({width:0,opacity:0,transform:"scale(0)"}),Qu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ju=e=>{const{prefixCls:t,loading:o,existIcon:r,className:i,style:a,mount:l}=e,s=!!o;return r?n.createElement(Xu,{prefixCls:t,className:i,style:a}):n.createElement(Bn.Ay,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:Yu,onAppearActive:Qu,onEnterStart:Yu,onEnterActive:Qu,onLeaveStart:Qu,onLeaveActive:Yu},(({className:e,style:o},r)=>{const l=Object.assign(Object.assign({},a),o);return n.createElement(Xu,{prefixCls:t,className:M()(i,e),style:l,ref:r})}))},Zu=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ed=e=>{const{componentCls:t,fontSize:o,lineWidth:n,groupBorderColor:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:o}},Zu(`${t}-primary`,r),Zu(`${t}-danger`,i)]}};var td,od=["b"],nd=["v"],rd=function(e){return Math.round(Number(e||0))},id=function(e){(0,Ce.A)(o,e);var t=(0,xe.A)(o);function o(e){return(0,ye.A)(this,o),t.call(this,function(e){if(e instanceof Xc.Y)return e;if(e&&"object"===(0,E.A)(e)&&"h"in e&&"b"in e){var t=e,o=t.b,n=(0,j.A)(t,od);return(0,S.A)((0,S.A)({},n),{},{v:o})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,we.A)(o,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=rd(100*e.s),o=rd(100*e.b),n=rd(e.h),r=e.a,i="hsb(".concat(n,", ").concat(t,"%, ").concat(o,"%)"),a="hsba(".concat(n,", ").concat(t,"%, ").concat(o,"%, ").concat(r.toFixed(0===r?0:2),")");return 1===r?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,o=(0,j.A)(e,nd);return(0,S.A)((0,S.A)({},o),{},{b:t,a:this.a})}}]),o}(Xc.Y);(td="#1677ff")instanceof id||new id(td);let ad=function(){return(0,we.A)((function e(t){var o;if((0,ye.A)(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(o=t.colors)||void 0===o?void 0:o.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const n=Array.isArray(t);n&&t.length?(this.colors=t.map((({color:t,percent:o})=>({color:new e(t),percent:o}))),this.metaColor=new id(this.colors[0].color.metaColor)):this.metaColor=new id(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;return e?`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,o)=>{const n=e.colors[o];return t.percent===n.percent&&t.color.equals(n.color)})):this.toHexString()===e.toHexString())}}])}();var ld=o(94925),sd=o(85045);const cd=e=>{const{paddingInline:t,onlyIconSize:o}=e;return Rn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o})},ud=e=>{var t,o,n,r,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(o=e.contentFontSizeSM)&&void 0!==o?o:e.fontSize,c=null!==(n=e.contentFontSizeLG)&&void 0!==n?n:e.fontSizeLG,u=null!==(r=e.contentLineHeight)&&void 0!==r?r:(0,ld.k)(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:(0,ld.k)(s),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:(0,ld.k)(c),h=((e,t)=>{const{r:o,g:n,b:r,a:i}=e.toRgb(),a=new id(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*o+.587*n+.114*r>192})(new ad(e.colorBgSolid),"#fff")?"#000":"#fff",m=Dc.reduce(((t,o)=>Object.assign(Object.assign({},t),{[`${o}ShadowColor`]:`0 ${(0,fn.zA)(e.controlOutlineWidth)} 0 ${(0,sd.A)(e[`${o}1`],e.colorBgContainer)}`})),{});return Object.assign(Object.assign({},m),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)})},dd=e=>{const{componentCls:t,iconCls:o,fontWeight:n,opacityLoading:r,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,$n.Nk)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,$n.K8)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:r,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${i} ${a}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},pd=(e,t,o)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":o}}),hd=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),md=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),fd=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gd=(e,t,o,n,r,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:o||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},pd(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),bd=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},fd(e))}),vd=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),yd=(e,t,o,n)=>{const r=n&&["link","text"].includes(n)?vd:bd;return Object.assign(Object.assign({},r(e)),pd(e.componentCls,t,o))},wd=(e,t,o,n,r)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:o},yd(e,n,r))}),Cd=(e,t,o,n,r)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:o},yd(e,n,r))}),xd=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Ad=(e,t,o,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},yd(e,o,n))}),Ed=(e,t,o,n,r)=>({[`&${e.componentCls}-variant-${o}`]:Object.assign({color:t,boxShadow:"none"},yd(e,n,r,o))}),Sd=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},wd(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),xd(e)),Ad(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),gd(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Ed(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),kd=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Cd(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),xd(e)),Ad(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ed(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Ed(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),gd(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Rd=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},wd(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Cd(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),xd(e)),Ad(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ed(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ed(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),gd(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Md=e=>Object.assign(Object.assign({},Ed(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),gd(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Id=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Sd(e),[`${t}-color-primary`]:kd(e),[`${t}-color-dangerous`]:Rd(e),[`${t}-color-link`]:Md(e)},(e=>{const{componentCls:t}=e;return Dc.reduce(((o,n)=>{const r=e[`${n}6`],i=e[`${n}1`],a=e[`${n}5`],l=e[`${n}2`],s=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},o),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:r,boxShadow:e[`${n}ShadowColor`]},wd(e,e.colorTextLightSolid,r,{background:a},{background:c})),Cd(e,r,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),xd(e)),Ad(e,i,{background:l},{background:s})),Ed(e,r,"link",{color:a},{color:c})),Ed(e,r,"text",{color:a,background:i},{color:c,background:s}))})}),{})})(e))},Pd=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Cd(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ed(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),wd(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ed(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Od=(e,t="")=>{const{componentCls:o,controlHeight:n,fontSize:r,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:r,height:n,padding:`${(0,fn.zA)(s)} ${(0,fn.zA)(a)}`,borderRadius:i,[`&${o}-icon-only`]:{width:n,[l]:{fontSize:c}}}},{[`${o}${o}-circle${t}`]:hd(e)},{[`${o}${o}-round${t}`]:md(e)}]},Td=e=>{const t=Rn(e,{fontSize:e.contentFontSize});return Od(t,e.componentCls)},$d=e=>{const t=Rn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Od(t,`${e.componentCls}-sm`)},zd=e=>{const t=Rn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Od(t,`${e.componentCls}-lg`)},Dd=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Ld=Dn("Button",(e=>{const t=cd(e);return[dd(t),Td(t),$d(t),zd(t),Dd(t),Id(t),Pd(t),ed(t)]}),ud,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Fd(e,t,o){const{focusElCls:n,focus:r,borderElCls:i}=o,a=i?"> *":"",l=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Nd(e,t,o){const{borderElCls:n}=o,r=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Hd(e,t={focus:!0}){const{componentCls:o}=e,n=`${o}-compact`;return{[n]:Object.assign(Object.assign({},Fd(e,n,t)),Nd(o,n,t))}}function jd(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Bd(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},jd(e,t)),(o=e.componentCls,n=t,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${o}-sm, &${o}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${o}-sm, &${o}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var o,n}const _d=e=>{const{componentCls:t,colorPrimaryHover:o,lineWidth:n,calc:r}=e,i=r(n).mul(-1).equal(),a=e=>{const r=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${r} + ${r}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:o,content:'""',width:e?"100%":n,height:e?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},Vd=Fn(["Button","compact"],(e=>{const t=cd(e);return[Hd(t),Bd(t),_d(t)]}),ud);const Wd={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Gd=n.forwardRef(((e,t)=>{var o,r;const{loading:i=!1,prefixCls:a,color:l,variant:s,type:c,danger:u=!1,shape:d="default",size:p,styles:h,disabled:m,className:f,rootClassName:b,children:v,icon:y,iconPosition:w="start",ghost:C=!1,block:x=!1,htmlType:A="button",classNames:E,style:S={},autoInsertSpace:k,autoFocus:R}=e,I=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{if(l&&s)return[l,s];if(c||u){const e=Wd[P]||[];return u?["danger",e[1]]:e}return(null==O?void 0:O.color)&&(null==O?void 0:O.variant)?[O.color,O.variant]:["default","outlined"]}),[c,l,s,u,null==O?void 0:O.variant,null==O?void 0:O.color]),z="danger"===T?"dangerous":T,{getPrefixCls:D,direction:L,autoInsertSpace:F,className:N,style:H,classNames:j,styles:B}=(0,pn.TP)("button"),_=null===(o=null!=k?k:F)||void 0===o||o,V=D("btn",a),[W,G,K]=Ld(V),U=(0,n.useContext)(br.A),q=null!=m?m:U,X=(0,n.useContext)(Hu),Y=(0,n.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(i)),[i]),[Q,J]=(0,n.useState)(Y.loading),[Z,ee]=(0,n.useState)(!1),te=(0,n.useRef)(null),oe=(0,g.xK)(t,te),ne=1===n.Children.count(v)&&!y&&!Vu($),re=(0,n.useRef)(!0);n.useEffect((()=>(re.current=!1,()=>{re.current=!0})),[]),(0,n.useLayoutEffect)((()=>{let e=null;return Y.delay>0?e=setTimeout((()=>{e=null,J(!0)}),Y.delay):J(Y.loading),function(){e&&(clearTimeout(e),e=null)}}),[Y.delay,Y.loading]),(0,n.useEffect)((()=>{if(!te.current||!_)return;const e=te.current.textContent||"";ne&&Bu(e)?Z||ee(!0):Z&&ee(!1)})),(0,n.useEffect)((()=>{R&&te.current&&te.current.focus()}),[]);const ie=n.useCallback((t=>{var o;Q||q?t.preventDefault():null===(o=e.onClick)||void 0===o||o.call(e,t)}),[e.onClick,Q,q]),{compactSize:ae,compactItemClassnames:le}=wc(V,L),se=hc((e=>{var t,o;return null!==(o=null!==(t=null!=p?p:ae)&&void 0!==t?t:X)&&void 0!==o?o:e})),ce=se&&null!==(r={large:"lg",small:"sm",middle:void 0}[se])&&void 0!==r?r:"",ue=Q?"loading":y,de=$o(I,["navigate"]),pe=M()(V,G,K,{[`${V}-${d}`]:"default"!==d&&d,[`${V}-${P}`]:P,[`${V}-dangerous`]:u,[`${V}-color-${z}`]:z,[`${V}-variant-${$}`]:$,[`${V}-${ce}`]:ce,[`${V}-icon-only`]:!v&&0!==v&&!!ue,[`${V}-background-ghost`]:C&&!Vu($),[`${V}-loading`]:Q,[`${V}-two-chinese-chars`]:Z&&_&&!Q,[`${V}-block`]:x,[`${V}-rtl`]:"rtl"===L,[`${V}-icon-end`]:"end"===w},le,f,b,N),he=Object.assign(Object.assign({},H),S),me=M()(null==E?void 0:E.icon,j.icon),fe=Object.assign(Object.assign({},(null==h?void 0:h.icon)||{}),B.icon||{}),ge=y&&!Q?n.createElement(qu,{prefixCls:V,className:me,style:fe},y):i&&"object"==typeof i&&i.icon?n.createElement(qu,{prefixCls:V,className:me,style:fe},i.icon):n.createElement(Ju,{existIcon:!!y,prefixCls:V,loading:Q,mount:re.current}),be=v||0===v?function(e,t){let o=!1;const r=[];return n.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(o&&n){const t=r.length-1,o=r[t];r[t]=`${o}${e}`}else r.push(e);o=n})),n.Children.map(r,(e=>function(e,t){if(null==e)return;const o=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&_u(e.type)&&Bu(e.props.children)?mn(e,{children:e.props.children.split("").join(o)}):_u(e)?Bu(e)?n.createElement("span",null,e.split("").join(o)):n.createElement("span",null,e):hn(e)?n.createElement("span",null,e):e}(e,t)))}(v,ne&&_):null;if(void 0!==de.href)return W(n.createElement("a",Object.assign({},de,{className:M()(pe,{[`${V}-disabled`]:q}),href:q?void 0:de.href,style:he,onClick:ie,ref:oe,tabIndex:q?-1:0}),ge,be));let ve=n.createElement("button",Object.assign({},I,{type:A,className:pe,style:he,onClick:ie,disabled:q,ref:oe}),ge,be,le&&n.createElement(Vd,{prefixCls:V}));return Vu($)||(ve=n.createElement(gr,{component:"Button",disabled:Q},ve)),W(ve)})),Kd=Gd;Kd.Group=e=>{const{getPrefixCls:t,direction:o}=n.useContext(pn.QO),{prefixCls:r,size:i,className:a}=e,l=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{switch(i){case"large":return"lg";case"small":return"sm";default:return""}}),[i]),d=M()(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:"rtl"===o},a,c);return n.createElement(Hu.Provider,{value:i},n.createElement("div",Object.assign({},l,{className:d})))},Kd.__ANT_BUTTON=!0;const Ud=Kd;function qd(e){return["small","middle","large"].includes(e)}function Xd(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const Yd=n.createContext({latestIndex:0}),Qd=Yd.Provider,Jd=({className:e,index:t,children:o,split:r,style:i})=>{const{latestIndex:a}=n.useContext(Yd);return null==o?null:n.createElement(n.Fragment,null,n.createElement("div",{className:e,style:i},o),t{var o;const{getPrefixCls:r,direction:i,size:a,className:l,style:s,classNames:c,styles:u}=(0,pn.TP)("space"),{size:d=(null!=a?a:"small"),align:p,className:h,rootClassName:m,children:f,direction:g="horizontal",prefixCls:b,split:v,style:y,wrap:w=!1,classNames:C,styles:x}=e,A=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o;null!=e&&(H=t);const r=(null==e?void 0:e.key)||`${N}-${t}`;return n.createElement(Jd,{className:N,key:r,index:t,split:v,style:null!==(o=null==x?void 0:x.item)&&void 0!==o?o:u.item},e)})),B=n.useMemo((()=>({latestIndex:H})),[H]);if(0===O.length)return null;const _={};return w&&(_.flexWrap="wrap"),!R&&P&&(_.columnGap=E),!k&&I&&(_.rowGap=S),z(n.createElement("div",Object.assign({ref:t,className:F,style:Object.assign(Object.assign(Object.assign({},_),s),y)},A),n.createElement(Qd,{value:B},j)))})),ep=Zd;ep.Compact=e=>{const{getPrefixCls:t,direction:o}=n.useContext(pn.QO),{size:r,direction:i,block:a,prefixCls:l,className:s,rootClassName:c,children:u}=e,d=vc(e,["size","direction","block","prefixCls","className","rootClassName","children"]),p=hc((e=>null!=r?r:e)),h=t("space-compact",l),[m,f]=bc(h),g=M()(h,f,{[`${h}-rtl`]:"rtl"===o,[`${h}-block`]:a,[`${h}-vertical`]:"vertical"===i},s,c),b=n.useContext(yc),v=U(u),y=n.useMemo((()=>v.map(((e,t)=>{const o=(null==e?void 0:e.key)||`${h}-item-${t}`;return n.createElement(xc,{key:o,compactSize:p,compactDirection:i,isFirstItem:0===t&&(!b||(null==b?void 0:b.isFirstItem)),isLastItem:t===v.length-1&&(!b||(null==b?void 0:b.isLastItem))},e)}))),[r,v,b]);return 0===v.length?null:m(n.createElement("div",Object.assign({className:g},d),y))};const tp=ep;const op=e=>{const{getPopupContainer:t,getPrefixCls:o,direction:r}=n.useContext(pn.QO),{prefixCls:i,type:a="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:p,className:h,menu:m,arrow:f,autoFocus:g,overlay:b,trigger:v,align:y,open:w,onOpenChange:C,placement:x,getPopupContainer:A,href:E,icon:S=n.createElement(Xs,null),title:k,buttonsRender:R=e=>e,mouseEnterDelay:I,mouseLeaveDelay:P,overlayClassName:O,overlayStyle:T,destroyOnHidden:$,destroyPopupOnHide:z,dropdownRender:D,popupRender:L}=e,F=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,antCls:o}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},(0,$n.dF)(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`&${n}-block`]:{display:"flex"},[`${o}-badge ${o}-badge-count`]:{zIndex:1},[`> ${o}-badge:not(:first-child) > ${o}-button-wrapper`]:{borderInlineStart:"none"}})}},pp=e=>{const{componentCls:t,wrapperMarginInlineEnd:o,colorPrimary:n,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:p,paddingXS:h,dotColorDisabled:m,lineType:f,radioColor:g,radioBgColor:b,calc:v}=e,y=`${t}-inner`,w=v(r).sub(v(4).mul(2)),C=v(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,$n.dF)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:o,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,fn.zA)(u)} ${f} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,$n.dF)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:n},[`${t}-input:focus-visible + ${y}`]:Object.assign({},(0,$n.jk)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:v(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:n,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${v(w).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},hp=e=>{const{buttonColor:t,controlHeight:o,componentCls:n,lineWidth:r,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:p,controlHeightLG:h,controlHeightSM:m,paddingXS:f,borderRadius:g,borderRadiusSM:b,borderRadiusLG:v,buttonCheckedBg:y,buttonSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:x,buttonCheckedBgDisabled:A,buttonCheckedColorDisabled:E,colorPrimary:S,colorPrimaryHover:k,colorPrimaryActive:R,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:I,buttonSolidCheckedActiveBg:P,calc:O}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:o,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:(0,fn.zA)(O(o).sub(O(r).mul(2)).equal()),background:d,border:`${(0,fn.zA)(r)} ${i} ${a}`,borderBlockStartWidth:O(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:O(r).mul(-1).equal(),insetInlineStart:O(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,fn.zA)(r)} ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${n}-group-large &`]:{height:h,fontSize:p,lineHeight:(0,fn.zA)(O(h).sub(O(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${n}-group-small &`]:{height:m,paddingInline:O(f).sub(r).equal(),paddingBlock:0,lineHeight:(0,fn.zA)(O(m).sub(O(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:S},"&:has(:focus-visible)":Object.assign({},(0,$n.jk)(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:S,background:y,borderColor:S,"&::before":{backgroundColor:S},"&:first-child":{borderColor:S},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:w,background:M,borderColor:M,"&:hover":{color:w,background:I,borderColor:I},"&:active":{color:w,background:P,borderColor:P}},"&-disabled":{color:C,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:x,borderColor:a}},[`&-disabled${n}-button-wrapper-checked`]:{color:E,backgroundColor:A,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},mp=Dn("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:o}=e,n=`0 0 0 ${(0,fn.zA)(o)} ${t}`,r=Rn(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[dp(r),pp(r),hp(r)]}),(e=>{const{wireframe:t,padding:o,marginXS:n,lineWidth:r,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:p,colorPrimaryActive:h,colorWhite:m}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+r),dotColorDisabled:s,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:h,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:o-r,wrapperMarginInlineEnd:n,radioColor:t?d:m,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}});const fp=(e,t)=>{var o,r;const i=n.useContext(sp),a=n.useContext(cp),{getPrefixCls:l,direction:s,radio:c}=n.useContext(pn.QO),u=n.useRef(null),d=(0,g.K4)(t,u),{isFormItemInput:p}=n.useContext(Di),{prefixCls:h,className:m,rootClassName:f,children:b,style:v,title:y}=e,w=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o,n;null===(o=e.onChange)||void 0===o||o.call(e,t),null===(n=null==i?void 0:i.onChange)||void 0===n||n.call(i,t)},I.checked=e.value===i.value,I.disabled=null!==(o=I.disabled)&&void 0!==o?o:i.disabled),I.disabled=null!==(r=I.disabled)&&void 0!==r?r:P;const O=M()(`${A}-wrapper`,{[`${A}-wrapper-checked`]:I.checked,[`${A}-wrapper-disabled`]:I.disabled,[`${A}-wrapper-rtl`]:"rtl"===s,[`${A}-wrapper-in-form-item`]:p,[`${A}-wrapper-block`]:!!(null==i?void 0:i.block)},null==c?void 0:c.className,m,f,k,R,E),[T,$]=_i(I.onClick);return S(n.createElement(gr,{component:"Radio",disabled:I.disabled},n.createElement("label",{className:O,style:Object.assign(Object.assign({},null==c?void 0:c.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:T},n.createElement(dn,Object.assign({},I,{className:M()(I.className,{[jn]:!x}),type:"radio",prefixCls:A,ref:d,onClick:$})),void 0!==b?n.createElement("span",{className:`${A}-label`},b):null)))},gp=n.forwardRef(fp),bp=n.forwardRef(((e,t)=>{const{getPrefixCls:o,direction:r}=n.useContext(pn.QO),i=da(),{prefixCls:a,className:l,rootClassName:s,options:c,buttonStyle:u="outline",disabled:d,children:p,size:h,style:m,id:f,optionType:g,name:b=i,defaultValue:v,value:y,block:w=!1,onChange:C,onMouseEnter:x,onMouseLeave:A,onFocus:E,onBlur:S}=e,[k,R]=(0,ln.A)(v,{value:y}),I=n.useCallback((t=>{const o=k,n=t.target.value;"value"in e||R(n),n!==o&&(null==C||C(t))}),[k,R,C]),P=o("radio",a),O=`${P}-group`,T=vr(P),[$,z,D]=mp(P,T);let L=p;c&&c.length>0&&(L=c.map((e=>"string"==typeof e||"number"==typeof e?n.createElement(gp,{key:e.toString(),prefixCls:P,disabled:d,value:e,checked:k===e},e):n.createElement(gp,{key:`radio-group-value-options-${e.value}`,prefixCls:P,disabled:e.disabled||d,value:e.value,checked:k===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label))));const F=hc(h),N=M()(O,`${O}-${u}`,{[`${O}-${F}`]:F,[`${O}-rtl`]:"rtl"===r,[`${O}-block`]:w},l,s,z,D,T),H=n.useMemo((()=>({onChange:I,value:k,disabled:d,name:b,optionType:g,block:w})),[I,k,d,b,g,w]);return $(n.createElement("div",Object.assign({},Ne(e,{aria:!0,data:!0}),{className:N,style:m,onMouseEnter:x,onMouseLeave:A,onFocus:E,onBlur:S,id:f,ref:t}),n.createElement(lp,{value:H},L)))})),vp=n.memo(bp);const yp=(e,t)=>{const{getPrefixCls:o}=n.useContext(pn.QO),{prefixCls:r}=e,i=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{let o=[];return(t||[]).forEach((t=>{o.push(t),t&&"object"==typeof t&&e in t&&(o=[].concat((0,tt.A)(o),(0,tt.A)(Mp(e,t[e]))))})),o};function Ip(e){return null!=e&&e===e.window}var Pp=o(60685),Op=o(80436);const Tp=(e,t)=>{const o=n.useContext(Pp.A);return[n.useMemo((()=>{var n;const r=t||Op.A[e],i=null!==(n=null==o?void 0:o[e])&&void 0!==n?n:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),i||{})}),[e,t,o]),n.useMemo((()=>{const e=null==o?void 0:o.locale;return(null==o?void 0:o.exist)&&!e?Op.A.locale:e}),[o])]},$p=()=>{const[,e]=(0,zn.Ay)(),[t]=Tp("Empty"),o=new Xc.Y(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return n.createElement("svg",{style:o,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,(null==t?void 0:t.description)||"Empty"),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(24 31.67)"},n.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),n.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),n.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),n.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),n.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),n.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),n.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},n.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),n.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},zp=()=>{const[,e]=(0,zn.Ay)(),[t]=Tp("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:l,shadowColor:s,contentColor:c}=(0,n.useMemo)((()=>({borderColor:new Xc.Y(o).onBackground(a).toHexString(),shadowColor:new Xc.Y(r).onBackground(a).toHexString(),contentColor:new Xc.Y(i).onBackground(a).toHexString()})),[o,r,i,a]);return n.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,(null==t?void 0:t.description)||"Empty"),n.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},n.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),n.createElement("g",{fillRule:"nonzero",stroke:l},n.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),n.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},Dp=e=>{const{componentCls:t,margin:o,marginXS:n,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Lp=Dn("Empty",(e=>{const{componentCls:t,controlHeightLG:o,calc:n}=e,r=Rn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:n(o).mul(.875).equal()});return[Dp(r)]}));const Fp=n.createElement($p,null),Np=n.createElement(zp,null),Hp=e=>{const{className:t,rootClassName:o,prefixCls:r,image:i=Fp,description:a,children:l,imageStyle:s,style:c,classNames:u,styles:d}=e,p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{componentName:t}=e,{getPrefixCls:o}=(0,n.useContext)(pn.QO),r=o("empty");switch(t){case"Table":case"List":return n.createElement(jp,{image:jp.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return n.createElement(jp,{image:jp.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return n.createElement(jp,null)}};function _p(){const[,e]=n.useReducer((e=>e+1),0);return e}const Vp=["xxl","xl","lg","md","sm","xs"],Wp=()=>{const[,e]=(0,zn.Ay)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,o=[].concat(Vp).reverse();return o.forEach(((e,n)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(n{const e=new Map;let o=-1,n={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(n=t,e.forEach((e=>e(n))),e.size>=1),subscribe(t){return e.size||this.register(),o+=1,e.set(o,t),t(n),o},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach((([e,t])=>{const o=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},n),{[e]:t}))},r=window.matchMedia(t);((e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)})(r,o),this.matchHandlers[t]={mql:r,listener:o},o(r)}))},unregister(){Object.values(t).forEach((e=>{const t=this.matchHandlers[e];((e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)})(null==t?void 0:t.mql,null==t?void 0:t.listener)})),e.clear()}}}),[e])},Gp=function(e=!0,t={}){const o=(0,n.useRef)(t),r=_p(),i=Wp();return(0,c.A)((()=>{const t=i.subscribe((t=>{o.current=t,e&&r()}));return()=>i.unsubscribe(t)}),[]),o.current},Kp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var Up=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Kp}))};const qp=n.forwardRef(Up),Xp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var Yp=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Xp}))};const Qp=n.forwardRef(Yp),Jp={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var Zp=[10,20,50,100];const eh=function(e){var t=e.pageSizeOptions,o=void 0===t?Zp:t,r=e.locale,i=e.changeSize,a=e.pageSize,s=e.goButton,c=e.quickGo,u=e.rootPrefixCls,d=e.disabled,p=e.buildOptionText,h=e.showSizeChanger,m=e.sizeChangerRender,f=n.useState(""),g=(0,l.A)(f,2),b=g[0],v=g[1],y=function(){return!b||Number.isNaN(b)?void 0:Number(b)},w="function"==typeof p?p:function(e){return"".concat(e," ").concat(r.items_per_page)},C=function(e){""!==b&&(e.keyCode!==La.ENTER&&"click"!==e.type||(v(""),null==c||c(y())))},x="".concat(u,"-options");if(!h&&!c)return null;var A=null,E=null,S=null;return h&&m&&(A=m({disabled:d,size:a,onSizeChange:function(e){null==i||i(Number(e))},"aria-label":r.page_size,className:"".concat(x,"-size-changer"),options:(o.some((function(e){return e.toString()===a.toString()}))?o:o.concat([a]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e){return{label:w(e),value:e}}))})),c&&(s&&(S="boolean"==typeof s?n.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:d,className:"".concat(x,"-quick-jumper-button")},r.jump_to_confirm):n.createElement("span",{onClick:C,onKeyUp:C},s)),E=n.createElement("div",{className:"".concat(x,"-quick-jumper")},r.jump_to,n.createElement("input",{disabled:d,type:"text",value:b,onChange:function(e){v(e.target.value)},onKeyUp:C,onBlur:function(e){s||""===b||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(u,"-item"))>=0)||null==c||c(y()))},"aria-label":r.page}),r.page,S)),n.createElement("li",{className:x},A,E)},th=function(e){var t=e.rootPrefixCls,o=e.page,r=e.active,i=e.className,a=e.showTitle,l=e.onClick,s=e.onKeyPress,c=e.itemRender,u="".concat(t,"-item"),d=M()(u,"".concat(u,"-").concat(o),(0,k.A)((0,k.A)({},"".concat(u,"-active"),r),"".concat(u,"-disabled"),!o),i),p=c(o,"page",n.createElement("a",{rel:"nofollow"},o));return p?n.createElement("li",{title:a?String(o):null,className:d,onClick:function(){l(o)},onKeyDown:function(e){s(e,l,o)},tabIndex:0},p):null};var oh=function(e,t,o){return o};function nh(){}function rh(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ih(e,t,o){var n=void 0===e?t:e;return Math.floor((o-1)/n)+1}const ah=function(e){var t=e.prefixCls,o=void 0===t?"rc-pagination":t,r=e.selectPrefixCls,i=void 0===r?"rc-select":r,a=e.className,s=e.current,c=e.defaultCurrent,u=void 0===c?1:c,d=e.total,p=void 0===d?0:d,h=e.pageSize,m=e.defaultPageSize,g=void 0===m?10:m,b=e.onChange,v=void 0===b?nh:b,y=e.hideOnSinglePage,w=e.align,C=e.showPrevNextJumpers,x=void 0===C||C,A=e.showQuickJumper,R=e.showLessItems,I=e.showTitle,P=void 0===I||I,O=e.onShowSizeChange,T=void 0===O?nh:O,$=e.locale,z=void 0===$?Jp:$,D=e.style,L=e.totalBoundaryShowSizeChanger,F=void 0===L?50:L,N=e.disabled,H=e.simple,j=e.showTotal,B=e.showSizeChanger,_=void 0===B?p>F:B,V=e.sizeChangerRender,W=e.pageSizeOptions,G=e.itemRender,K=void 0===G?oh:G,U=e.jumpPrevIcon,q=e.jumpNextIcon,X=e.prevIcon,Y=e.nextIcon,Q=n.useRef(null),J=(0,ln.A)(10,{value:h,defaultValue:g}),Z=(0,l.A)(J,2),ee=Z[0],te=Z[1],oe=(0,ln.A)(1,{value:s,defaultValue:u,postState:function(e){return Math.max(1,Math.min(e,ih(void 0,ee,p)))}}),ne=(0,l.A)(oe,2),re=ne[0],ie=ne[1],ae=n.useState(re),le=(0,l.A)(ae,2),se=le[0],ce=le[1];(0,n.useEffect)((function(){ce(re)}),[re]);var ue=Math.max(1,re-(R?3:5)),de=Math.min(ih(void 0,ee,p),re+(R?3:5));function pe(t,r){var i=t||n.createElement("button",{type:"button","aria-label":r,className:"".concat(o,"-item-link")});return"function"==typeof t&&(i=n.createElement(t,(0,S.A)({},e))),i}function he(e){var t=e.target.value,o=ih(void 0,ee,p);return""===t?t:Number.isNaN(Number(t))?se:t>=o?o:Number(t)}var me=p>ee&&A;function fe(e){var t=he(e);switch(t!==se&&ce(t),e.keyCode){case La.ENTER:ge(t);break;case La.UP:ge(t-1);break;case La.DOWN:ge(t+1)}}function ge(e){if(function(e){return rh(e)&&e!==re&&rh(p)&&p>0}(e)&&!N){var t=ih(void 0,ee,p),o=e;return e>t?o=t:e<1&&(o=1),o!==se&&ce(o),ie(o),null==v||v(o,ee),o}return re}var be=re>1,ve=re2?o-2:0),r=2;rp?p:re*ee])),Me=null,Ie=ih(void 0,ee,p);if(y&&p<=ee)return null;var Pe=[],Oe={rootPrefixCls:o,onClick:ge,onKeyPress:Ae,showTitle:P,itemRender:K,page:-1},Te=re-1>0?re-1:0,$e=re+1=2*He&&3!==re&&(Pe[0]=n.cloneElement(Pe[0],{className:M()("".concat(o,"-item-after-jump-prev"),Pe[0].props.className)}),Pe.unshift(Se)),Ie-re>=2*He&&re!==Ie-2){var qe=Pe[Pe.length-1];Pe[Pe.length-1]=n.cloneElement(qe,{className:M()("".concat(o,"-item-before-jump-next"),qe.props.className)}),Pe.push(Me)}1!==Ge&&Pe.unshift(n.createElement(th,(0,f.A)({},Oe,{key:1,page:1}))),Ke!==Ie&&Pe.push(n.createElement(th,(0,f.A)({},Oe,{key:Ie,page:Ie})))}var Xe=function(e){var t=K(e,"prev",pe(X,"prev page"));return n.isValidElement(t)?n.cloneElement(t,{disabled:!be}):t}(Te);if(Xe){var Ye=!be||!Ie;Xe=n.createElement("li",{title:P?z.prev_page:null,onClick:ye,tabIndex:Ye?null:0,onKeyDown:function(e){Ae(e,ye)},className:M()("".concat(o,"-prev"),(0,k.A)({},"".concat(o,"-disabled"),Ye)),"aria-disabled":Ye},Xe)}var Qe,Je,Ze=function(e){var t=K(e,"next",pe(Y,"next page"));return n.isValidElement(t)?n.cloneElement(t,{disabled:!ve}):t}($e);Ze&&(H?(Qe=!ve,Je=be?0:null):Je=(Qe=!ve||!Ie)?null:0,Ze=n.createElement("li",{title:P?z.next_page:null,onClick:we,tabIndex:Je,onKeyDown:function(e){Ae(e,we)},className:M()("".concat(o,"-next"),(0,k.A)({},"".concat(o,"-disabled"),Qe)),"aria-disabled":Qe},Ze));var et=M()(o,a,(0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)({},"".concat(o,"-start"),"start"===w),"".concat(o,"-center"),"center"===w),"".concat(o,"-end"),"end"===w),"".concat(o,"-simple"),H),"".concat(o,"-disabled"),N));return n.createElement("ul",(0,f.A)({className:et,style:D,ref:Q},ke),Re,Xe,H?Fe:Pe,Ze,n.createElement(eh,{locale:z,rootPrefixCls:o,disabled:N,selectPrefixCls:i,changeSize:function(e){var t=ih(e,ee,p),o=re>t&&0!==t?t:re;te(e),ce(o),null==T||T(re,e),ie(o),null==v||v(o,e)},pageSize:ee,pageSizeOptions:W,quickGo:me?ge:null,goButton:Le,showSizeChanger:_,sizeChangerRender:V}))};var lh=o(96069);const sh=function(e){var t=e.className,o=e.customizeIcon,r=e.customizeIconProps,i=e.children,a=e.onMouseDown,l=e.onClick,s="function"==typeof o?o(r):o;return n.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==s?s:n.createElement("span",{className:M()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))};var ch=n.createContext(null);function uh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=n.useRef(null),o=n.useRef(null);return n.useEffect((function(){return function(){window.clearTimeout(o.current)}}),[]),[function(){return t.current},function(n){(n||null===t.current)&&(t.current=n),window.clearTimeout(o.current),o.current=window.setTimeout((function(){t.current=null}),e)}]}var dh=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],ph=function(e,t){var o=e.prefixCls,r=e.id,i=e.inputElement,a=e.autoFocus,l=e.autoComplete,s=e.editable,c=e.activeDescendantId,u=e.value,d=e.open,p=e.attrs,h=(0,j.A)(e,dh),m=i||n.createElement("input",null),f=m,b=f.ref,v=f.props;return(0,O.$e)(!("maxLength"in m.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),n.cloneElement(m,(0,S.A)((0,S.A)((0,S.A)({type:"search"},function(e,t,o){var n=(0,S.A)((0,S.A)({},e),o?t:{});return Object.keys(t).forEach((function(o){var r=t[o];"function"==typeof r&&(n[o]=function(){for(var t,n=arguments.length,i=new Array(n),a=0;ax&&(i="".concat(a.slice(0,x),"..."))}var l=function(t){t&&t.stopPropagation(),I(e)};return"function"==typeof S?Y(n,i,t,r,l):X(e,i,t,r,l)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof E?E(e):E;return"function"==typeof S?Y(void 0,t,!1,!1,void 0,!0):X({title:t},t,!1)},suffix:Q,itemKey:vh,maxCount:C});return n.createElement("span",{className:"".concat(K,"-wrap")},J,!a.length&&!U&&n.createElement("span",{className:"".concat(K,"-placeholder")},p))},Ch=function(e){var t=e.inputElement,o=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,s=e.autoFocus,c=e.autoComplete,u=e.activeDescendantId,d=e.mode,p=e.open,h=e.values,m=e.placeholder,f=e.tabIndex,g=e.showSearch,b=e.searchValue,v=e.activeValue,y=e.maxLength,w=e.onInputKeyDown,C=e.onInputMouseDown,x=e.onInputChange,A=e.onInputPaste,E=e.onInputCompositionStart,S=e.onInputCompositionEnd,k=e.onInputBlur,R=e.title,M=n.useState(!1),I=(0,l.A)(M,2),P=I[0],O=I[1],T="combobox"===d,$=T||g,z=h[0],D=b||"";T&&v&&!P&&(D=v),n.useEffect((function(){T&&O(!1)}),[T,v]);var L=!("combobox"!==d&&!p&&!g||!D),F=void 0===R?bh(z):R,N=n.useMemo((function(){return z?null:n.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},m)}),[z,L,m,o]);return n.createElement("span",{className:"".concat(o,"-selection-wrap")},n.createElement("span",{className:"".concat(o,"-selection-search")},n.createElement(hh,{ref:i,prefixCls:o,id:r,open:p,inputElement:t,disabled:a,autoFocus:s,autoComplete:c,editable:$,activeDescendantId:u,value:D,onKeyDown:w,onMouseDown:C,onChange:function(e){O(!0),x(e)},onPaste:A,onCompositionStart:E,onCompositionEnd:S,onBlur:k,tabIndex:f,attrs:Ne(e,!0),maxLength:T?y:void 0})),!T&&z?n.createElement("span",{className:"".concat(o,"-selection-item"),title:F,style:L?{visibility:"hidden"}:void 0},z.label):null,N)};var xh=function(e,t){var o=(0,n.useRef)(null),r=(0,n.useRef)(!1),i=e.prefixCls,a=e.open,s=e.mode,c=e.showSearch,u=e.tokenWithEnter,d=e.disabled,p=e.prefix,h=e.autoClearSearchValue,m=e.onSearch,g=e.onSearchSubmit,b=e.onToggleOpen,v=e.onInputKeyDown,y=e.onInputBlur,w=e.domRef;n.useImperativeHandle(t,(function(){return{focus:function(e){o.current.focus(e)},blur:function(){o.current.blur()}}}));var C=uh(0),x=(0,l.A)(C,2),A=x[0],E=x[1],S=(0,n.useRef)(null),k=function(e){!1!==m(e,!0,r.current)&&b(!0)},R={inputRef:o,onInputKeyDown:function(e){var t,n=e.which,i=o.current instanceof HTMLTextAreaElement;i||!a||n!==La.UP&&n!==La.DOWN||e.preventDefault(),v&&v(e),n!==La.ENTER||"tags"!==s||r.current||a||null==g||g(e.target.value),i&&!a&&~[La.UP,La.DOWN,La.LEFT,La.RIGHT].indexOf(n)||(t=n)&&![La.ESC,La.SHIFT,La.BACKSPACE,La.TAB,La.WIN_KEY,La.ALT,La.META,La.WIN_KEY_RIGHT,La.CTRL,La.SEMICOLON,La.EQUALS,La.CAPS_LOCK,La.CONTEXT_MENU,La.F1,La.F2,La.F3,La.F4,La.F5,La.F6,La.F7,La.F8,La.F9,La.F10,La.F11,La.F12].includes(t)&&b(!0)},onInputMouseDown:function(){E(!0)},onInputChange:function(e){var t=e.target.value;if(u&&S.current&&/[\r\n]/.test(S.current)){var o=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(o,S.current)}S.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData,o=null==t?void 0:t.getData("text");S.current=o||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==s&&k(e.target.value)},onInputBlur:y},M="multiple"===s||"tags"===s?n.createElement(wh,(0,f.A)({},e,R)):n.createElement(Ch,(0,f.A)({},e,R));return n.createElement("div",{ref:w,className:"".concat(i,"-selector"),onClick:function(e){e.target!==o.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){o.current.focus()})):o.current.focus())},onMouseDown:function(e){var t=A();e.target===o.current||t||"combobox"===s&&d||e.preventDefault(),("combobox"===s||c&&t)&&a||(a&&!1!==h&&m("",!0,!1),b())}},p&&n.createElement("div",{className:"".concat(i,"-prefix")},p),M)};const Ah=n.forwardRef(xh);var Eh=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Sh=function(e,t){var o=e.prefixCls,r=(e.disabled,e.visible),i=e.children,a=e.popupElement,l=e.animation,s=e.transitionName,c=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,p=void 0===d?"ltr":d,h=e.placement,m=e.builtinPlacements,g=e.dropdownMatchSelectWidth,b=e.dropdownRender,v=e.dropdownAlign,y=e.getPopupContainer,w=e.empty,C=e.getTriggerDOMNode,x=e.onPopupVisibleChange,A=e.onPopupMouseEnter,E=(0,j.A)(e,Eh),R="".concat(o,"-dropdown"),I=a;b&&(I=b(a));var P=n.useMemo((function(){return m||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(g)}),[m,g]),O=l?"".concat(R,"-").concat(l):s,T="number"==typeof g,$=n.useMemo((function(){return T?null:!1===g?"minWidth":"width"}),[g,T]),z=c;T&&(z=(0,S.A)((0,S.A)({},z),{},{width:g}));var D=n.useRef(null);return n.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=D.current)||void 0===e?void 0:e.popupElement}}})),n.createElement(za,(0,f.A)({},E,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:h||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:R,popupTransitionName:O,popup:n.createElement("div",{onMouseEnter:A},I),ref:D,stretch:$,popupAlign:v,popupVisible:r,getPopupContainer:y,popupClassName:M()(u,(0,k.A)({},"".concat(R,"-empty"),w)),popupStyle:z,getTriggerDOMNode:C,onPopupVisibleChange:x}),i)};const kh=n.forwardRef(Sh);var Rh=o(87695);function Mh(e,t){var o,n=e.key;return"value"in e&&(o=e.value),null!=n?n:void 0!==o?o:"rc-index-key-".concat(t)}function Ih(e){return void 0!==e&&!Number.isNaN(e)}function Ph(e,t){var o=e||{},n=o.label||(t?"children":"label");return{label:n,value:o.value||"value",options:o.options||"options",groupLabel:o.groupLabel||n}}function Oh(e){var t=(0,S.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,O.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Th=n.createContext(null);function $h(e){var t=e.visible,o=e.values;return t?n.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(o.slice(0,50).map((function(e){var t=e.label,o=e.value;return["number","string"].includes((0,E.A)(t))?t:o})).join(", ")),o.length>50?", ...":null):null}var zh=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Dh=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Lh=function(e){return"tags"===e||"multiple"===e},Fh=n.forwardRef((function(e,t){var o,r=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,u=e.tagRender,d=e.direction,p=e.omitDomProps,h=e.displayValues,m=e.onDisplayValuesChange,b=e.emptyOptions,v=e.notFoundContent,y=void 0===v?"Not Found":v,w=e.onClear,C=e.mode,x=e.disabled,A=e.loading,R=e.getInputElement,I=e.getRawInputElement,P=e.open,O=e.defaultOpen,T=e.onDropdownVisibleChange,$=e.activeValue,z=e.onActiveValueChange,D=e.activeDescendantId,L=e.searchValue,F=e.autoClearSearchValue,N=e.onSearch,H=e.onSearchSplit,B=e.tokenSeparators,_=e.allowClear,V=e.prefix,W=e.suffixIcon,G=e.clearIcon,K=e.OptionList,U=e.animation,q=e.transitionName,X=e.dropdownStyle,Y=e.dropdownClassName,Q=e.dropdownMatchSelectWidth,J=e.dropdownRender,Z=e.dropdownAlign,ee=e.placement,te=e.builtinPlacements,oe=e.getPopupContainer,ne=e.showAction,re=void 0===ne?[]:ne,ie=e.onFocus,ae=e.onBlur,le=e.onKeyUp,se=e.onKeyDown,ce=e.onMouseDown,ue=(0,j.A)(e,zh),de=Lh(C),pe=(void 0!==s?s:de)||"combobox"===C,he=(0,S.A)({},ue);Dh.forEach((function(e){delete he[e]})),null==p||p.forEach((function(e){delete he[e]}));var me=n.useState(!1),fe=(0,l.A)(me,2),ge=fe[0],be=fe[1];n.useEffect((function(){be(pa())}),[]);var ve=n.useRef(null),ye=n.useRef(null),we=n.useRef(null),Ce=n.useRef(null),xe=n.useRef(null),Ae=n.useRef(!1),Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=n.useState(!1),o=(0,l.A)(t,2),r=o[0],i=o[1],a=n.useRef(null),s=function(){window.clearTimeout(a.current)};return n.useEffect((function(){return s}),[]),[r,function(t,o){s(),a.current=window.setTimeout((function(){i(t),o&&o()}),e)},s]}(),Se=(0,l.A)(Ee,3),ke=Se[0],Re=Se[1],Me=Se[2];n.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Ce.current)||void 0===e?void 0:e.focus,blur:null===(t=Ce.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=xe.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:ve.current||ye.current}}));var Ie=n.useMemo((function(){var e;if("combobox"!==C)return L;var t=null===(e=h[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[L,C,h]),Pe="combobox"===C&&"function"==typeof R&&R()||null,Oe="function"==typeof I&&I(),Te=(0,g.xK)(ye,null==Oe||null===(o=Oe.props)||void 0===o?void 0:o.ref),$e=n.useState(!1),ze=(0,l.A)($e,2),De=ze[0],Le=ze[1];(0,c.A)((function(){Le(!0)}),[]);var Fe=(0,ln.A)(!1,{defaultValue:O,value:P}),Ne=(0,l.A)(Fe,2),He=Ne[0],je=Ne[1],Be=!!De&&He,_e=!y&&b;(x||_e&&Be&&"combobox"===C)&&(Be=!1);var Ve=!_e&&Be,We=n.useCallback((function(e){var t=void 0!==e?e:!Be;x||(je(t),Be!==t&&(null==T||T(t)))}),[x,Be,je,T]),Ge=n.useMemo((function(){return(B||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[B]),Ke=n.useContext(Th)||{},Ue=Ke.maxCount,qe=Ke.rawValues,Xe=function(e,t,o){if(!(de&&Ih(Ue)&&(null==qe?void 0:qe.size)>=Ue)){var n=!0,r=e;null==z||z(null);var i=function(e,t,o){if(!t||!t.length)return null;var n=!1,r=function e(t,o){var r=(0,Rh.A)(o),i=r[0],a=r.slice(1);if(!i)return[t];var l=t.split(i);return n=n||l.length>1,l.reduce((function(t,o){return[].concat((0,tt.A)(t),(0,tt.A)(e(o,a)))}),[]).filter(Boolean)}(e,t);return n?void 0!==o?r.slice(0,o):r:null}(e,B,Ih(Ue)?Ue-qe.size:void 0),a=o?null:i;return"combobox"!==C&&a&&(r="",null==H||H(a),We(!1),n=!1),N&&Ie!==r&&N(r,{source:t?"typing":"effect"}),n}};n.useEffect((function(){Be||de||"combobox"===C||Xe("",!1,!1)}),[Be]),n.useEffect((function(){He&&x&&je(!1),x&&!Ae.current&&Re(!1)}),[x]);var Ye=uh(),Qe=(0,l.A)(Ye,2),Je=Qe[0],Ze=Qe[1],et=n.useRef(!1),ot=n.useRef(!1),nt=[];n.useEffect((function(){return function(){nt.forEach((function(e){return clearTimeout(e)})),nt.splice(0,nt.length)}}),[]);var rt,it=n.useState({}),at=(0,l.A)(it,2)[1];Oe&&(rt=function(e){We(e)}),function(e,t,o,r){var i=n.useRef(null);i.current={open:t,triggerOpen:o,customizedTrigger:r},n.useEffect((function(){function e(e){var t,o;if(null===(t=i.current)||void 0===t||!t.customizedTrigger){var n=e.target;n.shadowRoot&&e.composed&&(n=e.composedPath()[0]||n),i.current.open&&[ve.current,null===(o=we.current)||void 0===o?void 0:o.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(n)&&e!==n}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,Ve,We,!!Oe);var lt,st=n.useMemo((function(){return(0,S.A)((0,S.A)({},e),{},{notFoundContent:y,open:Be,triggerOpen:Ve,id:r,showSearch:pe,multiple:de,toggleOpen:We})}),[e,y,Ve,Be,r,pe,de,We]),ct=!!W||A;ct&&(lt=n.createElement(sh,{className:M()("".concat(i,"-arrow"),(0,k.A)({},"".concat(i,"-arrow-loading"),A)),customizeIcon:W,customizeIconProps:{loading:A,searchValue:Ie,open:Be,focused:ke,showSearch:pe}}));var ut,dt=function(e,t,o,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=n.useMemo((function(){return"object"===(0,E.A)(r)?r.clearIcon:i||void 0}),[r,i]);return{allowClear:n.useMemo((function(){return!(a||!r||!o.length&&!l||"combobox"===s&&""===l)}),[r,a,o.length,l,s]),clearIcon:n.createElement(sh,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(i,(function(){var e;null==w||w(),null===(e=Ce.current)||void 0===e||e.focus(),m([],{type:"clear",values:h}),Xe("",!1,!1)}),h,_,G,x,Ie,C),pt=dt.allowClear,ht=dt.clearIcon,mt=n.createElement(K,{ref:xe}),ft=M()(i,a,(0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)({},"".concat(i,"-focused"),ke),"".concat(i,"-multiple"),de),"".concat(i,"-single"),!de),"".concat(i,"-allow-clear"),_),"".concat(i,"-show-arrow"),ct),"".concat(i,"-disabled"),x),"".concat(i,"-loading"),A),"".concat(i,"-open"),Be),"".concat(i,"-customize-input"),Pe),"".concat(i,"-show-search"),pe)),gt=n.createElement(kh,{ref:we,disabled:x,prefixCls:i,visible:Ve,popupElement:mt,animation:U,transitionName:q,dropdownStyle:X,dropdownClassName:Y,direction:d,dropdownMatchSelectWidth:Q,dropdownRender:J,dropdownAlign:Z,placement:ee,builtinPlacements:te,getPopupContainer:oe,empty:b,getTriggerDOMNode:function(e){return ye.current||e},onPopupVisibleChange:rt,onPopupMouseEnter:function(){at({})}},Oe?n.cloneElement(Oe,{ref:Te}):n.createElement(Ah,(0,f.A)({},e,{domRef:ye,prefixCls:i,inputElement:Pe,ref:Ce,id:r,prefix:V,showSearch:pe,autoClearSearchValue:F,mode:C,activeDescendantId:D,tagRender:u,values:h,open:Be,onToggleOpen:We,activeValue:$,searchValue:Ie,onSearch:Xe,onSearchSubmit:function(e){e&&e.trim()&&N(e,{source:"submit"})},onRemove:function(e){var t=h.filter((function(t){return t!==e}));m(t,{type:"remove",values:[e]})},tokenWithEnter:Ge,onInputBlur:function(){et.current=!1}})));return ut=Oe?gt:n.createElement("div",(0,f.A)({className:ft},he,{ref:ve,onMouseDown:function(e){var t,o=e.target,n=null===(t=we.current)||void 0===t?void 0:t.getPopupElement();if(n&&n.contains(o)){var r=setTimeout((function(){var e,t=nt.indexOf(r);-1!==t&&nt.splice(t,1),Me(),ge||n.contains(document.activeElement)||null===(e=Ce.current)||void 0===e||e.focus()}));nt.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;l-=1){var s=i[l];if(!s.disabled){i.splice(l,1),a=s;break}}a&&m(i,{type:"remove",values:[a]})}for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d1?t-1:0),n=1;n=g}),[s,g,null==x?void 0:x.size]),L=function(e){e.preventDefault()},F=function(e){var t;null===(t=z.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},N=n.useCallback((function(e){return"combobox"!==c&&x.has(e)}),[c,(0,tt.A)(x).toString(),x.size]),H=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=$.length,n=0;n1&&void 0!==arguments[1]&&arguments[1];W(e);var o={source:t?"keyboard":"mouse"},n=$[e];n?v(n.value,e,o):v(null,-1,o)};(0,n.useEffect)((function(){G(!1!==y?H(0):-1)}),[$.length,u]);var K=n.useCallback((function(e){return"combobox"===c?String(e).toLowerCase()===u.toLowerCase():x.has(e)}),[c,u,(0,tt.A)(x).toString(),x.size]);(0,n.useEffect)((function(){var e,t=setTimeout((function(){if(!s&&a&&1===x.size){var e=Array.from(x)[0],t=$.findIndex((function(t){var o=t.data;return u?String(o.value).startsWith(u):o.value===e}));-1!==t&&(G(t),F(t))}}));return a&&(null===(e=z.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[a,u]);var U=function(e){void 0!==e&&w(e,{selected:!x.has(e)}),s||d(!1)};if(n.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,o=e.ctrlKey;switch(t){case La.N:case La.P:case La.UP:case La.DOWN:var n=0;if(t===La.UP?n=-1:t===La.DOWN?n=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&o&&(t===La.N?n=1:t===La.P&&(n=-1)),0!==n){var r=H(V+n,n);F(r),G(r,!0)}break;case La.TAB:case La.ENTER:var i,l=$[V];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||D?U(void 0):U(l.value),a&&e.preventDefault();break;case La.ESC:d(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){F(e)}}})),0===$.length)return n.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(T,"-empty"),onMouseDown:L},p);var q=Object.keys(A).map((function(e){return A[e]})),X=function(e){return e.label};function Y(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var Q=function(e){var t=$[e];if(!t)return null;var o=t.data||{},r=o.value,i=t.group,a=Ne(o,!0),l=X(t);return t?n.createElement("div",(0,f.A)({"aria-label":"string"!=typeof l||i?null:l},a,{key:e},Y(t,e),{"aria-selected":K(r)}),r):null},J={role:"listbox",id:"".concat(i,"_list")};return n.createElement(n.Fragment,null,E&&n.createElement("div",(0,f.A)({},J,{style:{height:0,width:0,overflow:"hidden"}}),Q(V-1),Q(V),Q(V+1)),n.createElement(qt,{itemKey:"key",ref:z,data:$,height:R,itemHeight:P,fullHeight:!1,onMouseDown:L,onScroll:h,virtual:E,direction:S,innerProps:E?null:J},(function(e,t){var o=e.group,r=e.groupOption,i=e.data,a=e.label,l=e.value,s=i.key;if(o){var c,u=null!==(c=i.title)&&void 0!==c?c:Wh(a)?a.toString():void 0;return n.createElement("div",{className:M()(T,"".concat(T,"-group"),i.className),title:u},void 0!==a?a:s)}var d=i.disabled,p=i.title,h=(i.children,i.style),m=i.className,g=$o((0,j.A)(i,Vh),q),b=N(l),v=d||!b&&D,y="".concat(T,"-option"),w=M()(T,y,m,(0,k.A)((0,k.A)((0,k.A)((0,k.A)({},"".concat(y,"-grouped"),r),"".concat(y,"-active"),V===t&&!v),"".concat(y,"-disabled"),v),"".concat(y,"-selected"),b)),x=X(e),A=!C||"function"==typeof C||b,S="number"==typeof x?x:x||l,R=Wh(S)?S.toString():void 0;return void 0!==p&&(R=p),n.createElement("div",(0,f.A)({},Ne(g),E?{}:Y(e,t),{"aria-selected":K(l),className:w,title:R,onMouseMove:function(){V===t||v||G(t)},onClick:function(){v||U(l)},style:h}),n.createElement("div",{className:"".concat(y,"-content")},"function"==typeof O?O(e,{index:t}):S),n.isValidElement(C)||b,A&&n.createElement(sh,{className:"".concat(T,"-option-state"),customizeIcon:C,customizeIconProps:{value:l,disabled:v,isSelected:b}},b?"✓":null))})))};const Kh=n.forwardRef(Gh);function Uh(e,t){return mh(e).join("").toUpperCase().includes(t)}var qh=0,Xh=(0,Ie.A)();var Yh=["children","value"],Qh=["children"];function Jh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return U(e).map((function(e,o){if(!n.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,l=r.props,s=l.children,c=(0,j.A)(l,Qh);return t||!i?function(e){var t=e,o=t.key,n=t.props,r=n.children,i=n.value,a=(0,j.A)(n,Yh);return(0,S.A)({key:o,value:void 0!==i?i:o,children:r},a)}(e):(0,S.A)((0,S.A)({key:"__RC_SELECT_GRP__".concat(null===a?o:a,"__"),label:a},c),{},{options:Jh(s)})})).filter((function(e){return e}))}const Zh=function(e,t,o,r,i){return n.useMemo((function(){var n=e;!e&&(n=Jh(t));var a=new Map,l=new Map,s=function(e,t,o){o&&"string"==typeof o&&e.set(t[o],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c0?e(t.options):t.options}):t}))},Ce=n.useMemo((function(){return C?we(ye):ye}),[ye,C,Z]),xe=n.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.fieldNames,n=t.childrenAsData,r=[],i=Ph(o,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;return function e(t,o){Array.isArray(t)&&t.forEach((function(t){if(o||!(s in t)){var i=t[l];r.push({key:Mh(t,r.length),groupOption:o,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&n&&(u=t.label),r.push({key:Mh(t,r.length),group:!0,data:t,label:u}),e(t[s],!0)}}))}(e,!1),r}(Ce,{fieldNames:Y,childrenAsData:q})}),[Ce,Y,q]),Ae=function(e){var t=ie(e);if(ce(t),V&&(t.length!==he.length||t.some((function(e,t){var o;return(null===(o=he[t])||void 0===o?void 0:o.value)!==(null==e?void 0:e.value)})))){var o=_?t:t.map((function(e){return e.value})),n=t.map((function(e){return Oh(me(e.value))}));V(U?o:o[0],U?n:n[0])}},Ee=n.useState(null),Se=(0,l.A)(Ee,2),ke=Se[0],Re=Se[1],Me=n.useState(0),Ie=(0,l.A)(Me,2),Pe=Ie[0],Oe=Ie[1],Te=void 0!==P?P:"combobox"!==r,$e=n.useCallback((function(e,t){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,n=void 0===o?"keyboard":o;Oe(t),s&&"combobox"===r&&null!==e&&"keyboard"===n&&Re(String(e))}),[s,r]),ze=function(e,t,o){var n=function(){var t,o=me(e);return[_?{label:null==o?void 0:o[Y.label],value:e,key:null!==(t=null==o?void 0:o.key)&&void 0!==t?t:e}:e,Oh(o)]};if(t&&g){var r=n(),i=(0,l.A)(r,2),a=i[0],s=i[1];g(a,s)}else if(!t&&b&&"clear"!==o){var c=n(),u=(0,l.A)(c,2),d=u[0],p=u[1];b(d,p)}},De=em((function(e,t){var o,n=!U||t.selected;o=n?U?[].concat((0,tt.A)(he),[e]):[e]:he.filter((function(t){return t.value!==e})),Ae(o),ze(e,n),"combobox"===r?Re(""):Lh&&!m||(ee(""),Re(""))})),Le=n.useMemo((function(){var e=!1!==T&&!1!==y;return(0,S.A)((0,S.A)({},te),{},{flattenOptions:xe,onActiveValue:$e,defaultActiveFirstOption:Te,onSelect:De,menuItemSelectedIcon:O,rawValues:ge,fieldNames:Y,virtual:e,direction:$,listHeight:D,listItemHeight:F,childrenAsData:q,maxCount:W,optionRender:M})}),[W,te,xe,$e,Te,De,O,ge,Y,T,y,$,D,F,q,M]);return n.createElement(Th.Provider,{value:Le},n.createElement(Nh,(0,f.A)({},G,{id:K,prefixCls:a,ref:t,omitDomProps:om,mode:r,displayValues:fe,onDisplayValuesChange:function(e,t){Ae(e);var o=t.type,n=t.values;"remove"!==o&&"clear"!==o||n.forEach((function(e){ze(e.value,!1,o)}))},direction:$,searchValue:Z,onSearch:function(e,t){if(ee(e),Re(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&Ae(e),null==p||p(e));else{var o=(e||"").trim();if(o){var n=Array.from(new Set([].concat((0,tt.A)(ge),[o])));Ae(n),ze(o,!0),ee("")}}},autoClearSearchValue:m,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=ne.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var o=Array.from(new Set([].concat((0,tt.A)(ge),(0,tt.A)(t))));Ae(o),o.forEach((function(e){ze(e,!0)}))},dropdownMatchSelectWidth:y,OptionList:Kh,emptyOptions:!xe.length,activeValue:ke,activeDescendantId:"".concat(K,"_list_").concat(Pe)})))})),rm=nm;rm.Option=_h,rm.OptGroup=jh;const im=rm;function am(e,t,o){return M()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:o})}const lm=(e,t)=>t||e,sm=(e,t,o=void 0)=>{var r,i;const{variant:a,[e]:l}=n.useContext(pn.QO),s=n.useContext(Fi),c=null==l?void 0:l.variant;let u;return u=void 0!==t?t:!1===o?"borderless":null!==(i=null!==(r=null!=s?s:c)&&void 0!==r?r:a)&&void 0!==i?i:"outlined",[u,pn.lJ.includes(u)]},cm=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},um=e=>{const{optionHeight:t,optionFontSize:o,optionLineHeight:n,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:n,boxSizing:"border-box"}},dm=e=>{const{antCls:t,componentCls:o}=e,n=`${o}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${o}-dropdown-placement-`,s=`${n}-option-selected`;return[{[`${o}-dropdown`]:Object.assign(Object.assign({},(0,$n.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:Qc},[`\n ${r}${l}topLeft,\n ${i}${l}topLeft,\n ${r}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:Zc},[`${a}${l}bottomLeft`]:{animationName:Jc},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:eu},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},um(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},$n.L9),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},um(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},au(e,"slide-up"),au(e,"slide-down"),Tu(e,"move-up"),Tu(e,"move-down")]},pm=e=>{const{componentCls:t,iconCls:o,borderRadiusSM:n,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:n,cursor:"default",transition:`font-size ${r}, line-height ${r}, height ${r}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,$n.Nk)()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},hm=(e,t)=>{const{componentCls:o,INTERNAL_FIXED_ITEM_MARGIN:n}=e,r=`${o}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:o,lineWidth:n}=e;return e.calc(o).sub(t).div(2).sub(n).equal()})(e),l=t?`${o}-${t}`:"",s=(e=>{const{multipleSelectItemHeight:t,paddingXXS:o,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(o).sub(n).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:(0,fn.zA)(t),itemLineHeight:(0,fn.zA)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${o}-multiple${l}`]:Object.assign(Object.assign({},pm(e)),{[`${o}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${o}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,fn.zA)(n)} 0`,lineHeight:(0,fn.zA)(i),visibility:"hidden",content:'"\\a0"'}},[`${o}-selection-item`]:{height:s.itemHeight,lineHeight:(0,fn.zA)(s.itemLineHeight)},[`${o}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,fn.zA)(i),marginBlock:n}},[`${o}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${r}-item + ${r}-item,\n ${o}-prefix + ${o}-selection-wrap\n `]:{[`${o}-selection-search`]:{marginInlineStart:0},[`${o}-selection-placeholder`]:{insetInlineStart:0}},[`${r}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:n},[`${o}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:(0,fn.zA)(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${o}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function mm(e,t){const{componentCls:o}=e,n=t?`${o}-${t}`:"",r={[`${o}-multiple${n}`]:{fontSize:e.fontSize,[`${o}-selector`]:{[`${o}-show-search&`]:{cursor:"text"}},[`\n &${o}-show-arrow ${o}-selector,\n &${o}-allow-clear ${o}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[hm(e,t),r]}const fm=e=>{const{componentCls:t}=e,o=Rn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=Rn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[mm(e),mm(o,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},mm(n,"lg")]};function gm(e,t){const{componentCls:o,inputPaddingHorizontalBase:n,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${o}-${t}`:"";return{[`${o}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${o}-selector`]:Object.assign(Object.assign({},(0,$n.dF)(e,!0)),{display:"flex",borderRadius:r,flex:"1 1 auto",[`${o}-selection-wrap:after`]:{lineHeight:(0,fn.zA)(i)},[`${o}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${o}-selection-item,\n ${o}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:(0,fn.zA)(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${o}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${o}-selection-item:empty:after`,`${o}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${o}-show-arrow ${o}-selection-item,\n &${o}-show-arrow ${o}-selection-search,\n &${o}-show-arrow ${o}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${o}-open ${o}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${o}-customize-input)`]:{[`${o}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,fn.zA)(n)}`,[`${o}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:(0,fn.zA)(i)}}},[`&${o}-customize-input`]:{[`${o}-selector`]:{"&:after":{display:"none"},[`${o}-selection-search`]:{position:"static",width:"100%"},[`${o}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,fn.zA)(n)}`,"&:after":{display:"none"}}}}}}}function bm(e){const{componentCls:t}=e,o=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[gm(e),gm(Rn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,fn.zA)(o)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(o).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},gm(Rn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const vm=(e,t)=>{const{componentCls:o,antCls:n,controlOutlineWidth:r}=e;return{[`&:not(${o}-customize-input) ${o}-selector`]:{border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${o}-disabled):not(${o}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{borderColor:t.hoverBorderHover},[`${o}-focused& ${o}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,fn.zA)(r)} ${t.activeOutlineColor}`,outline:0},[`${o}-prefix`]:{color:t.color}}}},ym=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},vm(e,t))}),wm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},vm(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),ym(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),ym(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Cm=(e,t)=>{const{componentCls:o,antCls:n}=e;return{[`&:not(${o}-customize-input) ${o}-selector`]:{background:t.bg,border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${o}-disabled):not(${o}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{background:t.hoverBg},[`${o}-focused& ${o}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},xm=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Cm(e,t))}),Am=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Cm(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),xm(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),xm(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Em=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Sm=(e,t)=>{const{componentCls:o,antCls:n}=e;return{[`&:not(${o}-customize-input) ${o}-selector`]:{borderWidth:`0 0 ${(0,fn.zA)(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${o}-disabled):not(${o}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{borderColor:t.hoverBorderHover},[`${o}-focused& ${o}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${o}-prefix`]:{color:t.color}}}},km=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Sm(e,t))}),Rm=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Sm(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),km(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),km(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Mm=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},wm(e)),Am(e)),Em(e)),Rm(e))}),Im=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Pm=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Om=e=>{const{antCls:t,componentCls:o,inputPaddingHorizontalBase:n,iconCls:r}=e,i={[`${o}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[o]:Object.assign(Object.assign({},(0,$n.dF)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${o}-customize-input) ${o}-selector`]:Object.assign(Object.assign({},Im(e)),Pm(e)),[`${o}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},$n.L9),{[`> ${t}-typography`]:{display:"inline"}}),[`${o}-selection-placeholder`]:Object.assign(Object.assign({},$n.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${o}-arrow`]:Object.assign(Object.assign({},(0,$n.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${o}-suffix)`]:{pointerEvents:"auto"}},[`${o}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${o}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${o}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${o}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Tm=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Om(e),bm(e),fm(e),dm(e),{[`${t}-rtl`]:{direction:"rtl"}},Hd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},$m=Dn("Select",((e,{rootPrefixCls:t})=>{const o=Rn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Tm(o),Mm(o)]}),(e=>{const{fontSize:t,lineHeight:o,lineWidth:n,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:h,colorBgContainer:m,colorFillSecondary:f,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:v,colorPrimary:y,controlOutline:w}=e,C=2*l,x=2*n,A=Math.min(r-C,r-x),E=Math.min(i-C,i-x),S=Math.min(a-C,a-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:h,optionPadding:`${(r-t*o)/2}px ${s}px`,optionFontSize:t,optionLineHeight:o,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:A,multipleItemHeightSM:E,multipleItemHeightLG:S,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:w,selectAffixPadding:l}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),zm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var Dm=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:zm}))};const Lm=n.forwardRef(Dm),Fm={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var Nm=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Fm}))};const Hm=n.forwardRef(Nm),jm={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var Bm=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:jm}))};const _m=n.forwardRef(Bm),Vm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var Wm=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Vm}))};const Gm=n.forwardRef(Wm);const Km="SECRET_COMBOBOX_MODE_DO_NOT_USE",Um=(e,t)=>{var o,r,i,a,l;const{prefixCls:s,bordered:c,className:u,rootClassName:d,getPopupContainer:p,popupClassName:h,dropdownClassName:m,listHeight:f=256,placement:g,listItemHeight:b,size:v,disabled:y,notFoundContent:w,status:C,builtinPlacements:x,dropdownMatchSelectWidth:A,popupMatchSelectWidth:E,direction:S,style:k,allowClear:R,variant:I,dropdownStyle:P,transitionName:O,tagRender:T,maxCount:$,prefix:z,dropdownRender:D,popupRender:L,onDropdownVisibleChange:F,onOpenChange:N,styles:H,classNames:j}=e,B=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{mode:t}=e;if("combobox"!==t)return t===Km?"combobox":t}),[e.mode]),me="multiple"===he||"tags"===he,fe=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ge=null!==(o=null!=E?E:A)&&void 0!==o?o:U,be=(null===(r=null==H?void 0:H.popup)||void 0===r?void 0:r.root)||(null===(i=Q.popup)||void 0===i?void 0:i.root)||P,ve=L||D,ye=N||F,{status:we,hasFeedback:Ce,isFormItemInput:xe,feedbackIcon:Ae}=n.useContext(Di),Ee=lm(we,C);let Se;Se=void 0!==w?w:"combobox"===he?null:(null==W?void 0:W("Select"))||n.createElement(Bp,{componentName:"Select"});const{suffixIcon:ke,itemIcon:Re,removeIcon:Me,clearIcon:Ie}=function({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:o,removeIcon:r,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:p}){const h=null!=t?t:n.createElement(Hm,null),m=t=>null!==e||l||d?n.createElement(n.Fragment,null,!1!==c&&t,l&&u):null;let f=null;if(void 0!==e)f=m(e);else if(i)f=m(n.createElement(Ku,{spin:!0}));else{const e=`${s}-suffix`;f=({open:t,showSearch:o})=>m(t&&o?n.createElement(Gm,{className:e}):n.createElement(Ro,{className:e}))}let g=null;g=void 0!==o?o:a?n.createElement(Lm,null):null;let b=null;return b=void 0!==r?r:n.createElement(_m,null),{clearIcon:h,suffixIcon:f,itemIcon:g,removeIcon:b}}(Object.assign(Object.assign({},B),{multiple:me,hasFeedback:Ce,feedbackIcon:Ae,showSuffixIcon:fe,prefixCls:oe,componentName:"Select"})),Pe=!0===R?{clearIcon:Ie}:R,Oe=$o(B,["suffixIcon","itemIcon"]),Te=M()((null===(a=null==j?void 0:j.popup)||void 0===a?void 0:a.root)||(null===(l=null==Z?void 0:Z.popup)||void 0===l?void 0:l.root)||h||m,{[`${oe}-dropdown-${re}`]:"rtl"===re},d,Z.root,null==j?void 0:j.root,pe,ce,de),$e=hc((e=>{var t;return null!==(t=null!=v?v:ie)&&void 0!==t?t:e})),ze=n.useContext(br.A),De=null!=y?y:ze,Le=M()({[`${oe}-lg`]:"large"===$e,[`${oe}-sm`]:"small"===$e,[`${oe}-rtl`]:"rtl"===re,[`${oe}-${le}`]:se,[`${oe}-in-form-item`]:xe},am(oe,Ee,Ce),ae,J,u,Z.root,null==j?void 0:j.root,d,pe,ce,de),Fe=n.useMemo((()=>void 0!==g?g:"rtl"===re?"bottomRight":"bottomLeft"),[g,re]),[Ne]=Ya("SelectLike",null==be?void 0:be.zIndex);return ue(n.createElement(im,Object.assign({ref:t,virtual:K,showSearch:X},Oe,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Q.root),null==H?void 0:H.root),Y),k),dropdownMatchSelectWidth:ge,transitionName:ec(ne,"slide-up",O),builtinPlacements:cm(x,q),listHeight:f,listItemHeight:te,mode:he,prefixCls:oe,placement:Fe,direction:re,prefix:z,suffixIcon:ke,menuItemSelectedIcon:Re,removeIcon:Me,allowClear:Pe,notFoundContent:Se,className:Le,getPopupContainer:p||_,dropdownClassName:Te,disabled:De,dropdownStyle:Object.assign(Object.assign({},be),{zIndex:Ne}),maxCount:me?$:void 0,tagRender:me?T:void 0,dropdownRender:ve,onDropdownVisibleChange:ye})))},qm=n.forwardRef(Um),Xm=ll(qm,"dropdownAlign");qm.SECRET_COMBOBOX_MODE_DO_NOT_USE=Km,qm.Option=_h,qm.OptGroup=jh,qm._InternalPanelDoNotUseOrYouWillBeFired=Xm;const Ym=qm;function Qm(e){return Rn(e,{inputAffixPadding:e.paddingXXS})}const Jm=e=>{const{controlHeight:t,fontSize:o,lineHeight:n,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:h,colorPrimary:m,controlOutlineWidth:f,controlOutline:g,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y,inputFontSize:w,inputFontSizeLG:C,inputFontSizeSM:x}=e,A=w||o,E=x||A,S=C||l,k=Math.round((t-A*n)/2*10)/10-r,R=Math.round((i-E*n)/2*10)/10-r,M=Math.ceil((a-S*s)/2*10)/10-r;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(R,0),paddingBlockLG:Math.max(M,0),paddingInline:c-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:p,activeBorderColor:m,hoverBorderColor:h,activeShadow:`0 0 0 ${f}px ${g}`,errorActiveShadow:`0 0 0 ${f}px ${b}`,warningActiveShadow:`0 0 0 ${f}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:A,inputFontSizeLG:S,inputFontSizeSM:E}},Zm=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ef=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Zm(Rn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),tf=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),of=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},tf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),nf=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ef(e))}),of(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),of(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),rf=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),af=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},rf(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),rf(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ef(e))}})}),lf=(e,t)=>{const{componentCls:o}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${o}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},sf=(e,t)=>{var o;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(o=null==t?void 0:t.inputColor)&&void 0!==o?o:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},cf=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),uf=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sf(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ef(e))}),cf(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),cf(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),df=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),pf=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},df(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),df(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),hf=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,fn.zA)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),mf=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),ff=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),mf(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),mf(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),gf=e=>{const{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:n,paddingInlineLG:r}=e;return{padding:`${(0,fn.zA)(t)} ${(0,fn.zA)(r)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:n}},bf=e=>({padding:`${(0,fn.zA)(e.paddingBlockSM)} ${(0,fn.zA)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,fn.zA)(e.paddingBlock)} ${(0,fn.zA)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"&-lg":Object.assign({},gf(e)),"&-sm":Object.assign({},bf(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yf=e=>{const{componentCls:t,antCls:o}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},gf(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},bf(e)),[`&-lg ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,fn.zA)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${(0,fn.zA)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,fn.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${o}-cascader-picker`]:{margin:`-9px ${(0,fn.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,$n.t6)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${o}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${o}-select > ${o}-select-selector,\n & > ${o}-select-auto-complete ${t},\n & > ${o}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${o}-select:first-child > ${o}-select-selector,\n & > ${o}-select-auto-complete:first-child ${t},\n & > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${o}-select:last-child > ${o}-select-selector,\n & > ${o}-cascader-picker:last-child ${t},\n & > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},wf=e=>{const{componentCls:t,controlHeightSM:o,lineWidth:n,calc:r}=e,i=r(o).sub(r(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$n.dF)(e)),vf(e)),nf(e)),uf(e)),lf(e)),ff(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Cf=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,fn.zA)(e.inputAffixPadding)}`}}}},xf=e=>{const{componentCls:t,inputAffixPadding:o,colorTextDescription:n,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},vf(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o}}}),Cf(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},Af=e=>{const{componentCls:t,borderRadiusLG:o,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,$n.dF)(e)),yf(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},af(e)),pf(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Ef=e=>{const{componentCls:t,antCls:o}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${o}-btn-color-primary):not(${o}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${o}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${o}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Sf=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},kf=Dn(["Input","Shared"],(e=>{const t=Rn(e,Qm(e));return[wf(t),xf(t)]}),Jm,{resetFont:!1}),Rf=Dn(["Input","Component"],(e=>{const t=Rn(e,Qm(e));return[Af(t),Ef(t),Sf(t),Hd(t)]}),Jm,{resetFont:!1}),Mf=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},If=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,fn.zA)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,fn.zA)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,fn.zA)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,fn.zA)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,fn.zA)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,fn.zA)(e.itemSizeSM),input:Object.assign(Object.assign({},bf(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Pf=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:(0,fn.zA)(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:(0,fn.zA)(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,fn.zA)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,fn.zA)(e.inputOutlineOffset)} 0 ${(0,fn.zA)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Of=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,fn.zA)(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,fn.zA)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},vf(e)),tf(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},ef(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Tf=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,fn.zA)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,fn.zA)(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},$f=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$n.dF)(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,fn.zA)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Tf(e)),Of(e)),Pf(e)),If(e)),Mf(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},zf=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,$n.K8)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,$n.jk)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,$n.jk)(e))}}}},Df=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Jm(e)),Lf=e=>Rn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Qm(e)),Ff=Dn("Pagination",(e=>{const t=Lf(e);return[$f(t),zf(t)]}),Df),Nf=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,fn.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Hf=Fn(["Pagination","bordered"],(e=>{const t=Lf(e);return[Nf(t)]}),Df);function jf(e){return(0,n.useMemo)((()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0]),[e])}const Bf=e=>{const{align:t,prefixCls:o,selectPrefixCls:r,className:i,rootClassName:a,style:l,size:s,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:p,pageSizeOptions:h}=e,m=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);rh?h.map((e=>Number(e))):void 0),[h]),H=n.useMemo((()=>{const e=n.createElement("span",{className:`${x}-item-ellipsis`},"•••");return{prevIcon:n.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===v?n.createElement(ea,null):n.createElement(Qi,null)),nextIcon:n.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===v?n.createElement(Qi,null):n.createElement(ea,null)),jumpPrevIcon:n.createElement("a",{className:`${x}-item-link`},n.createElement("div",{className:`${x}-item-container`},"rtl"===v?n.createElement(Qp,{className:`${x}-item-link-icon`}):n.createElement(qp,{className:`${x}-item-link-icon`}),e)),jumpNextIcon:n.createElement("a",{className:`${x}-item-link`},n.createElement("div",{className:`${x}-item-container`},"rtl"===v?n.createElement(qp,{className:`${x}-item-link-icon`}):n.createElement(Qp,{className:`${x}-item-link-icon`}),e))}}),[v,x]),j=b("select",r),B=M()({[`${x}-${t}`]:!!t,[`${x}-mini`]:R,[`${x}-rtl`]:"rtl"===v,[`${x}-bordered`]:g.wireframe},w,i,a,E,S),_=Object.assign(Object.assign({},C),l);return A(n.createElement(n.Fragment,null,g.wireframe&&n.createElement(Hf,{prefixCls:x}),n.createElement(ah,Object.assign({},H,m,{style:_,prefixCls:x,selectPrefixCls:j,className:B,locale:P,pageSizeOptions:N,showSizeChanger:D,sizeChangerRender:e=>{var t;const{disabled:o,size:r,onSizeChange:i,"aria-label":a,className:l,options:s}=e,{className:c,onChange:u}=L||{},d=null===(t=s.find((e=>String(e.value)===String(r))))||void 0===t?void 0:t.value;return n.createElement(F,Object.assign({disabled:o,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":a,options:s},L,{value:d,onChange:(e,t)=>{null==i||i(e),null==u||u(e,t)},size:R?"small":"middle",className:M()(l,c)}))}}))))};const _f=80*Math.PI,Vf=e=>{const{dotClassName:t,style:o,hasCircleCls:r}=e;return n.createElement("circle",{className:M()(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:o})},Wf=({percent:e,prefixCls:t})=>{const o=`${t}-dot`,r=`${o}-holder`,i=`${r}-hidden`,[a,l]=n.useState(!1);(0,c.A)((()=>{0!==e&&l(!0)}),[0!==e]);const s=Math.max(Math.min(e,100),0);if(!a)return null;const u={strokeDashoffset:""+_f/4,strokeDasharray:`${_f*s/100} ${_f*(100-s)/100}`};return n.createElement("span",{className:M()(r,`${o}-progress`,s<=0&&i)},n.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},n.createElement(Vf,{dotClassName:o,hasCircleCls:!0}),n.createElement(Vf,{dotClassName:o,style:u})))};function Gf(e){const{prefixCls:t,percent:o=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return n.createElement(n.Fragment,null,n.createElement("span",{className:M()(i,o>0&&a)},n.createElement("span",{className:M()(r,`${t}-dot-spin`)},[1,2,3,4].map((e=>n.createElement("i",{className:`${t}-dot-item`,key:e}))))),n.createElement(Wf,{prefixCls:t,percent:o}))}function Kf(e){const{prefixCls:t,indicator:o,percent:r}=e,i=`${t}-dot`;return o&&n.isValidElement(o)?mn(o,{className:M()(o.props.className,i),percent:r}):n.createElement(Gf,{prefixCls:t,percent:r})}const Uf=new fn.Mo("antSpinMove",{to:{opacity:1}}),qf=new fn.Mo("antRotate",{to:{transform:"rotate(405deg)"}}),Xf=e=>{const{componentCls:t,calc:o}=e;return{[t]:Object.assign(Object.assign({},(0,$n.dF)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:o(o(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:o(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:o(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:o(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),height:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Uf,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:qf,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal(),height:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Yf=Dn("Spin",(e=>{const t=Rn(e,{spinDotDefault:e.colorTextDescription});return[Xf(t)]}),(e=>{const{controlHeightLG:t,controlHeight:o}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:o}})),Qf=[[30,.05],[70,.03],[96,.01]];let Jf;const Zf=e=>{var t;const{prefixCls:o,spinning:r=!0,delay:i=0,className:a,rootClassName:l,size:s="default",tip:c,wrapperClassName:u,style:d,children:p,fullscreen:h=!1,indicator:m,percent:f}=e,g=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);rr&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(r,i))),I=function(e,t){const[o,r]=n.useState(0),i=n.useRef(null),a="auto"===t;return n.useEffect((()=>(a&&e&&(r(0),i.current=setInterval((()=>{r((e=>{const t=100-e;for(let o=0;o{clearInterval(i.current)})),[a,e]),a?o:t}(k,f);n.useEffect((()=>{if(r){const e=function(e,t,o){var n=(o||{}).atBegin;return function(e,t,o){var n,r=o||{},i=r.noTrailing,a=void 0!==i&&i,l=r.noLeading,s=void 0!==l&&l,c=r.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function h(){n&&clearTimeout(n)}function m(){for(var o=arguments.length,r=new Array(o),i=0;ie?s?(p=Date.now(),a||(n=setTimeout(u?f:m,e))):m():!0!==a&&(n=setTimeout(u?f:m,void 0===u?e-c:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,o=void 0!==t&&t;h(),d=!o},m}(e,t,{debounceMode:!1!==(void 0!==n&&n)})}(i,(()=>{R(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}R(!1)}),[i,r]);const P=n.useMemo((()=>void 0!==p&&!h),[p,h]),O=M()(x,y,{[`${x}-sm`]:"small"===s,[`${x}-lg`]:"large"===s,[`${x}-spinning`]:k,[`${x}-show-text`]:!!c,[`${x}-rtl`]:"rtl"===v},a,!h&&l,E,S),T=M()(`${x}-container`,{[`${x}-blur`]:k}),$=null!==(t=null!=m?m:C)&&void 0!==t?t:Jf,z=Object.assign(Object.assign({},w),d),D=n.createElement("div",Object.assign({},g,{style:z,className:O,"aria-live":"polite","aria-busy":k}),n.createElement(Kf,{prefixCls:x,indicator:$,percent:I}),c&&(P||h)?n.createElement("div",{className:`${x}-text`},c):null);return A(P?n.createElement("div",Object.assign({},g,{className:M()(`${x}-nested-loading`,u,E,S)}),k&&n.createElement("div",{key:"loading"},D),n.createElement("div",{className:T,key:"container"},p)):h?n.createElement("div",{className:M()(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:k},l,E,S)},D):D)};Zf.setDefaultIndicator=e=>{Jf=e};const eg=Zf,tg=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function og(e,t){return t?`${t}-${e}`:`${e}`}const ng=(e,t)=>"function"==typeof e?e(t):e,rg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var ig=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:rg}))};const ag=n.forwardRef(ig),lg=function(...e){const t={};return e.forEach((e=>{e&&Object.keys(e).forEach((o=>{void 0!==e[o]&&(t[o]=e[o])}))})),t};function sg(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var cg=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ug=n.forwardRef((function(e,t){var o=e.className,r=e.style,i=e.motion,a=e.motionNodes,s=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,p=e.active,h=e.treeNodeRequiredProps,m=(0,j.A)(e,cg),g=n.useState(!0),b=(0,l.A)(g,2),v=b[0],y=b[1],w=n.useContext(Mo).prefixCls,C=a&&"hide"!==s;(0,c.A)((function(){a&&C!==v&&y(C)}),[a]);var x=n.useRef(!1),A=function(){a&&!x.current&&(x.current=!0,d())};return function(e,t){var o=n.useState(!1),r=(0,l.A)(o,2),i=r[0],a=r[1];(0,c.A)((function(){if(i)return e(),function(){t()}}),[i]),(0,c.A)((function(){return a(!0),function(){a(!1)}}),[])}((function(){a&&u()}),A),a?n.createElement(Bn.Ay,(0,f.A)({ref:t,visible:v},i,{motionAppear:"show"===s,onVisibleChanged:function(e){C===e&&A()}}),(function(e,t){var o=e.className,r=e.style;return n.createElement("div",{ref:t,className:M()("".concat(w,"-treenode-motion"),o),style:r},a.map((function(e){var t=Object.assign({},(sg(e.data),e.data)),o=e.title,r=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=Bo(r,h);return n.createElement(Uo,(0,f.A)({},t,l,{title:o,active:p,data:e.data,key:r,isStart:i,isEnd:a}))})))})):n.createElement(Uo,(0,f.A)({domRef:t,className:o,style:r},m,{active:p}))}));const dg=ug;function pg(e,t,o){var n=e.findIndex((function(e){return e.key===o})),r=e[n+1],i=t.findIndex((function(e){return e.key===o}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(i+1,a)}return t.slice(i+1)}var hg=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],mg={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},fg=function(){},gg="RC_TREE_MOTION_".concat(Math.random()),bg={key:gg},vg={key:gg,level:0,index:0,pos:"0",node:bg,nodes:[bg]},yg={parent:null,children:[],pos:vg.pos,data:bg,title:null,key:gg,isStart:[],isEnd:[]};function wg(e,t,o,n){return!1!==t&&o?e.slice(0,Math.ceil(o/n)+1):e}function Cg(e){return Lo(e.key,e.pos)}var xg=n.forwardRef((function(e,t){var o=e.prefixCls,r=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,s=e.checkedKeys,u=e.loadedKeys,d=e.loadingKeys,p=e.halfCheckedKeys,h=e.keyEntities,m=e.disabled,g=e.dragging,b=e.dragOverNodeKey,v=e.dropPosition,y=e.motion,w=e.height,C=e.itemHeight,x=e.virtual,A=e.scrollWidth,E=e.focusable,S=e.activeItem,k=e.focused,R=e.tabIndex,M=e.onKeyDown,I=e.onFocus,P=e.onBlur,O=e.onActiveChange,T=e.onListChangeStart,$=e.onListChangeEnd,z=(0,j.A)(e,hg),D=n.useRef(null),L=n.useRef(null);n.useImperativeHandle(t,(function(){return{scrollTo:function(e){D.current.scrollTo(e)},getIndentWidth:function(){return L.current.offsetWidth}}}));var F=n.useState(i),N=(0,l.A)(F,2),H=N[0],B=N[1],_=n.useState(r),V=(0,l.A)(_,2),W=V[0],G=V[1],K=n.useState(r),U=(0,l.A)(K,2),q=U[0],X=U[1],Y=n.useState([]),Q=(0,l.A)(Y,2),J=Q[0],Z=Q[1],ee=n.useState(null),te=(0,l.A)(ee,2),oe=te[0],ne=te[1],re=n.useRef(r);function ie(){var e=re.current;G(e),X(e),Z([]),ne(null),$()}re.current=r,(0,c.A)((function(){B(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=e.length,n=t.length;if(1!==Math.abs(o-n))return{add:!1,key:null};function r(e,t){var o=new Map;e.forEach((function(e){o.set(e,!0)}));var n=t.filter((function(e){return!o.has(e)}));return 1===n.length?n[0]:null}return o ").concat(t);return t}(S)),n.createElement("div",null,n.createElement("input",{style:mg,disabled:!1===E||m,tabIndex:!1!==E?R:null,onKeyDown:M,onFocus:I,onBlur:P,value:"",onChange:fg,"aria-label":"for screen reader"})),n.createElement("div",{className:"".concat(o,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},n.createElement("div",{className:"".concat(o,"-indent")},n.createElement("div",{ref:L,className:"".concat(o,"-indent-unit")}))),n.createElement(qt,(0,f.A)({},z,{data:ae,itemKey:Cg,height:w,fullHeight:!1,virtual:x,itemHeight:C,scrollWidth:A,prefixCls:"".concat(o,"-list"),ref:D,role:"tree",onVisibleChange:function(e){e.every((function(e){return Cg(e)!==gg}))&&ie()}}),(function(e){var t=e.pos,o=Object.assign({},(sg(e.data),e.data)),r=e.title,i=e.key,a=e.isStart,l=e.isEnd,s=Lo(i,t);delete o.key,delete o.children;var c=Bo(s,le);return n.createElement(dg,(0,f.A)({},o,c,{title:r,active:!!S&&i===S.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:y,motionNodes:i===gg?J:null,motionType:oe,onMotionStart:T,onMotionEnd:ie,treeNodeRequiredProps:le,onMouseMove:function(){O(null)}}))})))}));const Ag=xg;var Eg=function(e){(0,Ce.A)(o,e);var t=(0,xe.A)(o);function o(){var e;(0,ye.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,s=i.dropTargetKey,c=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var d=(0,S.A)((0,S.A)({},Bo(s,e.getTreeNodeRequiredProps())),{},{active:(null===(n=e.getActiveItem())||void 0===n?void 0:n.key)===s,data:To(e.state.keyEntities,s).node}),p=a.includes(s);(0,O.Ay)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var h=Yo(c),m={event:t,node:_o(d),dragNode:e.dragNodeProps?_o(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(h[h.length-1])};r||null==u||u(m),e.dragNodeProps=null}}})),(0,k.A)((0,gn.A)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),(0,k.A)((0,gn.A)(e),"triggerExpandActionExpand",(function(t,o){var n=e.state,r=n.expandedKeys,i=n.flattenNodes,a=o.expanded,l=o.key;if(!(o.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=i.filter((function(e){return e.key===l}))[0],c=_o((0,S.A)((0,S.A)({},Bo(l,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(a?qo(r,l):Xo(r,l)),e.onNodeExpand(t,c)}})),(0,k.A)((0,gn.A)(e),"onNodeClick",(function(t,o){var n=e.props,r=n.onClick;"click"===n.expandAction&&e.triggerExpandActionExpand(t,o),null==r||r(t,o)})),(0,k.A)((0,gn.A)(e),"onNodeDoubleClick",(function(t,o){var n=e.props,r=n.onDoubleClick;"doubleClick"===n.expandAction&&e.triggerExpandActionExpand(t,o),null==r||r(t,o)})),(0,k.A)((0,gn.A)(e),"onNodeSelect",(function(t,o){var n=e.state.selectedKeys,r=e.state,i=r.keyEntities,a=r.fieldNames,l=e.props,s=l.onSelect,c=l.multiple,u=o.selected,d=o[a.key],p=!u,h=(n=p?c?Xo(n,d):[d]:qo(n,d)).map((function(e){var t=To(i,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:n}),null==s||s(n,{event:"select",selected:p,node:o,selectedNodes:h,nativeEvent:t.nativeEvent})})),(0,k.A)((0,gn.A)(e),"onNodeCheck",(function(t,o,n){var r,i=e.state,a=i.keyEntities,l=i.checkedKeys,s=i.halfCheckedKeys,c=e.props,u=c.checkStrictly,d=c.onCheck,p=o.key,h={event:"check",node:o,checked:n,nativeEvent:t.nativeEvent};if(u){var m=n?Xo(l,p):qo(l,p);r={checked:m,halfChecked:qo(s,p)},h.checkedNodes=m.map((function(e){return To(a,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var f=an([].concat((0,tt.A)(l),[p]),!0,a),g=f.checkedKeys,b=f.halfCheckedKeys;if(!n){var v=new Set(g);v.delete(p);var y=an(Array.from(v),{checked:!1,halfCheckedKeys:b},a);g=y.checkedKeys,b=y.halfCheckedKeys}r=g,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=b,g.forEach((function(e){var t=To(a,e);if(t){var o=t.node,n=t.pos;h.checkedNodes.push(o),h.checkedNodesPositions.push({node:o,pos:n})}})),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:b})}null==d||d(r,h)})),(0,k.A)((0,gn.A)(e),"onNodeLoad",(function(t){var o,n=t.key,r=To(e.state.keyEntities,n);if(null==r||null===(o=r.children)||void 0===o||!o.length){var i=new Promise((function(o,r){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,s=i.loadingKeys,c=void 0===s?[]:s,u=e.props,d=u.loadData,p=u.onLoad;return!d||l.includes(n)||c.includes(n)?null:(d(t).then((function(){var r=Xo(e.state.loadedKeys,n);null==p||p(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState((function(e){return{loadingKeys:qo(e.loadingKeys,n)}})),o()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:qo(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var i=e.state.loadedKeys;(0,O.Ay)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:Xo(i,n)}),o()}r(t)})),{loadingKeys:Xo(c,n)})}))}));return i.catch((function(){})),i}})),(0,k.A)((0,gn.A)(e),"onNodeMouseEnter",(function(t,o){var n=e.props.onMouseEnter;null==n||n({event:t,node:o})})),(0,k.A)((0,gn.A)(e),"onNodeMouseLeave",(function(t,o){var n=e.props.onMouseLeave;null==n||n({event:t,node:o})})),(0,k.A)((0,gn.A)(e),"onNodeContextMenu",(function(t,o){var n=e.props.onRightClick;n&&(t.preventDefault(),n({event:t,node:o}))})),(0,k.A)((0,gn.A)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var o=arguments.length,n=new Array(o),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,i=!0,a={};Object.keys(t).forEach((function(o){e.props.hasOwnProperty(o)?i=!1:(r=!0,a[o]=t[o])})),!r||o&&!i||e.setState((0,S.A)((0,S.A)({},a),n))}})),(0,k.A)((0,gn.A)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return(0,we.A)(o,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,o=e.itemScrollOffset,n=void 0===o?0:o;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:n}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,o=t.focused,r=t.flattenNodes,i=t.keyEntities,a=t.draggingNodeKey,l=t.activeKey,s=t.dropLevelOffset,c=t.dropContainerKey,u=t.dropTargetKey,d=t.dropPosition,p=t.dragOverNodeKey,h=t.indent,m=this.props,g=m.prefixCls,b=m.className,v=m.style,y=m.showLine,w=m.focusable,C=m.tabIndex,x=void 0===C?0:C,A=m.selectable,S=m.showIcon,R=m.icon,I=m.switcherIcon,P=m.draggable,O=m.checkable,T=m.checkStrictly,$=m.disabled,z=m.motion,D=m.loadData,L=m.filterTreeNode,F=m.height,N=m.itemHeight,H=m.scrollWidth,j=m.virtual,B=m.titleRender,_=m.dropIndicatorRender,V=m.onContextMenu,W=m.onScroll,G=m.direction,K=m.rootClassName,U=m.rootStyle,q=Ne(this.props,{aria:!0,data:!0});P&&(e="object"===(0,E.A)(P)?P:"function"==typeof P?{nodeDraggable:P}:{});var X={prefixCls:g,selectable:A,showIcon:S,icon:R,switcherIcon:I,draggable:e,draggingNodeKey:a,checkable:O,checkStrictly:T,disabled:$,keyEntities:i,dropLevelOffset:s,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:p,indent:h,direction:G,dropIndicatorRender:_,loadData:D,filterTreeNode:L,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return n.createElement(Mo.Provider,{value:X},n.createElement("div",{className:M()(g,b,K,(0,k.A)((0,k.A)((0,k.A)({},"".concat(g,"-show-line"),y),"".concat(g,"-focused"),o),"".concat(g,"-active-focused"),null!==l)),style:U},n.createElement(Ag,(0,f.A)({ref:this.listRef,prefixCls:g,style:v,data:r,disabled:$,selectable:A,checkable:!!O,motion:z,dragging:null!==a,height:F,itemHeight:N,virtual:j,focusable:w,focused:o,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:W,scrollWidth:H},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var o,n=t.prevProps,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=Fo(e.fieldNames),r.fieldNames=a),i("treeData")?o=e.treeData:i("children")&&((0,O.Ay)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),o=No(e.children)),o){r.treeData=o;var l=jo(o,{fieldNames:a});r.keyEntities=(0,S.A)((0,k.A)({},gg,vg),l.keyEntities)}var s,c=r.keyEntities||t.keyEntities;if(i("expandedKeys")||n&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?on(e.expandedKeys,c):e.expandedKeys;else if(!n&&e.defaultExpandAll){var u=(0,S.A)({},c);delete u[gg];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),r.expandedKeys=d}else!n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?on(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,o||r.expandedKeys){var p=Ho(o||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=p}if(e.selectable&&(i("selectedKeys")?r.selectedKeys=en(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=en(e.defaultSelectedKeys,e))),e.checkable&&(i("checkedKeys")?s=tn(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?s=tn(e.defaultCheckedKeys)||{}:o&&(s=tn(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var h=s,m=h.checkedKeys,f=void 0===m?[]:m,g=h.halfCheckedKeys,b=void 0===g?[]:g;if(!e.checkStrictly){var v=an(f,!0,c);f=v.checkedKeys,b=v.halfCheckedKeys}r.checkedKeys=f,r.halfCheckedKeys=b}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),o}(n.Component);(0,k.A)(Eg,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,o=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-o*r;break;case 1:i.bottom=0,i.left=-o*r;break;case 0:i.bottom=0,i.left=r}return n.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),(0,k.A)(Eg,"TreeNode",Uo);const Sg=Eg,kg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var Rg=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:kg}))};const Mg=n.forwardRef(Rg),Ig={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var Pg=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Ig}))};const Og=n.forwardRef(Pg),Tg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var $g=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Tg}))};const zg=n.forwardRef($g),Dg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var Lg=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Dg}))};const Fg=n.forwardRef(Lg),Ng=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:o,directoryNodeSelectedColor:n,motionDurationMid:r,borderRadius:i,controlItemBgHover:a})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${r}`,content:'""',borderRadius:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{[`${e}-switcher, ${e}-draggable-icon`]:{color:n},[`${e}-node-content-wrapper`]:{color:n,background:"transparent","&:before, &:hover:before":{background:o}}}}}),Hg=new fn.Mo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),jg=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Bg=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,fn.zA)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),_g=(e,t)=>{const{treeCls:o,treeNodeCls:n,treeNodePadding:r,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[o]:Object.assign(Object.assign({},(0,$n.dF)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${o}-rtl ${o}-switcher_close ${o}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${o}-active-focused)`]:Object.assign({},(0,$n.jk)(t)),[`${o}-list-holder-inner`]:{alignItems:"flex-start"},[`&${o}-block-node`]:{[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Hg,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[n]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:(0,fn.zA)(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${o}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${o}-checkbox-disabled + ${o}-node-selected,&${n}-disabled${n}-selected ${o}-node-content-wrapper`]:{backgroundColor:u},[`${o}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${n}-disabled)`]:{[`${o}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${o}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${n}-disabled).filter-node ${o}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${o}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${n}-disabled ${o}-draggable-icon`]:{visibility:"hidden"}}},[`${o}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${o}-draggable-icon`]:{visibility:"hidden"},[`${o}-switcher, ${o}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${o}-switcher`]:Object.assign(Object.assign({},jg(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${o}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${o}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${o}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Bg(e,t)),{"&:hover":{backgroundColor:s},[`&${o}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${o}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${o}-unselectable ${o}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${o}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${o}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last ${o}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,fn.zA)(t.calc(i).div(2).equal())} !important`}})}},Vg=(e,t,o=!0)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=Rn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[_g(e,a),o&&Ng(a)].filter(Boolean)},Wg=Dn("Tree",((e,{prefixCls:t})=>[{[e.componentCls]:ji(`${t}-checkbox`,e)},Vg(t,e),Yc(e)]),(e=>{const{colorTextLightSolid:t,colorPrimary:o}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t,controlItemBgHover:o,controlItemBgActive:n}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:o,nodeHoverColor:e.colorText,nodeSelectedBg:n,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:o})})),Gg=function(e){const{dropPosition:t,dropLevelOffset:o,prefixCls:r,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",s="ltr"===a?"right":"left",c={[l]:-o*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=i+4}return n.createElement("div",{style:c,className:`${r}-drop-indicator`})},Kg={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var Ug=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Kg}))};const qg=n.forwardRef(Ug),Xg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var Yg=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Xg}))};const Qg=n.forwardRef(Yg),Jg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var Zg=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Jg}))};const eb=n.forwardRef(Zg),tb=e=>{const{prefixCls:t,switcherIcon:o,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:l,expanded:s,loading:c}=r;if(c)return n.isValidElement(a)?a:n.createElement(Ku,{className:`${t}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),l){if(!i)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(r):u,o=`${t}-switcher-line-custom-icon`;return n.isValidElement(e)?mn(e,{className:M()(e.props.className||"",o)}):e}return u?n.createElement(Mg,{className:`${t}-switcher-line-icon`}):n.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,p="function"==typeof o?o(r):o;return n.isValidElement(p)?mn(p,{className:M()(p.props.className||"",d)}):void 0!==p?p:i?s?n.createElement(Qg,{className:`${t}-switcher-line-icon`}):n.createElement(eb,{className:`${t}-switcher-line-icon`}):n.createElement(qg,{className:d})},ob=n.forwardRef(((e,t)=>{var o;const{getPrefixCls:r,direction:i,virtual:a,tree:l}=n.useContext(pn.QO),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:p,switcherLoadingIcon:h,blockNode:m=!1,children:f,checkable:g=!1,selectable:b=!0,draggable:v,motion:y,style:w}=e,C=r("tree",s),x=r(),A=null!=y?y:Object.assign(Object.assign({},tc(x)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:g,selectable:b,showIcon:u,motion:A,blockNode:m,showLine:Boolean(d),dropIndicatorRender:Gg}),[S,k,R]=Wg(C),[,I]=(0,zn.Ay)(),P=I.paddingXS/2+((null===(o=I.Tree)||void 0===o?void 0:o.titleHeight)||I.controlHeightSM),O=n.useMemo((()=>{if(!v)return!1;let e={};switch(typeof v){case"function":e.nodeDraggable=v;break;case"object":e=Object.assign({},v)}return!1!==e.icon&&(e.icon=e.icon||n.createElement(Fg,null)),e}),[v]);return S(n.createElement(Sg,Object.assign({itemHeight:P,ref:t,virtual:a},E,{style:Object.assign(Object.assign({},null==l?void 0:l.style),w),prefixCls:C,className:M()({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:m,[`${C}-unselectable`]:!b,[`${C}-rtl`]:"rtl"===i},null==l?void 0:l.className,c,k,R),direction:i,checkable:g?n.createElement("span",{className:`${C}-checkbox-inner`}):g,selectable:b,switcherIcon:e=>n.createElement(tb,{prefixCls:C,switcherIcon:p,switcherLoadingIcon:h,treeNodeProps:e,showLine:d}),draggable:O}),f))})),nb=ob;function rb(e,t,o){const{key:n,children:r}=o;e.forEach((function(e){const i=e[n],a=e[r];!1!==t(i,e)&&rb(a||[],t,o)}))}function ib(e,t,o){const n=(0,tt.A)(t),r=[];return rb(e,((e,t)=>{const o=n.indexOf(e);return-1!==o&&(r.push(t),n.splice(o,1)),!!n.length}),Fo(o)),r}var ab=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var{defaultExpandAll:o,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=ab(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=n.useRef(null),s=n.useRef(null),[c,u]=n.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,p]=n.useState((()=>(()=>{const{keyEntities:e}=jo(sb(a));let t;return t=o?Object.keys(e):r?on(a.expandedKeys||i||[],e):a.expandedKeys||i||[],t})()));n.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),n.useEffect((()=>{"expandedKeys"in a&&p(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:h,direction:m}=n.useContext(pn.QO),{prefixCls:f,className:g,showIcon:b=!0,expandAction:v="click"}=a,y=ab(a,["prefixCls","className","showIcon","expandAction"]),w=h("tree",f),C=M()(`${w}-directory`,{[`${w}-directory-rtl`]:"rtl"===m},g);return n.createElement(nb,Object.assign({icon:lb,ref:t,blockNode:!0},y,{showIcon:b,expandAction:v,prefixCls:w,className:C,expandedKeys:d,selectedKeys:c,onSelect:(e,t)=>{var o;const{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:p=""}=i,h=sb(a),m=Object.assign(Object.assign({},t),{selected:!0}),f=(null==c?void 0:c.ctrlKey)||(null==c?void 0:c.metaKey),g=null==c?void 0:c.shiftKey;let b;n&&f?(b=e,l.current=p,s.current=b,m.selectedNodes=ib(h,b,r)):n&&g?(b=Array.from(new Set([].concat((0,tt.A)(s.current||[]),(0,tt.A)(function({treeData:e,expandedKeys:t,startKey:o,endKey:n,fieldNames:r}){const i=[];let a=0;return o&&o===n?[o]:o&&n?(rb(e,(e=>{if(2===a)return!1;if(function(e){return e===o||e===n}(e)){if(i.push(e),0===a)a=1;else if(1===a)return a=2,!1}else 1===a&&i.push(e);return t.includes(e)}),Fo(r)),i):[]}({treeData:h,expandedKeys:d,startKey:p,endKey:l.current,fieldNames:r}))))),m.selectedNodes=ib(h,b,r)):(b=[p],l.current=p,s.current=b,m.selectedNodes=ib(h,b,r)),null===(o=a.onSelect)||void 0===o||o.call(a,b,m),"selectedKeys"in a||u(b)},onExpand:(e,t)=>{var o;return"expandedKeys"in a||p(e),null===(o=a.onExpand)||void 0===o?void 0:o.call(a,e,t)}}))},ub=n.forwardRef(cb),db=nb;db.DirectoryTree=ub,db.TreeNode=Uo;const pb=db;function hb(e,t,o){var n=t.cloneNode(!0),r=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=o,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function mb(e,t,o,n){if(o){var r=t;"click"!==t.type?"file"===e.type||void 0===n?o(r):o(r=hb(t,e,n)):o(r=hb(t,e,""))}}var fb=n.forwardRef((function(e,t){var o,r,i,a=e.inputElement,l=e.children,s=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,p=e.addonAfter,h=e.className,m=e.style,g=e.disabled,b=e.readOnly,v=e.focused,y=e.triggerFocus,w=e.allowClear,C=e.value,x=e.handleReset,A=e.hidden,R=e.classes,I=e.classNames,P=e.dataAttrs,O=e.styles,T=e.components,$=e.onClear,z=null!=l?l:a,D=(null==T?void 0:T.affixWrapper)||"span",L=(null==T?void 0:T.groupWrapper)||"span",F=(null==T?void 0:T.wrapper)||"span",N=(null==T?void 0:T.groupAddon)||"span",H=(0,n.useRef)(null),j=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),B=(0,n.cloneElement)(z,{value:C,className:M()(null===(o=z.props)||void 0===o?void 0:o.className,!j&&(null==I?void 0:I.variant))||null}),_=(0,n.useRef)(null);if(n.useImperativeHandle(t,(function(){return{nativeElement:_.current||H.current}})),j){var V=null;if(w){var W=!g&&!b&&C,G="".concat(s,"-clear-icon"),K="object"===(0,E.A)(w)&&null!=w&&w.clearIcon?w.clearIcon:"✖";V=n.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==x||x(e),null==$||$()},onMouseDown:function(e){return e.preventDefault()},className:M()(G,(0,k.A)((0,k.A)({},"".concat(G,"-hidden"),!W),"".concat(G,"-has-suffix"),!!u))},K)}var U="".concat(s,"-affix-wrapper"),q=M()(U,(0,k.A)((0,k.A)((0,k.A)((0,k.A)((0,k.A)({},"".concat(s,"-disabled"),g),"".concat(U,"-disabled"),g),"".concat(U,"-focused"),v),"".concat(U,"-readonly"),b),"".concat(U,"-input-with-clear-btn"),u&&w&&C),null==R?void 0:R.affixWrapper,null==I?void 0:I.affixWrapper,null==I?void 0:I.variant),X=(u||w)&&n.createElement("span",{className:M()("".concat(s,"-suffix"),null==I?void 0:I.suffix),style:null==O?void 0:O.suffix},V,u);B=n.createElement(D,(0,f.A)({className:q,style:null==O?void 0:O.affixWrapper,onClick:function(e){var t;null!==(t=H.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==P?void 0:P.affixWrapper,{ref:H}),c&&n.createElement("span",{className:M()("".concat(s,"-prefix"),null==I?void 0:I.prefix),style:null==O?void 0:O.prefix},c),B,X)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var Y="".concat(s,"-group"),Q="".concat(Y,"-addon"),J="".concat(Y,"-wrapper"),Z=M()("".concat(s,"-wrapper"),Y,null==R?void 0:R.wrapper,null==I?void 0:I.wrapper),ee=M()(J,(0,k.A)({},"".concat(J,"-disabled"),g),null==R?void 0:R.group,null==I?void 0:I.groupWrapper);B=n.createElement(L,{className:ee,ref:_},n.createElement(F,{className:Z},d&&n.createElement(N,{className:Q},d),B,p&&n.createElement(N,{className:Q},p)))}return n.cloneElement(B,{className:M()(null===(r=B.props)||void 0===r?void 0:r.className,h)||null,style:(0,S.A)((0,S.A)({},null===(i=B.props)||void 0===i?void 0:i.style),m),hidden:A})}));const gb=fb;var bb=["show"],vb=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],yb=(0,n.forwardRef)((function(e,t){var o=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,s=e.onPressEnter,c=e.onKeyDown,u=e.onKeyUp,d=e.prefixCls,p=void 0===d?"rc-input":d,h=e.disabled,m=e.htmlSize,g=e.className,b=e.maxLength,v=e.suffix,y=e.showCount,w=e.count,C=e.type,x=void 0===C?"text":C,A=e.classes,R=e.classNames,I=e.styles,P=e.onCompositionStart,O=e.onCompositionEnd,T=(0,j.A)(e,vb),$=(0,n.useState)(!1),z=(0,l.A)($,2),D=z[0],L=z[1],F=(0,n.useRef)(!1),N=(0,n.useRef)(!1),H=(0,n.useRef)(null),B=(0,n.useRef)(null),_=function(e){H.current&&function(e,t){if(e){e.focus(t);var o=(t||{}).cursor;if(o){var n=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}(H.current,e)},V=(0,ln.A)(e.defaultValue,{value:e.value}),W=(0,l.A)(V,2),G=W[0],K=W[1],U=null==G?"":String(G),q=(0,n.useState)(null),X=(0,l.A)(q,2),Y=X[0],Q=X[1],J=function(e,t){return n.useMemo((function(){var o={};t&&(o.show="object"===(0,E.A)(t)&&t.formatter?t.formatter:!!t);var n=o=(0,S.A)((0,S.A)({},o),e),r=n.show,i=(0,j.A)(n,bb);return(0,S.A)((0,S.A)({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}(w,y),Z=J.max||b,ee=J.strategy(U),te=!!Z&&ee>Z;(0,n.useImperativeHandle)(t,(function(){var e;return{focus:_,blur:function(){var e;null===(e=H.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,o){var n;null===(n=H.current)||void 0===n||n.setSelectionRange(e,t,o)},select:function(){var e;null===(e=H.current)||void 0===e||e.select()},input:H.current,nativeElement:(null===(e=B.current)||void 0===e?void 0:e.nativeElement)||H.current}})),(0,n.useEffect)((function(){N.current&&(N.current=!1),L((function(e){return(!e||!h)&&e}))}),[h]);var oe=function(e,t,o){var n,i,a=t;if(!F.current&&J.exceedFormatter&&J.max&&J.strategy(t)>J.max)t!==(a=J.exceedFormatter(t,{max:J.max}))&&Q([(null===(n=H.current)||void 0===n?void 0:n.selectionStart)||0,(null===(i=H.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===o.source)return;K(a),H.current&&mb(H.current,e,r,a)};(0,n.useEffect)((function(){var e;Y&&(null===(e=H.current)||void 0===e||e.setSelectionRange.apply(e,(0,tt.A)(Y)))}),[Y]);var ne,re=te&&"".concat(p,"-out-of-range");return n.createElement(gb,(0,f.A)({},T,{prefixCls:p,className:M()(g,re),handleReset:function(e){K(""),_(),H.current&&mb(H.current,e,r)},value:U,focused:D,triggerFocus:_,suffix:function(){var e=Number(Z)>0;if(v||J.show){var t=J.showFormatter?J.showFormatter({value:U,count:ee,maxLength:Z}):"".concat(ee).concat(e?" / ".concat(Z):"");return n.createElement(n.Fragment,null,J.show&&n.createElement("span",{className:M()("".concat(p,"-show-count-suffix"),(0,k.A)({},"".concat(p,"-show-count-has-suffix"),!!v),null==R?void 0:R.count),style:(0,S.A)({},null==I?void 0:I.count)},t),v)}return null}(),disabled:h,classes:A,classNames:R,styles:I,ref:B}),(ne=$o(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),n.createElement("input",(0,f.A)({autoComplete:o},ne,{onChange:function(e){oe(e,e.target.value,{source:"change"})},onFocus:function(e){L(!0),null==i||i(e)},onBlur:function(e){N.current&&(N.current=!1),L(!1),null==a||a(e)},onKeyDown:function(e){s&&"Enter"===e.key&&!N.current&&(N.current=!0,s(e)),null==c||c(e)},onKeyUp:function(e){"Enter"===e.key&&(N.current=!1),null==u||u(e)},className:M()(p,(0,k.A)({},"".concat(p,"-disabled"),h),null==R?void 0:R.input),style:null==I?void 0:I.input,ref:H,size:m,type:x,onCompositionStart:function(e){F.current=!0,null==P||P(e)},onCompositionEnd:function(e){F.current=!1,oe(e,e.currentTarget.value,{source:"compositionEnd"}),null==O||O(e)}}))))}));const wb=yb;const Cb=(0,n.forwardRef)(((e,t)=>{const{prefixCls:o,bordered:r=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:p,addonBefore:h,className:m,style:f,styles:b,rootClassName:v,onChange:y,classNames:w,variant:C}=e,x=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var t;return null!==(t=null!=a?a:H)&&void 0!==t?t:e})),_=n.useContext(br.A),V=null!=l?l:_,{status:W,hasFeedback:G,feedbackIcon:K}=(0,n.useContext)(Di),U=lm(W,i),q=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!G;(0,n.useRef)(q);const X=function(e){const t=(0,n.useRef)([]),o=()=>{t.current.push(setTimeout((()=>{var t,o,n,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(o=e.current)||void 0===o?void 0:o.input.getAttribute("type"))&&(null===(n=e.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,n.useEffect)((()=>(o(),()=>t.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}($),Y=(G||u)&&n.createElement(n.Fragment,null,u,G&&K),Q=(e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:n.createElement(Hm,null)}),t})(null!=d?d:S),[J,Z]=sm("input",C,r);return D(N(n.createElement(wb,Object.assign({ref:(0,g.K4)(t,$),prefixCls:T,autoComplete:k},x,{disabled:V,onBlur:e=>{X(),null==s||s(e)},onFocus:e=>{X(),null==c||c(e)},style:Object.assign(Object.assign({},I),f),styles:Object.assign(Object.assign({},O),b),suffix:Y,allowClear:Q,className:M()(m,v,F,z,j,R),onChange:e=>{X(),null==y||y(e)},addonBefore:h&&n.createElement(Ac,{form:!0,space:!0},h),addonAfter:p&&n.createElement(Ac,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},w),P),{input:M()({[`${T}-sm`]:"small"===B,[`${T}-lg`]:"large"===B,[`${T}-rtl`]:"rtl"===E},null==w?void 0:w.input,P.input,L),variant:M()({[`${T}-${J}`]:Z},am(T,U)),affixWrapper:M()({[`${T}-affix-wrapper-sm`]:"small"===B,[`${T}-affix-wrapper-lg`]:"large"===B,[`${T}-affix-wrapper-rtl`]:"rtl"===E},L),wrapper:M()({[`${T}-group-rtl`]:"rtl"===E},L),groupWrapper:M()({[`${T}-group-wrapper-sm`]:"small"===B,[`${T}-group-wrapper-lg`]:"large"===B,[`${T}-group-wrapper-rtl`]:"rtl"===E,[`${T}-group-wrapper-${J}`]:Z},am(`${T}-group-wrapper`,U,G),L)})}))))})),xb=Cb,Ab=e=>{const{value:t,filterSearch:o,tablePrefixCls:r,locale:i,onChange:a}=e;return o?n.createElement("div",{className:`${r}-filter-dropdown-search`},n.createElement(xb,{prefix:n.createElement(Gm,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Eb=e=>{const{keyCode:t}=e;t===La.ENTER&&e.stopPropagation()},Sb=n.forwardRef(((e,t)=>n.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Eb,ref:t},e.children)));function kb(e){let t=[];return(e||[]).forEach((({value:e,children:o})=>{t.push(e),o&&(t=[].concat((0,tt.A)(t),(0,tt.A)(kb(o))))})),t}function Rb(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Mb({filters:e,prefixCls:t,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:a}){return e.map(((e,l)=>{const s=String(e.value);if(e.children)return{key:s||l,label:e.text,popupClassName:`${t}-dropdown-submenu`,children:Mb({filters:e.children,prefixCls:t,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:a})};const c=r?qi:xp,u={key:void 0!==e.value?s:l,label:n.createElement(n.Fragment,null,n.createElement(c,{checked:o.includes(s)}),n.createElement("span",null,e.text))};return i.trim()?"function"==typeof a?a(i,e)?u:null:Rb(i,e.text)?u:null:u}))}function Ib(e){return e||[]}const Pb=e=>{var t,o,r,i;const{tablePrefixCls:a,prefixCls:l,column:s,dropdownPrefixCls:c,columnKey:d,filterOnClose:p,filterMultiple:h,filterMode:m="menu",filterSearch:f=!1,filterState:g,triggerFilter:b,locale:v,children:y,getPopupContainer:w,rootClassName:C}=e,{filterResetToDefaultFilteredValue:x,defaultFilteredValue:A,filterDropdownProps:E={},filterDropdownOpen:S,filterDropdownVisible:k,onFilterDropdownVisibleChange:R,onFilterDropdownOpenChange:I}=s,[P,O]=n.useState(!1),T=!(!g||!(null===(t=g.filteredKeys)||void 0===t?void 0:t.length)&&!g.forceFiltered),$=e=>{var t;O(e),null===(t=E.onOpenChange)||void 0===t||t.call(E,e),null==I||I(e),null==R||R(e)},z=null!==(i=null!==(r=null!==(o=E.open)&&void 0!==o?o:S)&&void 0!==r?r:k)&&void 0!==i?i:P,D=null==g?void 0:g.filteredKeys,[L,F]=function(e){const t=n.useRef(e),o=_p();return[()=>t.current,e=>{t.current=e,o()}]}(Ib(D)),N=({selectedKeys:e})=>{F(e)},H=(e,{node:t,checked:o})=>{N(h?{selectedKeys:e}:{selectedKeys:o&&t.key?[t.key]:[]})};n.useEffect((()=>{P&&N({selectedKeys:Ib(D)})}),[D]);const[j,B]=n.useState([]),_=e=>{B(e)},[V,W]=n.useState(""),G=e=>{const{value:t}=e.target;W(t)};n.useEffect((()=>{P||W("")}),[P]);const K=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||g&&g.filteredKeys?(0,u.A)(t,null==g?void 0:g.filteredKeys,!0)?null:void b({column:s,key:d,filteredKeys:t}):null},U=()=>{$(!1),K(L())},q=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&K([]),t&&$(!1),W(""),F(x?(A||[]).map((e=>String(e))):[])},X=M()({[`${c}-menu-without-submenu`]:(Y=s.filters||[],!Y.some((({children:e})=>e)))});var Y;const Q=e=>{if(e.target.checked){const e=kb(null==s?void 0:s.filters).map((e=>String(e)));F(e)}else F([])},J=({filters:e})=>(e||[]).map(((e,t)=>{const o=String(e.value),n={title:e.text,key:void 0!==e.value?o:String(t)};return e.children&&(n.children=J({filters:e.children})),n})),Z=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Z(e))))||[]})};let ee;const{direction:te,renderEmpty:oe}=n.useContext(pn.QO);if("function"==typeof s.filterDropdown)ee=s.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>N({selectedKeys:e}),selectedKeys:L(),confirm:({closeDropdown:e}={closeDropdown:!0})=>{e&&$(!1),K(L())},clearFilters:q,filters:s.filters,visible:z,close:()=>{$(!1)}});else if(s.filterDropdown)ee=s.filterDropdown;else{const e=L()||[],t=()=>{var t,o;const r=null!==(t=null==oe?void 0:oe("Table.filter"))&&void 0!==t?t:n.createElement(jp,{image:jp.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(s.filters||[]).length)return r;if("tree"===m)return n.createElement(n.Fragment,null,n.createElement(Ab,{filterSearch:f,value:V,onChange:G,tablePrefixCls:a,locale:v}),n.createElement("div",{className:`${a}-filter-dropdown-tree`},h?n.createElement(qi,{checked:e.length===kb(s.filters).length,indeterminate:e.length>0&&e.length"function"==typeof f?f(V,Z(e)):Rb(V,e.title):void 0})));const i=Mb({filters:s.filters||[],filterSearch:f,prefixCls:l,filteredKeys:L(),filterMultiple:h,searchValue:V}),u=i.every((e=>null===e));return n.createElement(n.Fragment,null,n.createElement(Ab,{filterSearch:f,value:V,onChange:G,tablePrefixCls:a,locale:v}),u?r:n.createElement(Eu,{selectable:!0,multiple:h,prefixCls:`${c}-menu`,className:X,onSelect:N,onDeselect:N,selectedKeys:e,getPopupContainer:w,openKeys:j,onOpenChange:_,items:i}))},o=()=>x?(0,u.A)((A||[]).map((e=>String(e))),e,!0):0===e.length;ee=n.createElement(n.Fragment,null,t(),n.createElement("div",{className:`${l}-dropdown-btns`},n.createElement(Ud,{type:"link",size:"small",disabled:o(),onClick:()=>q()},v.filterReset),n.createElement(Ud,{type:"primary",size:"small",onClick:U},v.filterConfirm)))}s.filterDropdown&&(ee=n.createElement(Uc,{selectable:void 0},ee)),ee=n.createElement(Sb,{className:`${l}-dropdown`},ee);const ne=lg({trigger:["click"],placement:"rtl"===te?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof s.filterIcon?s.filterIcon(T):s.filterIcon?s.filterIcon:n.createElement(ag,null),n.createElement("span",{role:"button",tabIndex:-1,className:M()(`${l}-trigger`,{active:T}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:w},Object.assign(Object.assign({},E),{rootClassName:M()(C,E.rootClassName),open:z,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==D&&F(Ib(D)),$(e),e||s.filterDropdown||!p||U())},popupRender:()=>"function"==typeof(null==E?void 0:E.dropdownRender)?E.dropdownRender(ee):ee}));return n.createElement("div",{className:`${l}-column`},n.createElement("span",{className:`${a}-column-title`},y),n.createElement(ip,Object.assign({},ne)))},Ob=(e,t,o)=>{let n=[];return(e||[]).forEach(((e,r)=>{var i;const a=og(r,o),l=void 0!==e.filterDropdown;if(e.filters||l||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;l||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),n.push({column:e,key:tg(e,a),filteredKeys:t,forceFiltered:e.filtered})}else n.push({column:e,key:tg(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(n=[].concat((0,tt.A)(n),(0,tt.A)(Ob(e.children,t,a))))})),n};function Tb(e,t,o,r,i,a,l,s,c){return o.map(((o,u)=>{const d=og(u,s),{filterOnClose:p=!0,filterMultiple:h=!0,filterMode:m,filterSearch:f}=o;let g=o;if(g.filters||g.filterDropdown){const s=tg(g,d),u=r.find((({key:e})=>s===e));g=Object.assign(Object.assign({},g),{title:r=>n.createElement(Pb,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:s,filterState:u,filterOnClose:p,filterMultiple:h,filterMode:m,filterSearch:f,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:c},ng(o.title,r))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:Tb(e,t,g.children,r,i,a,l,d,c)})),g}))}const $b=e=>{const t={};return e.forEach((({key:e,filteredKeys:o,column:n})=>{const r=e,{filters:i,filterDropdown:a}=n;if(a)t[r]=o||null;else if(Array.isArray(o)){const e=kb(i);t[r]=e.filter((e=>o.includes(String(e))))}else t[r]=null})),t},zb=(e,t,o)=>t.reduce(((e,n)=>{const{column:{onFilter:r,filters:i},filteredKeys:a}=n;return r&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((n=>{const a=kb(i),l=a.findIndex((e=>String(e)===String(n))),s=-1!==l?a[l]:n;return e[o]&&(e[o]=zb(e[o],t,o)),r(s,e)})))):e}),e),Db=e=>e.flatMap((e=>"children"in e?[e].concat((0,tt.A)(Db(e.children||[]))):[e])),Lb=e=>{const{prefixCls:t,dropdownPrefixCls:o,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:s}=e,c=((0,sn.rJ)("Table"),n.useMemo((()=>Db(r||[])),[r])),[u,d]=n.useState((()=>Ob(c,!0))),p=n.useMemo((()=>{const e=Ob(c,!1);if(0===e.length)return e;let t=!0,o=!0;if(e.forEach((({filteredKeys:e})=>{void 0!==e?t=!1:o=!1})),t){const e=(c||[]).map(((e,t)=>tg(e,og(t))));return u.filter((({key:t})=>e.includes(t))).map((t=>{const o=c[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),o),forceFiltered:o.filtered})}))}return e}),[c,u]),h=n.useMemo((()=>$b(p)),[p]),m=e=>{const t=p.filter((({key:t})=>t!==e.key));t.push(e),d(t),i($b(t),t)};return[e=>Tb(t,o,e,p,l,m,a,void 0,s),p,h]};const Fb=10,Nb=function(e,t,o){const r=o&&"object"==typeof o?o:{},{total:i=0}=r,a=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:Fb}))),c=lg(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(e,t)=>{s({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===o?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,n)=>{var r;o&&(null===(r=o.onChange)||void 0===r||r.call(o,e,n)),d(e,n),t(e,n||(null==c?void 0:c.pageSize))}}),d]},Hb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var jb=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:Hb}))};const Bb=n.forwardRef(jb),_b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var Vb=function(e,t){return n.createElement(So,(0,f.A)({},e,{ref:t,icon:_b}))};const Wb=n.forwardRef(Vb),Gb="ascend",Kb="descend",Ub=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,qb=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,Xb=(e,t,o)=>{let n=[];const r=(e,t)=>{n.push({column:e,key:tg(e,t),multiplePriority:Ub(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=og(i,o);e.children?("sortOrder"in e&&r(e,a),n=[].concat((0,tt.A)(n),(0,tt.A)(Xb(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&n.push({column:e,key:tg(e,a),multiplePriority:Ub(e),sortOrder:e.defaultSortOrder}))})),n},Yb=(e,t,o,r,i,a,l,s)=>{const c=(t||[]).map(((t,c)=>{const u=og(c,s);let d=t;if(d.sorter){const s=d.sortDirections||i,c=void 0===d.showSorterTooltip?l:d.showSorterTooltip,p=tg(d,u),h=o.find((({key:e})=>e===p)),m=h?h.sortOrder:null,f=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(s,m);let g;if(t.sortIcon)g=t.sortIcon({sortOrder:m});else{const t=s.includes(Gb)&&n.createElement(Wb,{className:M()(`${e}-column-sorter-up`,{active:m===Gb})}),o=s.includes(Kb)&&n.createElement(Bb,{className:M()(`${e}-column-sorter-down`,{active:m===Kb})});g=n.createElement("span",{className:M()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!o)})},n.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,o))}const{cancelSort:b,triggerAsc:v,triggerDesc:y}=a||{};let w=b;f===Kb?w=y:f===Gb&&(w=v);const C="object"==typeof c?Object.assign({title:w},c):{title:w};d=Object.assign(Object.assign({},d),{className:M()(d.className,{[`${e}-column-sort`]:m}),title:o=>{const r=`${e}-column-sorters`,i=n.createElement("span",{className:`${e}-column-title`},ng(t.title,o)),a=n.createElement("div",{className:r},i,g);return c?"boolean"!=typeof c&&"sorter-icon"===(null==c?void 0:c.target)?n.createElement("div",{className:`${r} ${e}-column-sorters-tooltip-target-sorter`},i,n.createElement(Wc,Object.assign({},C),g)):n.createElement(Wc,Object.assign({},C),a):a},onHeaderCell:o=>{var n;const i=(null===(n=t.onHeaderCell)||void 0===n?void 0:n.call(t,o))||{},a=i.onClick,l=i.onKeyDown;i.onClick=e=>{r({column:t,key:p,sortOrder:f,multiplePriority:Ub(t)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===La.ENTER&&(r({column:t,key:p,sortOrder:f,multiplePriority:Ub(t)}),null==l||l(e))};const s=(e=>{const t=ng(e,{});return"[object Object]"===Object.prototype.toString.call(t)?"":t})(t.title),c=null==s?void 0:s.toString();return m&&(i["aria-sort"]="ascend"===m?"ascending":"descending"),i["aria-label"]=c||"",i.className=M()(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!=s?s:"").toString()),i}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:Yb(e,d.children,o,r,i,a,l,u)})),d}));return c},Qb=e=>{const{column:t,sortOrder:o}=e;return{column:t,order:o,field:t.dataIndex,columnKey:t.key}},Jb=e=>{const t=e.filter((({sortOrder:e})=>e)).map(Qb);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},Qb(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Zb=(e,t,o)=>{const n=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=n.filter((({column:{sorter:e},sortOrder:t})=>qb(e)&&t));return i.length?r.sort(((e,t)=>{for(let o=0;o{const n=e[o];return n?Object.assign(Object.assign({},e),{[o]:Zb(n,t,o)}):e})):r},ev=(e,t)=>e.map((e=>{const o=Object.assign({},e);return o.title=ng(e.title,t),"children"in o&&(o.children=ev(o.children,t)),o})),tv=Rt(((e,t)=>{const{_renderTimes:o}=e,{_renderTimes:n}=t;return o!==n})),ov=ao(((e,t)=>{const{_renderTimes:o}=e,{_renderTimes:n}=t;return o!==n})),nv=e=>{const{componentCls:t,lineWidth:o,lineType:n,tableBorderColor:r,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,c=`${(0,fn.zA)(o)} ${n} ${r}`,u=(e,n,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,fn.zA)(s(n).mul(-1).equal())}\n ${(0,fn.zA)(s(s(r).add(o)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,fn.zA)(s(a).mul(-1).equal())} ${(0,fn.zA)(s(s(l).add(o)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:o,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,fn.zA)(o)} 0 ${(0,fn.zA)(o)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},rv=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},$n.L9),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},iv=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},av=e=>{const{componentCls:t,antCls:o,motionDurationSlow:n,lineWidth:r,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:p,tableExpandedRowBg:h,paddingXXS:m,expandIconMarginTop:f,expandIconSize:g,expandIconHalfInner:b,expandIconScale:v,calc:y}=e,w=`${(0,fn.zA)(r)} ${a} ${l}`,C=y(m).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,$n.Y1)(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:(0,fn.zA)(g),background:s,border:w,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${n} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:C,insetInlineStart:C,height:r},"&::after":{top:C,bottom:C,insetInlineStart:b,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:f,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:h}},[`${o}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,fn.zA)(y(d).mul(-1).equal())} ${(0,fn.zA)(y(p).mul(-1).equal())}`,padding:`${(0,fn.zA)(d)} ${(0,fn.zA)(p)}`}}}},lv=e=>{const{componentCls:t,antCls:o,iconCls:n,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:p,fontSizeSM:h,tablePaddingHorizontal:m,borderRadius:f,motionDurationSlow:g,colorIcon:b,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:w,tableFilterDropdownBg:C,tableFilterDropdownHeight:x,controlItemBgHover:A,controlItemBgActive:E,boxShadowSecondary:S,filterDropdownMenuBg:k,calc:R}=e,M=`${o}-dropdown`,I=`${t}-filter-dropdown`,P=`${o}-tree`,O=`${(0,fn.zA)(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:R(a).mul(-1).equal(),marginInline:`${(0,fn.zA)(a)} ${(0,fn.zA)(R(m).div(2).mul(-1).equal())}`,padding:`0 ${(0,fn.zA)(a)}`,color:p,fontSize:h,borderRadius:f,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:b,background:y},"&.active":{color:v}}}},{[`${o}-dropdown`]:{[I]:Object.assign(Object.assign({},(0,$n.dF)(e)),{minWidth:r,backgroundColor:C,borderRadius:f,boxShadow:S,overflow:"hidden",[`${M}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${(0,fn.zA)(l)} 0`,color:w,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${I}-tree`]:{paddingBlock:`${(0,fn.zA)(l)} 0`,paddingInline:l,[P]:{padding:0},[`${P}-treenode ${P}-node-content-wrapper:hover`]:{backgroundColor:A},[`${P}-treenode-checkbox-checked ${P}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${I}-search`]:{padding:l,borderBottom:O,"&-input":{input:{minWidth:i},[n]:{color:w}}},[`${I}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${I}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,fn.zA)(R(l).sub(c).equal())} ${(0,fn.zA)(l)}`,overflow:"hidden",borderTop:O}})}},{[`${o}-dropdown ${I}, ${I}-submenu`]:{[`${o}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},sv=e=>{const{componentCls:t,lineWidth:o,colorSplit:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:s}=e,c=n;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:s(o).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:s(o).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},cv=e=>{const{componentCls:t,antCls:o,margin:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${o}-pagination`]:{margin:`${(0,fn.zA)(n)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},uv=e=>{const{componentCls:t,tableRadius:o}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,fn.zA)(o)} ${(0,fn.zA)(o)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:o,borderStartEndRadius:o,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:o},"> *:last-child":{borderStartEndRadius:o}}},"&-footer":{borderRadius:`0 0 ${(0,fn.zA)(o)} ${(0,fn.zA)(o)}`}}}}},dv=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},pv=e=>{const{componentCls:t,antCls:o,iconCls:n,fontSizeIcon:r,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:p,tablePaddingHorizontal:h,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(r).add(m(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(c).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(r).add(m(i).div(4)).add(m(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${o}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,fn.zA)(m(h).div(4).equal()),[n]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},hv=e=>{const{componentCls:t,tableExpandColumnWidth:o,calc:n}=e,r=(e,r,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${(0,fn.zA)(r)} ${(0,fn.zA)(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,fn.zA)(n(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,fn.zA)(n(r).mul(-1).equal())} ${(0,fn.zA)(n(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,fn.zA)(n(r).mul(-1).equal()),marginInline:`${(0,fn.zA)(n(o).sub(i).equal())} ${(0,fn.zA)(n(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,fn.zA)(n(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},mv=e=>{const{componentCls:t,marginXXS:o,fontSizeIcon:n,headerIconColor:r,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:o,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},fv=e=>{const{componentCls:t,opacityLoading:o,tableScrollThumbBg:n,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:u,tableBorderColor:d}=e,p=`${(0,fn.zA)(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,fn.zA)(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:p,opacity:o,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:n,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},gv=e=>{const{componentCls:t,lineWidth:o,tableBorderColor:n,calc:r}=e,i=`${(0,fn.zA)(o)} ${e.lineType} ${n}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,fn.zA)(r(o).mul(-1).equal())} 0 ${n}`}}}},bv=e=>{const{componentCls:t,motionDurationMid:o,lineWidth:n,lineType:r,tableBorderColor:i,calc:a}=e,l=`${(0,fn.zA)(n)} ${r} ${i}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${o}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,fn.zA)(n)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(n).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},vv=e=>{const{componentCls:t,fontWeightStrong:o,tablePaddingVertical:n,tablePaddingHorizontal:r,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:s,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:p,motionDurationMid:h,tableHeaderBg:m,tableHeaderCellSplitColor:f,tableFooterTextColor:g,tableFooterBg:b,calc:v}=e,y=`${(0,fn.zA)(a)} ${l} ${s}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,$n.t6)()),{[t]:Object.assign(Object.assign({},(0,$n.dF)(e)),{fontSize:c,background:u,borderRadius:`${(0,fn.zA)(d)} ${(0,fn.zA)(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,fn.zA)(d)} ${(0,fn.zA)(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${(0,fn.zA)(n)} ${(0,fn.zA)(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,fn.zA)(n)} ${(0,fn.zA)(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:o,textAlign:"start",background:m,borderBottom:y,transition:`background ${h} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:f,transform:"translateY(-50%)",transition:`background-color ${h}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${h}, border-color ${h}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:(0,fn.zA)(v(n).mul(-1).equal()),marginInline:`${(0,fn.zA)(v(i).sub(r).equal())}\n ${(0,fn.zA)(v(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:o,textAlign:"start",background:m,borderBottom:y,transition:`background ${h} ease`}}},[`${t}-footer`]:{padding:`${(0,fn.zA)(n)} ${(0,fn.zA)(r)}`,color:g,background:b}})}},yv=Dn("Table",(e=>{const{colorTextHeading:t,colorSplit:o,colorBgContainer:n,controlInteractiveSize:r,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:p,rowExpandedBg:h,cellPaddingBlock:m,cellPaddingInline:f,cellPaddingBlockMD:g,cellPaddingInlineMD:b,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:w,footerBg:C,footerColor:x,headerBorderRadius:A,cellFontSize:E,cellFontSizeMD:S,cellFontSizeSM:k,headerSplitColor:R,fixedHeaderSortActiveBg:M,headerFilterHoverBg:I,filterDropdownBg:P,expandIconBg:O,selectionColumnWidth:T,stickyScrollBarBg:$,calc:z}=e,D=Rn(e,{tableFontSize:E,tableBg:n,tableRadius:A,tablePaddingVertical:m,tablePaddingHorizontal:f,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:w,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:x,tableFooterBg:C,tableHeaderCellSplitColor:R,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:I,tableFilterDropdownBg:P,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:p,zIndexTableFixed:2,zIndexTableSticky:z(2).add(1).equal({unit:!1}),tableFontSizeMiddle:S,tableFontSizeSmall:k,tableSelectionColumnWidth:T,tableExpandIconBg:O,tableExpandColumnWidth:z(r).add(z(e.padding).mul(2)).equal(),tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:$,tableScrollThumbBgHover:t,tableScrollBg:o});return[vv(D),cv(D),gv(D),mv(D),lv(D),nv(D),uv(D),av(D),gv(D),iv(D),pv(D),sv(D),fv(D),rv(D),hv(D),dv(D),bv(D)]}),(e=>{const{colorFillAlter:t,colorBgContainer:o,colorTextHeading:n,colorFillSecondary:r,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:p,controlHeight:h,colorTextPlaceholder:m,fontSize:f,fontSizeSM:g,lineHeight:b,lineWidth:v,colorIcon:y,colorIconHover:w,opacityLoading:C,controlInteractiveSize:x}=e,A=new Xc.Y(r).onBackground(o).toHexString(),E=new Xc.Y(i).onBackground(o).toHexString(),S=new Xc.Y(t).onBackground(o).toHexString(),k=new Xc.Y(y),R=new Xc.Y(w),M=x/2-v,I=2*M+3*v;return{headerBg:S,headerColor:n,headerSortActiveBg:A,headerSortHoverBg:E,bodySortBg:S,rowHoverBg:S,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:p,footerBg:S,footerColor:n,cellFontSize:f,cellFontSizeMD:f,cellFontSizeSM:f,headerSplitColor:d,fixedHeaderSortActiveBg:A,headerFilterHoverBg:i,filterDropdownMenuBg:o,filterDropdownBg:o,expandIconBg:o,selectionColumnWidth:h,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(f*b-3*v)/2-Math.ceil((1.4*g-3*v)/2),headerIconColor:k.clone().setA(k.a*C).toRgbString(),headerIconHoverColor:R.clone().setA(R.a*C).toRgbString(),expandIconHalfInner:M,expandIconSize:I,expandIconScale:x/I}}),{unitless:{expandIconScale:!0}}),wv=[],Cv=(e,t)=>{var o,r;const{prefixCls:i,className:l,rootClassName:s,style:c,size:u,bordered:d,dropdownPrefixCls:p,dataSource:h,pagination:m,rowSelection:f,rowKey:g="key",rowClassName:b,columns:v,children:y,childrenColumnName:w,onChange:C,getPopupContainer:x,loading:A,expandIcon:E,expandable:S,expandedRowRender:k,expandIconColumnIndex:R,indentSize:I,scroll:P,sortDirections:O,locale:T,showSorterTooltip:$={target:"full-header"},virtual:z}=e;(0,sn.rJ)("Table");const D=n.useMemo((()=>v||ut(y)),[v,y]),L=n.useMemo((()=>D.some((e=>e.responsive))),[D]),F=Gp(L),N=n.useMemo((()=>{const e=new Set(Object.keys(F).filter((e=>F[e])));return D.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[D,F]),H=$o(e,["className","style","columns"]),{locale:j=Op.A,direction:B,table:_,renderEmpty:V,getPrefixCls:W,getPopupContainer:G}=n.useContext(pn.QO),K=hc(u),U=Object.assign(Object.assign({},j.Table),T),q=h||wv,X=W("table",i),Y=W("dropdown",p),[,Q]=(0,zn.Ay)(),J=vr(X),[Z,ee,te]=yv(X,J),oe=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:R},S),{expandIcon:null!==(o=null==S?void 0:S.expandIcon)&&void 0!==o?o:null===(r=null==_?void 0:_.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:ne="children"}=oe,re=n.useMemo((()=>q.some((e=>null==e?void 0:e[ne]))?"nest":k||(null==S?void 0:S.expandedRowRender)?"row":null),[q]),ie={body:n.useRef(null)},ae=function(e){return(t,o)=>{const n=t.querySelector(`.${e}-container`);let r=o;if(n){const e=getComputedStyle(n);r=o-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(X),le=n.useRef(null),se=n.useRef(null);!function(e,t){(0,n.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:o}=e;return"undefined"!=typeof Proxy?new Proxy(o,{get:(t,o)=>e[o]?e[o]:Reflect.get(t,o)}):(r=e,(n=o)._antProxy=n._antProxy||{},Object.keys(r).forEach((e=>{if(!(e in n._antProxy)){const t=n[e];n._antProxy[e]=t,n[e]=r[e]}})),n);var n,r}))}(t,(()=>Object.assign(Object.assign({},se.current),{nativeElement:le.current})));const ce=n.useMemo((()=>"function"==typeof g?g:e=>null==e?void 0:e[g]),[g]),[ue]=((e,t,o)=>{const r=n.useRef({});return[function(n){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==o){const a=new Map;function l(e){e.forEach(((e,n)=>{const r=o(e,n);a.set(r,e),e&&"object"==typeof e&&t in e&&l(e[t]||[])}))}l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:o}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(n)}]})(q,ne,ce),de={},pe=(e,t,o=!1)=>{var n,r,i,a;const l=Object.assign(Object.assign({},de),e);o&&(null===(n=de.resetPagination)||void 0===n||n.call(de),(null===(r=l.pagination)||void 0===r?void 0:r.current)&&(l.pagination.current=1),m&&(null===(i=m.onChange)||void 0===i||i.call(m,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),P&&!1!==P.scrollToFirstRowOnChange&&ie.body.current&&function(e,t={}){const{getContainer:o=()=>window,callback:n,duration:r=450}=t,i=o(),a=(e=>{var t,o;if("undefined"==typeof window)return 0;let n=0;return Ip(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(n=e.scrollTop),e&&!Ip(e)&&"number"!=typeof n&&(n=null===(o=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===o?void 0:o.scrollTop),n})(i),l=Date.now(),s=()=>{const t=Date.now()-l,o=function(e,t,o,n){const r=o-t;return(e/=n/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);Ip(i)?i.scrollTo(window.pageXOffset,o):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=o:i.scrollTop=o,tie.body.current}),null==C||C(l.pagination,l.filters,l.sorter,{currentDataSource:zb(Zb(q,l.sorterStates,ne),l.filterStates,ne),action:t})},[he,me,fe,ge]=(e=>{const{prefixCls:t,mergedColumns:o,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:l}=e,[s,c]=n.useState((()=>Xb(o,!0))),u=(e,t)=>{const o=[];return e.forEach(((e,n)=>{const r=og(n,t);if(o.push(tg(e,r)),Array.isArray(e.children)){const t=u(e.children,r);o.push.apply(o,(0,tt.A)(t))}})),o},d=n.useMemo((()=>{let e=!0;const t=Xb(o,!1);if(!t.length){const e=u(o);return s.filter((({key:t})=>e.includes(t)))}const n=[];function r(t){e?n.push(t):n.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),n}),[o,s]),p=n.useMemo((()=>{var e,t;const o=d.map((({column:e,sortOrder:t})=>({column:e,order:t})));return{sortColumns:o,sortColumn:null===(e=o[0])||void 0===e?void 0:e.column,sortOrder:null===(t=o[0])||void 0===t?void 0:t.order}}),[d]),h=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat((0,tt.A)(d.filter((({key:t})=>t!==e.key))),[e]):[e],c(t),l(Jb(t),t)};return[e=>Yb(t,e,d,h,r,i,a),d,p,()=>Jb(d)]})({prefixCls:X,mergedColumns:N,onSorterChange:(e,t)=>{pe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:O||["ascend","descend"],tableLocale:U,showSorterTooltip:$}),be=n.useMemo((()=>Zb(q,me,ne)),[q,me]);de.sorter=ge(),de.sorterStates=me;const[ve,ye,we]=Lb({prefixCls:X,locale:U,dropdownPrefixCls:Y,mergedColumns:N,onFilterChange:(e,t)=>{pe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x||G,rootClassName:M()(s,J)}),Ce=zb(be,ye,ne);de.filters=we,de.filterStates=ye;const xe=n.useMemo((()=>{const e={};return Object.keys(we).forEach((t=>{null!==we[t]&&(e[t]=we[t])})),Object.assign(Object.assign({},fe),{filters:e})}),[fe,we]),[Ae]=(e=>[n.useCallback((t=>ev(t,e)),[e])])(xe),[Ee,Se]=Nb(Ce.length,((e,t)=>{pe({pagination:Object.assign(Object.assign({},de.pagination),{current:e,pageSize:t})},"paginate")}),m);de.pagination=!1===m?{}:function(e,t){const o={current:e.current,pageSize:e.pageSize},n=t&&"object"==typeof t?t:{};return Object.keys(n).forEach((t=>{const n=e[t];"function"!=typeof n&&(o[t]=n)})),o}(Ee,m),de.resetPagination=Se;const ke=n.useMemo((()=>{if(!1===m||!Ee.pageSize)return Ce;const{current:e=1,total:t,pageSize:o=Fb}=Ee;return Ce.lengtho?Ce.slice((e-1)*o,e*o):Ce:Ce.slice((e-1)*o,e*o)}),[!!m,Ce,null==Ee?void 0:Ee.current,null==Ee?void 0:Ee.pageSize,null==Ee?void 0:Ee.total]),[Re,Me]=((e,t)=>{const{preserveSelectedRowKeys:o,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:l,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:p,columnWidth:h,type:m,selections:f,fixed:g,renderCell:b,hideSelectAll:v,checkStrictly:y=!0}=t||{},{prefixCls:w,data:C,pageData:x,getRecordByKey:A,getRowKey:E,expandType:S,childrenColumnName:k,locale:R,getPopupContainer:I}=e,P=(0,sn.rJ)("Table"),[O,T]=function(){const[e,t]=(0,n.useState)(null);return[(0,n.useCallback)(((o,n,r)=>{const i=null!=e?e:o,a=Math.min(i||0,o),l=Math.max(i||0,o),s=n.slice(a,l+1).map((e=>e)),c=s.some((e=>!r.has(e))),u=[];return s.forEach((e=>{c?(r.has(e)||u.push(e),r.add(e)):(r.delete(e),u.push(e))})),t(c?l:null),u}),[e]),e=>{t(e)}]}(),[$,z]=(0,ln.A)(r||i||Rp,{value:r}),D=n.useRef(new Map),L=(0,n.useCallback)((e=>{if(o){const t=new Map;e.forEach((e=>{let o=A(e);!o&&D.current.has(e)&&(o=D.current.get(e)),t.set(e,o)})),D.current=t}}),[A,o]);n.useEffect((()=>{L($)}),[$]);const F=(0,n.useMemo)((()=>Mp(k,x)),[k,x]),{keyEntities:N}=(0,n.useMemo)((()=>{if(y)return{keyEntities:null};let e=C;if(o){const t=new Set(F.map(((e,t)=>E(e,t)))),o=Array.from(D.current).reduce(((e,[o,n])=>t.has(o)?e:e.concat(n)),[]);e=[].concat((0,tt.A)(e),(0,tt.A)(o))}return jo(e,{externalGetKey:E,childrenPropName:k})}),[C,E,y,k,o,F]),H=(0,n.useMemo)((()=>{const e=new Map;return F.forEach(((t,o)=>{const n=E(t,o),r=(a?a(t):null)||{};e.set(n,r)})),e}),[F,E,a]),j=(0,n.useCallback)((e=>{const t=E(e);let o;return o=H.has(t)?H.get(E(e)):a?a(e):void 0,!!(null==o?void 0:o.disabled)}),[H,E]),[B,_]=(0,n.useMemo)((()=>{if(y)return[$||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=an($,!0,N,j);return[e||[],t]}),[$,y,N,j]),V=(0,n.useMemo)((()=>{const e="radio"===m?B.slice(0,1):B;return new Set(e)}),[B,m]),W=(0,n.useMemo)((()=>"radio"===m?new Set:new Set(_)),[_,m]);n.useEffect((()=>{t||z(Rp)}),[!!t]);const G=(0,n.useCallback)(((e,t)=>{let n,r;L(e),o?(n=e,r=e.map((e=>D.current.get(e)))):(n=[],r=[],e.forEach((e=>{const t=A(e);void 0!==t&&(n.push(e),r.push(t))}))),z(n),null==l||l(n,r,{type:t})}),[z,A,l,o]),K=(0,n.useCallback)(((e,t,o,n)=>{if(s){const r=o.map((e=>A(e)));s(A(e),t,r,n)}G(o,"single")}),[s,A,G]),U=(0,n.useMemo)((()=>!f||v?null:(!0===f?[Ep,Sp,kp]:f).map((e=>e===Ep?{key:"all",text:R.selectionAll,onSelect(){G(C.map(((e,t)=>E(e,t))).filter((e=>{const t=H.get(e);return!(null==t?void 0:t.disabled)||V.has(e)})),"all")}}:e===Sp?{key:"invert",text:R.selectInvert,onSelect(){const e=new Set(V);x.forEach(((t,o)=>{const n=E(t,o),r=H.get(n);(null==r?void 0:r.disabled)||(e.has(n)?e.delete(n):e.add(n))}));const t=Array.from(e);u&&(P.deprecated(!1,"onSelectInvert","onChange"),u(t)),G(t,"invert")}}:e===kp?{key:"none",text:R.selectNone,onSelect(){null==d||d(),G(Array.from(V).filter((e=>{const t=H.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:(...t)=>{var o,n;null===(n=e.onSelect)||void 0===n||(o=n).call.apply(o,[e].concat(t)),T(null)}})))),[f,V,x,E,u,G]),q=(0,n.useCallback)((e=>{var o;if(!t)return e.filter((e=>e!==Ap));let r=(0,tt.A)(e);const i=new Set(V),a=F.map(E).filter((e=>!H.get(e).disabled)),l=a.every((e=>i.has(e))),s=a.some((e=>i.has(e))),u=()=>{const e=[];l?a.forEach((t=>{i.delete(t),e.push(t)})):a.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==c||c(!l,t.map((e=>A(e))),e.map((e=>A(e)))),G(t,"all"),T(null)};let d,C,x;if("radio"!==m){let e;if(U){const t={getPopupContainer:I,items:U.map(((e,t)=>{const{key:o,text:n,onSelect:r}=e;return{key:null!=o?o:t,onClick:()=>{null==r||r(a)},label:n}}))};e=n.createElement("div",{className:`${w}-selection-extra`},n.createElement(ip,{menu:t,getPopupContainer:I},n.createElement("span",null,n.createElement(Ro,null))))}const t=F.map(((e,t)=>{const o=E(e,t),n=H.get(o)||{};return Object.assign({checked:i.has(o)},n)})).filter((({disabled:e})=>e)),o=!!t.length&&t.length===F.length,r=o&&t.every((({checked:e})=>e)),c=o&&t.some((({checked:e})=>e));C=n.createElement(qi,{checked:o?r:!!F.length&&l,indeterminate:o?!r&&c:!l&&s,onChange:u,disabled:0===F.length||o,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),d=!v&&n.createElement("div",{className:`${w}-selection`},C,e)}if(x="radio"===m?(e,t,o)=>{const r=E(t,o),a=i.has(r),l=H.get(r);return{node:n.createElement(xp,Object.assign({},l,{checked:a,onClick:e=>{var t;e.stopPropagation(),null===(t=null==l?void 0:l.onClick)||void 0===t||t.call(l,e)},onChange:e=>{var t;i.has(r)||K(r,!0,[r],e.nativeEvent),null===(t=null==l?void 0:l.onChange)||void 0===t||t.call(l,e)}})),checked:a}}:(e,t,o)=>{var r;const l=E(t,o),s=i.has(l),c=W.has(l),u=H.get(l);let d;return d="nest"===S?c:null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:c,{node:n.createElement(qi,Object.assign({},u,{indeterminate:d,checked:s,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null==u?void 0:u.onClick)||void 0===t||t.call(u,e)},onChange:e=>{var t;const{nativeEvent:o}=e,{shiftKey:n}=o,r=a.findIndex((e=>e===l)),c=B.some((e=>a.includes(e)));if(n&&y&&c){const e=O(r,a,i),t=Array.from(i);null==p||p(!s,t.map((e=>A(e))),e.map((e=>A(e)))),G(t,"multiple")}else{const e=B;if(y){const t=s?qo(e,l):Xo(e,l);K(l,!s,t,o)}else{const t=an([].concat((0,tt.A)(e),[l]),!0,N,j),{checkedKeys:n,halfCheckedKeys:r}=t;let i=n;if(s){const e=new Set(n);e.delete(l),i=an(Array.from(e),{checked:!1,halfCheckedKeys:r},N,j).checkedKeys}K(l,!s,i,o)}}T(s?null:r),null===(t=null==u?void 0:u.onChange)||void 0===t||t.call(u,e)}})),checked:s}},!r.includes(Ap))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[Je])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,Ap].concat((0,tt.A)(t))}else r=[Ap].concat((0,tt.A)(r));const k=r.indexOf(Ap);r=r.filter(((e,t)=>e!==Ap||t===k));const R=r[k-1],P=r[k+1];let $=g;void 0===$&&(void 0!==(null==P?void 0:P.fixed)?$=P.fixed:void 0!==(null==R?void 0:R.fixed)&&($=R.fixed)),$&&R&&"EXPAND_COLUMN"===(null===(o=R[Je])||void 0===o?void 0:o.columnType)&&void 0===R.fixed&&(R.fixed=$);const z=M()(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:f&&"checkbox"===m}),D={fixed:$,width:h,className:`${w}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(C):t.columnTitle:d,render:(e,t,o)=>{const{node:n,checked:r}=x(e,t,o);return b?b(r,t,o,n):n},onCell:t.onCell,align:t.align,[Je]:{className:z}};return r.map((e=>e===Ap?D:e))}),[E,F,t,B,V,W,h,U,S,H,p,K,j]);return[q,V]})({prefixCls:X,data:Ce,pageData:ke,getRowKey:ce,getRecordByKey:ue,expandType:re,childrenColumnName:ne,locale:U,getPopupContainer:x||G},f);oe.__PARENT_RENDER_ICON__=oe.expandIcon,oe.expandIcon=oe.expandIcon||E||function(e){return t=>{const{prefixCls:o,onExpand:r,record:i,expanded:a,expandable:l}=t,s=`${o}-row-expand-icon`;return n.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:M()(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&a,[`${s}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}(U),"nest"===re&&void 0===oe.expandIconColumnIndex?oe.expandIconColumnIndex=f?1:0:oe.expandIconColumnIndex>0&&f&&(oe.expandIconColumnIndex-=1),"number"!=typeof oe.indentSize&&(oe.indentSize="number"==typeof I?I:15);const Ie=n.useCallback((e=>Ae(Re(ve(he(e))))),[he,ve,Re]);let Pe,Oe,Te;if(!1!==m&&(null==Ee?void 0:Ee.total)){let e;e=Ee.size?Ee.size:"small"===K||"middle"===K?"small":void 0;const t=t=>n.createElement(Bf,Object.assign({},Ee,{className:M()(`${X}-pagination ${X}-pagination-${t}`,Ee.className),size:e})),o="rtl"===B?"left":"right",{position:r}=Ee;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),n=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||n||i||(Oe=t(o)),e&&(Pe=t(e.toLowerCase().replace("top",""))),n&&(Oe=t(n.toLowerCase().replace("bottom","")))}else Oe=t(o)}"boolean"==typeof A?Te={spinning:A}:"object"==typeof A&&(Te=Object.assign({spinning:!0},A));const $e=M()(te,J,`${X}-wrapper`,null==_?void 0:_.className,{[`${X}-wrapper-rtl`]:"rtl"===B},l,s,ee),ze=Object.assign(Object.assign({},null==_?void 0:_.style),c),De=void 0!==(null==T?void 0:T.emptyText)?T.emptyText:(null==V?void 0:V("Table"))||n.createElement(Bp,{componentName:"Table"}),Le=z?ov:tv,Fe={},Ne=n.useMemo((()=>{const{fontSize:e,lineHeight:t,lineWidth:o,padding:n,paddingXS:r,paddingSM:i}=Q,a=Math.floor(e*t);switch(K){case"middle":return 2*i+a+o;case"small":return 2*r+a+o;default:return 2*n+a+o}}),[Q,K]);return z&&(Fe.listItemHeight=Ne),Z(n.createElement("div",{ref:le,className:$e,style:ze},n.createElement(eg,Object.assign({spinning:!1},Te),Pe,n.createElement(Le,Object.assign({},Fe,H,{ref:se,columns:N,direction:B,expandable:oe,prefixCls:X,className:M()({[`${X}-middle`]:"middle"===K,[`${X}-small`]:"small"===K,[`${X}-bordered`]:d,[`${X}-empty`]:0===q.length},te,J,ee),data:ke,rowKey:ce,rowClassName:(e,t,o)=>{let n;return n="function"==typeof b?M()(b(e,t,o)):M()(b),M()({[`${X}-row-selected`]:Me.has(ce(e,t))},n)},emptyText:De,internalHooks:a,internalRefs:ie,transformColumns:Ie,getContainerWidth:ae})),Oe)))},xv=n.forwardRef(Cv),Av=(e,t)=>{const o=n.useRef(0);return o.current+=1,n.createElement(xv,Object.assign({},e,{ref:t,_renderTimes:o.current}))},Ev=n.forwardRef(Av);Ev.SELECTION_COLUMN=Ap,Ev.EXPAND_COLUMN=i,Ev.SELECTION_ALL=Ep,Ev.SELECTION_INVERT=Sp,Ev.SELECTION_NONE=kp,Ev.Column=e=>null,Ev.ColumnGroup=e=>null,Ev.Summary=G;const Sv=Ev},7350:(e,t,o)=>{var n=o(38221),r=o(23805);e.exports=function(e,t,o){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(o)&&(i="leading"in o?!!o.leading:i,a="trailing"in o?!!o.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},8719:(e,t,o)=>{"use strict";o.d(t,{A9:()=>f,H3:()=>m,K4:()=>u,Xf:()=>c,f3:()=>p,xK:()=>d});var n=o(82284),r=o(96540),i=o(66351),a=o(28104),l=o(76288),s=Number(r.version.split(".")[0]),c=function(e,t){"function"==typeof e?e(t):"object"===(0,n.A)(e)&&e&&"current"in e&&(e.current=t)},u=function(){for(var e=arguments.length,t=new Array(e),o=0;o=19)return!0;var n=(0,i.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof n||null!==(t=n.prototype)&&void 0!==t&&t.render||n.$$typeof===i.ForwardRef)&&!!("function"!=typeof e||null!==(o=e.prototype)&&void 0!==o&&o.render||e.$$typeof===i.ForwardRef)};function h(e){return(0,r.isValidElement)(e)&&!(0,l.A)(e)}var m=function(e){return h(e)&&p(e)},f=function(e){if(e&&h(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null}},9325:(e,t,o)=>{var n=o(34840),r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")();e.exports=i},9553:(e,t,o)=>{"use strict";o.d(t,{h:()=>r});var n=o(58296);function r(e){return n.A}},10124:(e,t,o)=>{var n=o(9325);e.exports=function(){return n.Date.now()}},10786:(e,t,o)=>{"use strict";o.d(t,{AV:()=>g,DW:()=>a,EJ:()=>d,Ks:()=>s,P$:()=>v,YW:()=>f,lj:()=>h,nt:()=>l,p1:()=>u,tm:()=>m,tw:()=>b,uP:()=>p});var n=o(31216),r=o(60957);const i=e=>e.items,a=(0,n.M)(i,(e=>e.loading)),l=(0,n.M)(i,(e=>e.error)),s=(0,n.M)(i,(e=>e.itemMetaLookup)),c=[],u=(0,n.M)([i,(e,t)=>t],((e,t)=>e.itemOrderedChildrenIdsLookup[t??r.T2]??c)),d=(0,n.M)([i,(e,t)=>t],((e,t)=>e.itemModelLookup[t])),p=(0,n.M)([s,(e,t)=>t],((e,t)=>e[t??r.T2]??null)),h=(0,n.M)([s,(e,t)=>t],r.gE),m=(0,n.M)([i,p],((e,t)=>null==t?-1:e.itemChildrenIndexesLookup[t.parentId??r.T2][t.id])),f=(0,n.M)([p],(e=>e?.parentId??null)),g=(0,n.M)([p],(e=>e?.depth??0)),b=(0,n.M)([i],(e=>e.disabledItemsFocusable)),v=(0,n.M)([b,h],((e,t)=>!!e||!t))},12533:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var n=o(5544),r=o(26956),i=o(30981),a=o(1233);function l(e){return void 0!==e}function s(e,t){var o=t||{},s=o.defaultValue,c=o.value,u=o.onChange,d=o.postState,p=(0,a.A)((function(){return l(c)?c:l(s)?"function"==typeof s?s():s:"function"==typeof e?e():e})),h=(0,n.A)(p,2),m=h[0],f=h[1],g=void 0!==c?c:m,b=d?d(g):g,v=(0,r.A)(u),y=(0,a.A)([g]),w=(0,n.A)(y,2),C=w[0],x=w[1];return(0,i.o)((function(){var e=C[0];m!==e&&v(m,e)}),[C]),(0,i.o)((function(){l(c)||f(c)}),[c]),[b,(0,r.A)((function(e,t){f(e,t),x([g],t)}))]}},12897:(e,t,o)=>{var n=o(43693);function r(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}e.exports=function(e){for(var t=1;t{"use strict";o.d(t,{A:()=>n});const n=(0,o(63248).Ay)()},15265:(e,t,o)=>{"use strict";o.d(t,{A:()=>h});var n=o(77132),r=o(45748),i=o(50723),a=o(2616);var l=o(94925);const s=(e,t)=>new a.Y(e).setA(t).toRgbString(),c=(e,t)=>new a.Y(e).darken(t).toHexString(),u=e=>{const t=(0,r.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},d=(e,t)=>{const o=e||"#fff",n=t||"#000";return{colorBgBase:o,colorTextBase:n,colorText:s(n,.88),colorTextSecondary:s(n,.65),colorTextTertiary:s(n,.45),colorTextQuaternary:s(n,.25),colorFill:s(n,.15),colorFillSecondary:s(n,.06),colorFillTertiary:s(n,.04),colorFillQuaternary:s(n,.02),colorBgSolid:s(n,1),colorBgSolidHover:s(n,.75),colorBgSolidActive:s(n,.95),colorBgLayout:c(o,4),colorBgContainer:c(o,0),colorBgElevated:c(o,0),colorBgSpotlight:s(n,.85),colorBgBlur:"transparent",colorBorder:c(o,15),colorBorderSecondary:c(o,6)}},p=(0,n.an)((function(e){r.uy.pink=r.uy.magenta,r.UA.pink=r.UA.magenta;const t=Object.keys(i.r).map((t=>{const o=e[t]===r.uy[t]?r.UA[t]:(0,r.cM)(e[t]);return Array.from({length:10},(()=>1)).reduce(((e,n,r)=>(e[`${t}-${r+1}`]=o[r],e[`${t}${r+1}`]=o[r],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){const{colorSuccess:n,colorWarning:r,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=t(s),p=t(n),h=t(r),m=t(i),f=t(l),g=o(c,u),b=t(e.colorLink||e.colorInfo),v=new a.Y(m[1]).mix(new a.Y(m[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:v,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new a.Y("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:u,generateNeutralColorPalettes:d})),(e=>{const t=(0,l.A)(e),o=t.map((e=>e.size)),n=t.map((e=>e.lineHeight)),r=o[1],i=o[0],a=o[2],s=n[1],c=n[0],u=n[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*r),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:o}=e;return{sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:o,borderRadius:n,lineWidth:r}=e;return Object.assign({motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+2*t).toFixed(1)}s`,motionDurationSlow:`${(o+3*t).toFixed(1)}s`,lineWidthBold:r+1},(e=>{let t=e,o=e,n=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:r}})(n))}(e))})),h=p},15411:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var n=o(31601),r=o.n(n),i=o(76314),a=o.n(i)()(r());a.push([e.id,'.tabulator{background-color:#888;border:1px solid #999;font-size:14px;overflow:hidden;position:relative;text-align:left;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select,.tabulator.tabulator-ranges .tabulator-cell:not(.tabulator-editing){user-select:none}.tabulator .tabulator-header{background-color:#e6e6e6;border-bottom:1px solid #999;box-sizing:border-box;color:#555;font-weight:700;outline:none;overflow:hidden;position:relative;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;white-space:nowrap;width:100%}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{overflow:hidden;position:relative}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{display:inline-block}.tabulator .tabulator-header .tabulator-col{background:#e6e6e6;border-right:1px solid #aaa;box-sizing:border-box;display:inline-flex;flex-direction:column;justify-content:flex-start;overflow:hidden;position:relative;text-align:left;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col.tabulator-moving{background:#cdcdcd;border:1px solid #999;pointer-events:none;position:absolute}.tabulator .tabulator-header .tabulator-col.tabulator-range-highlight{background-color:#d6d6d6;color:#000}.tabulator .tabulator-header .tabulator-col.tabulator-range-selected{background-color:#3876ca;color:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;padding:4px;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap;width:100%}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{text-overflow:clip;white-space:normal}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{background:#fff;border:1px solid #999;box-sizing:border-box;padding:1px;width:100%}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{align-items:center;bottom:0;display:flex;position:absolute;right:4px;top:0}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:6px solid #bbb;border-left:6px solid transparent;border-right:6px solid transparent;height:0;width:0}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{border-top:1px solid #aaa;display:flex;margin-right:-1px;overflow:hidden;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{box-sizing:border-box;margin-top:2px;position:relative;text-align:center;width:100%}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{height:0;width:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{background-color:#cdcdcd;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{border-bottom:6px solid #555;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:6px solid #bbb;border-top:none}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{border-bottom:6px solid #555;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:6px solid #666;border-top:none}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{border-top:6px solid #555;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{align-items:center;display:flex;justify-content:center;text-orientation:mixed;writing-mode:vertical-rl}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-bottom:20px;padding-right:0}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{bottom:auto;justify-content:center;left:0;right:0;top:4px}.tabulator .tabulator-header .tabulator-frozen{left:0;position:sticky;z-index:11}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #aaa}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #aaa}.tabulator .tabulator-header .tabulator-calcs-holder{background:#f3f3f3!important;border-bottom:1px solid #aaa;border-top:1px solid #aaa;box-sizing:border-box;display:inline-block}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f3f3f3!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-header .tabulator-frozen-rows-holder{display:inline-block}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableholder{-webkit-overflow-scrolling:touch;overflow:auto;position:relative;white-space:nowrap;width:100%}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-placeholder{align-items:center;box-sizing:border-box;display:flex;justify-content:center;min-width:100%;width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%}.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents{color:#ccc;display:inline-block;font-size:20px;font-weight:700;padding:10px;text-align:center;white-space:normal}.tabulator .tabulator-tableholder .tabulator-table{background-color:#fff;color:#333;display:inline-block;overflow:visible;position:relative;white-space:nowrap}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{background:#e2e2e2!important;font-weight:700}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #aaa}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #aaa}.tabulator .tabulator-tableholder .tabulator-range-overlay{inset:0;pointer-events:none;position:absolute;z-index:10}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range{border:1px solid #2975dd;box-sizing:border-box;position:absolute}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range.tabulator-range-active:after{background-color:#2975dd;border-radius:999px;bottom:-3px;content:"";height:6px;position:absolute;right:-3px;width:6px}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-active{border:2px solid #2975dd;box-sizing:border-box;position:absolute}.tabulator .tabulator-footer{background-color:#e6e6e6;border-top:1px solid #999;color:#555;font-weight:700;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;white-space:nowrap}.tabulator .tabulator-footer .tabulator-footer-contents{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:5px 10px}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs{margin-top:-5px;overflow-x:auto}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab{border:1px solid #999;border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top:none;display:inline-block;font-size:.9em;padding:5px}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab:hover{cursor:pointer;opacity:.7}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active{background:#fff}.tabulator .tabulator-footer .tabulator-calcs-holder{background:#f3f3f3!important;border-bottom:1px solid #aaa;border-top:1px solid #aaa;box-sizing:border-box;overflow:hidden;text-align:left;width:100%}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f3f3f3!important;display:inline-block}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{border-bottom:none;margin-bottom:-5px}.tabulator .tabulator-footer>*+.tabulator-page-counter{margin-left:10px}.tabulator .tabulator-footer .tabulator-page-counter{font-weight:400}.tabulator .tabulator-footer .tabulator-paginator{color:#555;flex:1;font-family:inherit;font-size:inherit;font-weight:inherit;text-align:right}.tabulator .tabulator-footer .tabulator-page-size{border:1px solid #aaa;border-radius:3px;display:inline-block;margin:0 5px;padding:2px 5px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{background:hsla(0,0%,100%,.2);border:1px solid #aaa;border-radius:3px;display:inline-block;margin:0 2px;padding:2px 5px}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-footer .tabulator-page:not(disabled):hover{background:rgba(0,0,0,.2);color:#fff;cursor:pointer}}.tabulator .tabulator-col-resize-handle{display:inline-block;margin-left:-3px;margin-right:-3px;position:relative;vertical-align:middle;width:6px;z-index:11}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{margin-right:0;width:3px}.tabulator .tabulator-col-resize-guide{background-color:#999;height:100%;margin-left:-.5px;opacity:.5;position:absolute;top:0;width:4px}.tabulator .tabulator-row-resize-guide{background-color:#999;height:4px;left:0;margin-top:-.5px;opacity:.5;position:absolute;width:100%}.tabulator .tabulator-alert{align-items:center;background:rgba(0,0,0,.4);display:flex;height:100%;left:0;position:absolute;text-align:center;top:0;width:100%;z-index:100}.tabulator .tabulator-alert .tabulator-alert-msg{background:#fff;border-radius:10px;display:inline-block;font-size:16px;font-weight:700;margin:0 auto;padding:10px 20px}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{border:4px solid #333;color:#000}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid #d00;color:#590000}.tabulator-row{background-color:#fff;box-sizing:border-box;min-height:22px;position:relative}.tabulator-row.tabulator-row-even{background-color:#efefef}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}}.tabulator-row.tabulator-selected{background-color:#9abcea}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}}.tabulator-row.tabulator-row-moving{background:#fff;border:1px solid #000}.tabulator-row.tabulator-moving{border-bottom:1px solid #aaa;border-top:1px solid #aaa;pointer-events:none;position:absolute;z-index:15}.tabulator-row.tabulator-range-highlight .tabulator-cell.tabulator-range-row-header{background-color:#d6d6d6;color:#000}.tabulator-row.tabulator-range-highlight.tabulator-range-selected .tabulator-cell.tabulator-range-row-header,.tabulator-row.tabulator-range-selected .tabulator-cell.tabulator-range-row-header{background-color:#3876ca;color:#fff}.tabulator-row .tabulator-row-resize-handle{bottom:0;height:5px;left:0;position:absolute;right:0}.tabulator-row .tabulator-row-resize-handle.prev{bottom:auto;top:0}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{border-bottom:1px solid #aaa;border-top:1px solid #aaa;box-sizing:border-box;padding:5px}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{border-right:1px solid #aaa;box-sizing:border-box;display:inline-block;outline:none;overflow:hidden;padding:4px;position:relative;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.tabulator-row .tabulator-cell.tabulator-row-header{background:#e6e6e6;border-bottom:1px solid #aaa;border-right:1px solid #999}.tabulator-row .tabulator-cell.tabulator-frozen{background-color:inherit;display:inline-block;left:0;position:sticky;z-index:11}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid #aaa}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid #aaa}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{background:transparent;border:1px;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{background:transparent;border:1px;color:#d00}.tabulator-row .tabulator-cell.tabulator-row-handle{align-items:center;display:inline-flex;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{background:#666;height:3px;margin-top:2px;width:100%}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-only-cell-selected):not(.tabulator-range-row-header){background-color:#9abcea}.tabulator-row .tabulator-cell .tabulator-data-tree-branch-empty{display:inline-block;width:7px}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-bottom:2px solid #aaa;border-bottom-left-radius:1px;border-left:2px solid #aaa;display:inline-block;height:9px;margin-right:5px;margin-top:-9px;vertical-align:middle;width:7px}.tabulator-row .tabulator-cell .tabulator-data-tree-control{align-items:center;background:rgba(0,0,0,.1);border:1px solid #333;border-radius:2px;display:inline-flex;height:11px;justify-content:center;margin-right:5px;overflow:hidden;vertical-align:middle;width:11px}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{background:rgba(0,0,0,.2);cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{background:transparent;display:inline-block;height:7px;position:relative;width:1px}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{background:#333;display:inline-block;height:7px;position:relative;width:1px}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{align-items:center;background:#666;border-radius:20px;color:#fff;display:inline-flex;font-size:1.1em;font-weight:700;height:15px;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;width:15px}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{cursor:pointer;opacity:.7}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:#fff}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{border-radius:14px;display:inline-block;height:14px;width:14px}.tabulator-row.tabulator-group{background:#ccc;border-bottom:1px solid #999;border-right:1px solid #aaa;border-top:1px solid #999;box-sizing:border-box;font-weight:700;min-width:100%;padding:5px 5px 5px 10px}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{background-color:rgba(0,0,0,.1);cursor:pointer}}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{border-bottom:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;margin-right:10px}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{border-bottom:6px solid transparent;border-left:6px solid #666;border-right:0;border-top:6px solid transparent;display:inline-block;height:0;margin-right:16px;vertical-align:middle;width:0}.tabulator-row.tabulator-group span{color:#d00;margin-left:10px}.tabulator-toggle{background:#dcdcdc;border:1px solid #ccc;box-sizing:border-box;display:flex;flex-direction:row}.tabulator-toggle.tabulator-toggle-on{background:#1c6cc2}.tabulator-toggle .tabulator-toggle-switch{background:#fff;border:1px solid #ccc;box-sizing:border-box}.tabulator-popup-container{-webkit-overflow-scrolling:touch;background:#fff;border:1px solid #aaa;box-shadow:0 0 5px 0 rgba(0,0,0,.2);box-sizing:border-box;display:inline-block;font-size:14px;overflow-y:auto;position:absolute;z-index:10000}.tabulator-popup{border-radius:3px;padding:5px}.tabulator-tooltip{border-radius:2px;box-shadow:none;font-size:12px;max-width:Min(500px,100%);padding:3px 5px;pointer-events:none}.tabulator-menu .tabulator-menu-item{box-sizing:border-box;padding:5px 10px;position:relative;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{background:#efefef;cursor:pointer}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{border-color:#aaa;border-style:solid;border-width:1px 1px 0 0;content:"";display:inline-block;height:7px;position:absolute;right:10px;top:calc(5px + .4em);transform:rotate(45deg);vertical-align:top;width:7px}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #aaa}.tabulator-edit-list{-webkit-overflow-scrolling:touch;font-size:14px;max-height:200px;overflow-y:auto}.tabulator-edit-list .tabulator-edit-list-item{color:#333;outline:none;padding:4px}.tabulator-edit-list .tabulator-edit-list-item.active{background:#1d68cd;color:#fff}.tabulator-edit-list .tabulator-edit-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-list .tabulator-edit-list-item.focused{outline:1px solid #1d68cd}@media (hover:hover) and (pointer:fine){.tabulator-edit-list .tabulator-edit-list-item:hover{background:#1d68cd;color:#fff;cursor:pointer}}.tabulator-edit-list .tabulator-edit-list-placeholder{color:#333;padding:4px;text-align:center}.tabulator-edit-list .tabulator-edit-list-group{border-bottom:1px solid #aaa;color:#333;font-weight:700;padding:6px 4px 4px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-2,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-2{padding-left:12px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-3,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-3{padding-left:20px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-4,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-4{padding-left:28px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-5,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-5{padding-left:36px}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{direction:rtl;text-align:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{border-left:1px solid #aaa;border-right:initial;text-align:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-left:-1px;margin-right:0}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-left:25px;padding-right:0}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-tableholder .tabulator-range-overlay .tabulator-range.tabulator-range-active:after{background-color:#2975dd;border-radius:999px;bottom:-3px;content:"";height:6px;left:-3px;position:absolute;right:auto;width:6px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-left:1px solid #aaa;border-right:initial}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #aaa;margin-left:5px;margin-right:0}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-left:5px;margin-right:0}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid #aaa}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid #aaa}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{margin-left:0;margin-right:-3px;width:3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}.tabulator-print-fullscreen{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{border-bottom:2px solid #aaa;border-bottom-left-radius:1px;border-left:2px solid #aaa;display:inline-block;height:9px;margin-right:5px;margin-top:-9px;vertical-align:middle;width:7px}.tabulator-print-table .tabulator-print-table-group{background:#ccc;border-bottom:1px solid #999;border-right:1px solid #aaa;border-top:1px solid #999;box-sizing:border-box;font-weight:700;min-width:100%;padding:5px 5px 5px 10px}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{background-color:rgba(0,0,0,.1);cursor:pointer}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{border-bottom:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;margin-right:10px}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{border-bottom:6px solid transparent;border-left:6px solid #666;border-right:0;border-top:6px solid transparent;display:inline-block;height:0;margin-right:16px;vertical-align:middle;width:0}.tabulator-print-table .tabulator-print-table-group span{color:#d00;margin-left:10px}.tabulator-print-table .tabulator-data-tree-control{align-items:center;background:rgba(0,0,0,.1);border:1px solid #333;border-radius:2px;display:inline-flex;height:11px;justify-content:center;margin-right:5px;overflow:hidden;vertical-align:middle;width:11px}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-data-tree-control:hover{background:rgba(0,0,0,.2);cursor:pointer}}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{background:transparent;display:inline-block;height:7px;position:relative;width:1px}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{background:#333;display:inline-block;height:7px;position:relative;width:1px}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}',""]);const l=a},16014:(e,t,o)=>{"use strict";o.d(t,{A:()=>Q});var n=o(96540),r=o(34164),i=o(21362),a=o(82777),l=o(11108),s=o(78854),c=o(97164),u=o(91092),d=o(16082);function p(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const h=function(e={}){const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:r="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=a?l.trim():l;o&&(c=c.toLowerCase()),t&&(c=p(c));const u=c?e.filter((e=>{let n=(i||s)(e);return o&&(n=n.toLowerCase()),t&&(n=p(n)),"start"===r?n.startsWith(c):n.includes(c)})):e;return"number"==typeof n?u.slice(0,n):u}}(),m=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),f=[];function g(e,t,o,n){if(t||null==e||n)return"";const r=o(e);return"string"==typeof r?r:""}var b=o(27519),v=o(22730),y=o(49565),w=o(37768),C=o(17862),x=o(67246),A=o(26410),E=o(24890),S=o(89026),k=o(37523),R=o(41811),M=o(26739),I=o(39241),P=o(20439),O=o(96148),T=o(1908);function $(e){return(0,T.Ay)("MuiAutocomplete",e)}const z=(0,O.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var D,L,F=o(39407),N=o(85078),H=o(74848);const j=(0,M.Ay)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:r,hasPopupIcon:i,inputFocused:a,size:l}=o;return[{[`& .${z.tag}`]:t.tag},{[`& .${z.tag}`]:t[`tagSize${(0,F.A)(l)}`]},{[`& .${z.inputRoot}`]:t.inputRoot},{[`& .${z.input}`]:t.input},{[`& .${z.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,r&&t.hasClearIcon]}})({[`&.${z.focused} .${z.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${z.clearIndicator}`]:{visibility:"visible"}},[`& .${z.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${z.inputRoot}`]:{[`.${z.hasPopupIcon}&, .${z.hasClearIcon}&`]:{paddingRight:30},[`.${z.hasPopupIcon}.${z.hasClearIcon}&`]:{paddingRight:56},[`& .${z.input}`]:{width:0,minWidth:30}},[`& .${x.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${x.A.root}.${A.A.sizeSmall}`]:{[`& .${x.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${E.A.root}`]:{padding:9,[`.${z.hasPopupIcon}&, .${z.hasClearIcon}&`]:{paddingRight:39},[`.${z.hasPopupIcon}.${z.hasClearIcon}&`]:{paddingRight:65},[`& .${z.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${z.endAdornment}`]:{right:9}},[`& .${E.A.root}.${A.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${z.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${S.A.root}`]:{paddingTop:19,paddingLeft:8,[`.${z.hasPopupIcon}&, .${z.hasClearIcon}&`]:{paddingRight:39},[`.${z.hasPopupIcon}.${z.hasClearIcon}&`]:{paddingRight:65},[`& .${S.A.input}`]:{padding:"7px 4px"},[`& .${z.endAdornment}`]:{right:9}},[`& .${S.A.root}.${A.A.sizeSmall}`]:{paddingBottom:1,[`& .${S.A.input}`]:{padding:"2.5px 4px"}},[`& .${A.A.hiddenLabel}`]:{paddingTop:8},[`& .${S.A.root}.${A.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${z.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${S.A.root}.${A.A.hiddenLabel}.${A.A.sizeSmall}`]:{[`& .${z.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${z.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${z.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${z.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${z.inputRoot}`]:{flexWrap:"wrap"}}}]}),B=(0,M.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),_=(0,M.Ay)(w.A,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),V=(0,M.Ay)(w.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.popupIndicator,o.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),W=(0,M.Ay)(b.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${z.option}`]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((0,I.A)((({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})))),G=(0,M.Ay)(y.A,{name:"MuiAutocomplete",slot:"Paper"})((0,I.A)((({theme:e})=>({...e.typography.body1,overflow:"auto"})))),K=(0,M.Ay)("div",{name:"MuiAutocomplete",slot:"Loading"})((0,I.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})))),U=(0,M.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions"})((0,I.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})))),q=(0,M.Ay)("ul",{name:"MuiAutocomplete",slot:"Listbox"})((0,I.A)((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${z.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${z.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,a.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${z.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,a.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${z.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,a.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})))),X=(0,M.Ay)(v.A,{name:"MuiAutocomplete",slot:"GroupLabel"})((0,I.A)((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})))),Y=(0,M.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${z.option}`]:{paddingLeft:24}}),Q=n.forwardRef((function(e,t){const o=(0,P.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:p=!1,autoSelect:v=!1,blurOnSelect:w=!1,ChipProps:x,className:A,clearIcon:E=D||(D=(0,H.jsx)(k.A,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:M=!1,clearText:I="Clear",closeText:O="Close",componentsProps:T,defaultValue:z=(o.multiple?[]:null),disableClearable:Q=!1,disableCloseOnSelect:J=!1,disabled:Z=!1,disabledItemsFocusable:ee=!1,disableListWrap:te=!1,disablePortal:oe=!1,filterOptions:ne,filterSelectedOptions:re=!1,forcePopupIcon:ie="auto",freeSolo:ae=!1,fullWidth:le=!1,getLimitTagsText:se=e=>`+${e}`,getOptionDisabled:ce,getOptionKey:ue,getOptionLabel:de,isOptionEqualToValue:pe,groupBy:he,handleHomeEndKeys:me=!o.freeSolo,id:fe,includeInputInList:ge=!1,inputValue:be,limitTags:ve=-1,ListboxComponent:ye,ListboxProps:we,loading:Ce=!1,loadingText:xe="Loading…",multiple:Ae=!1,noOptionsText:Ee="No options",onChange:Se,onClose:ke,onHighlightChange:Re,onInputChange:Me,onOpen:Ie,open:Pe,openOnFocus:Oe=!1,openText:Te="Open",options:$e,PaperComponent:ze,PopperComponent:De,popupIcon:Le=L||(L=(0,H.jsx)(R.A,{})),readOnly:Fe=!1,renderGroup:Ne,renderInput:He,renderOption:je,renderTags:Be,renderValue:_e,selectOnFocus:Ve=!o.freeSolo,size:We="medium",slots:Ge={},slotProps:Ke={},value:Ue,...qe}=o,{getRootProps:Xe,getInputProps:Ye,getInputLabelProps:Qe,getPopupIndicatorProps:Je,getClearProps:Ze,getItemProps:et,getListboxProps:tt,getOptionProps:ot,value:nt,dirty:rt,expanded:it,id:at,popupOpen:lt,focused:st,focusedItem:ct,anchorEl:ut,setAnchorEl:dt,inputValue:pt,groupedOptions:ht}=function(e){const{unstable_isActiveElementInListbox:t=m,unstable_classNamePrefix:o="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:p=!1,clearOnBlur:b=!e.freeSolo,clearOnEscape:v=!1,componentName:y="useAutocomplete",defaultValue:w=(e.multiple?f:null),disableClearable:C=!1,disableCloseOnSelect:x=!1,disabled:A,disabledItemsFocusable:E=!1,disableListWrap:S=!1,filterOptions:k=h,filterSelectedOptions:R=!1,freeSolo:M=!1,getOptionDisabled:I,getOptionKey:P,getOptionLabel:O=e=>e.label??e,groupBy:T,handleHomeEndKeys:$=!e.freeSolo,id:z,includeInputInList:D=!1,inputValue:L,isOptionEqualToValue:F=(e,t)=>e===t,multiple:N=!1,onChange:H,onClose:j,onHighlightChange:B,onInputChange:_,onOpen:V,open:W,openOnFocus:G=!1,options:K,readOnly:U=!1,renderValue:q,selectOnFocus:X=!e.freeSolo,value:Y}=e,Q=(0,u.A)(z);let J=O;J=e=>{const t=O(e);return"string"!=typeof t?String(t):t};const Z=n.useRef(!1),ee=n.useRef(!0),te=n.useRef(null),oe=n.useRef(null),[ne,re]=n.useState(null),[ie,ae]=n.useState(-1),le=i?0:-1,se=n.useRef(le),ce=n.useRef(g(w??Y,N,J)).current,[ue,de]=(0,c.A)({controlled:Y,default:w,name:y}),[pe,he]=(0,c.A)({controlled:L,default:ce,name:y,state:"inputValue"}),[me,fe]=n.useState(!1),ge=n.useCallback(((e,t,o)=>{if(!(N?ue.length!R||!(N?ue:[ue]).some((t=>null!==t&&F(e,t))))),{inputValue:Ce&&ye?"":pe,getOptionLabel:J}):[],Ee=(0,d.A)({filteredOptions:Ae,value:ue,inputValue:pe});n.useEffect((()=>{const e=ue!==Ee.value;me&&!e||M&&!e||ge(null,ue,"reset")}),[ue,ge,me,Ee.value,M]);const Se=be&&Ae.length>0&&!U,ke=(0,s.A)((e=>{if(-1===e)te.current.focus();else{const t=q?"data-item-index":"data-tag-index";ne.querySelector(`[${t}="${e}"]`).focus()}}));n.useEffect((()=>{N&&ie>ue.length-1&&(ae(-1),ke(-1))}),[ue,N,ie,ke]);const Re=(0,s.A)((({event:e,index:t,reason:n})=>{if(se.current=t,-1===t?te.current.removeAttribute("aria-activedescendant"):te.current.setAttribute("aria-activedescendant",`${Q}-option-${t}`),B&&["mouse","keyboard","touch"].includes(n)&&B(e,-1===t?null:Ae[t],n),!oe.current)return;const r=oe.current.querySelector(`[role="option"].${o}-focused`);r&&(r.classList.remove(`${o}-focused`),r.classList.remove(`${o}-focusVisible`));let i=oe.current;if("listbox"!==oe.current.getAttribute("role")&&(i=oe.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=oe.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${o}-focused`),"keyboard"===n&&a.classList.add(`${o}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==n&&"touch"!==n)){const e=a,t=i.clientHeight+i.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?i.scrollTop=o-i.clientHeight:e.offsetTop-e.offsetHeight*(T?1.3:0){if(!xe)return;const i=function(e,t){if(!oe.current||e<0||e>=Ae.length)return-1;let o=e;for(;;){const n=oe.current.querySelector(`[data-option-index="${o}"]`),r=!E&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!r)return o;if(o="next"===t?(o+1)%Ae.length:(o-1+Ae.length)%Ae.length,o===e)return-1}}((()=>{const e=Ae.length-1;if("reset"===t)return le;if("start"===t)return 0;if("end"===t)return e;const o=se.current+t;return o<0?-1===o&&D?-1:S&&-1!==se.current||Math.abs(t)>1?0:e:o>e?o===e+1&&D?-1:S||Math.abs(t)>1?e:0:o})(),o);if(Re({index:i,reason:n,event:e}),r&&"reset"!==t)if(-1===i)te.current.value=pe;else{const e=J(Ae[i]);te.current.value=e,0===e.toLowerCase().indexOf(pe.toLowerCase())&&pe.length>0&&te.current.setSelectionRange(pe.length,e.length)}})),Ie=n.useCallback((()=>{if(!xe)return;const e=(()=>{if(-1!==se.current&&Ee.filteredOptions&&Ee.filteredOptions.length!==Ae.length&&Ee.inputValue===pe&&(N?ue.length===Ee.value.length&&Ee.value.every(((e,t)=>J(ue[t])===J(e))):(e=Ee.value,t=ue,(e?J(e):"")===(t?J(t):"")))){const e=Ee.filteredOptions[se.current];if(e)return Ae.findIndex((t=>J(t)===J(e)))}var e,t;return-1})();if(-1!==e)return void(se.current=e);const t=N?ue[0]:ue;if(0!==Ae.length&&null!=t){if(oe.current)if(null==t)se.current>=Ae.length-1?Re({index:Ae.length-1}):Re({index:se.current});else{const e=Ae[se.current];if(N&&e&&-1!==ue.findIndex((t=>F(e,t))))return;const o=Ae.findIndex((e=>F(e,t)));-1===o?Me({diff:"reset"}):Re({index:o})}}else Me({diff:"reset"})}),[Ae.length,!N&&ue,R,Me,Re,xe,pe,N]),Pe=(0,s.A)((e=>{(0,l.A)(oe,e),e&&Ie()}));n.useEffect((()=>{Ie()}),[Ie]);const Oe=e=>{be||(ve(!0),we(!0),V&&V(e))},Te=(e,t)=>{be&&(ve(!1),j&&j(e,t))},$e=(e,t,o,n)=>{if(N){if(ue.length===t.length&&ue.every(((e,o)=>e===t[o])))return}else if(ue===t)return;H&&H(e,t,o,n),de(t)},ze=n.useRef(!1),De=(e,t,o="selectOption",n="options")=>{let r=o,i=t;if(N){i=Array.isArray(ue)?ue.slice():[];const e=i.findIndex((e=>F(t,e)));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),r="removeOption")}ge(e,i,r),$e(e,i,r,{option:t}),x||e&&(e.ctrlKey||e.metaKey)||Te(e,r),(!0===p||"touch"===p&&ze.current||"mouse"===p&&!ze.current)&&te.current.blur()},Le=(e,t)=>{if(!N)return;""===pe&&Te(e,"toggleInput");let o=ie;-1===ie?""===pe&&"previous"===t&&(o=ue.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===ue.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===ue.length||"previous"===t&&-1===o)return-1;const e=q?"data-item-index":"data-tag-index",n=ne.querySelector(`[${e}="${o}"]`);if(n&&n.hasAttribute("tabindex")&&!n.disabled&&"true"!==n.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),ae(o),ke(o)},Fe=e=>{Z.current=!0,he(""),_&&_(e,"","clear"),$e(e,N?[]:null,"clear")},Ne=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===ie||["ArrowLeft","ArrowRight"].includes(t.key)||(ae(-1),ke(-1)),229!==t.which))switch(t.key){case"Home":xe&&$&&(t.preventDefault(),Me({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":xe&&$&&(t.preventDefault(),Me({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Me({diff:-5,direction:"previous",reason:"keyboard",event:t}),Oe(t);break;case"PageDown":t.preventDefault(),Me({diff:5,direction:"next",reason:"keyboard",event:t}),Oe(t);break;case"ArrowDown":t.preventDefault(),Me({diff:1,direction:"next",reason:"keyboard",event:t}),Oe(t);break;case"ArrowUp":t.preventDefault(),Me({diff:-1,direction:"previous",reason:"keyboard",event:t}),Oe(t);break;case"ArrowLeft":!N&&q?ke(0):Le(t,"previous");break;case"ArrowRight":!N&&q?ke(-1):Le(t,"next");break;case"Enter":if(-1!==se.current&&xe){const e=Ae[se.current],o=!!I&&I(e);if(t.preventDefault(),o)return;De(t,e,"selectOption"),r&&te.current.setSelectionRange(te.current.value.length,te.current.value.length)}else M&&""!==pe&&!1===Ce&&(N&&t.preventDefault(),De(t,pe,"createOption","freeSolo"));break;case"Escape":xe?(t.preventDefault(),t.stopPropagation(),Te(t,"escape")):v&&(""!==pe||N&&ue.length>0||q)&&(t.preventDefault(),t.stopPropagation(),Fe(t));break;case"Backspace":if(N&&!U&&""===pe&&ue.length>0){const e=-1===ie?ue.length-1:ie,o=ue.slice();o.splice(e,1),$e(t,o,"removeOption",{option:ue[e]})}N||!q||U||(de(null),ke(-1));break;case"Delete":if(N&&!U&&""===pe&&ue.length>0&&-1!==ie){const e=ie,o=ue.slice();o.splice(e,1),$e(t,o,"removeOption",{option:ue[e]})}N||!q||U||(de(null),ke(-1))}},He=e=>{fe(!0),G&&!Z.current&&Oe(e)},je=e=>{t(oe)?te.current.focus():(fe(!1),ee.current=!0,Z.current=!1,a&&-1!==se.current&&xe?De(e,Ae[se.current],"blur"):a&&M&&""!==pe?De(e,pe,"blur","freeSolo"):b&&ge(e,ue,"blur"),Te(e,"blur"))},Be=e=>{const t=e.target.value;pe!==t&&(he(t),we(!1),_&&_(e,t,"input")),""===t?C||N||$e(e,null,"clear"):Oe(e)},_e=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));se.current!==t&&Re({event:e,index:t,reason:"mouse"})},Ve=e=>{Re({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ze.current=!0},We=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));De(e,Ae[t],"selectOption"),ze.current=!1},Ge=e=>t=>{const o=ue.slice();o.splice(e,1),$e(t,o,"removeOption",{option:ue[e]})},Ke=e=>{$e(e,null,"removeOption",{option:ue})},Ue=e=>{be?Te(e,"toggleInput"):Oe(e)},qe=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Q&&e.preventDefault()},Xe=e=>{e.currentTarget.contains(e.target)&&(te.current.focus(),X&&ee.current&&te.current.selectionEnd-te.current.selectionStart===0&&te.current.select(),ee.current=!1)},Ye=e=>{A||""!==pe&&be||Ue(e)};let Qe=M&&pe.length>0;Qe=Qe||(N?ue.length>0:null!==ue);let Je=Ae;return T&&(new Map,Je=Ae.reduce(((e,t,o)=>{const n=T(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])),A&&me&&je(),{getRootProps:(e={})=>({...e,onKeyDown:Ne(e),onMouseDown:qe,onClick:Xe}),getInputLabelProps:()=>({id:`${Q}-label`,htmlFor:Q}),getInputProps:()=>({id:Q,value:pe,onBlur:je,onFocus:He,onChange:Be,onMouseDown:Ye,"aria-activedescendant":xe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Se?`${Q}-listbox`:void 0,"aria-expanded":Se,autoComplete:"off",ref:te,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:A}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Fe}),getItemProps:({index:e=0}={})=>({...N&&{key:e},...q?{"data-item-index":e}:{"data-tag-index":e},tabIndex:-1,...!U&&{onDelete:N?Ge(e):Ke}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ue}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!U&&{onDelete:Ge(e)}}),getListboxProps:()=>({role:"listbox",id:`${Q}-listbox`,"aria-labelledby":`${Q}-label`,ref:Pe,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const o=(N?ue:[ue]).some((e=>null!=e&&F(t,e))),n=!!I&&I(t);return{key:P?.(t)??J(t),tabIndex:-1,role:"option",id:`${Q}-option-${e}`,onMouseMove:_e,onClick:We,onTouchStart:Ve,"data-option-index":e,"aria-disabled":n,"aria-selected":o}},id:Q,inputValue:pe,value:ue,dirty:Qe,expanded:xe&&ne,popupOpen:xe,focused:me||-1!==ie,anchorEl:ne,setAnchorEl:re,focusedItem:ie,focusedTag:ie,groupedOptions:Je}}({...o,componentName:"Autocomplete"}),mt=!Q&&!Z&&rt&&!Fe,ft=(!ae||!0===ie)&&!1!==ie,{onMouseDown:gt}=Ye(),{ref:bt,...vt}=tt(),yt=de||(e=>e.label??e),wt={...o,disablePortal:oe,expanded:it,focused:st,fullWidth:le,getOptionLabel:yt,hasClearIcon:mt,hasPopupIcon:ft,inputFocused:-1===ct,popupOpen:lt,size:We},Ct=(e=>{const{classes:t,disablePortal:o,expanded:n,focused:r,fullWidth:a,hasClearIcon:l,hasPopupIcon:s,inputFocused:c,popupOpen:u,size:d}=e,p={root:["root",n&&"expanded",r&&"focused",a&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${(0,F.A)(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,i.A)(p,$,t)})(wt),xt={slots:{paper:ze,popper:De,...Ge},slotProps:{chip:x,listbox:we,...T,...Ke}},[At,Et]=(0,N.A)("listbox",{elementType:q,externalForwardedProps:xt,ownerState:wt,className:Ct.listbox,additionalProps:vt,ref:bt}),[St,kt]=(0,N.A)("paper",{elementType:y.A,externalForwardedProps:xt,ownerState:wt,className:Ct.paper}),[Rt,Mt]=(0,N.A)("popper",{elementType:b.A,externalForwardedProps:xt,ownerState:wt,className:Ct.popper,additionalProps:{disablePortal:oe,style:{width:ut?ut.clientWidth:null},role:"presentation",anchorEl:ut,open:lt}});let It;const Pt=e=>({className:Ct.tag,disabled:Z,...et(e)});if(Be&&Ae&&nt.length>0?It=Be(nt,Pt,wt):_e&&nt?It=_e(nt,Pt,wt):Ae&&nt.length>0&&(It=nt.map(((e,t)=>{const{key:o,...n}=Pt({index:t});return(0,H.jsx)(C.A,{label:yt(e),size:We,...n,...xt.slotProps.chip},o)}))),ve>-1&&Array.isArray(It)){const e=It.length-ve;!st&&e>0&&(It=It.splice(0,ve),It.push((0,H.jsx)("span",{className:Ct.tag,children:se(e)},It.length)))}const Ot=Ne||(e=>(0,H.jsxs)("li",{children:[(0,H.jsx)(X,{className:Ct.groupLabel,ownerState:wt,component:"div",children:e.group}),(0,H.jsx)(Y,{className:Ct.groupUl,ownerState:wt,children:e.children})]},e.key)),Tt=je||((e,t)=>{const{key:o,...n}=e;return(0,H.jsx)("li",{...n,children:yt(t)},o)}),$t=(e,t)=>{const o=ot({option:e,index:t});return Tt({...o,className:Ct.option},e,{selected:o["aria-selected"],index:t,inputValue:pt},wt)},zt=xt.slotProps.clearIndicator,Dt=xt.slotProps.popupIndicator;return(0,H.jsxs)(n.Fragment,{children:[(0,H.jsx)(j,{ref:t,className:(0,r.A)(Ct.root,A),ownerState:wt,...Xe(qe),children:He({id:at,disabled:Z,fullWidth:!0,size:"small"===We?"small":void 0,InputLabelProps:Qe(),InputProps:{ref:dt,className:Ct.inputRoot,startAdornment:It,onMouseDown:e=>{e.target===e.currentTarget&>(e)},...(mt||ft)&&{endAdornment:(0,H.jsxs)(B,{className:Ct.endAdornment,ownerState:wt,children:[mt?(0,H.jsx)(_,{...Ze(),"aria-label":I,title:I,ownerState:wt,...zt,className:(0,r.A)(Ct.clearIndicator,zt?.className),children:E}):null,ft?(0,H.jsx)(V,{...Je(),disabled:Z,"aria-label":lt?O:Te,title:lt?O:Te,ownerState:wt,...Dt,className:(0,r.A)(Ct.popupIndicator,Dt?.className),children:Le}):null]})}},inputProps:{className:Ct.input,disabled:Z,readOnly:Fe,...Ye()}})}),ut?(0,H.jsx)(W,{as:Rt,...Mt,children:(0,H.jsxs)(G,{as:St,...kt,children:[Ce&&0===ht.length?(0,H.jsx)(K,{className:Ct.loading,ownerState:wt,children:xe}):null,0!==ht.length||ae||Ce?null:(0,H.jsx)(U,{className:Ct.noOptions,ownerState:wt,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:Ee}),ht.length>0?(0,H.jsx)(At,{as:ye,...Et,children:ht.map(((e,t)=>he?Ot({key:e.key,group:e.group,children:e.options.map(((t,o)=>$t(t,e.index+o)))}):$t(e,t)))}):null]})}):null]})}))},16082:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(96540);const r=e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current}},16300:(e,t,o)=>{"use strict";function n(e,t){for(var o=e,n=0;nn})},16620:(e,t,o)=>{"use strict";o.d(t,{I:()=>m});var n=o(58168),r=o(98587),i=o(96540),a=o(24902),l=o(91092),s=o(51280),c=o(25054),u=o(77866),d=o(27961),p=o(74848);const h=["render","onKeyDown","onFocus","disabled","aria-disabled"],m=(0,s.R)((function(e,t){const{render:o,onKeyDown:s,onFocus:m,disabled:f,"aria-disabled":g}=e,b=(0,r.A)(e,h),v=(0,l.A)(),y=(0,u.A)(),w=i.useRef(null),C=(0,a.A)(w,t),{focusableItemId:x,registerItem:A,unregisterItem:E,onItemKeyDown:S,onItemFocus:k,onItemDisabled:R}=(0,d.w)();i.useEffect((()=>(A(v,w),()=>E(v))),[]);const M=i.useRef(f);i.useEffect((()=>{M.current!==f&&!0===f&&R(v,f),M.current=f}),[f,v,R]);const I=i.useRef(g);i.useEffect((()=>{I.current!==g&&!0===g&&R(v,!0),I.current=g}),[g,v,R]);const P=(0,c._)(y.slots.baseIconButton,o,(0,n.A)({},y.slotProps?.baseIconButton,{tabIndex:x===v?0:-1},b,{disabled:f,"aria-disabled":g,onKeyDown:e=>{S(e),s?.(e)},onFocus:e=>{k(v),m?.(e)},ref:C}));return(0,p.jsx)(i.Fragment,{children:P})}))},17862:(e,t,o)=>{"use strict";o.d(t,{A:()=>E});var n=o(96540),r=o(34164),i=o(21362),a=o(82777),l=o(9792),s=o(74848);const c=(0,l.A)((0,s.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var u=o(30301),d=o(39407),p=o(38329),h=o(26739),m=o(39241),f=o(1321),g=o(20439),b=o(96148),v=o(1908);function y(e){return(0,v.Ay)("MuiChip",e)}const w=(0,b.A)("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),C=(0,h.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{color:n,iconColor:r,clickable:i,onDelete:a,size:l,variant:s}=o;return[{[`& .${w.avatar}`]:t.avatar},{[`& .${w.avatar}`]:t[`avatar${(0,d.A)(l)}`]},{[`& .${w.avatar}`]:t[`avatarColor${(0,d.A)(n)}`]},{[`& .${w.icon}`]:t.icon},{[`& .${w.icon}`]:t[`icon${(0,d.A)(l)}`]},{[`& .${w.icon}`]:t[`iconColor${(0,d.A)(r)}`]},{[`& .${w.deleteIcon}`]:t.deleteIcon},{[`& .${w.deleteIcon}`]:t[`deleteIcon${(0,d.A)(l)}`]},{[`& .${w.deleteIcon}`]:t[`deleteIconColor${(0,d.A)(n)}`]},{[`& .${w.deleteIcon}`]:t[`deleteIcon${(0,d.A)(s)}Color${(0,d.A)(n)}`]},t.root,t[`size${(0,d.A)(l)}`],t[`color${(0,d.A)(n)}`],i&&t.clickable,i&&"default"!==n&&t[`clickableColor${(0,d.A)(n)})`],a&&t.deletable,a&&"default"!==n&&t[`deletableColor${(0,d.A)(n)}`],t[s],t[`${s}${(0,d.A)(n)}`]]}})((0,m.A)((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${w.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${w.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${w.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${w.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${w.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${w.icon}`]:{marginLeft:5,marginRight:-6},[`& .${w.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,a.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,a.X4)(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${w.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${w.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter((0,f.A)(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${w.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:(0,a.X4)(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}}))),{props:e=>e.iconColor===e.color,style:{[`& .${w.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${w.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${w.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,a.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter((0,f.A)(["dark"])).map((([t])=>({props:{color:t,onDelete:!0},style:{[`&.${w.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}}))),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,a.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${w.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,a.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter((0,f.A)(["dark"])).map((([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${w.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}))),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${w.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${w.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${w.avatar}`]:{marginLeft:4},[`& .${w.avatarSmall}`]:{marginLeft:2},[`& .${w.icon}`]:{marginLeft:4},[`& .${w.iconSmall}`]:{marginLeft:2},[`& .${w.deleteIcon}`]:{marginRight:5},[`& .${w.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter((0,f.A)()).map((([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:(0,a.X4)(e.palette[t].main,.7)}`,[`&.${w.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,a.X4)(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${w.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,a.X4)(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${w.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:(0,a.X4)(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}})))]}}))),x=(0,h.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:o}=e,{size:n}=o;return[t.label,t[`label${(0,d.A)(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function A(e){return"Backspace"===e.key||"Delete"===e.key}const E=n.forwardRef((function(e,t){const o=(0,g.b)({props:e,name:"MuiChip"}),{avatar:a,className:l,clickable:h,color:m="default",component:f,deleteIcon:b,disabled:v=!1,icon:w,label:E,onClick:S,onDelete:k,onKeyDown:R,onKeyUp:M,size:I="medium",variant:P="filled",tabIndex:O,skipFocusWhenDisabled:T=!1,...$}=o,z=n.useRef(null),D=(0,u.A)(z,t),L=e=>{e.stopPropagation(),k&&k(e)},F=!(!1===h||!S)||h,N=F||k?p.A:f||"div",H={...o,component:N,disabled:v,size:I,color:m,iconColor:n.isValidElement(w)&&w.props.color||m,onDelete:!!k,clickable:F,variant:P},j=(e=>{const{classes:t,disabled:o,size:n,color:r,iconColor:a,onDelete:l,clickable:s,variant:c}=e,u={root:["root",c,o&&"disabled",`size${(0,d.A)(n)}`,`color${(0,d.A)(r)}`,s&&"clickable",s&&`clickableColor${(0,d.A)(r)}`,l&&"deletable",l&&`deletableColor${(0,d.A)(r)}`,`${c}${(0,d.A)(r)}`],label:["label",`label${(0,d.A)(n)}`],avatar:["avatar",`avatar${(0,d.A)(n)}`,`avatarColor${(0,d.A)(r)}`],icon:["icon",`icon${(0,d.A)(n)}`,`iconColor${(0,d.A)(a)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,d.A)(n)}`,`deleteIconColor${(0,d.A)(r)}`,`deleteIcon${(0,d.A)(c)}Color${(0,d.A)(r)}`]};return(0,i.A)(u,y,t)})(H),B=N===p.A?{component:f||"div",focusVisibleClassName:j.focusVisible,...k&&{disableRipple:!0}}:{};let _=null;k&&(_=b&&n.isValidElement(b)?n.cloneElement(b,{className:(0,r.A)(b.props.className,j.deleteIcon),onClick:L}):(0,s.jsx)(c,{className:j.deleteIcon,onClick:L}));let V=null;a&&n.isValidElement(a)&&(V=n.cloneElement(a,{className:(0,r.A)(j.avatar,a.props.className)}));let W=null;return w&&n.isValidElement(w)&&(W=n.cloneElement(w,{className:(0,r.A)(j.icon,w.props.className)})),(0,s.jsxs)(C,{as:N,className:(0,r.A)(j.root,l),disabled:!(!F||!v)||void 0,onClick:S,onKeyDown:e=>{e.currentTarget===e.target&&A(e)&&e.preventDefault(),R&&R(e)},onKeyUp:e=>{e.currentTarget===e.target&&k&&A(e)&&k(e),M&&M(e)},ref:D,tabIndex:T&&v?-1:O,ownerState:H,...B,...$,children:[V||W,(0,s.jsx)(x,{className:j.label,ownerState:H,children:E}),_]})}))},18877:(e,t,o)=>{"use strict";o.d(t,{_n:()=>i,rJ:()=>a});var n=o(96540);function r(){}o(68210);const i=n.createContext({}),a=()=>{const e=()=>{};return e.deprecated=r,e}},19268:(e,t,o)=>{"use strict";o.d(t,{P:()=>i,y:()=>r});var n=o(96540);const r=n.createContext({classes:{},slots:{},slotProps:{}}),i=()=>n.useContext(r)},19888:(e,t,o)=>{"use strict";e.exports=o(58493)},20488:(e,t,o)=>{"use strict";o.d(t,{A:()=>c,h:()=>p});var n=o(82284),r=o(89379),i=o(60436),a=o(87695),l=o(16300);function s(e,t,o,n){if(!t.length)return o;var l,c=(0,a.A)(t),u=c[0],d=c.slice(1);return l=e||"number"!=typeof u?Array.isArray(e)?(0,i.A)(e):(0,r.A)({},e):[],n&&void 0===o&&1===d.length?delete l[u][d[0]]:l[u]=s(l[u],d,o,n),l}function c(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&n&&void 0===o&&!(0,l.A)(e,t.slice(0,-1))?e:s(e,t,o,n)}function u(e){return Array.isArray(e)?[]:{}}var d="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function p(){for(var e=arguments.length,t=new Array(e),o=0;o{"use strict";o.d(t,{A:()=>r});var n=o(82284);function r(e){var t=function(e){if("object"!=(0,n.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},20998:(e,t,o)=>{"use strict";function n(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}o.d(t,{A:()=>n})},21124:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(46343),r=o(14921);function i({props:e,name:t,defaultTheme:o,themeId:i}){let a=(0,r.A)(o);return i&&(a=a[i]||a),(0,n.A)({theme:a,name:t,props:e})}},21942:(e,t,o)=>{"use strict";o.d(t,{A:()=>a,t:()=>i});var n=o(96148),r=o(1908);function i(e){return(0,r.Ay)("MuiDialogTitle",e)}const a=(0,n.A)("MuiDialogTitle",["root"])},22730:(e,t,o)=>{"use strict";o.d(t,{A:()=>g});var n=o(96540),r=o(34164),i=o(21362),a=o(26739),l=o(39241),s=o(20439),c=o(39407),u=o(96148),d=o(1908);function p(e){return(0,d.Ay)("MuiListSubheader",e)}(0,u.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var h=o(74848);const m=(0,a.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t[`color${(0,c.A)(o.color)}`],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((0,l.A)((({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]})))),f=n.forwardRef((function(e,t){const o=(0,s.b)({props:e,name:"MuiListSubheader"}),{className:n,color:a="default",component:l="li",disableGutters:u=!1,disableSticky:d=!1,inset:f=!1,...g}=o,b={...o,color:a,component:l,disableGutters:u,disableSticky:d,inset:f},v=(e=>{const{classes:t,color:o,disableGutters:n,inset:r,disableSticky:a}=e,l={root:["root","default"!==o&&`color${(0,c.A)(o)}`,!n&&"gutters",r&&"inset",!a&&"sticky"]};return(0,i.A)(l,p,t)})(b);return(0,h.jsx)(m,{as:l,className:(0,r.A)(v.root,n),ref:t,ownerState:b,...g})}));f&&(f.muiSkipListHighlight=!0);const g=f},23029:(e,t,o)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}o.d(t,{A:()=>n})},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24349:(e,t,o)=>{"use strict";o.d(t,{$2:()=>v,A6:()=>f,Dl:()=>a,H0:()=>i,Mz:()=>h,O8:()=>l,OQ:()=>y,Qu:()=>u,V2:()=>m,Y1:()=>p,Zy:()=>g,qj:()=>c,r:()=>d,rI:()=>s});var n=o(92661);const r=(0,n.gz)((e=>e.rows)),i=(0,n.Mz)(r,(e=>e.totalRowCount)),a=(0,n.Mz)(r,(e=>e.loading)),l=(0,n.Mz)(r,(e=>e.totalTopLevelRowCount)),s=(0,n.Mz)(r,(e=>e.dataRowIdToModelLookup)),c=((0,n.Mz)(s,((e,t)=>e[t])),(0,n.Mz)(r,(e=>e.tree))),u=(0,n.Mz)(c,((e,t)=>e[t])),d=(0,n.Mz)(r,(e=>e.groupsToFetch)),p=(0,n.Mz)(r,(e=>e.groupingName)),h=(0,n.Mz)(r,(e=>e.treeDepths)),m=(0,n.S)(r,(e=>{const t=Object.entries(e.treeDepths);return 0===t.length?1:(t.filter((([,e])=>e>0)).map((([e])=>Number(e))).sort(((e,t)=>t-e))[0]??0)+1})),f=(0,n.Mz)(r,(e=>e.dataRowIds)),g=(0,n.S)(f,s,((e,t)=>e.reduce(((e,o)=>t[o]?(e.push(t[o]),e):e),[]))),b=(0,n.Mz)(r,(e=>e?.additionalRowGroups)),v=(0,n.S)(b,(e=>{const t=e?.pinnedRows;return{bottom:t?.bottom?.map((e=>({id:e.id,model:e.model??{}})))??[],top:t?.top?.map((e=>({id:e.id,model:e.model??{}})))??[]}})),y=(0,n.Mz)(v,(e=>(e?.top?.length||0)+(e?.bottom?.length||0)))},24566:(e,t,o)=>{"use strict";o.d(t,{A:()=>a,K:()=>i});var n=o(96148),r=o(1908);function i(e){return(0,r.Ay)("MuiDivider",e)}const a=(0,n.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},25054:(e,t,o)=>{"use strict";o.d(t,{_:()=>i});var n=o(58168),r=o(96540);function i(e,t,o,i={}){return"function"==typeof t?t(o,i):t?(t.props.className&&(o.className=(s=t.props.className,c=o.className,s&&c?`${s} ${c}`:s||c)),(t.props.style||o.style)&&(o.style=(0,n.A)({},o.style,t.props.style)),(t.props.sx||o.sx)&&(o.sx=(a=o.sx,l=t.props.sx,a&&l?(Array.isArray(a)?a:[a]).concat(Array.isArray(l)?l:[l]):a||l)),r.cloneElement(t,o)):r.createElement(e,o);var a,l,s,c}},25149:(e,t,o)=>{"use strict";o.d(t,{U:()=>n});const n=(0,o(31216).M)((e=>e.id),(e=>e.treeId))},25371:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var n=function(e){return+setTimeout(e,16)},r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(n=function(e){return window.requestAnimationFrame(e)},r=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function l(e){a.delete(e)}var s=function(e){var t=i+=1;return function o(r){if(0===r)l(t),e();else{var i=n((function(){o(r-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};s.cancel=function(e){var t=a.get(e);return l(e),r(t)};const c=s},25418:(e,t,o)=>{"use strict";o.d(t,{A:()=>f});var n=o(96540),r=o(34164),i=o(21362),a=o(26739),l=o(39241),s=o(20439),c=o(96148),u=o(1908);function d(e){return(0,u.Ay)("MuiDialogContent",e)}(0,c.A)("MuiDialogContent",["root","dividers"]);var p=o(21942),h=o(74848);const m=(0,a.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dividers&&t.dividers]}})((0,l.A)((({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${p.A.root} + &`]:{paddingTop:0}}}]})))),f=n.forwardRef((function(e,t){const o=(0,s.b)({props:e,name:"MuiDialogContent"}),{className:n,dividers:a=!1,...l}=o,c={...o,dividers:a},u=(e=>{const{classes:t,dividers:o}=e,n={root:["root",o&&"dividers"]};return(0,i.A)(n,d,t)})(c);return(0,h.jsx)(m,{className:(0,r.A)(u.root,n),ownerState:c,ref:t,...l})}))},25508:(e,t,o)=>{"use strict";o.d(t,{Ad:()=>c,i5:()=>a});var n=Symbol("NOT_FOUND");var r=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var i=(e,t)=>e===t;function a(e,t){const o="object"==typeof t?t:{equalityCheck:t},{equalityCheck:r=i,maxSize:a=1,resultEqualityCheck:l}=o,s=function(e){return function(t,o){if(null===t||null===o||t.length!==o.length)return!1;const{length:n}=t;for(let r=0;rt&&e(t.key,o)?t.value:n,put(e,o){t={key:e,value:o}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(s):function(e,t){let o=[];function r(e){const r=o.findIndex((o=>t(e,o.key)));if(r>-1){const e=o[r];return r>0&&(o.splice(r,1),o.unshift(e)),e.value}return n}return{get:r,put:function(t,i){r(t)===n&&(o.unshift({key:t,value:i}),o.length>e&&o.pop())},getEntries:function(){return o},clear:function(){o=[]}}}(a,s);function d(){let t=u.get(arguments);if(t===n){if(t=e.apply(null,arguments),c++,l){const e=u.getEntries().find((e=>l(e.value,t)));e&&(t=e.value,0!==c&&c--)}u.put(arguments,t)}return t}return d.clearCache=()=>{u.clear(),d.resetResultsCount()},d.resultsCount=()=>c,d.resetResultsCount=()=>{c=0},d}var l="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function s(e,t={}){let o={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let r,i=0;function a(){let t=o;const{length:a}=arguments;for(let e=0,o=a;e{o={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function c(e,...t){const o="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,i=0,a={},l=e.pop();"object"==typeof l&&(a=l,l=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const c={...o,...a},{memoize:u,memoizeOptions:d=[],argsMemoize:p=s,argsMemoizeOptions:h=[],devModeChecks:m={}}=c,f=r(d),g=r(h),b=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const o=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${o}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),v=u((function(){return n++,l.apply(null,arguments)}),...f),y=p((function(){i++;const e=function(e,t){const o=[],{length:n}=e;for(let r=0;ri,resetDependencyRecomputations:()=>{i=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:u,argsMemoize:p})};return Object.assign(n,{withTypes:()=>n}),n}var u=c(s),d=Object.assign(((e,t=u)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const o=Object.keys(e);return t(o.map((t=>e[t])),((...e)=>e.reduce(((e,t,n)=>(e[o[n]]=t,e)),{})))}),{withTypes:()=>d})},25905:(e,t,o)=>{"use strict";o.d(t,{K8:()=>d,L9:()=>r,Nk:()=>a,Y1:()=>h,av:()=>s,dF:()=>i,jk:()=>u,jz:()=>p,t6:()=>l,vj:()=>c});var n=o(77132);const r={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t,o,n)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,i=o?`.${o}`:r,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==n&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[r]:a})}},u=(e,t)=>({outline:`${(0,n.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),d=(e,t)=>({"&:focus-visible":Object.assign({},u(e,t))}),p=e=>({[`.${e}`]:Object.assign(Object.assign({},a()),{[`.${e} .${e}-icon`]:{display:"block"}})}),h=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},d(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}})},26630:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(96540);const r=parseInt(n.version,10)},26773:(e,t,o)=>{"use strict";o.d(t,{A:()=>R});var n=o(96540),r=o(34164),i=o(21362),a=o(91092),l=o(39407),s=o(41558),c=o(99798),u=o(49565),d=o(96148),p=o(1908);function h(e){return(0,p.Ay)("MuiDialog",e)}const m=(0,d.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var f=o(58503),g=o(30016),b=o(26739),v=o(53356),y=o(39241),w=o(20439),C=o(85078),x=o(74848);const A=(0,b.Ay)(g.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),E=(0,b.Ay)(s.A,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),S=(0,b.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.container,t[`scroll${(0,l.A)(o.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),k=(0,b.Ay)(u.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.paper,t[`scrollPaper${(0,l.A)(o.scroll)}`],t[`paperWidth${(0,l.A)(String(o.maxWidth))}`],o.fullWidth&&t.paperFullWidth,o.fullScreen&&t.paperFullScreen]}})((0,y.A)((({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${m.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter((e=>"xs"!==e)).map((t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${m.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}}))),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${m.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]})))),R=n.forwardRef((function(e,t){const o=(0,w.b)({props:e,name:"MuiDialog"}),s=(0,v.A)(),d={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":p,"aria-labelledby":m,"aria-modal":g=!0,BackdropComponent:b,BackdropProps:y,children:R,className:M,disableEscapeKeyDown:I=!1,fullScreen:P=!1,fullWidth:O=!1,maxWidth:T="sm",onClick:$,onClose:z,open:D,PaperComponent:L=u.A,PaperProps:F={},scroll:N="paper",slots:H={},slotProps:j={},TransitionComponent:B=c.A,transitionDuration:_=d,TransitionProps:V,...W}=o,G={...o,disableEscapeKeyDown:I,fullScreen:P,fullWidth:O,maxWidth:T,scroll:N},K=(e=>{const{classes:t,scroll:o,maxWidth:n,fullWidth:r,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${(0,l.A)(o)}`],paper:["paper",`paperScroll${(0,l.A)(o)}`,`paperWidth${(0,l.A)(String(n))}`,r&&"paperFullWidth",a&&"paperFullScreen"]};return(0,i.A)(s,h,t)})(G),U=n.useRef(),q=(0,a.A)(m),X=n.useMemo((()=>({titleId:q})),[q]),Y={slots:{transition:B,...H},slotProps:{transition:V,paper:F,backdrop:y,...j}},[Q,J]=(0,C.A)("root",{elementType:E,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:G,className:(0,r.A)(K.root,M),ref:t}),[Z,ee]=(0,C.A)("backdrop",{elementType:A,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:G}),[te,oe]=(0,C.A)("paper",{elementType:k,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:G,className:(0,r.A)(K.paper,F.className)}),[ne,re]=(0,C.A)("container",{elementType:S,externalForwardedProps:Y,ownerState:G,className:K.container}),[ie,ae]=(0,C.A)("transition",{elementType:c.A,externalForwardedProps:Y,ownerState:G,additionalProps:{appear:!0,in:D,timeout:_,role:"presentation"}});return(0,x.jsx)(Q,{closeAfterTransition:!0,slots:{backdrop:Z},slotProps:{backdrop:{transitionDuration:_,as:b,...ee}},disableEscapeKeyDown:I,onClose:z,open:D,onClick:e=>{$&&$(e),U.current&&(U.current=null,z&&z(e,"backdropClick"))},...J,...W,children:(0,x.jsx)(ie,{...ae,children:(0,x.jsx)(ne,{onMouseDown:e=>{U.current=e.target===e.currentTarget},...re,children:(0,x.jsx)(te,{as:L,elevation:24,role:"dialog","aria-describedby":p,"aria-labelledby":q,"aria-modal":g,...oe,children:(0,x.jsx)(f.A.Provider,{value:X,children:R})})})})})}))},26956:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(96540);function r(e){var t=n.useRef();t.current=e;var o=n.useCallback((function(){for(var e,o=arguments.length,n=new Array(o),r=0;r{"use strict";o.d(t,{A:()=>Pe});var n=o(411),r=o(96540),i=o(10644),a=o(3576),l=o(24902);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){return e instanceof s(e).Element||e instanceof Element}function u(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var p=Math.max,h=Math.min,m=Math.round;function f(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(f())}function b(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var n=e.getBoundingClientRect(),r=1,i=1;t&&u(e)&&(r=e.offsetWidth>0&&m(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&m(n.height)/e.offsetHeight||1);var a=(c(e)?s(e):window).visualViewport,l=!g()&&o,d=(n.left+(l&&a?a.offsetLeft:0))/r,p=(n.top+(l&&a?a.offsetTop:0))/i,h=n.width/r,f=n.height/i;return{width:h,height:f,top:p,right:d+h,bottom:p+f,left:d,x:d,y:p}}function v(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function y(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return b(w(e)).left+v(e).scrollLeft}function x(e){return s(e).getComputedStyle(e)}function A(e){var t=x(e),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function E(e,t,o){void 0===o&&(o=!1);var n,r,i=u(t),a=u(t)&&function(e){var t=e.getBoundingClientRect(),o=m(t.width)/e.offsetWidth||1,n=m(t.height)/e.offsetHeight||1;return 1!==o||1!==n}(t),l=w(t),c=b(e,a,o),d={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!o)&&(("body"!==y(t)||A(l))&&(d=(n=t)!==s(n)&&u(n)?{scrollLeft:(r=n).scrollLeft,scrollTop:r.scrollTop}:v(n)),u(t)?((p=b(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):l&&(p.x=C(l))),{x:c.left+d.scrollLeft-p.x,y:c.top+d.scrollTop-p.y,width:c.width,height:c.height}}function S(e){var t=b(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}function k(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||w(e)}function R(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:u(e)&&A(e)?e:R(k(e))}function M(e,t){var o;void 0===t&&(t=[]);var n=R(e),r=n===(null==(o=e.ownerDocument)?void 0:o.body),i=s(n),a=r?[i].concat(i.visualViewport||[],A(n)?n:[]):n,l=t.concat(a);return r?l:l.concat(M(k(a)))}function I(e){return["table","td","th"].indexOf(y(e))>=0}function P(e){return u(e)&&"fixed"!==x(e).position?e.offsetParent:null}function O(e){for(var t=s(e),o=P(e);o&&I(o)&&"static"===x(o).position;)o=P(o);return o&&("html"===y(o)||"body"===y(o)&&"static"===x(o).position)?t:o||function(e){var t=/firefox/i.test(f());if(/Trident/i.test(f())&&u(e)&&"fixed"===x(e).position)return null;var o=k(e);for(d(o)&&(o=o.host);u(o)&&["html","body"].indexOf(y(o))<0;){var n=x(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(e)||t}var T="top",$="bottom",z="right",D="left",L="auto",F=[T,$,z,D],N="start",H="end",j="viewport",B="popper",_=F.reduce((function(e,t){return e.concat([t+"-"+N,t+"-"+H])}),[]),V=[].concat(F,[L]).reduce((function(e,t){return e.concat([t,t+"-"+N,t+"-"+H])}),[]),W=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function G(e){var t=new Map,o=new Set,n=[];function r(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||r(e)})),n}var K={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),o=0;o=0?"x":"y"}function Z(e){var t,o=e.reference,n=e.element,r=e.placement,i=r?Y(r):null,a=r?Q(r):null,l=o.x+o.width/2-n.width/2,s=o.y+o.height/2-n.height/2;switch(i){case T:t={x:l,y:o.y-n.height};break;case $:t={x:l,y:o.y+o.height};break;case z:t={x:o.x+o.width,y:s};break;case D:t={x:o.x-n.width,y:s};break;default:t={x:o.x,y:o.y}}var c=i?J(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case N:t[c]=t[c]-(o[u]/2-n[u]/2);break;case H:t[c]=t[c]+(o[u]/2-n[u]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,o=e.popper,n=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=a.x,f=void 0===h?0:h,g=a.y,b=void 0===g?0:g,v="function"==typeof d?d({x:f,y:b}):{x:f,y:b};f=v.x,b=v.y;var y=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),A=D,E=T,S=window;if(u){var k=O(o),R="clientHeight",M="clientWidth";k===s(o)&&"static"!==x(k=w(o)).position&&"absolute"===l&&(R="scrollHeight",M="scrollWidth"),(r===T||(r===D||r===z)&&i===H)&&(E=$,b-=(p&&k===S&&S.visualViewport?S.visualViewport.height:k[R])-n.height,b*=c?1:-1),r!==D&&(r!==T&&r!==$||i!==H)||(A=z,f-=(p&&k===S&&S.visualViewport?S.visualViewport.width:k[M])-n.width,f*=c?1:-1)}var I,P=Object.assign({position:l},u&&ee),L=!0===d?function(e,t){var o=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:m(o*r)/r||0,y:m(n*r)/r||0}}({x:f,y:b},s(o)):{x:f,y:b};return f=L.x,b=L.y,c?Object.assign({},P,((I={})[E]=C?"0":"",I[A]=y?"0":"",I.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+b+"px)":"translate3d("+f+"px, "+b+"px, 0)",I)):Object.assign({},P,((t={})[E]=C?b+"px":"",t[A]=y?f+"px":"",t.transform="",t))}var oe={left:"right",right:"left",bottom:"top",top:"bottom"};function ne(e){return e.replace(/left|right|bottom|top/g,(function(e){return oe[e]}))}var re={start:"end",end:"start"};function ie(e){return e.replace(/start|end/g,(function(e){return re[e]}))}function ae(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&d(o)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function se(e,t,o){return t===j?le(function(e,t){var o=s(e),n=w(e),r=o.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;var u=g();(u||!u&&"fixed"===t)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+C(e),y:c}}(e,o)):c(t)?function(e,t){var o=b(e,!1,"fixed"===t);return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}(t,o):le(function(e){var t,o=w(e),n=v(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=p(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=p(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-n.scrollLeft+C(e),s=-n.scrollTop;return"rtl"===x(r||o).direction&&(l+=p(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(w(e)))}function ce(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ue(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}function de(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=void 0===n?e.placement:n,i=o.strategy,a=void 0===i?e.strategy:i,l=o.boundary,s=void 0===l?"clippingParents":l,d=o.rootBoundary,m=void 0===d?j:d,f=o.elementContext,g=void 0===f?B:f,v=o.altBoundary,C=void 0!==v&&v,A=o.padding,E=void 0===A?0:A,S=ce("number"!=typeof E?E:ue(E,F)),R=g===B?"reference":B,I=e.rects.popper,P=e.elements[C?R:g],D=function(e,t,o,n){var r="clippingParents"===t?function(e){var t=M(k(e)),o=["absolute","fixed"].indexOf(x(e).position)>=0&&u(e)?O(e):e;return c(o)?t.filter((function(e){return c(e)&&ae(e,o)&&"body"!==y(e)})):[]}(e):[].concat(t),i=[].concat(r,[o]),a=i[0],l=i.reduce((function(t,o){var r=se(e,o,n);return t.top=p(r.top,t.top),t.right=h(r.right,t.right),t.bottom=h(r.bottom,t.bottom),t.left=p(r.left,t.left),t}),se(e,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(c(P)?P:P.contextElement||w(e.elements.popper),s,m,a),L=b(e.elements.reference),N=Z({reference:L,element:I,strategy:"absolute",placement:r}),H=le(Object.assign({},I,N)),_=g===B?H:L,V={top:D.top-_.top+S.top,bottom:_.bottom-D.bottom+S.bottom,left:D.left-_.left+S.left,right:_.right-D.right+S.right},W=e.modifiersData.offset;if(g===B&&W){var G=W[r];Object.keys(V).forEach((function(e){var t=[z,$].indexOf(e)>=0?1:-1,o=[T,$].indexOf(e)>=0?"y":"x";V[e]+=G[o]*t}))}return V}function pe(e,t,o){return p(e,h(t,o))}function he(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function me(e){return[T,z,$,D].some((function(t){return e[t]>=0}))}var fe=q({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,n=e.options,r=n.scroll,i=void 0===r||r,a=n.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",o.update,X)})),l&&c.addEventListener("resize",o.update,X),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",o.update,X)})),l&&c.removeEventListener("resize",o.update,X)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=void 0===n||n,i=o.adaptive,a=void 0===i||i,l=o.roundOffsets,s=void 0===l||l,c={placement:Y(t.placement),variation:Q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];u(r)&&y(r)&&(Object.assign(r.style,o),Object.keys(n).forEach((function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});u(n)&&y(n)&&(Object.assign(n.style,i),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.offset,i=void 0===r?[0,0]:r,a=V.reduce((function(e,o){return e[o]=function(e,t,o){var n=Y(e),r=[D,T].indexOf(n)>=0?-1:1,i="function"==typeof o?o(Object.assign({},t,{placement:e})):o,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[D,z].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}(o,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=o.mainAxis,i=void 0===r||r,a=o.altAxis,l=void 0===a||a,s=o.fallbackPlacements,c=o.padding,u=o.boundary,d=o.rootBoundary,p=o.altBoundary,h=o.flipVariations,m=void 0===h||h,f=o.allowedAutoPlacements,g=t.options.placement,b=Y(g),v=s||(b!==g&&m?function(e){if(Y(e)===L)return[];var t=ne(e);return[ie(e),t,ie(t)]}(g):[ne(g)]),y=[g].concat(v).reduce((function(e,o){return e.concat(Y(o)===L?function(e,t){void 0===t&&(t={});var o=t,n=o.placement,r=o.boundary,i=o.rootBoundary,a=o.padding,l=o.flipVariations,s=o.allowedAutoPlacements,c=void 0===s?V:s,u=Q(n),d=u?l?_:_.filter((function(e){return Q(e)===u})):F,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,o){return t[o]=de(e,{placement:o,boundary:r,rootBoundary:i,padding:a})[Y(o)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:o,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:f}):o)}),[]),w=t.rects.reference,C=t.rects.popper,x=new Map,A=!0,E=y[0],S=0;S=0,P=I?"width":"height",O=de(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),H=I?M?z:D:M?$:T;w[P]>C[P]&&(H=ne(H));var j=ne(H),B=[];if(i&&B.push(O[R]<=0),l&&B.push(O[H]<=0,O[j]<=0),B.every((function(e){return e}))){E=k,A=!1;break}x.set(k,B)}if(A)for(var W=function(e){var t=y.find((function(t){var o=x.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},G=m?3:1;G>0&&"break"!==W(G);G--);t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.mainAxis,i=void 0===r||r,a=o.altAxis,l=void 0!==a&&a,s=o.boundary,c=o.rootBoundary,u=o.altBoundary,d=o.padding,m=o.tether,f=void 0===m||m,g=o.tetherOffset,b=void 0===g?0:g,v=de(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),y=Y(t.placement),w=Q(t.placement),C=!w,x=J(y),A="x"===x?"y":"x",E=t.modifiersData.popperOffsets,k=t.rects.reference,R=t.rects.popper,M="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,I="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(i){var F,H="y"===x?T:D,j="y"===x?$:z,B="y"===x?"height":"width",_=E[x],V=_+v[H],W=_-v[j],G=f?-R[B]/2:0,K=w===N?k[B]:R[B],U=w===N?-R[B]:-k[B],q=t.elements.arrow,X=f&&q?S(q):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Z[H],te=Z[j],oe=pe(0,k[B],X[B]),ne=C?k[B]/2-G-oe-ee-I.mainAxis:K-oe-ee-I.mainAxis,re=C?-k[B]/2+G+oe+te+I.mainAxis:U+oe+te+I.mainAxis,ie=t.elements.arrow&&O(t.elements.arrow),ae=ie?"y"===x?ie.clientTop||0:ie.clientLeft||0:0,le=null!=(F=null==P?void 0:P[x])?F:0,se=_+re-le,ce=pe(f?h(V,_+ne-le-ae):V,_,f?p(W,se):W);E[x]=ce,L[x]=ce-_}if(l){var ue,he="x"===x?T:D,me="x"===x?$:z,fe=E[A],ge="y"===A?"height":"width",be=fe+v[he],ve=fe-v[me],ye=-1!==[T,D].indexOf(y),we=null!=(ue=null==P?void 0:P[A])?ue:0,Ce=ye?be:fe-k[ge]-R[ge]-we+I.altAxis,xe=ye?fe+k[ge]+R[ge]-we-I.altAxis:ve,Ae=f&&ye?function(e,t,o){var n=pe(e,t,o);return n>o?o:n}(Ce,fe,xe):pe(f?Ce:be,fe,f?xe:ve);E[A]=Ae,L[A]=Ae-fe}t.modifiersData[n]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,n=e.name,r=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,l=Y(o.placement),s=J(l),c=[D,z].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return ce("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ue(e,F))}(r.padding,o),d=S(i),p="y"===s?T:D,h="y"===s?$:z,m=o.rects.reference[c]+o.rects.reference[s]-a[s]-o.rects.popper[c],f=a[s]-o.rects.reference[s],g=O(i),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=m/2-f/2,y=u[p],w=b-d[c]-u[h],C=b/2-d[c]/2+v,x=pe(y,C,w),A=s;o.modifiersData[n]=((t={})[A]=x,t.centerOffset=x-C,t)}},effect:function(e){var t=e.state,o=e.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ae(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,n=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=de(t,{elementContext:"reference"}),l=de(t,{altBoundary:!0}),s=he(a,n),c=he(l,r,i),u=me(s),d=me(c);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),ge=o(21362),be=o(53948),ve=o(94034),ye=o(96148),we=o(1908);function Ce(e){return(0,we.Ay)("MuiPopper",e)}(0,ye.A)("MuiPopper",["root"]);var xe=o(74848);function Ae(e){return"function"==typeof e?e():e}const Ee={},Se=r.forwardRef((function(e,t){const{anchorEl:o,children:n,direction:i,disablePortal:s,modifiers:c,open:u,placement:d,popperOptions:p,popperRef:h,slotProps:m={},slots:f={},TransitionProps:g,ownerState:b,...v}=e,y=r.useRef(null),w=(0,l.A)(y,t),C=r.useRef(null),x=(0,l.A)(C,h),A=r.useRef(x);(0,a.A)((()=>{A.current=x}),[x]),r.useImperativeHandle(h,(()=>C.current),[]);const E=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,i),[S,k]=r.useState(E),[R,M]=r.useState(Ae(o));r.useEffect((()=>{C.current&&C.current.forceUpdate()})),r.useEffect((()=>{o&&M(Ae(o))}),[o]),(0,a.A)((()=>{if(!R||!u)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{k(e.placement)}}];null!=c&&(e=e.concat(c)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=fe(R,y.current,{placement:E,...p,modifiers:e});return A.current(t),()=>{t.destroy(),A.current(null)}}),[R,s,c,u,p,E]);const I={placement:S};null!==g&&(I.TransitionProps=g);const P=(e=>{const{classes:t}=e;return(0,ge.A)({root:["root"]},Ce,t)})(e),O=f.root??"div",T=(0,be.A)({elementType:O,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:P.root});return(0,xe.jsx)(O,{...T,children:"function"==typeof n?n(I):n})})),ke=r.forwardRef((function(e,t){const{anchorEl:o,children:n,container:a,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:h=Ee,popperRef:m,style:f,transition:g=!1,slotProps:b={},slots:v={},...y}=e,[w,C]=r.useState(!0);if(!c&&!d&&(!g||w))return null;let x;if(a)x=a;else if(o){const e=Ae(o);x=e&&void 0!==e.nodeType?(0,i.A)(e).body:(0,i.A)(null).body}const A=d||!c||g&&!w?void 0:"none",E=g?{in:d,onEnter:()=>{C(!1)},onExited:()=>{C(!0)}}:void 0;return(0,xe.jsx)(ve.A,{disablePortal:s,container:x,children:(0,xe.jsx)(Se,{anchorEl:o,direction:l,disablePortal:s,modifiers:u,ref:t,open:g?!w:d,placement:p,popperOptions:h,popperRef:m,slotProps:b,slots:v,...y,style:{position:"fixed",top:0,left:0,display:A,...f},TransitionProps:E,children:n})})}));var Re=o(26739),Me=o(20439);const Ie=(0,Re.Ay)(ke,{name:"MuiPopper",slot:"Root"})({}),Pe=r.forwardRef((function(e,t){const o=(0,n.I)(),r=(0,Me.b)({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:m,popperOptions:f,popperRef:g,transition:b,slots:v,slotProps:y,...w}=r,C=v?.root??l?.Root,x={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:m,popperOptions:f,popperRef:g,transition:b,...w};return(0,xe.jsx)(Ie,{as:a,direction:o?"rtl":"ltr",slots:{root:C},slotProps:y??s,...x,ref:t})}))},27629:(e,t,o)=>{"use strict";o.d(t,{A:()=>I});var n=o(96540),r=o(34164),i=o(21362),a=o(82777),l=o(42722),s=o(9792),c=o(74848);const u=(0,s.A)((0,c.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),d=(0,s.A)((0,c.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),p=(0,s.A)((0,c.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var h=o(39407),m=o(98855),f=o(96148),g=o(1908);function b(e){return(0,g.Ay)("MuiCheckbox",e)}const v=(0,f.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var y=o(26739),w=o(39241),C=o(1321),x=o(20439),A=o(98663),E=o(85078);const S=(0,y.Ay)(l.A,{shouldForwardProp:e=>(0,m.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,t[`size${(0,h.A)(o.size)}`],"default"!==o.color&&t[`color${(0,h.A)(o.color)}`]]}})((0,w.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,a.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,C.A)()).map((([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,a.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter((0,C.A)()).map((([t])=>({props:{color:t},style:{[`&.${v.checked}, &.${v.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${v.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),k=(0,c.jsx)(d,{}),R=(0,c.jsx)(u,{}),M=(0,c.jsx)(p,{}),I=n.forwardRef((function(e,t){const o=(0,x.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=k,color:l="primary",icon:s=R,indeterminate:u=!1,indeterminateIcon:d=M,inputProps:p,size:m="medium",disableRipple:f=!1,className:g,slots:v={},slotProps:y={},...w}=o,C=u?d:s,I=u?d:a,P={...o,disableRipple:f,color:l,indeterminate:u,size:m},O=(e=>{const{classes:t,indeterminate:o,color:n,size:r}=e,a={root:["root",o&&"indeterminate",`color${(0,h.A)(n)}`,`size${(0,h.A)(r)}`]},l=(0,i.A)(a,b,t);return{...t,...l}})(P),T=y.input??p,[$,z]=(0,E.A)("root",{ref:t,elementType:S,className:(0,r.A)(O.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:y,...w},ownerState:P,additionalProps:{type:"checkbox",icon:n.cloneElement(C,{fontSize:C.props.fontSize??m}),checkedIcon:n.cloneElement(I,{fontSize:I.props.fontSize??m}),disableRipple:f,slots:v,slotProps:{input:(0,A.A)("function"==typeof T?T(P):T,{"data-indeterminate":u})}}});return(0,c.jsx)($,{...z,classes:O})}))},27668:(e,t,o)=>{"use strict";o.d(t,{QQ:()=>s,Rt:()=>c,cP:()=>u,js:()=>l,l$:()=>a});var n=o(31216),r=o(10786);const i=e=>e.expansion,a=(0,n.M)([i],(e=>e.expandedItems)),l=(0,n.M)([a],(e=>{const t=new Map;return e.forEach((e=>{t.set(e,!0)})),t})),s=(0,n.M)([l,(e,t)=>t],((e,t)=>e.has(t))),c=(0,n.M)([r.uP],(e=>e?.expandable??!1)),u=(0,n.M)([i],(e=>e.expansionTrigger))},27800:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(43145);function r(e,t){if(e){if("string"==typeof e)return(0,n.A)(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?(0,n.A)(e,t):void 0}}},27961:(e,t,o)=>{"use strict";o.d(t,{P:()=>r,w:()=>i});var n=o(96540);const r=n.createContext(void 0);function i(){const e=n.useContext(r);if(void 0===e)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a component.");return e}},28104:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(96540);function r(e,t,o){var r=n.useRef({});return"value"in r.current&&!o(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}},28525:(e,t,o)=>{"use strict";o.d(t,{x:()=>p});var n=o(58168),r=o(98587),i=o(96540),a=o(51280),l=o(25054),s=o(77866),c=o(43203),u=o(74848);const d=["render","className","onClick"],p=(0,a.R)((function(e,t){const{render:o,className:a,onClick:p}=e,h=(0,r.A)(e,d),m=(0,s.A)(),{state:f,clearValue:g}=(0,c.q)(),b="function"==typeof a?a(f):a,v=(0,l._)(m.slots.baseIconButton,o,(0,n.A)({},m.slotProps?.baseIconButton,{className:b,tabIndex:-1},h,{onClick:e=>{g(),p?.(e)},ref:t}),f);return(0,u.jsx)(i.Fragment,{children:v})}))},28540:(e,t,o)=>{"use strict";o.d(t,{F1:()=>c,HG:()=>s,HZ:()=>h,XR:()=>u,c2:()=>d,eI:()=>a,ig:()=>l,nz:()=>p});var n=o(27668),r=o(10786);const i=(e,t)=>{let o=t.length-1;for(;o>=0&&!(0,r.P$)(e,t[o]);)o-=1;if(-1!==o)return t[o]},a=(e,t)=>{const o=(0,r.uP)(e,t);if(!o)return null;const l=(0,r.p1)(e,o.parentId),s=(0,r.tm)(e,t);if(0===s)return o.parentId;let c=s-1;for(;!(0,r.P$)(e,l[c])&&c>=0;)c-=1;if(-1===c)return null==o.parentId?null:a(e,o.parentId);let u=l[c],d=i(e,(0,r.p1)(e,u));for(;(0,n.QQ)(e,u)&&null!=d;)u=d,d=i(e,(0,r.p1)(e,u));return u},l=(e,t)=>{if((0,n.QQ)(e,t)){const o=(0,r.p1)(e,t).find((t=>(0,r.P$)(e,t)));if(null!=o)return o}let o=(0,r.uP)(e,t);for(;null!=o;){const t=(0,r.p1)(e,o.parentId),n=(0,r.tm)(e,o.id);if(n{let t=null;for(;null==t||(0,n.QQ)(e,t);){const o=(0,r.p1)(e,t),n=i(e,o);if(null==n)return t;t=n}return t},c=e=>(0,r.p1)(e,null).find((t=>(0,r.P$)(e,t))),u=(e,t,o)=>{if(t===o)return[t,o];const n=(0,r.uP)(e,t),i=(0,r.uP)(e,o);if(!n||!i)return[t,o];if(n.parentId===i.id||i.parentId===n.id)return i.parentId===n.id?[n.id,i.id]:[i.id,n.id];const a=[n.id],l=[i.id];let s=n.parentId,c=i.parentId,u=-1!==l.indexOf(s),d=-1!==a.indexOf(c),p=!0,h=!0;for(;!d&&!u;)p&&(a.push(s),u=-1!==l.indexOf(s),p=null!==s,!u&&p&&(s=(0,r.YW)(e,s))),h&&!u&&(l.push(c),d=-1!==a.indexOf(c),h=null!==c,!d&&h&&(c=(0,r.YW)(e,c)));const m=u?s:c,f=(0,r.p1)(e,m),g=a[a.indexOf(m)-1],b=l[l.indexOf(m)-1];return f.indexOf(g){const i=t=>{if((0,n.Rt)(e,t)&&(0,n.QQ)(e,t))return(0,r.p1)(e,t)[0];let o=(0,r.uP)(e,t);for(;null!=o;){const t=(0,r.p1)(e,o.parentId),n=(0,r.tm)(e,o.id);if(n{let t=c(e);const o=[];for(;null!=t;)o.push(t),t=l(e,t);return o},h=(e,t)=>t!==e.closest('*[role="treeitem"]')},29312:(e,t,o)=>{"use strict";o.d(t,{A:()=>a,b:()=>i});var n=o(96148),r=o(1908);function i(e){return(0,r.Ay)("MuiListItemText",e)}const a=(0,n.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},29401:(e,t,o)=>{"use strict";o.d(t,{d:()=>i});var n=o(78418);const r=Object.is,i=(e,t,o=void 0,i=r)=>(0,n.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,(e=>t(e,o)),i)},29677:(e,t,o)=>{"use strict";o.d(t,{F:()=>r,i:()=>i});var n=o(96540);const r=n.createContext(null),i=()=>{const e=n.useContext(r);if(null==e)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join("\n"));return e}},30981:(e,t,o)=>{"use strict";o.d(t,{A:()=>l,o:()=>a});var n=o(96540),r=(0,o(20998).A)()?n.useLayoutEffect:n.useEffect,i=function(e,t){var o=n.useRef(!0);r((function(){return e(o.current)}),t),r((function(){return o.current=!1,function(){o.current=!0}}),[])},a=function(e,t){i((function(t){if(!t)return e()}),t)};const l=i},31216:(e,t,o)=>{"use strict";o.d(t,{M:()=>a});var n=o(25508);const r=(0,n.Ad)({memoize:n.i5,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),i=new WeakMap,a=(...e)=>(t,o)=>{const n=t.cacheKey;let a=i.get(n);a||(a=new Map,i.set(n,a));const l=a.get(e);if(l)return l(t,o);const s=r(...e);return a.set(e,s),s(t,o)}},31418:(e,t,o)=>{"use strict";o.d(t,{I$:()=>d,L6:()=>u,U_:()=>c,hc:()=>s});var n=o(31216),r=o(64938),i=o(10786),a=o(60957),l=o(27668);const s=(0,n.M)([r.Go,l.js,i.Ks,i.tw,e=>(0,i.p1)(e,null)],((e,t,o,n,r)=>{const i=e.find((e=>{if(!n&&(0,a.gE)(o,e))return!1;const r=o[e];return r&&(null==r.parentId||t.has(r.parentId))}));if(null!=i)return i;const l=r.find((e=>n||!(0,a.gE)(o,e)));return null!=l?l:null})),c=(0,n.M)([s,(e,t)=>t],((e,t)=>e===t)),u=(0,n.M)((e=>e.focus),(e=>e.focusedItemId)),d=(0,n.M)([u,(e,t)=>t],((e,t)=>e===t))},31800:e=>{var t=/\s/;e.exports=function(e){for(var o=e.length;o--&&t.test(e.charAt(o)););return o}},32067:(e,t,o)=>{"use strict";o.d(t,{Ai:()=>C,O7:()=>v,RN:()=>y,ZI:()=>c,ee:()=>w,em:()=>h,od:()=>x,q6:()=>u,qA:()=>g,tW:()=>b,ux:()=>m,wx:()=>p});var n=o(34790),r=o(92661),i=o(5009),a=o(47211),l=o(24349);const s=(0,r.gz)((e=>e.filter)),c=(0,r.Mz)(s,(e=>e.filterModel)),u=(0,r.Mz)(c,(e=>e.quickFilterValues)),d=(0,r.gz)((e=>e.visibleRowsLookup)),p=(0,r.Mz)(s,(e=>e.filteredRowsLookup)),h=((0,r.Mz)(s,(e=>e.filteredChildrenCountLookup)),(0,r.Mz)(s,(e=>e.filteredDescendantCountLookup)),(0,r.S)(d,i.J6,((e,t)=>(0,n.Z)(e)?t:t.filter((t=>!1!==e[t.id]))))),m=(0,r.S)(h,(e=>e.map((e=>e.id)))),f=(0,r.S)(p,i.J6,((e,t)=>(0,n.Z)(e)?t:t.filter((t=>!1!==e[t.id])))),g=(0,r.S)(f,(e=>e.map((e=>e.id)))),b=((0,r.S)(m,l.qj,((e,t)=>{const o={};let n=0;return e.reduce(((e,r)=>{const i=t[r];return o[i.depth]||(o[i.depth]=0),i.depth>n&&(o[i.depth]=0),n=i.depth,o[i.depth]+=1,e[r]=o[i.depth],e}),{})})),(0,r.S)(h,l.qj,l.V2,((e,t,o)=>o<2?e:e.filter((e=>0===t[e.id]?.depth))))),v=(0,r.Mz)(h,(e=>e.length)),y=(0,r.Mz)(b,(e=>e.length)),w=(0,r.Mz)(f,(e=>e.length)),C=((0,r.Mz)(w,y,((e,t)=>e-t)),(0,r.S)(c,a.gv,((e,t)=>e.items?.filter((e=>{if(!e.field)return!1;const o=t[e.field];if(!o?.filterOperators||0===o?.filterOperators?.length)return!1;const n=o.filterOperators.find((t=>t.value===e.operator));return!!n&&(!n.InputComponent||null!=e.value&&""!==e.value?.toString())}))))),x=(0,r.S)(C,(e=>e.reduce(((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e)),{})))},32675:(e,t,o)=>{"use strict";o.d(t,{m:()=>h});var n=o(58168),r=o(98587),i=o(96540),a=o(51280),l=o(25054),s=o(24902),c=o(77866),u=o(43203),d=o(74848);const p=["render","className","onClick"],h=(0,a.R)((function(e,t){const{render:o,className:a,onClick:h}=e,m=(0,r.A)(e,p),f=(0,c.A)(),{state:g,controlId:b,onExpandedChange:v,triggerRef:y}=(0,u.q)(),w="function"==typeof a?a(g):a,C=(0,s.A)(y,t),x=(0,l._)(f.slots.baseButton,o,(0,n.A)({},f.slotProps?.baseButton,{className:w,"aria-controls":b,"aria-expanded":g.expanded},m,{onClick:e=>{v(!g.expanded),h?.(e)},ref:C}),g);return(0,d.jsx)(i.Fragment,{children:x})}))},34552:(e,t,o)=>{"use strict";o.d(t,{m6:()=>m,BD:()=>f});var n=o(89379),r=o(20998),i="data-rc-order",a="data-rc-priority",l="rc-util-key",s=new Map;function c(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):l}function u(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return Array.from((s.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.A)())return null;var o=t.csp,n=t.prepend,l=t.priority,s=void 0===l?0:l,c=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n),p="prependQueue"===c,h=document.createElement("style");h.setAttribute(i,c),p&&s&&h.setAttribute(a,"".concat(s)),null!=o&&o.nonce&&(h.nonce=null==o?void 0:o.nonce),h.innerHTML=e;var m=u(t),f=m.firstChild;if(n){if(p){var g=(t.styles||d(m)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(i)))return!1;var t=Number(e.getAttribute(a)||0);return s>=t}));if(g.length)return m.insertBefore(h,g[g.length-1].nextSibling),h}m.insertBefore(h,f)}else m.appendChild(h);return h}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=u(t);return(t.styles||d(o)).find((function(o){return o.getAttribute(c(t))===e}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=h(e,t);o&&u(t).removeChild(o)}function f(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=u(o),i=d(r),a=(0,n.A)((0,n.A)({},o),{},{styles:i});!function(e,t){var o=s.get(e);if(!o||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var o=t;o;){if(o===e)return!0;o=o.parentNode}return!1}(document,o)){var n=p("",t),r=n.parentNode;s.set(e,r),e.removeChild(n)}}(r,a);var l,m,f,g=h(t,a);if(g)return null!==(l=a.csp)&&void 0!==l&&l.nonce&&g.nonce!==(null===(m=a.csp)||void 0===m?void 0:m.nonce)&&(g.nonce=null===(f=a.csp)||void 0===f?void 0:f.nonce),g.innerHTML!==e&&(g.innerHTML=e),g;var b=p(e,a);return b.setAttribute(c(a),t),b}},34790:(e,t,o)=>{"use strict";function n(e){for(const t in e)return!1;return!0}o.d(t,{Z:()=>n})},34840:(e,t,o)=>{var n="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g;e.exports=n},35124:(e,t,o)=>{"use strict";o.d(t,{A:()=>v});var n=o(96540),r=o(34164),i=o(21362),a=o(4977),l=o(26739),s=o(39241),c=o(20439),u=o(39407),d=o(1321),p=o(91790),h=o(74848);const m={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},f=(0,a.Dg)(),g=(0,l.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.variant&&t[o.variant],"inherit"!==o.align&&t[`align${(0,u.A)(o.align)}`],o.noWrap&&t.noWrap,o.gutterBottom&&t.gutterBottom,o.paragraph&&t.paragraph]}})((0,s.A)((({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter((([e,t])=>"inherit"!==e&&t&&"object"==typeof t)).map((([e,t])=>({props:{variant:e},style:t}))),...Object.entries(e.palette).filter((0,d.A)()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette?.text||{}).filter((([,e])=>"string"==typeof e)).map((([t])=>({props:{color:`text${(0,u.A)(t)}`},style:{color:(e.vars||e).palette.text[t]}}))),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]})))),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},v=n.forwardRef((function(e,t){const{color:o,...n}=(0,c.b)({props:e,name:"MuiTypography"}),a=f({...n,...!m[o]&&{color:o}}),{align:l="inherit",className:s,component:d,gutterBottom:v=!1,noWrap:y=!1,paragraph:w=!1,variant:C="body1",variantMapping:x=b,...A}=a,E={...a,align:l,color:o,className:s,component:d,gutterBottom:v,noWrap:y,paragraph:w,variant:C,variantMapping:x},S=d||(w?"p":x[C]||b[C])||"span",k=(e=>{const{align:t,gutterBottom:o,noWrap:n,paragraph:r,variant:a,classes:l}=e,s={root:["root",a,"inherit"!==e.align&&`align${(0,u.A)(t)}`,o&&"gutterBottom",n&&"noWrap",r&&"paragraph"]};return(0,i.A)(s,p.y,l)})(E);return(0,h.jsx)(g,{as:S,ref:t,className:(0,r.A)(k.root,s),...A,ownerState:E,style:{..."inherit"!==l&&{"--Typography-textAlign":l},...A.style}})}))},37523:(e,t,o)=>{"use strict";o.d(t,{A:()=>i}),o(96540);var n=o(9792),r=o(74848);const i=(0,n.A)((0,r.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},37603:(e,t,o)=>{"use strict";o.d(t,{A:()=>E});var n=o(96540),r=o(34164),i=o(21362),a=o(82777),l=o(98855),s=o(26739),c=o(39241),u=o(20439),d=o(40583),p=o(38329),h=o(37313),m=o(30301),f=o(24566),g=o(42812),b=o(29312),v=o(96148),y=o(1908);function w(e){return(0,y.Ay)("MuiMenuItem",e)}const C=(0,v.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var x=o(74848);const A=(0,s.Ay)(p.A,{shouldForwardProp:e=>(0,l.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]}})((0,c.A)((({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${C.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,a.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${C.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,a.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${C.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,a.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,a.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${C.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${C.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${f.A.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${f.A.inset}`]:{marginLeft:52},[`& .${b.A.root}`]:{marginTop:0,marginBottom:0},[`& .${b.A.inset}`]:{paddingLeft:36},[`& .${g.A.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${g.A.root} svg`]:{fontSize:"1.25rem"}}}]})))),E=n.forwardRef((function(e,t){const o=(0,u.b)({props:e,name:"MuiMenuItem"}),{autoFocus:a=!1,component:l="li",dense:s=!1,divider:c=!1,disableGutters:p=!1,focusVisibleClassName:f,role:g="menuitem",tabIndex:b,className:v,...y}=o,C=n.useContext(d.A),E=n.useMemo((()=>({dense:s||C.dense||!1,disableGutters:p})),[C.dense,s,p]),S=n.useRef(null);(0,h.A)((()=>{a&&S.current&&S.current.focus()}),[a]);const k={...o,dense:E.dense,divider:c,disableGutters:p},R=(e=>{const{disabled:t,dense:o,divider:n,disableGutters:r,selected:a,classes:l}=e,s={root:["root",o&&"dense",t&&"disabled",!r&&"gutters",n&&"divider",a&&"selected"]},c=(0,i.A)(s,w,l);return{...l,...c}})(o),M=(0,m.A)(S,t);let I;return o.disabled||(I=void 0!==b?b:-1),(0,x.jsx)(d.A.Provider,{value:E,children:(0,x.jsx)(A,{ref:M,role:g,tabIndex:I,component:l,focusVisibleClassName:(0,r.A)(R.focusVisible,f),className:(0,r.A)(R.root,v),...y,ownerState:k,classes:R})})}))},37768:(e,t,o)=>{"use strict";o.d(t,{A:()=>y});var n=o(96540),r=o(34164),i=o(21362),a=o(82777),l=o(54587),s=o(26739),c=o(39241),u=o(1321),d=o(20439),p=o(38329),h=o(8861),m=o(39407),f=o(38490),g=o(74848);const b=(0,s.Ay)(p.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.loading&&t.loading,"default"!==o.color&&t[`color${(0,m.A)(o.color)}`],o.edge&&t[`edge${(0,m.A)(o.edge)}`],t[`size${(0,m.A)(o.size)}`]]}})((0,c.A)((({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,a.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]}))),(0,c.A)((({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter((0,u.A)()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette).filter((0,u.A)()).map((([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,a.X4)((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}}))),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${f.A.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${f.A.loading}`]:{color:"transparent"}})))),v=(0,s.Ay)("span",{name:"MuiIconButton",slot:"LoadingIndicator"})((({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]}))),y=n.forwardRef((function(e,t){const o=(0,d.b)({props:e,name:"MuiIconButton"}),{edge:n=!1,children:a,className:s,color:c="default",disabled:u=!1,disableFocusRipple:p=!1,size:y="medium",id:w,loading:C=null,loadingIndicator:x,...A}=o,E=(0,l.A)(w),S=x??(0,g.jsx)(h.A,{"aria-labelledby":E,color:"inherit",size:16}),k={...o,edge:n,color:c,disabled:u,disableFocusRipple:p,loading:C,loadingIndicator:S,size:y},R=(e=>{const{classes:t,disabled:o,color:n,edge:r,size:a,loading:l}=e,s={root:["root",l&&"loading",o&&"disabled","default"!==n&&`color${(0,m.A)(n)}`,r&&`edge${(0,m.A)(r)}`,`size${(0,m.A)(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return(0,i.A)(s,f.G,t)})(k);return(0,g.jsxs)(b,{id:C?E:w,className:(0,r.A)(R.root,s),centerRipple:!0,focusRipple:!p,disabled:u||C,ref:t,...A,ownerState:k,children:["boolean"==typeof C&&(0,g.jsx)("span",{className:R.loadingWrapper,style:{display:"contents"},children:(0,g.jsx)(v,{className:R.loadingIndicator,ownerState:k,children:C&&S})}),a]})}))},37786:(e,t,o)=>{"use strict";o.d(t,{A:()=>m});var n=o(96540),r=o(34164),i=o(21362),a=o(26739),l=o(39241),s=o(20439),c=o(96148),u=o(1908);function d(e){return(0,u.Ay)("MuiAccordionDetails",e)}(0,c.A)("MuiAccordionDetails",["root"]);var p=o(74848);const h=(0,a.Ay)("div",{name:"MuiAccordionDetails",slot:"Root"})((0,l.A)((({theme:e})=>({padding:e.spacing(1,2,2)})))),m=n.forwardRef((function(e,t){const o=(0,s.b)({props:e,name:"MuiAccordionDetails"}),{className:n,...a}=o,l=o,c=(e=>{const{classes:t}=e;return(0,i.A)({root:["root"]},d,t)})(l);return(0,p.jsx)(h,{className:(0,r.A)(c.root,n),ref:t,ownerState:l,...a})}))},38221:(e,t,o)=>{var n=o(23805),r=o(10124),i=o(99374),a=Math.max,l=Math.min;e.exports=function(e,t,o){var s,c,u,d,p,h,m=0,f=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var o=s,n=c;return s=c=void 0,m=t,d=e.apply(n,o)}function y(e){var o=e-h;return void 0===h||o>=t||o<0||g&&e-m>=u}function w(){var e=r();if(y(e))return C(e);p=setTimeout(w,function(e){var o=t-(e-h);return g?l(o,u-(e-m)):o}(e))}function C(e){return p=void 0,b&&s?v(e):(s=c=void 0,d)}function x(){var e=r(),o=y(e);if(s=arguments,c=this,h=e,o){if(void 0===p)return function(e){return m=e,p=setTimeout(w,t),f?v(e):d}(h);if(g)return clearTimeout(p),p=setTimeout(w,t),v(h)}return void 0===p&&(p=setTimeout(w,t)),d}return t=i(t)||0,n(o)&&(f=!!o.leading,u=(g="maxWait"in o)?a(i(o.maxWait)||0,t):u,b="trailing"in o?!!o.trailing:b),x.cancel=function(){void 0!==p&&clearTimeout(p),m=0,s=h=c=p=void 0},x.flush=function(){return void 0===p?d:C(r())},x}},38490:(e,t,o)=>{"use strict";o.d(t,{A:()=>a,G:()=>i});var n=o(96148),r=o(1908);function i(e){return(0,r.Ay)("MuiIconButton",e)}const a=(0,n.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"])},39319:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>v,Is:()=>m});var n=o(96540),r=o(77132);const i="5.26.1";var a=o(49806),l=o(15265),s=o(50723),c=o(2616),u=o(85045),d=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{delete n[e]}));const r=Object.assign(Object.assign({},o),n);if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:(0,u.A)(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:(0,u.A)(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:(0,u.A)(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:3*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:(0,u.A)(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new c.Y("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new c.Y("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new c.Y("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var h=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const n=o.getDerivativeToken(e),{override:r}=t,i=h(t,["override"]);let a=Object.assign(Object.assign({},n),{override:r});return a=p(a),i&&Object.entries(i).forEach((([e,t])=>{const{theme:o}=t,n=h(t,["theme"]);let r=n;o&&(r=b(Object.assign(Object.assign({},a),n),{override:n},o)),a[e]=r})),a};function v(){const{token:e,hashed:t,theme:o,override:c,cssVar:u}=n.useContext(a.vG),d=`${i}-${t||""}`,h=o||l.A,[v,y,w]=(0,r.hV)(h,[s.A,e],{salt:d,override:c,getComputedToken:b,formatToken:p,cssVar:u&&{prefix:u.prefix,key:u.key,unitless:m,ignore:f,preserve:g}});return[h,w,t?y:"",v,u]}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},41519:(e,t,o)=>{"use strict";o.d(t,{j:()=>c});var n=o(58168),r=o(3576),i=o(96540),a=o(29677),l=o(29401),s=o(81326);const c=({store:e,params:t})=>{const o=t=>{(null===t||(0,s.pF)(e.value,t))&&e.update((e=>(0,n.A)({},e,{label:(0,n.A)({},e.label,{editedItemId:t})})))},i=(o,r)=>{if(!r)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",o].join("\n"));e.update((e=>{const t=e.items.itemMetaLookup[o];return t.label!==r?(0,n.A)({},e,{items:(0,n.A)({},e.items,{itemMetaLookup:(0,n.A)({},e.items.itemMetaLookup,{[o]:(0,n.A)({},t,{label:r})})})}):e})),t.onItemLabelChange&&t.onItemLabelChange(o,r)};return(0,r.A)((()=>{e.update((e=>(0,n.A)({},e,{label:(0,n.A)({},e.label,{isItemEditable:t.isItemEditable})})))}),[e,t.isItemEditable]),{instance:{setEditedItem:o,updateItemLabel:i},publicAPI:{setEditedItem:o,updateItemLabel:i}}};c.itemPlugin=({props:e})=>{const{store:t}=(0,a.i)(),{label:o,itemId:n}=e,[r,c]=i.useState(o),u=(0,l.d)(t,s.pF,n),d=(0,l.d)(t,s.XG,n);return i.useEffect((()=>{d||c(o)}),[d,o]),{propsEnhancers:{label:()=>({editable:u}),labelInput:({externalEventHandlers:e,interactions:t})=>u?{value:r??"","data-element":"labelInput",onChange:t=>{e.onChange?.(t),c(t.target.value)},onKeyDown:o=>{if(e.onKeyDown?.(o),o.defaultMuiPrevented)return;const n=o.target;"Enter"===o.key&&n.value?t.handleSaveItemLabel(o,n.value):"Escape"===o.key&&t.handleCancelItemLabelEditing(o)},onBlur:o=>{e.onBlur?.(o),o.defaultMuiPrevented||o.target.value&&t.handleSaveItemLabel(o,o.target.value)},autoFocus:!0,type:"text"}:{}}}},c.applyDefaultValuesToParams=({params:e})=>(0,n.A)({},e,{isItemEditable:e.isItemEditable??!1}),c.getInitialState=e=>({label:{isItemEditable:e.isItemEditable,editedItemId:null}}),c.params={onItemLabelChange:!0,isItemEditable:!0}},41702:(e,t,o)=>{"use strict";var n=o(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(83009));t.default=r.default},42030:(e,t,o)=>{"use strict";o.d(t,{A:()=>A});var n=o(96540),r=o(34164),i=o(37353),a=o(32350),l=o(21362),s=o(26739),c=o(53356),u=o(39241),d=o(20439),p=o(21234),h=o(24337),m=o(30301),f=o(96148),g=o(1908);function b(e){return(0,g.Ay)("MuiCollapse",e)}(0,f.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var v=o(74848);const y=(0,s.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],"entered"===o.state&&t.entered,"exited"===o.state&&!o.in&&"0px"===o.collapsedSize&&t.hidden]}})((0,u.A)((({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]})))),w=(0,s.Ay)("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),C=(0,s.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),x=n.forwardRef((function(e,t){const o=(0,d.b)({props:e,name:"MuiCollapse"}),{addEndListener:s,children:u,className:f,collapsedSize:g="0px",component:x,easing:A,in:E,onEnter:S,onEntered:k,onEntering:R,onExit:M,onExited:I,onExiting:P,orientation:O="vertical",style:T,timeout:$=p.p0.standard,TransitionComponent:z=i.Ay,...D}=o,L={...o,orientation:O,collapsedSize:g},F=(e=>{const{orientation:t,classes:o}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,l.A)(n,b,o)})(L),N=(0,c.A)(),H=(0,a.A)(),j=n.useRef(null),B=n.useRef(),_="number"==typeof g?`${g}px`:g,V="horizontal"===O,W=V?"width":"height",G=n.useRef(null),K=(0,m.A)(t,G),U=e=>t=>{if(e){const o=G.current;void 0===t?e(o):e(o,t)}},q=()=>j.current?j.current[V?"clientWidth":"clientHeight"]:0,X=U(((e,t)=>{j.current&&V&&(j.current.style.position="absolute"),e.style[W]=_,S&&S(e,t)})),Y=U(((e,t)=>{const o=q();j.current&&V&&(j.current.style.position="");const{duration:n,easing:r}=(0,h.c)({style:T,timeout:$,easing:A},{mode:"enter"});if("auto"===$){const t=N.transitions.getAutoHeightDuration(o);e.style.transitionDuration=`${t}ms`,B.current=t}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[W]=`${o}px`,e.style.transitionTimingFunction=r,R&&R(e,t)})),Q=U(((e,t)=>{e.style[W]="auto",k&&k(e,t)})),J=U((e=>{e.style[W]=`${q()}px`,M&&M(e)})),Z=U(I),ee=U((e=>{const t=q(),{duration:o,easing:n}=(0,h.c)({style:T,timeout:$,easing:A},{mode:"exit"});if("auto"===$){const o=N.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${o}ms`,B.current=o}else e.style.transitionDuration="string"==typeof o?o:`${o}ms`;e.style[W]=_,e.style.transitionTimingFunction=n,P&&P(e)}));return(0,v.jsx)(z,{in:E,onEnter:X,onEntered:Q,onEntering:Y,onExit:J,onExited:Z,onExiting:ee,addEndListener:e=>{"auto"===$&&H.start(B.current||0,e),s&&s(G.current,e)},nodeRef:G,timeout:"auto"===$?null:$,...D,children:(e,{ownerState:t,...o})=>(0,v.jsx)(y,{as:x,className:(0,r.A)(F.root,f,{entered:F.entered,exited:!E&&"0px"===_&&F.hidden}[e]),style:{[V?"minWidth":"minHeight"]:_,...T},ref:K,ownerState:{...L,state:e},...o,children:(0,v.jsx)(w,{ownerState:{...L,state:e},className:F.wrapper,ref:j,children:(0,v.jsx)(C,{ownerState:{...L,state:e},className:F.wrapperInner,children:u})})})})}));x&&(x.muiSupportAuto=!0);const A=x},42049:(e,t,o)=>{"use strict";o.d(t,{z:()=>n});const n=o(96540).createContext((()=>-1))},42722:(e,t,o)=>{"use strict";o.d(t,{A:()=>v});var n=o(96540),r=o(21362),i=o(39407),a=o(98855),l=o(26739),s=o(1152),c=o(76761),u=o(38329),d=o(96148),p=o(1908);function h(e){return(0,p.Ay)("PrivateSwitchBase",e)}(0,d.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=o(85078),f=o(74848);const g=(0,l.Ay)(u.A)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),b=(0,l.Ay)("input",{shouldForwardProp:a.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),v=n.forwardRef((function(e,t){const{autoFocus:o,checked:n,checkedIcon:a,defaultChecked:l,disabled:u,disableFocusRipple:d=!1,edge:p=!1,icon:v,id:y,inputProps:w,inputRef:C,name:x,onBlur:A,onChange:E,onFocus:S,readOnly:k,required:R=!1,tabIndex:M,type:I,value:P,slots:O={},slotProps:T={},...$}=e,[z,D]=(0,s.A)({controlled:n,default:Boolean(l),name:"SwitchBase",state:"checked"}),L=(0,c.A)();let F=u;L&&void 0===F&&(F=L.disabled);const N="checkbox"===I||"radio"===I,H={...e,checked:z,disabled:F,disableFocusRipple:d,edge:p},j=(e=>{const{classes:t,checked:o,disabled:n,edge:a}=e,l={root:["root",o&&"checked",n&&"disabled",a&&`edge${(0,i.A)(a)}`],input:["input"]};return(0,r.A)(l,h,t)})(H),B={slots:O,slotProps:{input:w,...T}},[_,V]=(0,m.A)("root",{ref:t,elementType:g,className:j.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...$},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{S&&S(e),L&&L.onFocus&&L.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{A&&A(e),L&&L.onBlur&&L.onBlur(e)})(t)}}),ownerState:H,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:F,role:void 0,tabIndex:null}}),[W,G]=(0,m.A)("input",{ref:C,elementType:b,className:j.input,externalForwardedProps:B,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;D(t),E&&E(e,t)})(t)}}),ownerState:H,additionalProps:{autoFocus:o,checked:n,defaultChecked:l,disabled:F,id:N?y:void 0,name:x,readOnly:k,required:R,tabIndex:M,type:I,..."checkbox"===I&&void 0===P?{}:{value:P}}});return(0,f.jsxs)(_,{...V,children:[(0,f.jsx)(W,{...G}),z?a:v]})}))},42812:(e,t,o)=>{"use strict";o.d(t,{A:()=>a,f:()=>i});var n=o(96148),r=o(1908);function i(e){return(0,r.Ay)("MuiListItemIcon",e)}const a=(0,n.A)("MuiListItemIcon",["root","alignItemsFlexStart"])},43145:(e,t,o)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);on})},43203:(e,t,o)=>{"use strict";o.d(t,{f:()=>r,q:()=>i});var n=o(96540);const r=n.createContext(void 0);function i(){const e=n.useContext(r);if(void 0===e)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a component.");return e}},43210:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(82284),r=o(68210);const i=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,r.Ay)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(o&&l>1)return!1;i.add(t);var c=l+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u{"use strict";o.d(t,{z:()=>pm});var n=o(58168),r=o(96540),i=o(5556),a=o(51280),l=o(98587),s=o(34164),c=o(24902),u=o(97102),d=o(21362),p=o(87960);function h(e){return r.memo(e,p.v)}var m=o(26739),f=o(85486),g=o(52504),b=o(74435);const v=r.createContext(void 0);function y(){const e=r.useContext(v);if(void 0===e)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join("\n"));return e}const w={width:3,rx:1.5,x:10.5},C=e=>e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||0===e.current.state.dimensions.scrollbarSize),x=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${f.x.autoHeight}`]:t.autoHeight},{[`&.${f.x.autosizing}`]:t.autosizing},{[`&.${f.x["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${f.x["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${f.x["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${f.x["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${f.x["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${f.x.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${f.x.actionsCell}`]:t.actionsCell},{[`& .${f.x.booleanCell}`]:t.booleanCell},{[`& .${f.x.cell}`]:t.cell},{[`& .${f.x["cell--editable"]}`]:t["cell--editable"]},{[`& .${f.x["cell--editing"]}`]:t["cell--editing"]},{[`& .${f.x["cell--flex"]}`]:t["cell--flex"]},{[`& .${f.x["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${f.x["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${f.x["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${f.x["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${f.x["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${f.x["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${f.x["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${f.x["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${f.x["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${f.x["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${f.x["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${f.x["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${f.x.cellCheckbox}`]:t.cellCheckbox},{[`& .${f.x.cellEmpty}`]:t.cellEmpty},{[`& .${f.x.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${f.x.cellSkeleton}`]:t.cellSkeleton},{[`& .${f.x.checkboxInput}`]:t.checkboxInput},{[`& .${f.x.columnHeader}`]:t.columnHeader},{[`& .${f.x["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${f.x["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${f.x["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${f.x["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${f.x["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${f.x["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${f.x["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${f.x["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${f.x["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${f.x["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${f.x["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${f.x["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${f.x["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${f.x["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${f.x["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${f.x["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${f.x["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${f.x["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${f.x.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${f.x.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${f.x.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${f.x.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${f.x.columnSeparator}`]:t.columnSeparator},{[`& .${f.x["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${f.x["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${f.x["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${f.x["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${f.x["container--bottom"]}`]:t["container--bottom"]},{[`& .${f.x["container--top"]}`]:t["container--top"]},{[`& .${f.x.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${f.x["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${f.x.editBooleanCell}`]:t.editBooleanCell},{[`& .${f.x.filterIcon}`]:t.filterIcon},{[`& .${f.x["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${f.x["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${f.x["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${f.x.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${f.x.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${f.x.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${f.x.headerFilterRow}`]:t.headerFilterRow},{[`& .${f.x.iconSeparator}`]:t.iconSeparator},{[`& .${f.x.menuIcon}`]:t.menuIcon},{[`& .${f.x.menuIconButton}`]:t.menuIconButton},{[`& .${f.x.menuList}`]:t.menuList},{[`& .${f.x.menuOpen}`]:t.menuOpen},{[`& .${f.x.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${f.x.pinnedRows}`]:t.pinnedRows},{[`& .${f.x["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${f.x["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${f.x.row}`]:t.row},{[`& .${f.x["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${f.x["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${f.x["row--dragging"]}`]:t["row--dragging"]},{[`& .${f.x["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${f.x["row--editable"]}`]:t["row--editable"]},{[`& .${f.x["row--editing"]}`]:t["row--editing"]},{[`& .${f.x["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${f.x["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${f.x.rowReorderCell}`]:t.rowReorderCell},{[`& .${f.x["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${f.x.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${f.x.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${f.x.rowSkeleton}`]:t.rowSkeleton},{[`& .${f.x.scrollbar}`]:t.scrollbar},{[`& .${f.x["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${f.x["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${f.x.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${f.x["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${f.x["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${f.x["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${f.x["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${f.x.sortIcon}`]:t.sortIcon},{[`& .${f.x.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${f.x.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${f.x.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${f.x.withBorderColor}`]:t.withBorderColor}]})((()=>{const e=y(),t=(0,b.Nc)(e,C),o=g.f.colors.background.base,n=g.f.header.background.base,r=g.f.cell.background.pinned,i=A(g.f.colors.interactive.hover,1),a=g.f.colors.interactive.hoverOpacity,l=g.f.colors.interactive.selected,s=g.f.colors.interactive.selectedOpacity,c=l,u=`calc(${s} + ${a})`,d=E(o,i,a),p=E(o,l,s),h=E(o,c,u),m=E(r,i,a),v=E(r,l,s),x=E(r,c,u),S=e=>({[`& .${f.x["cell--pinnedLeft"]}, & .${f.x["cell--pinnedRight"]}`]:{backgroundColor:e,"&.Mui-selected":{backgroundColor:E(e,p,s),"&:hover":{backgroundColor:E(e,h,u)}}}}),k=S(m),R=S(v),M=S(x),I={backgroundColor:p,"&:hover":{backgroundColor:h,"@media (hover: none)":{backgroundColor:p}}};return{"--unstable_DataGrid-radius":g.f.radius.base,"--unstable_DataGrid-headWeight":g.f.typography.fontWeight.medium,"--DataGrid-rowBorderColor":g.f.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:g.f.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:g.f.colors.background.base,color:g.f.colors.foreground.base,font:g.f.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${f.x.main} > *:first-child/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${f.x.autoHeight}`]:{height:"auto"},[`&.${f.x.autosizing}`]:{[`& .${f.x.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${f.x.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${f.x.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${f.x.groupingCriteriaCell}`]:{width:"unset"},[`& .${f.x.treeDataGroupingCell}`]:{width:"unset"}},[`&.${f.x.withSidePanel}`]:{flexDirection:"row"},[`& .${f.x.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${f.x.columnHeader}, & .${f.x.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${f.x.columnHeader}:focus-within, & .${f.x.cell}:focus-within`]:{outline:`solid ${A(g.f.colors.interactive.focus,.5)} 1px`,outlineOffset:-1},[`& .${f.x.columnHeader}:focus, & .${f.x.cell}:focus`]:{outline:`solid ${g.f.colors.interactive.focus} 1px`,outlineOffset:-1},[`& .${f.x.columnHeader}:focus,\n & .${f.x["columnHeader--withLeftBorder"]},\n & .${f.x["columnHeader--withRightBorder"]},\n & .${f.x["columnHeader--siblingFocused"]},\n & .${f.x["virtualScroller--hasScrollX"]} .${f.x["columnHeader--lastUnpinned"]},\n & .${f.x["virtualScroller--hasScrollX"]} .${f.x["columnHeader--last"]}\n `]:{[`& .${f.x.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${f.x["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${f.x["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${f.x["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${f.x["root--noToolbar"]} [aria-rowindex="1"] .${f.x["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${f.x.columnHeaderCheckbox}, & .${f.x.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${f.x.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:n},[`& .${f.x["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${f.x["virtualScroller--hasScrollX"]} .${f.x["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${f.x["pivotPanelField--sorted"]} .${f.x.iconButtonContainer},\n & .${f.x["columnHeader--sorted"]} .${f.x.iconButtonContainer},\n & .${f.x["columnHeader--filtered"]} .${f.x.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${f.x.pivotPanelField}:not(.${f.x["pivotPanelField--sorted"]}) .${f.x.sortButton},\n & .${f.x.columnHeader}:not(.${f.x["columnHeader--sorted"]}) .${f.x.sortButton}`]:{opacity:0,transition:g.f.transition(["opacity"],{duration:g.f.transitions.duration.short})},[`& .${f.x.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:g.f.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${f.x.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${f.x["columnHeader--filledGroup"]} .${f.x.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${f.x.sortIcon}, & .${f.x.filterIcon}`]:{fontSize:"inherit"},[`& .${f.x["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${f.x["columnHeader--alignCenter"]} .${f.x.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${f.x["columnHeader--alignRight"]} .${f.x.columnHeaderDraggableContainer}, & .${f.x["columnHeader--alignRight"]} .${f.x.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${f.x["columnHeader--alignCenter"]} .${f.x.menuIcon}`]:{marginLeft:"auto"},[`& .${f.x["columnHeader--alignRight"]} .${f.x.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${f.x["columnHeader--moving"]}`]:{backgroundColor:d},[`& .${f.x["columnHeader--pinnedLeft"]}, & .${f.x["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:g.f.header.background.base},[`& .${f.x.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:10,color:g.f.colors.border.base},[`& .${f.x.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:n},"@media (hover: hover)":{[`& .${f.x.columnHeader}:hover`]:{[`& .${f.x.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${f.x.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${f.x.columnHeader}:not(.${f.x["columnHeader--sorted"]}):hover .${f.x.sortButton},\n & .${f.x.pivotPanelField}:not(.${f.x["pivotPanelField--sorted"]}):hover .${f.x.sortButton},\n & .${f.x.pivotPanelField}:not(.${f.x["pivotPanelField--sorted"]}) .${f.x.sortButton}:focus-visible`]:{opacity:.5}},"@media (hover: none)":{[`& .${f.x.columnHeader} .${f.x.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${f.x.columnHeader}:focus,\n & .${f.x["columnHeader--siblingFocused"]}`]:{[`.${f.x["columnSeparator--resizable"]}`]:{color:g.f.colors.foreground.accent}},[`& .${f.x.pivotPanelField}:not(.${f.x["pivotPanelField--sorted"]}) .${f.x.sortButton}`]:{opacity:.5}},[`& .${f.x["columnSeparator--sideLeft"]}`]:{left:-5},[`& .${f.x["columnSeparator--sideRight"]}`]:{right:-5},[`& .${f.x["columnHeader--withRightBorder"]} .${f.x["columnSeparator--sideLeft"]}`]:{left:-5.5},[`& .${f.x["columnHeader--withRightBorder"]} .${f.x["columnSeparator--sideRight"]}`]:{right:-5.5},[`& .${f.x["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${f.x["columnSeparator--resizing"]}`]:{color:g.f.colors.foreground.accent},"@media (hover: none)":{[`& .${f.x.iconSeparator} rect`]:w},"@media (hover: hover)":{"&:hover":{color:g.f.colors.foreground.accent,[`& .${f.x.iconSeparator} rect`]:w}},"& svg":{pointerEvents:"none"}},[`& .${f.x.iconSeparator}`]:{color:"inherit",transition:g.f.transition(["color","width"],{duration:g.f.transitions.duration.short})},[`& .${f.x.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${f.x.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${f.x.headerFilterRow}`]:{[`& .${f.x.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${f.x["row--borderBottom"]} .${f.x.columnHeader},\n & .${f.x["row--borderBottom"]} .${f.x.filler},\n & .${f.x["row--borderBottom"]} .${f.x.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${f.x["row--borderBottom"]} .${f.x.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${f.x.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${f.x["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:d,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${f.x.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":I},[`& .${f.x["container--top"]}, & .${f.x["container--bottom"]}`]:{"[role=row]":{background:g.f.colors.background.base}},[`& .${f.x.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":I},[`& .${f.x["virtualScrollerContent--overflowed"]} .${f.x["row--lastVisible"]} .${f.x.cell}`]:{borderTopColor:"transparent"},[`& .${f.x.pinnedRows} .${f.x.row}, .${f.x.aggregationRowOverlayWrapper} .${f.x.row}`]:{backgroundColor:r,"&:hover":{backgroundColor:m}},[`& .${f.x["pinnedRows--top"]} :first-of-type`]:{[`& .${f.x.cell}, .${f.x.scrollbarFiller}`]:{borderTop:"none"}},[`&.${f.x["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${f.x["row--dynamicHeight"]} > .${f.x.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${f.x.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${f.x.cell}.${f.x["cell--selectionMode"]}`]:{cursor:"default"},[`& .${f.x.cell}.${f.x["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:g.f.shadows.base,backgroundColor:g.f.colors.background.overlay,"&:focus-within":{outline:`1px solid ${g.f.colors.interactive.focus}`,outlineOffset:-1}},[`& .${f.x["row--editing"]}`]:{boxShadow:g.f.shadows.base},[`& .${f.x["row--editing"]} .${f.x.cell}`]:{boxShadow:"none",backgroundColor:g.f.colors.background.overlay},[`& .${f.x.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${f.x.booleanCell}[data-value="true"]`]:{color:g.f.colors.foreground.muted},[`& .${f.x.booleanCell}[data-value="false"]`]:{color:g.f.colors.foreground.disabled},[`& .${f.x.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:g.f.spacing(1)},[`& .${f.x.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:g.f.colors.interactive.disabledOpacity},[`& .${f.x["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${f.x.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${f.x.withBorderColor}`]:{borderColor:g.f.colors.border.base},[`& .${f.x["cell--withLeftBorder"]}, & .${f.x["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${f.x["cell--withRightBorder"]}, & .${f.x["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${f.x["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${f.x["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${f.x["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${f.x["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${f.x["cell--pinnedLeft"]}, & .${f.x["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:g.f.cell.background.pinned,"&.Mui-selected":{backgroundColor:v}},[`& .${f.x.row}`]:{"&:hover":k,"&.Mui-selected":R,"&.Mui-selected:hover":M},[`& .${f.x.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${f.x.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${f.x.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${f.x.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${f.x["columnHeader--dragging"]}, & .${f.x["row--dragging"]}`]:{background:g.f.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:g.f.colors.interactive.disabledOpacity},[`& .${f.x["row--dragging"]}`]:{background:g.f.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:g.f.colors.interactive.disabledOpacity,[`& .${f.x.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${f.x.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${f.x.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:g.f.spacing(2)},[`& .${f.x.treeDataGroupingCellLoadingContainer}, .${f.x.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${f.x.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${f.x.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:g.f.spacing(2)},[`& .${f.x.columnHeaders} .${f.x.scrollbarFiller}`]:{backgroundColor:n},[`.${f.x.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${f.x["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${f.x["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${f.x["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:g.f.cell.background.pinned,position:"sticky",right:0}},[`& .${f.x.filler}`]:{flex:"1 0 auto"},[`& .${f.x["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${f.x.columnHeaders} .${f.x.filler}`]:{backgroundColor:n},[`& .${f.x["main--hiddenContent"]}`]:{[`& .${f.x.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${f.x["scrollbar--vertical"]}, & .${f.x.pinnedRows}, & .${f.x.virtualScroller} > .${f.x.filler}`]:{display:"none"}}}}));function A(e,t){return`rgba(from ${e} r g b / ${t})`}function E(e,t,o){return`color-mix(in srgb,${e}, ${t} calc(${o} * 100%))`}var S=o(77866);const k=r.createContext(void 0),R=()=>{const e=r.useContext(k);if(void 0===e)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join("\n"));return e};var M=o(74848);const I=r.createContext({className:"unset",tag:(0,M.jsx)("style",{href:"/unset"})});function P(){return r.useContext(I).className}function O(e){const t=R(),o=(0,S.A)(),n=t.hooks.useCSSVariables(),i=r.useMemo((()=>{const e=`MuiDataGridVariables-${n.id}`,t=`.${e}{${function(e){let t="";for(const o in e)Object.hasOwn(e,o)&&void 0!==e[o]&&(t+=`${o}:${e[o]};`);return t}(n.variables)}}`;return{className:e,tag:(0,M.jsx)("style",{href:`/${e}`,nonce:o.nonce,children:t})}}),[o.nonce,n]);return(0,M.jsx)(I.Provider,{value:i,children:e.children})}var T=o(92661);const $={compact:.7,comfortable:1.3,standard:1},z=(0,T.gz)((e=>e.density)),D=(0,T.Mz)(z,(e=>$[e]));var L=o(19888);const F=()=>()=>{},N=()=>!1,H=()=>!0;var j=o(47211);const B=(0,T.gz)((e=>e.preferencePanel)),_=(0,T.Mz)(B,((e,t)=>!(!e.open||e.labelId!==t)));var V=function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e}(V||{}),W=o(83753);const G=r.createContext(void 0);function K(){const e=r.useContext(G);if(void 0===e)throw new Error("MUI X: Missing context.");return e}function U({children:e}){const t=r.useRef(null),o=r.useRef(null),n=r.useRef(null),i=r.useMemo((()=>({columnsPanelTriggerRef:t,filterPanelTriggerRef:o,aiAssistantPanelTriggerRef:n})),[]);return(0,M.jsx)(G.Provider,{value:i,children:e})}function q(){const e=(0,W.h)(),t=(0,b.Nc)(e,j.OV),o=(0,S.A)(),r=(0,b.Nc)(e,B),{columnsPanelTriggerRef:i,filterPanelTriggerRef:a,aiAssistantPanelTriggerRef:l}=K(),s=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??V.filters);let c=null;switch(r.openedPanelValue){case V.filters:c=a.current;break;case V.columns:c=i.current;break;case V.aiAssistant:c=l.current}return(0,M.jsx)(o.slots.panel,(0,n.A)({id:r.panelId,open:t.length>0&&r.open,"aria-labelledby":r.labelId,target:c,onClose:()=>e.current.hidePreferences()},o.slotProps?.panel,{children:s}))}function X(){const e=(0,S.A)();return(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(q,{}),e.showToolbar&&(0,M.jsx)(e.slots.toolbar,(0,n.A)({},e.slotProps?.toolbar))]})}var Y=o(14808);const Q=(0,T.gz)((e=>e.dimensions)),J=(0,T.Mz)(Q,(e=>e.columnsTotalWidth)),Z=(0,T.Mz)(Q,(e=>e.rowHeight)),ee=(0,T.Mz)(Q,(e=>e.contentSize.height)),te=(0,T.Mz)(Q,(e=>e.hasScrollX)),oe=(0,T.Mz)(Q,(e=>e.hasScrollY)),ne=(0,T.Mz)(Q,(e=>e.columnsTotalWidthe.headerHeight)),ie=(0,T.Mz)(Q,(e=>e.groupHeaderHeight)),ae=((0,T.Mz)(Q,(e=>e.headerFilterHeight)),(0,T.Mz)(Q,(e=>e.hasScrollX?e.scrollbarSize:0))),le=(0,T.Mz)(Q,(e=>e.hasScrollY?e.scrollbarSize:0)),se=(0,T.Mz)(Q,ae,((e,t)=>{const o=e.viewportOuterSize.height-e.minimumSize.height>0;return!(0===t&&!o)}));var ce=o(78854);class ue{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,o){this.timeouts||(this.timeouts=new Map);const n=setTimeout((()=>{"function"==typeof t&&t(),this.timeouts.delete(o.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(o.cleanupToken,n)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class de{constructor(){this.registry=new FinalizationRegistry((e=>{"function"==typeof e&&e()}))}register(e,t,o){this.registry.register(e,t,o)}unregister(e){this.registry.unregister(e)}reset(){}}class pe{static create(){return new pe}}const he={current:"undefined"!=typeof FinalizationRegistry?new de:new ue};let me=0;function fe(e,t,o,n){const i=r.useState(pe.create)[0],a=r.useRef(null),l=r.useRef(null);l.current=o;const s=r.useRef(null);if(!a.current&&l.current){const o=(e,t,o)=>{t.defaultMuiPrevented||l.current?.(e,t,o)};a.current=e.current.subscribeEvent(t,o,n),me+=1,s.current={cleanupToken:me},he.current.register(i,(()=>{a.current?.(),a.current=null,s.current=null}),s.current)}else!l.current&&a.current&&(a.current(),a.current=null,s.current&&(he.current.unregister(s.current),s.current=null));r.useEffect((()=>{if(!a.current&&l.current){const o=(e,t,o)=>{t.defaultMuiPrevented||l.current?.(e,t,o)};a.current=e.current.subscribeEvent(t,o,n)}return s.current&&he.current&&(he.current.unregister(s.current),s.current=null),()=>{a.current?.(),a.current=null}}),[e,t,n])}const ge={isFirst:!0};function be(e,t,o){fe(e,t,o,ge)}var ve=o(32350),ye=o(19750),we=o(3576);function Ce(e){throw new Error("Failed assertion: should not be rendered")}const xe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],Ae=(0,m.Ay)(Ce,{name:"MuiDataGrid",slot:"EditInputCell"})({font:g.f.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),Ee=(0,a.R)(((e,t)=>{const o=(0,S.A)(),{id:i,value:a,field:s,colDef:c,hasFocus:u,debounceMs:p=200,isProcessingProps:h,onValueChange:m,slotProps:g}=e,b=(0,l.A)(e,xe),v=(0,W.h)(),y=r.useRef(null),[w,C]=r.useState(a),x=(e=>{const{classes:t}=e;return(0,d.A)({root:["editInputCell"]},f.B,t)})(o),A=r.useCallback((async e=>{const t=e.target.value,o=v.current.getColumn(s);let n=t;o.valueParser&&(n=o.valueParser(t,v.current.getRow(i),o,v)),C(n),v.current.setEditCellValue({id:i,field:s,value:n,debounceMs:p,unstable_skipValueParser:!0},e),m&&await m(e,t)}),[v,p,s,i,m]),E=v.current.unstable_getEditCellMeta(i,s);return r.useEffect((()=>{"debouncedSetEditCellValue"!==E?.changeReason&&C(a)}),[E,a]),(0,we.A)((()=>{u&&y.current.focus()}),[u]),(0,M.jsx)(Ae,(0,n.A)({as:o.slots.baseInput,inputRef:y,className:x.root,ownerState:o,fullWidth:!0,type:"number"===c.type?c.type:"text",value:w??"",onChange:A,endAdornment:h?(0,M.jsx)(o.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},b,g?.root,{ref:t}))}));var Se=o(24349);const ke=(e,t)=>t&&e.length>1?[e[0]]:e,Re=(e,t)=>o=>(0,n.A)({},o,{sorting:(0,n.A)({},o.sorting,{sortModel:ke(e,t)})}),Me=(e,t)=>{const o=e.indexOf(t);return t&&-1!==o&&o+1!==e.length?e[o+1]:e[0]},Ie=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,Pe=new Intl.Collator,Oe=(e,t)=>{const o=Ie(e,t);return null!==o?o:Number(e)-Number(t)},Te=(e,t)=>{const o=Ie(e,t);return null!==o?o:e>t?1:e{const r=Le(e.target.value);v(r),w(!0),g.start(x.filterDebounceMs,(()=>{const e=(0,n.A)({},t,{value:"number"!==i||Number.isNaN(Number(r))?r:Number(r),fromInput:C});o(e),w(!1)}))}),[g,x.filterDebounceMs,t,i,C,o]);return r.useEffect((()=>{t.fromInput===C&&null!=t.value||v(Le(t.value))}),[C,t]),(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(x.slots.baseTextField,(0,n.A)({id:C,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:b??"",onChange:A,type:i||"text",disabled:u,slotProps:(0,n.A)({},f?.slotProps,{input:(0,n.A)({endAdornment:y?(0,M.jsx)(x.slots.loadIcon,{fontSize:"small",color:"action"}):null},f?.slotProps?.input),htmlInput:(0,n.A)({tabIndex:c},f?.slotProps?.htmlInput)}),inputRef:s},x.slotProps?.baseTextField,m,f)),h,p]})}function Le(e){if(null!=e&&""!==e)return String(e)}function Fe(e){return"object"==typeof e&&null!==e}function Ne(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const He=(e,t,o)=>Math.max(t,Math.min(o,e));function je(e,t){return Array.from({length:t-e}).map(((t,o)=>e+o))}function Be(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}const _e=(e,t)=>o=>{e&&t(o)};function Ve(e){const{item:t,applyValue:o,type:i,apiRef:a,focusElementRef:l,slotProps:s}=e,c=(0,$e.A)(),[u,d]=r.useState([]),[p,h]=r.useState(t.value||[]),m=(0,S.A)();r.useEffect((()=>{const e=t.value??[];h(e.map(String))}),[t.value]);const f=r.useCallback(((e,r)=>{h(r.map(String)),o((0,n.A)({},t,{value:[...r.map((e=>"number"===i?Number(e):e))]}))}),[o,t,i]),g=r.useCallback(((e,t)=>{d(""===t?[]:[t])}),[d]),b=m.slots.baseAutocomplete;return(0,M.jsx)(b,(0,n.A)({multiple:!0,freeSolo:!0,options:u,id:c,value:p,onChange:f,onInputChange:g,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:i||"text",inputRef:l}}},s?.root))}var We=function(e){return e.And="and",e.Or="or",e}(We||{});const Ge={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},Ke=()=>({items:[],logicOperator:We.And,quickFilterValues:[],quickFilterLogicOperator:We.And});function Ue(e){return{current:e.current.getPublicApi()}}let qe;const Xe=(e,t)=>{const o=(0,n.A)({},e);if(null==o.id&&(o.id=Math.round(1e5*Math.random())),null==o.operator){const e=(0,j.gv)(t)[o.field];o.operator=e&&e.filterOperators[0].value}return o},Ye=(e,t,o)=>{const r=e.items.length>1;let i;i=r&&t?[e.items[0]]:e.items;const a=r&&i.some((e=>null==e.id));return i.some((e=>null==e.operator))||a?(0,n.A)({},e,{items:i.map((e=>Xe(e,o)))}):e.items!==i?(0,n.A)({},e,{items:i}):e},Qe=(e,t,o)=>r=>(0,n.A)({},r,{filterModel:Ye(e,t,o)}),Je=e=>"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,Ze=(e,t)=>{if(!e.field||!e.operator)return null;const o=t.current.getColumn(e.field);if(!o)return null;let r;if(o.valueParser){const n=o.valueParser;r=Array.isArray(e.value)?e.value?.map((e=>n(e,void 0,o,t))):n(e.value,void 0,o,t)}else r=e.value;const{ignoreDiacritics:i}=t.current.rootProps;i&&(r=Je(r));const a=(0,n.A)({},e,{value:r}),l=o.filterOperators;if(!l?.length)throw new Error(`MUI X: No filter operators found for column '${o.field}'.`);const s=l.find((e=>e.value===a.operator));if(!s)throw new Error(`MUI X: No filter operator found for column '${o.field}' and operator value '${a.operator}'.`);const c=Ue(t),u=s.getApplyFilterFn(a,o);return"function"!=typeof u?null:{item:a,fn:e=>{let n=t.current.getRowValue(e,o);return i&&(n=Je(n)),u(n,e,o,c)}}};let et=1;const tt=e=>e.quickFilterExcludeHiddenColumns??!0,ot=(e,t,o)=>{const n=((e,t,o)=>{const{items:n}=e,r=n.map((e=>Ze(e,t))).filter((e=>!!e));if(0===r.length)return null;if(o||!function(){if(void 0!==qe)return qe;try{qe=new Function("return true")()}catch(e){qe=!1}return qe}())return(e,t)=>{const o={};for(let n=0;n`const shouldApply${t} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(e.item.field)});`)).join("\n")}\n\nconst result$$ = {\n${r.map(((e,t)=>` ${JSON.stringify(String(e.item.id))}: !shouldApply${t} ? false : appliers[${t}].fn(row),`)).join("\n")}\n};\n\nreturn result$$;`.replaceAll("$$",String(et)));return et+=1,(e,t)=>i(r,e,t)})(e,t,o),r=((e,t)=>{const o=e.quickFilterValues?.filter(Boolean)??[];if(0===o.length)return null;const n=tt(e)?(0,j.TI)(t):(0,j.JR)(t),r=[],{ignoreDiacritics:i}=t.current.rootProps,a=Ue(t);return n.forEach((e=>{const n=t.current.getColumn(e),l=n?.getApplyQuickFilterFn;l&&r.push({column:n,appliers:o.map((e=>{const t=i?Je(e):e;return{fn:l(t,n,a)}}))})})),function(e,n){const l={};e:for(let s=0;snull!=e,rt=(e,t,o,n,r)=>{const i=((e,t,o)=>(e.cleanedFilterItems||(e.cleanedFilterItems=o.filter((e=>null!==Ze(e,t)))),e.cleanedFilterItems))(r,n,o.items),a=e.filter(nt),l=t.filter(nt);if(a.length>0){const e=e=>a.some((t=>t[e.id]));if((o.logicOperator??Ke().logicOperator)===We.And){if(!i.every(e))return!1}else if(!i.some(e))return!1}if(l.length>0&&null!=o.quickFilterValues){const e=e=>l.some((t=>t[e]));if((o.quickFilterLogicOperator??Ke().quickFilterLogicOperator)===We.And){if(!o.quickFilterValues.every(e))return!1}else if(!o.quickFilterValues.some(e))return!1}return!0},it=(e,t)=>o=>{if(!o.value)return null;const n=e?o.value:o.value.trim(),r=new RegExp(Ne(n),"i");return e=>{if(null==e)return t;const o=r.test(String(e));return t?!o:o}},at=(e,t)=>o=>{if(!o.value)return null;const n=e?o.value:o.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>{if(null==e)return t;const o=0===r.compare(n,e.toString());return t?!o:o}},lt=e=>()=>t=>{const o=""===t||null==t;return e?!o:o},st={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:(e,t)=>{const o=Ie(e,t);return null!==o?o:"string"==typeof e?Pe.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:((e=!1)=>[{value:"contains",getApplyFilterFn:it(e,!1),InputComponent:De},{value:"doesNotContain",getApplyFilterFn:it(e,!0),InputComponent:De},{value:"equals",getApplyFilterFn:at(e,!1),InputComponent:De},{value:"doesNotEqual",getApplyFilterFn:at(e,!0),InputComponent:De},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const o=e?t.value:t.value.trim(),n=new RegExp(`^${Ne(o)}.*$`,"i");return e=>null!=e&&n.test(e.toString())},InputComponent:De},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const o=e?t.value:t.value.trim(),n=new RegExp(`.*${Ne(o)}$`,"i");return e=>null!=e&&n.test(e.toString())},InputComponent:De},{value:"isEmpty",getApplyFilterFn:lt(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:lt(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const o=e?t.value:t.value.map((e=>e.trim())),n=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&o.some((t=>0===n.compare(t,e.toString()||"")))},InputComponent:Ve}])(),renderEditCell:e=>(0,M.jsx)(Ee,(0,n.A)({},e)),getApplyQuickFilterFn:e=>{if(!e)return null;const t=new RegExp(Ne(e),"i");return(e,o,n,r)=>{let i=r.current.getRowFormattedValue(o,n);return r.current.ignoreDiacritics&&(i=Je(i)),null!=i&&t.test(i.toString())}}},ct=e=>null==e?null:Number(e),ut=(0,n.A)({},st,{type:"number",align:"right",headerAlign:"right",sortComparator:Oe,valueParser:e=>""===e?null:Number(e),valueFormatter:e=>function(e){return"number"==typeof e&&!Number.isNaN(e)}(e)?e.toLocaleString():e||"",filterOperators:[{value:"=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>ct(t)===e.value,InputComponent:De,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>ct(t)!==e.value,InputComponent:De,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ct(t)>e.value,InputComponent:De,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ct(t)>=e.value,InputComponent:De,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ct(t)null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&ct(t)<=e.value,InputComponent:De,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>Array.isArray(e.value)&&0!==e.value.length?t=>null!=t&&e.value.includes(Number(t)):null,InputComponent:Ve,InputComponentProps:{type:"number"}}],getApplyQuickFilterFn:e=>null==e||Number.isNaN(e)||""===e?null:t=>ct(t)===ct(e)}),dt=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function pt(e,t){if(null==e)return"";const o=new Date(e);return Number.isNaN(o.getTime())?"":"date"===t?o.toISOString().substring(0,10):"datetime-local"===t?(o.setMinutes(o.getMinutes()-o.getTimezoneOffset()),o.toISOString().substring(0,19)):o.toISOString().substring(0,10)}function ht(e){const{item:t,applyValue:o,type:i,apiRef:a,focusElementRef:s,slotProps:c,headerFilterMenu:u,clearButton:d,tabIndex:p,disabled:h}=e,m=(0,l.A)(e,dt),f=c?.root.slotProps,g=(0,ve.A)(),[b,v]=r.useState((()=>pt(t.value,i))),[y,w]=r.useState(!1),C=(0,$e.A)(),x=(0,S.A)(),A=r.useCallback((e=>{g.clear();const r=e.target.value;v(r),w(!0),g.start(x.filterDebounceMs,(()=>{const e=new Date(r);o((0,n.A)({},t,{value:Number.isNaN(e.getTime())?void 0:e})),w(!1)}))}),[o,t,x.filterDebounceMs,g]);return r.useEffect((()=>{const e=pt(t.value,i);v(e)}),[t.value,i]),(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(x.slots.baseTextField,(0,n.A)({fullWidth:!0,id:C,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:b,onChange:A,type:i||"text",disabled:h,inputRef:s,slotProps:(0,n.A)({},f,{input:(0,n.A)({endAdornment:y?(0,M.jsx)(x.slots.loadIcon,{fontSize:"small",color:"action"}):null},f?.input),htmlInput:(0,n.A)({max:"datetime-local"===i?"9999-12-31T23:59":"9999-12-31",tabIndex:p},f?.htmlInput)})},x.slotProps?.baseTextField,m,c?.root)),u,d]})}function mt(e,t,o,n){if(!e.value)return null;const r=new Date(e.value);o?r.setSeconds(0,0):(r.setMinutes(r.getMinutes()+r.getTimezoneOffset()),r.setHours(0,0,0,0));const i=r.getTime();return e=>{if(!e)return!1;if(n)return t(e.getTime(),i);const r=new Date(e);return o?r.setSeconds(0,0):r.setHours(0,0,0,0),t(r.getTime(),i)}}const ft=e=>[{value:"is",getApplyFilterFn:t=>mt(t,((e,t)=>e===t),e),InputComponent:ht,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>mt(t,((e,t)=>e!==t),e),InputComponent:ht,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>mt(t,((e,t)=>e>t),e),InputComponent:ht,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>mt(t,((e,t)=>e>=t),e),InputComponent:ht,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>mt(t,((e,t)=>emt(t,((e,t)=>e<=t),e),InputComponent:ht,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1}],gt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],bt=(0,m.Ay)(Ce)({fontSize:"inherit"});function vt(e){const{id:t,value:o,field:i,colDef:a,hasFocus:s,onValueChange:c,slotProps:u}=e,p=(0,l.A)(e,gt),h="dateTime"===a.type,m=(0,W.h)(),g=r.useRef(null),b=r.useMemo((()=>{let e,t;return e=null==o?null:o instanceof Date?o:new Date((o??"").toString()),t=null==e||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,h?16:10),{parsed:e,formatted:t}}),[o,h]),[v,y]=r.useState(b),w=(0,S.A)(),C=(e=>{const{classes:t}=e;return(0,d.A)({root:["editInputCell"]},f.B,t)})({classes:w.classes}),x=r.useCallback((e=>{if(""===e)return null;const[t,o]=e.split("T"),[n,r,i]=t.split("-"),a=new Date;if(a.setFullYear(Number(n),Number(r)-1,Number(i)),a.setHours(0,0,0,0),o){const[e,t]=o.split(":");a.setHours(Number(e),Number(t),0,0)}return a}),[]),A=r.useCallback((async e=>{const o=e.target.value,n=x(o);c&&await c(e,n),y({parsed:n,formatted:o}),m.current.setEditCellValue({id:t,field:i,value:n},e)}),[m,i,t,c,x]);return r.useEffect((()=>{y((e=>b.parsed!==e.parsed&&b.parsed?.getTime()!==e.parsed?.getTime()?b:e))}),[b]),(0,we.A)((()=>{s&&g.current.focus()}),[s]),(0,M.jsx)(bt,(0,n.A)({as:w.slots.baseInput,inputRef:g,fullWidth:!0,className:C.root,type:h?"datetime-local":"date",value:v.formatted,onChange:A},p,u?.root,{slotProps:{htmlInput:(0,n.A)({max:h?"9999-12-31T23:59":"9999-12-31"},u?.root?.slotProps?.htmlInput)}}))}const yt=e=>(0,M.jsx)(vt,(0,n.A)({},e));var wt=o(65347);const Ct=(0,T.gz)(((e,t)=>wt.gb in t?t[wt.gb]:e.props.getRowId?e.props.getRowId(t):t.id));function xt({value:e,columnType:t,rowId:o,field:n}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${o}, field: "${n}".`].join("\n"))}const At=(0,n.A)({},st,{type:"date",sortComparator:Te,valueFormatter:(e,t,o,n)=>e?(xt({value:e,columnType:"date",rowId:Ct(n,t),field:o.field}),e.toLocaleDateString()):"",filterOperators:ft(),renderEditCell:yt,pastedValueParser:e=>new Date(e)}),Et=(0,n.A)({},st,{type:"dateTime",sortComparator:Te,valueFormatter:(e,t,o,n)=>e?(xt({value:e,columnType:"dateTime",rowId:Ct(n,t),field:o.field}),e.toLocaleString()):"",filterOperators:ft(!0),renderEditCell:yt,pastedValueParser:e=>new Date(e)}),St="__row_group_by_columns_group__",kt="__detail_panel_toggle__";let Rt=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const Mt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"];function It(e){const{value:t,rowNode:o}=e,i=(0,l.A)(e,Mt),a=(0,W.h)(),s=(0,S.A)(),c=(e=>{const{classes:t}=e;return(0,d.A)({root:["booleanCell"]},f.B,t)})({classes:s.classes}),u=(0,b.Nc)(a,Se.V2)>0&&"group"===o.type&&!1===s.treeData,p=r.useMemo((()=>t?s.slots.booleanCellTrueIcon:s.slots.booleanCellFalseIcon),[s.slots.booleanCellFalseIcon,s.slots.booleanCellTrueIcon,t]);return u&&void 0===t?null:(0,M.jsx)(p,(0,n.A)({fontSize:"small",className:c.root,titleAccess:a.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},i))}const Pt=r.memo(It),Ot=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function Tt(e){const{id:t,value:o,field:i,className:a,hasFocus:c,onValueChange:u}=e,p=(0,l.A)(e,Ot),h=(0,W.h)(),m=r.useRef(null),g=(0,$e.A)(),[b,v]=r.useState(o),y=(0,S.A)(),w=(e=>{const{classes:t}=e;return(0,d.A)({root:["editBooleanCell"]},f.B,t)})({classes:y.classes}),C=r.useCallback((async e=>{const o=e.target.checked;u&&await u(e,o),v(o),await h.current.setEditCellValue({id:t,field:i,value:o},e)}),[h,i,t,u]);return r.useEffect((()=>{v(o)}),[o]),(0,we.A)((()=>{c&&m.current.focus()}),[c]),(0,M.jsx)("label",(0,n.A)({htmlFor:g,className:(0,s.A)(w.root,a)},p,{children:(0,M.jsx)(y.slots.baseCheckbox,(0,n.A)({id:g,inputRef:m,checked:Boolean(b),onChange:C,size:"small"},y.slotProps?.baseCheckbox))}))}const $t=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function zt(e){return"true"===String(e).toLowerCase()||"false"!==String(e).toLowerCase()&&void 0}const Dt=(0,n.A)({},st,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:e=>e.field!==St&&(0,wt.nF)(e.rowNode)?"":(0,M.jsx)(Pt,(0,n.A)({},e)),renderEditCell:e=>(0,M.jsx)(Tt,(0,n.A)({},e)),sortComparator:Oe,valueFormatter:(e,t,o,n)=>e?n.current.getLocaleText("booleanCellTrueLabel"):n.current.getLocaleText("booleanCellFalseLabel"),filterOperators:[{value:"is",getApplyFilterFn:e=>{const t=zt(e.value);return void 0===t?null:e=>Boolean(e)===t},InputComponent:function(e){const{item:t,applyValue:o,apiRef:i,focusElementRef:a,headerFilterMenu:s,clearButton:c,tabIndex:u,slotProps:d}=e,p=(0,l.A)(e,$t),[h,m]=r.useState(zt(t.value)),f=(0,S.A)(),g=(0,$e.A)(),b=(0,$e.A)(),v=f.slotProps?.baseSelect||{},y=v.native??!1,w=f.slotProps?.baseSelectOption||{},C=r.useCallback((e=>{const r=zt(e.target.value);m(r),o((0,n.A)({},t,{value:r}))}),[o,t]);r.useEffect((()=>{m(zt(t.value))}),[t.value]);const x=d?.root.label??i.current.getLocaleText("filterPanelInputLabel"),A=d?.root.slotProps;return(0,M.jsxs)(r.Fragment,{children:[(0,M.jsxs)(f.slots.baseSelect,(0,n.A)({fullWidth:!0,labelId:g,id:b,label:x,value:void 0===h?"":String(h),onChange:C,native:y,slotProps:{htmlInput:(0,n.A)({ref:a,tabIndex:u},A?.htmlInput)}},v,p,d?.root,{children:[(0,M.jsx)(f.slots.baseSelectOption,(0,n.A)({},w,{native:y,value:"",children:i.current.getLocaleText("filterValueAny")})),(0,M.jsx)(f.slots.baseSelectOption,(0,n.A)({},w,{native:y,value:"true",children:i.current.getLocaleText("filterValueTrue")})),(0,M.jsx)(f.slots.baseSelectOption,(0,n.A)({},w,{native:y,value:"false",children:i.current.getLocaleText("filterValueFalse")}))]})),s,c]})}}],getApplyQuickFilterFn:()=>null,aggregable:!1,pastedValueParser:e=>(e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}})(e)});var Lt=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(Lt||{}),Ft=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Ft||{}),Nt=function(e){return e.Cell="cell",e.Row="row",e}(Nt||{}),Ht=function(e){return e.Edit="edit",e.View="view",e}(Ht||{}),jt=function(e){return e.Edit="edit",e.View="view",e}(jt||{});function Bt(e){return"singleSelect"===e?.type}function _t(e,t){if(e)return"function"==typeof e.valueOptions?e.valueOptions((0,n.A)({field:e.field},t)):e.valueOptions}function Vt(e,t,o){if(void 0===t)return;const n=t.find((t=>{const n=o(t);return String(n)===String(e)}));return o(n)}const Wt=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function Gt(e){const t=(0,S.A)(),{id:o,value:i,field:a,row:s,colDef:c,hasFocus:u,error:d,onValueChange:p,initialOpen:h=t.editMode===Nt.Cell,slotProps:m}=e,f=(0,l.A)(e,Wt),g=(0,W.h)(),b=r.useRef(null),v=r.useRef(null),[y,w]=r.useState(h),C=(t.slotProps?.baseSelect||{}).native??!1;if((0,we.A)((()=>{u&&v.current?.focus()}),[u]),!Bt(c))return null;const x=_t(c,{id:o,row:s});if(!x)return null;const A=c.getOptionValue,E=c.getOptionLabel;return x&&c?(0,M.jsx)(t.slots.baseSelect,(0,n.A)({ref:b,value:i,onChange:async e=>{if(!Bt(c)||!x)return;w(!1);const t=Vt(e.target.value,x,A);p&&await p(e,t),await g.current.setEditCellValue({id:o,field:a,value:t},e)},open:y,onOpen:e=>{(function(e){return!!e.key})(e)&&"Enter"===e.key||w(!0)},onClose:(e,r)=>{if(t.editMode!==Nt.Row){if("backdropClick"===r||"Escape"===e.key){const t=g.current.getCellParams(o,a);g.current.publishEvent("cellEditStop",(0,n.A)({},t,{reason:"Escape"===e.key?Ft.escapeKeyDown:Ft.cellFocusOut}))}}else w(!1)},error:d,native:C,fullWidth:!0,slotProps:{htmlInput:{ref:v}}},f,m?.root,t.slotProps?.baseSelect,{children:x.map((e=>{const o=A(e);return(0,r.createElement)(t.slots.baseSelectOption,(0,n.A)({},t.slotProps?.baseSelectOption||{},{native:C,key:o,value:o}),E(e))}))})):null}const Kt=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],Ut=({column:e,OptionComponent:t,getOptionLabel:o,getOptionValue:i,isSelectNative:a,baseSelectOptionProps:l})=>["",..._t(e)||[]].map((e=>{const s=i(e);let c=o(e);return""===c&&(c=" "),(0,r.createElement)(t,(0,n.A)({},l,{native:a,key:s,value:s}),c)}));function qt(e){const{item:t,applyValue:o,type:i,apiRef:a,focusElementRef:s,tabIndex:c,clearButton:u,headerFilterMenu:d,slotProps:p}=e,h=(0,l.A)(e,Kt),m=t.value??"",f=(0,$e.A)(),g=(0,$e.A)(),b=(0,S.A)(),v=b.slotProps?.baseSelect?.native??!1;let y=null;if(t.field){const e=a.current.getColumn(t.field);Bt(e)&&(y=e)}const w=y?.getOptionValue,C=y?.getOptionLabel,x=r.useMemo((()=>_t(y)),[y]),A=r.useCallback((e=>{let r=e.target.value;r=Vt(r,x,w),o((0,n.A)({},t,{value:r}))}),[x,w,o,t]);if(!Bt(y))return null;const E=p?.root.label??a.current.getLocaleText("filterPanelInputLabel");return(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(b.slots.baseSelect,(0,n.A)({fullWidth:!0,id:f,label:E,labelId:g,value:m,onChange:A,slotProps:{htmlInput:(0,n.A)({tabIndex:c,ref:s,type:i||"text",placeholder:p?.root.placeholder??a.current.getLocaleText("filterPanelInputPlaceholder")},p?.root.slotProps?.htmlInput)},native:v},b.slotProps?.baseSelect,h,p?.root,{children:Ut({column:y,OptionComponent:b.slots.baseSelectOption,getOptionLabel:C,getOptionValue:w,isSelectNative:v,baseSelectOptionProps:b.slotProps?.baseSelectOption})})),d,u]})}const Xt=["item","applyValue","type","apiRef","focusElementRef","slotProps"];const Yt=e=>null!=e&&Fe(e)?e.value:e,Qt=(0,n.A)({},st,{type:"singleSelect",getOptionLabel:e=>Fe(e)?e.label:String(e),getOptionValue:e=>Fe(e)?e.value:e,valueFormatter(e,t,o,n){const r=Ct(n,t);if(!Bt(o))return"";const i=_t(o,{id:r,row:t});if(null==e)return"";if(!i)return e;if("object"!=typeof i[0])return o.getOptionLabel(e);const a=i.find((t=>o.getOptionValue(t)===e));return a?o.getOptionLabel(a):""},renderEditCell:e=>(0,M.jsx)(Gt,(0,n.A)({},e)),filterOperators:[{value:"is",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>Yt(t)===Yt(e.value),InputComponent:qt},{value:"not",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>Yt(t)!==Yt(e.value),InputComponent:qt},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(Yt);return e=>t.includes(Yt(e))},InputComponent:function(e){const{item:t,applyValue:o,type:i,apiRef:a,focusElementRef:s,slotProps:c}=e,u=(0,l.A)(e,Xt),d=(0,$e.A)(),p=(0,S.A)();let h=null;if(t.field){const e=a.current.getColumn(t.field);Bt(e)&&(h=e)}const m=h?.getOptionValue,f=h?.getOptionLabel,g=r.useCallback(((e,t)=>m(e)===m(t)),[m]),b=r.useMemo((()=>_t(h)||[]),[h]),v=r.useMemo((()=>Array.isArray(t.value)?t.value.reduce(((e,t)=>{const o=b.find((e=>m(e)===t));return null!=o&&e.push(o),e}),[]):[]),[m,t.value,b]),y=r.useCallback(((e,r)=>{o((0,n.A)({},t,{value:r.map(m)}))}),[o,t,m]),w=p.slots.baseAutocomplete;return(0,M.jsx)(w,(0,n.A)({multiple:!0,options:b,isOptionEqualToValue:g,id:d,value:v,onChange:y,getOptionLabel:f,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:i||"text",inputRef:s}}},u,c?.root))}}],pastedValueParser:(e,t,o)=>{const n=o,r=_t(n)||[],i=n.getOptionValue;if(r.find((t=>i(t)===e)))return e}});var Jt=o(411);const Zt=["open","target","onClose","children","position","className","onExited"],eo=(0,m.Ay)(Ce,{name:"MuiDataGrid",slot:"Menu"})({zIndex:g.f.zIndex.menu,[`& .${f.x.menuList}`]:{outline:0}});function to(e){const{open:t,target:o,onClose:i,children:a,position:c,className:u,onExited:p}=e,h=(0,l.A)(e,Zt),m=(0,W.h)(),g=(0,S.A)(),b=(e=>{const{classes:t}=e;return(0,d.A)({root:["menu"]},f.B,t)})(g),v=P(),y=r.useRef(null);return(0,we.A)((()=>{t?y.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(y.current?.focus?.(),y.current=null)}),[t]),r.useEffect((()=>{const e=t?"menuOpen":"menuClose";m.current.publishEvent(e,{target:o})}),[m,t,o]),(0,M.jsx)(eo,(0,n.A)({as:g.slots.basePopper,className:(0,s.A)(b.root,u,v),ownerState:g,open:t,target:o,transition:!0,placement:c,onClickAway:e=>{e.target&&(o===e.target||o?.contains(e.target))||i(e)},onExited:p,clickAwayMouseEvent:"onMouseDown"},h,g.slotProps?.basePopper,{children:a}))}const oo=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"];function no(e){const{colDef:t,id:o,hasFocus:i,tabIndex:a,position:s="bottom-end",focusElementRef:c}=e,u=(0,l.A)(e,oo),[d,p]=r.useState(-1),[h,m]=r.useState(!1),g=(0,W.h)(),b=r.useRef(null),v=r.useRef(null),y=r.useRef(!1),w=r.useRef({}),C=(0,Jt.I)(),x=(0,$e.A)(),A=(0,$e.A)(),E=(0,S.A)();if(!(e=>"function"==typeof e.getActions)(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const k=t.getActions(g.current.getRowParams(o)),R=k.filter((e=>!e.props.showInMenu)),I=k.filter((e=>e.props.showInMenu)),P=R.length+(I.length?1:0);r.useLayoutEffect((()=>{i||Object.entries(w.current).forEach((([e,t])=>{t?.stop({},(()=>{delete w.current[e]}))}))}),[i]),r.useEffect((()=>{d<0||!b.current||d>=b.current.children.length||b.current.children[d].focus({preventScroll:!0})}),[d]),r.useEffect((()=>{i||(p(-1),y.current=!1)}),[i]),r.useImperativeHandle(c,(()=>({focus(){if(!y.current){const e=k.findIndex((e=>!e.props.disabled));p(e)}}})),[k]),r.useEffect((()=>{d>=P&&p(P-1)}),[d,P]);const O=()=>{m(!1)},T=e=>t=>{w.current[e]=t},$=(e,t)=>o=>{p(e),y.current=!0,t&&t(o)};return(0,M.jsxs)("div",(0,n.A)({role:"menu",ref:b,tabIndex:-1,className:f.x.actionsCell,onKeyDown:e=>{if(P<=1)return;const t=(e,o)=>{if(e<0||e>k.length)return e;const n=("left"===o?-1:1)*(C?-1:1);return k[e+n]?.props.disabled?t(e+n,o):e+n};let o=d;"ArrowRight"===e.key?o=t(d,"right"):"ArrowLeft"===e.key&&(o=t(d,"left")),o<0||o>=P||o!==d&&(e.preventDefault(),e.stopPropagation(),p(o))}},u,{children:[R.map(((e,t)=>r.cloneElement(e,{key:t,touchRippleRef:T(t),onClick:$(t,e.props.onClick),tabIndex:d===t?a:-1}))),I.length>0&&A&&(0,M.jsx)(E.slots.baseIconButton,(0,n.A)({ref:v,id:A,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?x:void 0,role:"menuitem",size:"small",onClick:e=>{e.stopPropagation(),e.preventDefault(),h?O():(m(!0),p(P-1),y.current=!0)},touchRippleRef:T(A),tabIndex:d===R.length?a:-1},E.slotProps?.baseIconButton,{children:(0,M.jsx)(E.slots.moreActionsIcon,{fontSize:"small"})})),I.length>0&&(0,M.jsx)(to,{open:h,target:v.current,position:s,onClose:O,children:(0,M.jsx)(E.slots.baseMenuList,{id:x,className:f.x.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Escape"].includes(e.key)&&O()},"aria-labelledby":A,autoFocusItem:!0,children:I.map(((e,t)=>r.cloneElement(e,{key:t,closeMenu:O})))})})]}))}const ro="actions",io=(0,n.A)({},st,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>(0,M.jsx)(no,(0,n.A)({},e)),getApplyQuickFilterFn:()=>null}),ao=(0,T.gz)((e=>e.headerFiltering)),lo=(0,T.Mz)(ao,(e=>e?.enabled??!1)),so=(0,T.Mz)(ao,(e=>e.editing)),co=(0,T.Mz)(ao,(e=>e.menuOpen)),uo=(0,T.gz)((e=>e.columnGrouping)),po=(0,T.S)(uo,(e=>e?.unwrappedGroupingModel??{})),ho=(0,T.S)(uo,(e=>e?.lookup??{})),mo=(0,T.S)(uo,(e=>e?.headerStructure??[])),fo=(0,T.Mz)(uo,(e=>e?.maxDepth??0)),go=["maxWidth","minWidth","width","flex"],bo={string:st,number:ut,date:At,dateTime:Et,boolean:Dt,singleSelect:Qt,[ro]:io,custom:st},vo=(e,t)=>{const o={};let r=0,i=0;const a=[];e.orderedFields.forEach((t=>{let l=e.lookup[t],s=0,c=!1;!1!==e.columnVisibilityModel[t]&&(l.flex&&l.flex>0?(r+=l.flex,c=!0):s=He(l.width||st.width,l.minWidth||st.minWidth,l.maxWidth||st.maxWidth),i+=s),l.computedWidth!==s&&(l=(0,n.A)({},l,{computedWidth:s})),c&&a.push(l),o[t]=l}));const l=void 0===t?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),s=Math.max(l-i,0);if(r>0&&l>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:o}){const n=new Set(o.map((e=>e.field))),r={all:{},frozenFields:[],freeze:e=>{const t=r.all[e];t&&!0!==t.frozen&&(r.all[e].frozen=!0,r.frozenFields.push(e))}};return function i(){if(r.frozenFields.length===n.size)return;const a={min:{},max:{}};let l=e,s=t,c=0;r.frozenFields.forEach((e=>{l-=r.all[e].computedWidth,s-=r.all[e].flex}));for(let e=0;et.maxWidth&&(c+=t.maxWidth-n,n=t.maxWidth,a.max[t.field]=!0),r.all[t.field]={frozen:!1,computedWidth:n,flex:t.flex}}c<0?Object.keys(a.max).forEach((e=>{r.freeze(e)})):c>0?Object.keys(a.min).forEach((e=>{r.freeze(e)})):o.forEach((({field:e})=>{r.freeze(e)})),i()}(),r.all}({initialFreeSpace:s,totalFlexUnits:r,flexColumns:a});Object.keys(e).forEach((t=>{o[t].computedWidth=e[t].computedWidth}))}return(0,n.A)({},e,{lookup:o})};function yo(e){let t=bo.string;return e&&bo[e]&&(t=bo[e]),t}const wo=({apiRef:e,columnsToUpsert:t,initialState:o,columnVisibilityModel:r=(0,j.FY)(e),keepOnlyColumnsToUpsert:i=!1,updateInitialVisibilityModel:a=!1})=>{const l=!e.current.state.columns;let s;if(l)s={orderedFields:[],lookup:{},columnVisibilityModel:r,initialColumnVisibilityModel:r};else{const t=(0,j.em)(e);s={orderedFields:i?[]:[...t.orderedFields],lookup:(0,n.A)({},t.lookup),columnVisibilityModel:r,initialColumnVisibilityModel:a?r:t.initialColumnVisibilityModel}}let c={};i&&!l&&(c=Object.keys(s.lookup).reduce(((e,t)=>(0,n.A)({},e,{[t]:!1})),{}));const u={};t.forEach((e=>{const{field:t}=e;u[t]=!0,c[t]=!0;let o=s.lookup[t];null==o?(o=(0,n.A)({},yo(e.type),{field:t,hasBeenResized:!1}),s.orderedFields.push(t)):i&&s.orderedFields.push(t),o&&o.type!==e.type&&(o=(0,n.A)({},yo(e.type),{field:t}));let r=o.hasBeenResized;go.forEach((t=>{void 0!==e[t]&&(r=!0,-1===e[t]&&(e[t]=1/0))})),s.lookup[t]=(0,ye.A)(o,(0,n.A)({},yo(e.type),e,{hasBeenResized:r}))})),i&&!l&&Object.keys(s.lookup).forEach((e=>{c[e]||delete s.lookup[e]}));const d=((e,t)=>{if(!t)return e;const{orderedFields:o=[],dimensions:r={}}=t,i=Object.keys(r);if(0===i.length&&0===o.length)return e;const a={},l=[];for(let t=0;t!a[e]))],c=(0,n.A)({},e.lookup);for(let e=0;e{o[e]=-1===t?1/0:t})),c[t]=o}return(0,n.A)({},e,{orderedFields:s,lookup:c})})(e.current.unstable_applyPipeProcessors("hydrateColumns",s),o);return vo(d,e.current.getRootDimensions?.()??void 0)};function Co(e,t){if(t.listView)return 0;const o=D(e),n=fo(e),r=lo(e);return Math.floor(t.columnHeaderHeight*o)+Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*o)*n+(r?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*o):0)}const xo=(0,Y.A)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${f.x["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${f.x["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})((()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${f.x["scrollArea--left"]}`]:{left:0},[`&.${f.x["scrollArea--right"]}`]:{right:0}}))),Ao=(0,T.Mz)(Q,((e,t)=>"left"===t?e.leftPinnedWidth:"right"===t?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0));function Eo(e){const{scrollDirection:t,scrollPosition:o}=e,i=r.useRef(null),a=(0,W.h)(),l=(0,ve.A)(),s=(0,b.Nc)(a,D),c=(0,b.Nc)(a,J),u=(0,b.Nc)(a,Ao,t),p=()=>{const e=Q(a);if("left"===t)return o.current.left>0;if("right"===t){const t=c-e.viewportInnerSize.width;return o.current.left{const{scrollDirection:t,classes:o}=e,n={root:["scrollArea",`scrollArea--${t}`]};return(0,d.A)(n,f.B,o)})(v),w=Co(a,g),C=Math.floor(g.columnHeaderHeight*s),x={height:C,top:w-C};"left"===t?x.left=u:"right"===t&&(x.right=u);const A=(0,ce.A)((e=>{let n;if(e.preventDefault(),"left"===t)n=e.clientX-i.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("MUI X: Wrong drag direction");n=Math.max(1,e.clientX-i.current.getBoundingClientRect().left)}n=1.5*(n-1)+1,l.start(0,(()=>{a.current.scroll({left:o.current.left+n,top:o.current.top})}))}));return fe(a,"scrollPositionChange",(()=>{m(p)})),h?(0,M.jsx)(xo,{ref:i,className:y.root,ownerState:v,onDragOver:A,style:x}):null}const So=h((function(e){const t=(0,W.h)(),[o,i]=r.useState(!1);return fe(t,"columnHeaderDragStart",(()=>i(!0))),fe(t,"columnHeaderDragEnd",(()=>i(!1))),o?(0,M.jsx)(Eo,(0,n.A)({},e)):null}));var ko=o(40961),Ro=o(15870),Mo=o(26630);const Io=()=>{};var Po=o(32067);let Oo=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({});const To=(e,t,o)=>t>0&&e>0?Math.ceil(e/t):-1===e?o+2:0,$o=e=>({page:0,pageSize:e?0:100}),zo=(e,t)=>{if(t===Oo.DataGrid&&e>100)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"))},Do=(0,T.gz)((e=>e.pagination)),Lo=(0,T.Mz)(Do,(e=>e.enabled&&"client"===e.paginationMode)),Fo=(0,T.Mz)(Do,(e=>e.paginationModel)),No=(0,T.Mz)(Do,(e=>e.rowCount)),Ho=(0,T.Mz)(Do,(e=>e.meta)),jo=(0,T.Mz)(Fo,(e=>e.page)),Bo=(0,T.Mz)(Fo,(e=>e.pageSize)),_o=(0,T.Mz)(Fo,No,((e,t)=>To(t,e.pageSize,e.page))),Vo=(0,T.S)(Lo,Fo,Se.qj,Se.V2,Po.em,Po.tW,((e,t,o,n,r,i)=>{if(!e)return null;const a=i.length,l=Math.min(t.pageSize*t.page,a-1),s=-1===t.pageSize?a-1:Math.min(l+t.pageSize-1,a-1);if(-1===l||-1===s)return null;if(n<2)return{firstRowIndex:l,lastRowIndex:s};const c=i[l],u=s-l+1,d=r.findIndex((e=>e.id===c.id));let p=d,h=0;for(;p0)&&(p+=1),0===t&&(h+=1))}return{firstRowIndex:d,lastRowIndex:p-1}})),Wo=(0,T.S)(Po.em,Vo,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),Go=(0,T.S)(Po.ux,Vo,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),Ko=(0,T.S)(Lo,Vo,Wo,Po.em,((e,t,o,n)=>e?{rows:o,range:t,rowIdToIndexMap:o.reduce(((e,t,o)=>(e.set(t.id,o),e)),new Map)}:{rows:n,range:0===n.length?null:{firstRowIndex:0,lastRowIndex:n.length-1},rowIdToIndexMap:n.reduce(((e,t,o)=>(e.set(t.id,o),e)),new Map)})),Uo=(e,t)=>Ko(e),qo=(e,t)=>(0,b.Nc)(e,Ko),Xo=("undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"empty").includes("firefox"),Yo=(0,T.gz)((e=>e.rowsMeta)),Qo=(0,T.gz)((e=>e.virtualization)),Jo=((0,T.Mz)(Qo,(e=>e.enabled)),(0,T.Mz)(Qo,(e=>e.enabledForColumns))),Zo=(0,T.Mz)(Qo,(e=>e.enabledForRows)),en=(0,T.Mz)(Qo,(e=>e.renderContext)),tn=(0,T.S)((e=>e.current.state.virtualization.renderContext.firstColumnIndex),(e=>e.current.state.virtualization.renderContext.lastColumnIndex),((e,t)=>({firstColumnIndex:e,lastColumnIndex:t})));function on(e,t,o){const n=r.useRef(!0);(0,we.A)((()=>{n.current=!1,e.current.register(o,t)}),[e,o,t]),n.current&&e.current.register(o,t)}const nn={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},rn=(e,t)=>{const{disableVirtualization:o,autoHeight:r}=t,i={enabled:!o,enabledForColumns:!o,enabledForRows:!o&&!r,renderContext:nn};return(0,n.A)({},e,{virtualization:i})},an=(0,T.gz)((e=>e.rowSpanning)),ln=(0,T.Mz)(an,(e=>e.hiddenCells)),sn=(0,T.Mz)(an,(e=>e.spannedCells)),cn=(0,T.Mz)(an,(e=>e.hiddenCellOriginMap)),un=(0,T.gz)((e=>e.listViewColumn));var dn=o(3068);const pn=(0,T.gz)((e=>e.focus)),hn=(0,T.Mz)(pn,(e=>e.cell)),mn=(0,T.Mz)(pn,(e=>e.columnHeader)),fn=((0,T.Mz)(pn,(e=>e.columnHeaderFilter)),(0,T.Mz)(pn,(e=>e.columnGroupHeader))),gn=(0,T.gz)((e=>e.tabIndex)),bn=(0,T.Mz)(gn,(e=>e.cell)),vn=(0,T.Mz)(gn,(e=>e.columnHeader)),yn=((0,T.Mz)(gn,(e=>e.columnHeaderFilter)),(0,T.Mz)(gn,(e=>e.columnGroupHeader))),wn=(0,T.Mz)(hn,en,Ko,j.iv,((e,t,o,n)=>{if(!e)return!1;const r=o.rowIdToIndexMap.get(e.id),i=n.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex((t=>t.field===e.field));return!(void 0!==r&&-1!==i&&r>=t.firstRowIndex&&r<=t.lastRowIndex)})),Cn=(0,T.S)(wn,j.iv,Ko,hn,((e,t,o,r)=>{if(!e)return null;const i=o.rowIdToIndexMap.get(r.id);if(void 0===i)return null;const a=t.findIndex((e=>e.field===r.field));return-1===a?null:(0,n.A)({},r,{rowIndex:i,columnIndex:a})}));function xn(e,t){return Math.round(e*10**t)/10**t}const An="undefined"!=typeof window&&/jsdom|HappyDOM/.test(window.navigator.userAgent);class En{constructor(e){this.data=void 0,this.data=e.ids}has(e){return this.data.has(e)}select(e){this.data.add(e)}unselect(e){this.data.delete(e)}}class Sn{constructor(e){this.data=void 0,this.data=e.ids}has(e){return!this.data.has(e)}select(e){this.data.delete(e)}unselect(e){this.data.add(e)}}const kn=e=>"include"===e.type?new En(e):new Sn(e),Rn=(0,T.gz)((e=>e.rowSelection)),Mn=(0,T.S)(Rn,kn),In=(0,T.Mz)(Rn,Po.ee,((e,t)=>"include"===e.type?e.ids.size:t-e.ids.size)),Pn=(0,T.S)(Rn,Se.rI,Se.A6,((e,t,o)=>{const n=new Map;if("include"===e.type)for(const o of e.ids)n.set(o,t[o]);else for(let r=0;r{const e=y(),t=(0,S.A)(),{listView:o}=t,i=(0,b.Nc)(e,(()=>o?[un(e)]:(0,j.iv)(e))),a=(0,b.Nc)(e,Zo)&&!An,l=(0,b.Nc)(e,Jo)&&!An,s=(0,b.Nc)(e,Se.$2),c=(0,j.Q1)(e),u=o?dn.u:c,d=s.bottom.length>0,[p,h]=r.useState($n),m=(0,Jt.I)(),f=(0,b.Nc)(e,Mn),g=qo(e),v=e.current.mainElementRef,w=e.current.virtualScrollerRef,C=e.current.virtualScrollbarVerticalRef,x=e.current.virtualScrollbarHorizontalRef,A=(0,b.Nc)(e,j.kw),E=r.useRef(!1),k=(0,b.Nc)(e,Z),R=(0,b.Nc)(e,ee),I=(0,b.Nc)(e,J),P=(0,b.Nc)(e,Dn),O=(0,b.Nc)(e,le),T=(0,b.Nc)(e,ne),$=r.useRef(null),z=r.useCallback((t=>{if(v.current=t,!t)return;const o=t.getBoundingClientRect();let n={width:xn(o.width,1),height:xn(o.height,1)};if((!$.current||n.width!==$.current.width&&n.height!==$.current.height)&&($.current=n,e.current.publishEvent("resize",n)),"undefined"==typeof ResizeObserver)return;const r=new ResizeObserver((t=>{const o=t[0];if(!o)return;const r={width:xn(o.contentRect.width,1),height:xn(o.contentRect.height,1)};r.width===n.width&&r.height===n.height||(e.current.publishEvent("resize",r),n=r)}));return r.observe(t),Mo.A>=19?()=>{v.current=null,r.disconnect()}:void 0}),[e,v]),D=r.useRef(t.initialState?.scroll??Tn),L=r.useRef(!1),F=r.useRef(Tn),N=r.useRef(nn),H=(0,b.Nc)(e,en),B=(0,b.Nc)(e,Cn),_=(0,ve.A)(),V=r.useRef(void 0),W=(0,Ro.A)((()=>((e,t,o,n)=>({direction:On.NONE,buffer:Vn(e,On.NONE,t,o,n,300)}))(m,t.rowBufferPx,t.columnBufferPx,15*k))).current,G=r.useCallback((t=>{if(Bn(t,e.current.state.virtualization.renderContext))return;const o=t.firstRowIndex!==N.current.firstRowIndex||t.lastRowIndex!==N.current.lastRowIndex;e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{renderContext:t})}))),Q(e).isReady&&o&&(N.current=t,e.current.publishEvent("renderedRowsIntervalChange",t)),F.current=D.current}),[e]),K=(0,ce.A)((()=>{const o=w.current;if(!o)return;const n=Q(e),r=Math.ceil(n.minimumSize.height-n.viewportOuterSize.height),i=Math.ceil(n.minimumSize.width-n.viewportInnerSize.width),s={top:He(o.scrollTop,0,r),left:m?He(o.scrollLeft,-i,0):He(o.scrollLeft,0,i)},c=s.left-D.current.left,u=s.top-D.current.top,d=0!==c||0!==u;D.current=s;const p=d?function(e,t){return 0===e&&0===t?On.NONE:Math.abs(t)>=Math.abs(e)?t>0?On.DOWN:On.UP:e>0?On.RIGHT:On.LEFT}(c,u):On.NONE,h=Math.abs(D.current.top-F.current.top),f=Math.abs(D.current.left-F.current.left),g=h>=k||f>=50,b=W.direction!==p;if(!g&&!b)return H;if(b)switch(p){case On.NONE:case On.LEFT:case On.RIGHT:V.current=void 0;break;default:V.current=H}W.direction=p,W.buffer=Vn(m,p,t.rowBufferPx,t.columnBufferPx,15*k,300);const v=Fn(Ln(e,t,a,l),D.current,W);return Bn(v,H)||(ko.flushSync((()=>{G(v)})),_.start(1e3,K)),v})),U=()=>{if(!Q(e).isReady&&(a||l))return;const o=Fn(Ln(e,t,a,l),D.current,W);V.current=void 0,G(o)},q=(0,ce.A)((()=>{if(L.current)return void(L.current=!1);const t=K();e.current.publishEvent("scrollPositionChange",{top:D.current.top,left:D.current.left,renderContext:t})})),X=(0,ce.A)((t=>{e.current.publishEvent("virtualScrollerWheel",{},t)})),Y=(0,ce.A)((t=>{e.current.publishEvent("virtualScrollerTouchMove",{},t)})),te=r.useMemo((()=>({overflowX:!P||o?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0})),[P,t.autoHeight,o]),oe=r.useMemo((()=>{const e={width:P?I:"auto",flexBasis:R,flexShrink:0};return 0===e.flexBasis&&(e.flexBasis=wt.SN),e}),[I,R,P]),re=r.useCallback((t=>{t&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:I,contentHeight:R})}),[e,I,R]);return(0,we.A)((()=>{E.current&&e.current.updateRenderContext?.()}),[e,l,a]),(0,we.A)((()=>{o&&(w.current.scrollLeft=0)}),[o,w]),(o=>{const n=r.useRef(!1);(0,we.A)((()=>n.current||!o?Io:(n.current=!0,(()=>{if(e.current.publishEvent("scrollPositionChange",{top:D.current.top,left:D.current.left,renderContext:H}),E.current=!0,t.initialState?.scroll&&w.current){const o=w.current,{top:n,left:r}=t.initialState.scroll,i={top:!(n>0),left:!(r>0)};if(!i.left&&I&&(o.scrollLeft=r,L.current=!0,i.left=!0),!i.top&&R&&(o.scrollTop=n,L.current=!0,i.top=!0),!i.top||!i.left){const t=e.current.subscribeEvent("virtualScrollerContentSizeChange",(e=>{!i.left&&e.columnsTotalWidth&&(o.scrollLeft=r,L.current=!0,i.left=!0),!i.top&&e.contentHeight&&(o.scrollTop=n,L.current=!0,i.top=!0),i.left&&i.top&&t()}));return t}}})())),[n.current||o])})(H!==nn),e.current.register("private",{updateRenderContext:U}),be(e,"sortedRowsSet",U),be(e,"paginationModelChange",U),be(e,"columnsChange",U),{renderContext:H,setPanels:h,getRows:(o={})=>{if(!o.rows&&!g.range)return[];const r=(0,Se.qj)(e);let a=H;o.renderContext&&(a=o.renderContext,a.firstColumnIndex=H.firstColumnIndex,a.lastColumnIndex=H.lastColumnIndex);const l=!d&&void 0===o.position||d&&"bottom"===o.position,c=void 0!==o.position;let h;switch(o.position){case"top":h=0;break;case"bottom":h=s.top.length+g.rows.length;break;case void 0:h=s.top.length}const m=o.rows??g.rows,b=a.firstRowIndex,v=Math.min(a.lastRowIndex,m.length),y=o.rows?je(0,o.rows.length):je(b,v);let w=-1;!c&&B&&(B.rowIndexv&&(y.push(B.rowIndex),w=B.rowIndex));const C=[],x=t.slotProps?.row,E=(0,j.Sw)(e);return y.forEach((s=>{const{id:d,model:b}=m[s];if(!r[d])return;const v=(g?.range?.firstRowIndex||0)+h+s;if(A){const t=u.left.length,o=i.length-u.right.length;e.current.calculateColSpan({rowId:d,minFirstColumn:t,maxLastColumn:o,columns:i}),u.left.length>0&&e.current.calculateColSpan({rowId:d,minFirstColumn:0,maxLastColumn:u.left.length,columns:i}),u.right.length>0&&e.current.calculateColSpan({rowId:d,minFirstColumn:i.length-u.right.length,maxLastColumn:i.length,columns:i})}const y=e.current.rowHasAutoHeight(d)?"auto":e.current.unstable_getRowHeight(d),S=f.has(d)&&e.current.isRowSelectable(d);let k=!1;void 0===o.position&&(k=0===s);let R=!1;const P=s===m.length-1;l&&(c?R=P:s===g.rows.length-1&&(R=!0));let $=a;V.current&&s>=V.current.firstRowIndex&&s({ref:z}),getScrollerProps:()=>({ref:w,onScroll:q,onWheel:X,onTouchMove:Y,style:te,role:"presentation",tabIndex:Xo?-1:void 0}),getContentProps:()=>({style:oe,role:"presentation",ref:re}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:C,scrollPosition:D}),getScrollbarHorizontalProps:()=>({ref:x,scrollPosition:D}),getScrollAreaProps:()=>({scrollPosition:D})}};function Dn(e){return e.current.state.dimensions.viewportOuterSize.width>0&&e.current.state.dimensions.columnsTotalWidth>e.current.state.dimensions.viewportOuterSize.width}function Ln(e,t,o,n){const r=Q(e),i=Uo(e),a=t.listView?[un(e)]:(0,j.iv)(e),l=cn(e),s=e.current.state.rows.dataRowIds.at(-1),c=a.at(-1);return{enabledForRows:o,enabledForColumns:n,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:r.leftPinnedWidth,columnsTotalWidth:r.columnsTotalWidth,viewportInnerWidth:r.viewportInnerSize.width,viewportInnerHeight:r.viewportInnerSize.height,lastRowHeight:void 0!==s?e.current.unstable_getRowHeight(s):0,lastColumnWidth:c?.computedWidth??0,rowsMeta:Yo(e),columnPositions:(0,j.Sw)(e),rows:i.rows,range:i.range,pinnedColumns:(0,j.Q1)(e),visibleColumns:a,hiddenCellsOriginMap:l,listView:t.listView??!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function Fn(e,t,o){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:i,left:a}=t,l=Math.abs(a)+e.leftPinnedWidth;if(e.enabledForRows){let t=Math.min(Nn(e,i,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const o=e.hiddenCellsOriginMap[t];if(o){const e=Math.min(...Object.values(o));t=Math.min(t,e)}const n=e.autoHeight?t+e.rows.length:Nn(e,i+e.viewportInnerHeight);r.firstRowIndex=t,r.lastRowIndex=n}if(e.listView)return(0,n.A)({},r,{lastColumnIndex:1});if(e.enabledForColumns){let t=0,n=e.columnPositions.length,i=!1;const[a,s]=jn({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:o.buffer.rowBefore,bufferAfter:o.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let t=a;t=0;){a=!0;for(let e=o;e=e.range.lastRowIndex);const i=He(n-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return r||e.rowsMeta.positions[i]>=t?Hn(t,e.rowsMeta.positions,o):function(e,t,o,n){let r=1;for(;o=r)return n;const i=n+Math.floor((r-n)/2),a=t[i];let l;return l=o?.atStart?e-((i===t.length-1?o.lastPosition:t[i+1])-a)"overlayType"!==e&&"loadingOverlayVariant"!==e&&"right"!==e})((({overlayType:e,loadingOverlayVariant:t,right:o})=>"skeleton"!==t?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${o}px`,width:0,height:0,zIndex:"loadingOverlay"===e?5:4}:{})),Gn=(0,Y.A)("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>"overlayType"!==e&&"loadingOverlayVariant"!==e})({});function Kn(e){const t=(0,W.h)(),o=(0,S.A)(),r=(0,b.Nc)(t,Q);let i=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);0===i&&(i=wt.SN);const a=(e=>{const{classes:t}=e;return(0,d.A)({root:["overlayWrapper"],inner:["overlayWrapperInner"]},f.B,t)})((0,n.A)({},e,{classes:o.classes}));return(0,M.jsx)(Wn,(0,n.A)({className:a.root},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:(0,M.jsx)(Gn,(0,n.A)({className:a.inner,style:{height:i,width:r.viewportOuterSize.width}},e))}))}const Un=(0,T.gz)((e=>e.pivoting)),qn=(0,T.Mz)(Un,(e=>e?.active)),Xn=new Map,Yn=(0,T.Mz)(Un,(e=>e?.initialColumns||Xn));(0,T.Mz)(Un,(e=>e?.panelOpen));var Qn=o(5009);const Jn=(0,T.gz)((e=>e.columnMenu)),Zn=h((function(){const e=y(),t=(0,S.A)(),o=(0,b.Nc)(e,j.iv),r=(0,b.Nc)(e,Po.od),i=(0,b.Nc)(e,Qn.oF),a=(0,b.Nc)(e,vn),l=(0,b.Nc)(e,(()=>null===bn(e))),s=(0,b.Nc)(e,yn),c=(0,b.Nc)(e,mn),u=(0,b.Nc)(e,fn),d=(0,b.Nc)(e,fo),p=(0,b.Nc)(e,Jn),h=(0,b.Nc)(e,j.FY),m=(0,b.Nc)(e,mo),f=!(null===s&&null===a&&l),g=e.current.columnHeadersContainerRef;return(0,M.jsx)(t.slots.columnHeaders,(0,n.A)({ref:g,visibleColumns:o,filterColumnLookup:r,sortColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:h,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:f},t.slotProps?.columnHeaders))})),er=(0,Y.A)("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),tr=(0,Y.A)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:o,loadingOverlayVariant:n,overlayType:r}=e,i="skeleton"===n||"noColumnsOverlay"===r;return[t.main,o.hasPinnedRight&&t["main--hasPinnedRight"],i&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),or=(0,a.R)(((e,t)=>{const{ownerState:o}=e,r=(0,S.A)(),i=R().hooks.useGridAriaAttributes();return(0,M.jsxs)(tr,(0,n.A)({ownerState:o,className:e.className,tabIndex:-1},i,r.slotProps?.main,{ref:t,children:[(0,M.jsx)(er,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))})),nr=(0,Y.A)("div")({position:"sticky",zIndex:40,top:0});function rr(e){const t=(0,d.A)({root:["topContainer"]},f.B,{});return(0,M.jsx)(nr,(0,n.A)({},e,{className:(0,s.A)(t.root,f.x["container--top"]),role:"presentation"}))}const ir=(0,Y.A)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.virtualScrollerContent,o.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),ar=(0,a.R)((function(e,t){const o=(0,S.A)(),r=!o.autoHeight&&"auto"===e.style?.minHeight,i=((e,t)=>{const{classes:o}=e,n={root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]};return(0,d.A)(n,f.B,o)})(o,r),a={classes:o.classes,overflowedContent:r};return(0,M.jsx)(ir,(0,n.A)({},e,{ownerState:a,className:(0,s.A)(i.root,e.className),ref:t}))})),lr=(0,Y.A)("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),sr=(0,Y.A)("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:g.f.cell.background.pinned}),cr=(0,Y.A)(sr)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),ur=(0,Y.A)(sr)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),dr=(0,Y.A)("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"}),pr=h((function({rowsLength:e}){const t=(0,W.h)(),{viewportOuterSize:o,minimumSize:n,hasScrollX:r,hasScrollY:i,scrollbarSize:a,leftPinnedWidth:l,rightPinnedWidth:s}=(0,b.Nc)(t,Q),c=r?a:0,u=o.height-n.height>0;return 0!==c||u?(0,M.jsxs)(lr,{className:f.x.filler,role:"presentation",style:{height:c,"--rowBorderColor":0===e?"transparent":"var(--DataGrid-rowBorderColor)"},children:[l>0&&(0,M.jsx)(cr,{className:f.x["filler--pinnedLeft"],style:{width:l}}),(0,M.jsx)(dr,{}),s>0&&(0,M.jsx)(ur,{className:f.x["filler--pinnedRight"],style:{width:s+(i?a:0)}})]}):null})),hr=["className"],mr=(0,Y.A)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),fr=(0,a.R)((function(e,t){const{className:o}=e,r=(0,l.A)(e,hr),i=(0,W.h)(),a=(0,S.A)(),c=(e=>{const{classes:t}=e;return(0,d.A)({root:["virtualScrollerRenderZone"]},f.B,t)})(a),u=(0,b.Nc)(i,(()=>{const e=en(i);return Yo(i).positions[e.firstRowIndex]??0}));return(0,M.jsx)(mr,(0,n.A)({className:(0,s.A)(c.root,o),ownerState:a,style:{transform:`translate3d(0, ${u}px, 0)`}},r,{ref:t}))}));var gr=o(53172);const br=(0,Y.A)("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),vr=(0,Y.A)(br)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),yr=(0,Y.A)(br)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),wr=(0,a.R)((function(e,t){const o=y(),n=(0,S.A)(),i=r.useRef(!1),a=r.useRef(0),l=r.useRef(null),s=r.useRef(null),u=((e,t)=>{const{classes:o}=e,n={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return(0,d.A)(n,f.B,o)})(n,e.position),p=(0,b.Nc)(o,Q),h="vertical"===e.position?"height":"width",m="vertical"===e.position?"scrollTop":"scrollLeft",g="vertical"===e.position?"top":"left",v="vertical"===e.position?p.hasScrollX:p.hasScrollY,w=p.minimumSize[h]+(v?p.scrollbarSize:0),C=("vertical"===e.position?p.viewportInnerSize.height:p.viewportOuterSize.width)*(w/p.viewportOuterSize[h]),x=(0,ce.A)((()=>{const t=l.current,o=e.scrollPosition.current;if(!t)return;if(o[g]===a.current)return;if(a.current=o[g],i.current)return void(i.current=!1);i.current=!0;const n=o[g]/w;t[m]=n*C})),A=(0,ce.A)((()=>{const e=o.current.virtualScrollerRef.current,t=l.current;if(!t)return;if(i.current)return void(i.current=!1);i.current=!0;const n=t[m]/C;e[m]=n*w}));(0,gr.A)((()=>{const e=o.current.virtualScrollerRef.current,t=l.current,n={passive:!0};return e.addEventListener("scroll",x,n),t.addEventListener("scroll",A,n),()=>{e.removeEventListener("scroll",x,n),t.removeEventListener("scroll",A,n)}})),r.useEffect((()=>{s.current.style.setProperty(h,`${C}px`)}),[C,h]);const E="vertical"===e.position?vr:yr;return(0,M.jsx)(E,{ref:(0,c.A)(t,l),className:u.root,style:"vertical"===e.position&&n.listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:e=>{e.target.blur()},children:(0,M.jsx)("div",{ref:s,className:u.content})})})),Cr=(0,Y.A)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.virtualScroller,o.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),xr=e=>e.current.state.dimensions.rightPinnedWidth>0;function Ar(e){const t=(0,W.h)(),o=(0,S.A)(),r=(0,b.Nc)(t,oe),i=(0,b.Nc)(t,te),a=(0,b.Nc)(t,xr),l=(0,b.Nc)(t,se),{getOverlay:s,overlaysProps:c}=(()=>{const e=(0,W.h)(),t=(0,S.A)(),o=(0,b.Nc)(e,Se.H0),r=(0,b.Nc)(e,Po.O7),i=(0,b.Nc)(e,Se.OQ),a=(0,b.Nc)(e,j.iv),l=0===o&&0===i,s=(0,b.Nc)(e,Se.Dl),c=(0,b.Nc)(e,qn),u=!s&&l,d=!s&&o>0&&0===r,p=!s&&0===a.length;let h=null,m=null;u&&(h="noRowsOverlay"),p&&(h="noColumnsOverlay"),u&&c&&(h="emptyPivotOverlay"),d&&(h="noResultsOverlay"),s&&(h="loadingOverlay",m=t.slotProps?.loadingOverlay?.[l?"noRowsVariant":"variant"]??(l?"skeleton":"linear-progress"));const f={overlayType:h,loadingOverlayVariant:m};return{getOverlay:()=>{if(!h)return null;const e=t.slots?.[h],o=t.slotProps?.[h];return(0,M.jsx)(Kn,(0,n.A)({},f,{children:(0,M.jsx)(e,(0,n.A)({},o))}))},overlaysProps:f}})(),u=(0,n.A)({classes:o.classes,hasScrollX:i,hasPinnedRight:a},c),p=(e=>{const{classes:t,hasScrollX:o,hasPinnedRight:n,loadingOverlayVariant:r,overlayType:i}=e,a={root:["main",n&&"main--hasPinnedRight",("skeleton"===r||"noColumnsOverlay"===i)&&"main--hiddenContent"],scroller:["virtualScroller",o&&"virtualScroller--hasScrollX"]};return(0,d.A)(a,f.B,t)})(u),h=zn(),{getContainerProps:m,getScrollerProps:g,getContentProps:v,getRenderZoneProps:y,getScrollbarVerticalProps:w,getScrollbarHorizontalProps:C,getRows:x,getScrollAreaProps:A}=h,E=x();return(0,M.jsxs)(or,(0,n.A)({className:p.root},m(),{ownerState:u,children:[(0,M.jsx)(So,(0,n.A)({scrollDirection:"left"},A())),(0,M.jsx)(So,(0,n.A)({scrollDirection:"right"},A())),(0,M.jsxs)(Cr,(0,n.A)({className:p.scroller},g(),{ownerState:u,children:[(0,M.jsxs)(rr,{children:[!o.listView&&(0,M.jsx)(Zn,{}),(0,M.jsx)(o.slots.pinnedRows,{position:"top",virtualScroller:h})]}),s(),(0,M.jsx)(ar,(0,n.A)({},v(),{children:(0,M.jsxs)(fr,(0,n.A)({},y(),{children:[E,(0,M.jsx)(o.slots.detailPanels,{virtualScroller:h})]}))})),l&&(0,M.jsx)(pr,{rowsLength:E.length}),(0,M.jsx)(o.slots.bottomContainer,{children:(0,M.jsx)(o.slots.pinnedRows,{position:"bottom",virtualScroller:h})})]})),i&&!o.listView&&(0,M.jsx)(wr,(0,n.A)({position:"horizontal"},C())),r&&(0,M.jsx)(wr,(0,n.A)({position:"vertical"},w())),e.children]}))}function Er(){const e=(0,S.A)();return e.hideFooter?null:(0,M.jsx)(e.slots.footer,(0,n.A)({},e.slotProps?.footer))}const Sr=["className","children","sidePanel"],kr=(0,a.R)((function(e,t){const o=(0,S.A)(),{className:i,children:a,sidePanel:p}=e,h=(0,l.A)(e,Sr),m=y(),g=(0,b.Nc)(m,z),v=m.current.rootElementRef,w=r.useCallback((e=>{null!==e&&m.current.publishEvent("rootMount",e)}),[m]),C=(0,c.A)(v,t,w),A=o,E=((e,t)=>{const{autoHeight:o,classes:n,showCellVerticalBorder:r}=e,i={root:["root",o&&"autoHeight",`root--density${(0,u.A)(t)}`,null===e.slots.toolbar&&"root--noToolbar","withBorderColor",r&&"withVerticalBorder"]};return(0,d.A)(i,f.B,n)})(A,g),k=r.useContext(I);return(0,L.useSyncExternalStore)(F,N,H)?null:(0,M.jsxs)(x,(0,n.A)({className:(0,s.A)(E.root,i,k.className,p&&f.x.withSidePanel),ownerState:A},h,{ref:C,children:[(0,M.jsxs)("div",{className:f.x.mainContent,role:"presentation",children:[(0,M.jsx)(X,{}),(0,M.jsx)(Ar,{children:a}),(0,M.jsx)(Er,{})]}),p,k.tag]}))})),Rr=h(kr);function Mr(e,t){const o=(0,Se.qj)(e),n=(0,Qn.RJ)(e),r=(0,Po.wx)(e),i=o[t];if(!i||"group"!==i.type)return[];const a=[];for(let l=n.findIndex((e=>e===t))+1;li.depth;l+=1){const t=n[l];!1!==r[t]&&e.current.isRowSelectable(t)&&a.push(t)}return a}const Ir=(0,T.Mz)(Se.qj,Po.wx,Mn,((e,t,o,{groupId:n,autoSelectParents:r})=>{const i=e[n];if(!i||"group"!==i.type||o.has(n))return{isIndeterminate:!1,isChecked:o.has(n)};let a=!1,l=!1;const s=n=>{if(!1===t[n]||a&&l)return;const r=e[n];"group"===r?.type&&r.children.forEach(s),o.has(n)?a=!0:l=!0};return s(n),{isIndeterminate:a&&l,isChecked:!!r&&a&&!l}}));function Pr(e){return e.signature===Oo.DataGrid?e.checkboxSelection&&!0!==e.disableMultipleRowSelection:!e.disableMultipleRowSelection}const Or=(e,t,o,n,r,i,a=Mn(e))=>{const l=(0,Po.wx)(e),s=new Set([]);if((n||r)&&!1!==l[o]){if(n){const n=t[o];"group"===n?.type&&Mr(e,o).forEach((e=>{i(e),s.add(e)}))}if(r){const n=e=>{if(!a.has(e)&&!s.has(e))return!1;const o=t[e];return!!o&&("group"!==o.type||o.children.every(n))},r=o=>{const a=((e,t,o)=>{const n=e[o];if(!n)return[];const r=n.parent;return null==r?[]:e[r].children.filter((e=>e!==o&&!1!==t[e]))})(t,l,o);if(0===a.length||a.every(n)){const n=t[o],a=n?.parent;null!=a&&a!==wt.OL&&e.current.isRowSelectable(a)&&(i(a),s.add(a),r(a))}};r(o)}}},Tr=(e,t,o,n,r,i)=>{const a=Mn(e);if(r||n){if(r){const e=((e,t)=>{const o=[];let n=t;for(;null!=n&&n!==wt.OL;){const t=e[n];if(!t)return o;o.push(n),n=t.parent}return o})(t,o);e.forEach((e=>{a.has(e)&&i(e)}))}if(n){const n=t[o];"group"===n?.type&&Mr(e,o).forEach((e=>{i(e)}))}}};var $r=o(55174),zr=o(77147);function Dr({privateApiRef:e,configuration:t,props:o,children:n}){const i=r.useRef(e.current.getPublicApi());return(0,M.jsx)(k.Provider,{value:t,children:(0,M.jsx)(zr.y.Provider,{value:o,children:(0,M.jsx)(v.Provider,{value:e,children:(0,M.jsx)($r.k.Provider,{value:i,children:(0,M.jsx)(U,{children:(0,M.jsx)(O,{children:n})})})})})})}const Lr=function(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}()&&null!=window.localStorage.getItem("DEBUG"),Fr=()=>{},Nr={debug:Fr,info:Fr,warn:Fr,error:Fr},Hr=["debug","info","warn","error"];function jr(e,t,o=console){const n=Hr.indexOf(t);if(-1===n)throw new Error(`MUI X: Log level ${t} not recognized.`);return Hr.reduce(((t,r,i)=>(t[r]=i>=n?(...t)=>{const[n,...i]=t;o[r](`MUI X: ${e} - ${n}`,...i)}:Fr,t)),{})}var Br=o(20816);let _r=function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e}({});const Vr="none",Wr={dataSourceRowsUpdate:_r.DataSource,rowTreeCreation:_r.RowTree,filtering:_r.RowTree,sorting:_r.RowTree,visibleRowsLookupCreation:_r.RowTree},Gr=(e,t)=>(0,n.A)({},e,{props:{getRowId:t.getRowId}}),Kr=(e,t,o)=>{const n=r.useRef(!1);n.current||(t.current.state=e(t.current.state,o,t),n.current=!0)};function Ur(e,t){const o=r.useRef(null);if(o.current)return o.current;const n=e.current.getLogger(t);return o.current=n,n}const qr=(e,t,o,n,r)=>{const i=Ur(e,"useNativeEventListener");be(e,"rootMount",(()=>{const e=t();if(e&&o)return i.debug(`Binding native ${o} event`),e.addEventListener(o,n,r),()=>{i.debug(`Clearing native ${o} event`),e.removeEventListener(o,n,r)}}))},Xr=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Yr=(0,a.R)((function(e,t){const{field:o,id:i,rowNode:a,tabIndex:s}=e,c=(0,l.A)(e,Xr),u=(0,W.h)(),p=(0,S.A)(),h=(e=>{const{classes:t}=e;return(0,d.A)({root:["checkboxInput"]},f.B,t)})({classes:p.classes});r.useLayoutEffect((()=>{if(0===s){const e=u.current.getCellElement(i,o);e&&(e.tabIndex=-1)}}),[u,s,i,o]);const m=r.useCallback((e=>{" "===e.key&&e.stopPropagation()}),[]),g=u.current.isRowSelectable(i),{isIndeterminate:v,isChecked:y}=(0,b.Nc)(u,Ir,{groupId:i,autoSelectParents:p.rowSelectionPropagation?.parents??!1});if("footer"===a.type||"pinnedRow"===a.type)return null;const w=u.current.getLocaleText(y&&!v?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return(0,M.jsx)(p.slots.baseCheckbox,(0,n.A)({tabIndex:s,checked:y&&!v,onChange:e=>{const t={value:e.target.checked,id:i};u.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:h.root,slotProps:{htmlInput:{"aria-label":w,name:"select_row"}},onKeyDown:m,indeterminate:v,disabled:!g},p.slotProps?.baseCheckbox,c,{ref:t}))})),Qr=Yr,Jr=["field","colDef"],Zr=(0,a.R)((function(e,t){const o=(0,l.A)(e,Jr),[,i]=r.useState(!1),a=(0,W.h)(),s=(0,S.A)(),c=(e=>{const{classes:t}=e;return(0,d.A)({root:["checkboxInput"]},f.B,t)})({classes:s.classes}),u=(0,b.Nc)(a,vn),p=(0,b.Nc)(a,Rn),h=(0,b.Nc)(a,Po.ux),m=(0,b.Nc)(a,Go),g=r.useMemo((()=>{const e=s.isRowSelectable;if("function"!=typeof e)return p;if("exclude"===p.type)return p;const t={type:"include",ids:new Set};for(const o of p.ids)s.keepNonExistentRowsSelected&&t.ids.add(o),a.current.getRow(o)&&e(a.current.getRowParams(o))&&t.ids.add(o);return t}),[a,s.isRowSelectable,s.keepNonExistentRowsSelected,p]),v=r.useMemo((()=>{const e=s.pagination&&s.checkboxSelectionVisibleOnly&&"server"!==s.paginationMode?m:h,t=new Set;for(let o=0;o{const e=kn(g);let t=0;for(const o of v)e.has(o)&&(t+=1);return t}),[g,v]),w=r.useMemo((()=>{if(0===g.ids.size)return!1;const e=kn(g);for(const t of v)if(!e.has(t))return!0;return!1}),[g,v]),C=y>0,x=null!==u&&u.field===e.field?0:-1;r.useLayoutEffect((()=>{const t=a.current.getColumnHeaderElement(e.field);0===x&&t&&(t.tabIndex=-1)}),[x,a,e.field]);const A=r.useCallback((e=>{" "===e.key&&a.current.publishEvent("headerSelectionCheckboxChange",{value:!C})}),[a,C]),E=r.useCallback((()=>{i((e=>!e))}),[]);r.useEffect((()=>a.current.subscribeEvent("rowSelectionChange",E)),[a,E]);const k=a.current.getLocaleText(C&&!w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,M.jsx)(s.slots.baseCheckbox,(0,n.A)({indeterminate:w,checked:C&&!w,onChange:e=>{const t={value:e.target.checked};a.current.publishEvent("headerSelectionCheckboxChange",t)},className:c.root,slotProps:{htmlInput:{"aria-label":k,name:"select_all_rows"}},tabIndex:x,onKeyDown:A,disabled:!Pr(s)},s.slotProps?.baseCheckbox,o,{ref:t}))})),ei="__check__",ti=(0,n.A)({},Dt,{type:"custom",field:ei,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,o,n)=>{const r=Ct(n,t);return n.current.isRowSelected(r)},renderHeader:e=>(0,M.jsx)(Zr,(0,n.A)({},e)),renderCell:e=>(0,M.jsx)(Qr,(0,n.A)({},e))});function oi(e,t){if(null==e)return"";const o="string"==typeof e?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const e=o.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@","\t","\r"].includes(e[0])?`"'${e}"`:[t.delimiter,"\n","\r",'"'].some((e=>o.includes(e)))?`"${e}"`:e}return o}const ni=(e,t)=>{const{csvOptions:o,ignoreValueFormatter:n}=t;let r;if(n){const t=e.colDef.type;r="number"===t?String(e.value):"date"===t||"dateTime"===t?e.value?.toISOString():"function"==typeof e.value?.toString?e.value.toString():e.value}else r=e.formattedValue;return oi(r,o)};class ri{constructor(e){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=e}addValue(e){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),"function"==typeof this.options.sanitizeCellValue?this.rowString+=this.options.sanitizeCellValue(e,this.options.csvOptions):this.rowString+=e,this.isEmpty=!1}getRowString(){return this.rowString}}function ii(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}const ai=e=>0===e.indexOf("Arrow")||0===e.indexOf("Page")||" "===e||"Home"===e||"End"===e,li=e=>"Tab"===e||"Escape"===e;function si(e){return(e.ctrlKey||e.metaKey)&&"V"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey}function ci(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const o=document.createRange();o.selectNode(t);const n=window.getSelection();n.removeAllRanges(),n.addRange(o);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const ui=e=>(0,n.A)({},e,{columnMenu:{open:!1}}),di=e=>{const t=r.useRef(!0);t.current&&(t.current=!1,e())},pi=(e,t,o,n=!0)=>{const i=r.useRef(null),a=r.useRef(`mui-${Math.round(1e9*Math.random())}`),l=r.useCallback((()=>{i.current=e.current.registerPipeProcessor(t,a.current,o)}),[e,o,t]);di((()=>{n&&l()}));const s=r.useRef(!0);r.useEffect((()=>(s.current?s.current=!1:n&&l(),()=>{i.current&&(i.current(),i.current=null)})),[l,n])},hi=(e,t,o)=>{const n=r.useRef(null),i=r.useRef(`mui-${Math.round(1e9*Math.random())}`),a=r.useCallback((()=>{n.current=e.current.registerPipeApplier(t,i.current,o)}),[e,o,t]);di((()=>{a()}));const l=r.useRef(!0);r.useEffect((()=>(l.current?l.current=!1:a(),()=>{n.current&&(n.current(),n.current=null)})),[a])},mi=(e,t,o)=>{const r=wo({apiRef:o,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0});return(0,n.A)({},e,{columns:r,pinnedColumns:e.pinnedColumns??dn.u})};function fi(e){return t=>(0,n.A)({},t,{columns:e})}const gi=(e,t)=>(0,n.A)({},e,{density:t.initialState?.density??t.density??"standard"}),bi=({apiRef:e,options:t})=>{const o=(0,j.OV)(e);return t.fields?t.fields.reduce(((e,t)=>{const n=o.find((e=>e.field===t));return n&&e.push(n),e}),[]):(t.allColumns?o:(0,j.iv)(e)).filter((e=>!e.disableExport))},vi=({apiRef:e})=>{const t=(0,Po.qA)(e),o=(0,Se.qj)(e),n=In(e),r=t.filter((e=>"footer"!==o[e].type)),i=(0,Se.$2)(e),a=i?.top?.map((e=>e.id))||[],l=i?.bottom?.map((e=>e.id))||[];if(r.unshift(...a),r.push(...l),n>0){const t=Pn(e);return r.filter((e=>t.has(e)))}return r},yi=(0,a.R)((function(e,t){const{children:o,slotProps:i={}}=e,a=i.button||{},l=i.tooltip||{},s=(0,W.h)(),u=(0,S.A)(),d=(0,$e.A)(),p=(0,$e.A)(),[h,m]=r.useState(!1),g=r.useRef(null),b=(0,c.A)(t,g),v=()=>m(!1);return null==o?null:(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(u.slots.baseTooltip,(0,n.A)({title:s.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},u.slotProps?.baseTooltip,l,{children:(0,M.jsx)(u.slots.baseButton,(0,n.A)({size:"small",startIcon:(0,M.jsx)(u.slots.exportIcon,{}),"aria-expanded":h,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":h?p:void 0,id:d},u.slotProps?.baseButton,a,{onClick:e=>{m((e=>!e)),a.onClick?.(e)},ref:b,children:s.current.getLocaleText("toolbarExport")}))})),(0,M.jsx)(to,{open:h,target:g.current,onClose:v,position:"bottom-end",children:(0,M.jsx)(u.slots.baseMenuList,{id:p,className:f.x.menuList,"aria-labelledby":d,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),li(e.key)&&v()},autoFocusItem:h,children:r.Children.map(o,(e=>r.isValidElement(e)?r.cloneElement(e,{hideMenu:v}):e))})})]})})),wi=["hideMenu","options"],Ci=["hideMenu","options"],xi=["csvOptions","printOptions","excelOptions"];function Ai(e){const t=(0,W.h)(),o=(0,S.A)(),{hideMenu:r,options:i}=e,a=(0,l.A)(e,wi);return(0,M.jsx)(o.slots.baseMenuItem,(0,n.A)({onClick:()=>{t.current.exportDataAsCsv(i),r?.()}},a,{children:t.current.getLocaleText("toolbarExportCSV")}))}function Ei(e){const t=(0,W.h)(),o=(0,S.A)(),{hideMenu:r,options:i}=e,a=(0,l.A)(e,Ci);return(0,M.jsx)(o.slots.baseMenuItem,(0,n.A)({onClick:()=>{t.current.exportDataAsPrint(i),r?.()}},a,{children:t.current.getLocaleText("toolbarExportPrint")}))}(0,a.R)((function(e,t){const o=e,{csvOptions:i={},printOptions:a={},excelOptions:s}=o,c=(0,l.A)(o,xi),u=(0,W.h)().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:s,csvOptions:i,printOptions:a}).sort(((e,t)=>e.componentName>t.componentName?1:-1));return 0===u.length?null:(0,M.jsx)(yi,(0,n.A)({},c,{ref:t,children:u.map(((e,t)=>r.cloneElement(e.component,{key:t})))}))}));const Si=(e,t)=>{const o=Ur(e,"useGridCsvExport"),n=t.ignoreValueFormatterDuringExport,i=("object"==typeof n?n?.csvExport:n)||!1,a=r.useCallback(((t={})=>(o.debug("Get data as CSV"),function(e){const{columns:t,rowIds:o,csvOptions:n,ignoreValueFormatter:r,apiRef:i}=e,a=o.reduce(((e,o)=>`${e}${(({id:e,columns:t,getCellParams:o,csvOptions:n,ignoreValueFormatter:r})=>{const i=new ri({csvOptions:n});return t.forEach((t=>{const a=o(e,t.field);i.addValue(ni(a,{ignoreValueFormatter:r,csvOptions:n}))})),i.getRowString()})({id:o,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:r,csvOptions:n})}\r\n`),"").trim();if(!n.includeHeaders)return a;const l=t.filter((e=>e.field!==ti.field)),s=[];if(n.includeColumnGroupsHeaders){const e=i.current.getAllGroupDetails();let t=0;const o=l.reduce(((e,o)=>{const n=i.current.getColumnGroupPath(o.field);return e[o.field]=n,t=Math.max(t,n.length),e}),{});for(let r=0;r{const i=(o[n.field]||[])[r],a=e[i];t.addValue(a?a.headerName||a.groupId:"")}))}}const c=new ri({csvOptions:n,sanitizeCellValue:oi});return l.forEach((e=>{c.addValue(e.headerName||e.field)})),s.push(c),`${s.map((e=>e.getRowString())).join("\r\n")}\r\n${a}`.trim()}({columns:bi({apiRef:e,options:t}),rowIds:(t.getRowsToExport??vi)({apiRef:e}),csvOptions:{delimiter:t.delimiter||",",shouldAppendQuotes:t.shouldAppendQuotes??!0,includeHeaders:t.includeHeaders??!0,includeColumnGroupsHeaders:t.includeColumnGroupsHeaders??!0,escapeFormulas:t.escapeFormulas??!0},ignoreValueFormatter:i,apiRef:e}))),[o,e,i]),l=r.useCallback((e=>{o.debug("Export data as CSV");const t=a(e);!function(e,t="csv",o=document.title||"untitled"){const n=`${o}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),o=document.createElement("a");return o.href=t,o.download=n,o.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI X: exportAs not supported.")}(new Blob([e?.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",e?.fileName)}),[o,a]);on(e,{getDataAsCsv:a,exportDataAsCsv:l},"public");const s=r.useCallback(((e,t)=>t.csvOptions?.disableToolbarButton?e:[...e,{component:(0,M.jsx)(Ai,{options:t.csvOptions}),componentName:"csvExport"}]),[]);pi(e,"exportMenu",s)};var ki=o(10644),Ri=o(322);const Mi=(e,t,o)=>{let r=e.paginationModel;const i=e.rowCount,a=o?.pageSize??r.pageSize,l=o?.page??r.page,s=To(i,a,l);!o||o?.page===r.page&&o?.pageSize===r.pageSize||(r=o);const c=-1===a?0:((e,t=0)=>0===t?e:Math.max(Math.min(e,t-1),0))(r.page,s);return c!==r.page&&(r=(0,n.A)({},r,{page:c})),zo(r.pageSize,t),r};var Ii=o(25508);const Pi=(e,t,o,n)=>{const i=r.useCallback((()=>{e.current.registerStrategyProcessor(t,o,n)}),[e,n,o,t]);di((()=>{i()}));const a=r.useRef(!0);r.useEffect((()=>{a.current?a.current=!1:i()}),[i])},Oi=(e,t,o)=>{const r=t.filterModel??t.initialState?.filter?.filterModel??Ke();return(0,n.A)({},e,{filter:(0,n.A)({filterModel:Ye(r,t.disableMultipleColumnsFiltering,o)},Ge),visibleRowsLookup:{}})},Ti=e=>e.filteredRowsLookup;function $i(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function zi(){return(0,Ii.i5)(Object.values)}const Di=e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}});function Li(e,t){return e.closest(`.${t}`)}function Fi(e){return e.replace(/["\\]/g,"\\$&")}function Ni(e){return`.${f.x.row}[data-id="${Fi(String(e))}"]`}function Hi(e){return 1===e.target.nodeType&&!e.currentTarget.contains(e.target)}function ji(e,t){return e.rootElementRef.current.querySelector(`.${f.x[t]}`)}const Bi=({api:e,colIndex:t,position:o,filterFn:n})=>{if(null===t)return[];const r=[];return Vi(e).forEach((e=>{e.getAttribute("data-id")&&e.querySelectorAll(`.${f.x["left"===o?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach((e=>{const t=Wi(e);null!==t&&n(t)&&r.push(e)}))})),r},_i=({api:e,colIndex:t,position:o,filterFn:n})=>{if(!e.columnHeadersContainerRef?.current)return[];if(null===t)return[];const r=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${f.x["left"===o?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach((e=>{const t=Wi(e);null!==t&&n(t,e)&&r.push(e)})),r};function Vi(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${f.x.row}`)}function Wi(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const Gi=({currentColIndex:e,firstColIndex:t,lastColIndex:o,isRtl:n})=>{if(n){if(et)return e-1;return null},Ki=({currentColIndex:e,firstColIndex:t,lastColIndex:o,isRtl:n})=>{if(n){if(e>t)return e-1}else if(!n&&e(t.top||[]).concat(e.rows,t.bottom||[]))),qi=(e,t)=>{const o=(0,n.A)({},$o(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);zo(o.pageSize,t.signature);const r=t.rowCount??t.initialState?.pagination?.rowCount??("client"===t.paginationMode?e.rows?.totalRowCount:void 0),i=t.paginationMeta??t.initialState?.pagination?.meta??{};return(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:o,rowCount:r,meta:i,enabled:!0===t.pagination,paginationMode:t.paginationMode})})},Xi=(e,t)=>(0,n.A)({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}}),Yi=(0,T.gz)((e=>e.editRows)),Qi=(0,T.Mz)(Yi,((e,{rowId:t,editMode:o})=>o===Nt.Row&&Boolean(e[t]))),Ji=(0,T.Mz)(Yi,((e,{rowId:t,field:o})=>e[t]?.[o]??null)),Zi=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;default:return""}},ea=["id","field"],ta=["id","field"];var oa=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(oa||{}),na=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(na||{});const ra=["id"],ia=["id"],aa=e=>(0,n.A)({},e,{editRows:{}});var la=o(34790);const sa=(e,t,o)=>{const r=!!t.dataSource;return o.current.caches.rows=(0,wt.Z)({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),(0,n.A)({},e,{rows:(0,wt.TW)({apiRef:o,rowCountProp:t.rowCount,loadingProp:!!r||t.loading,previousTree:null,previousTreeDepths:null})})},ca=e=>"full"===e.updates.type?(e=>{const t={[wt.OL]:(0,n.A)({},(0,wt.Mk)(),{children:e})};for(let o=0;o{const o=(0,n.A)({},e),r={};for(let e=0;e!r[e]))),o[wt.OL]=(0,n.A)({},i,{children:a}),{groupingName:Vr,tree:o,treeDepths:{0:a.length},dataRowIds:a}})({previousTree:e.previousTree,actions:e.updates.actions});class ua extends Error{}const da={type:"include",ids:new Set},pa=(e,t)=>(0,n.A)({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??da:da}),ha=(e,t)=>{const o=t.sortModel??t.initialState?.sorting?.sortModel??[];return(0,n.A)({},e,{sorting:{sortModel:ke(o,t.disableMultipleColumnsSorting),sortedRows:[]}})};function ma(e){const{containerSize:t,scrollPosition:o,elementSize:n,elementOffset:r}=e,i=r+n;return n>t?r:i-t>o?i-t:r{const r=ba,i=D(o);return(0,n.A)({},e,{dimensions:(0,n.A)({},r,Ca(t,o,i,(0,j.Q1)(o)))})},ya=(0,T.Mz)(j.iv,j.Sw,((e,t)=>{const o=e.length;return 0===o?0:xn(t[o-1]+e[o-1].computedWidth,1)}));function wa(e,t){const o=(t,o)=>e.style.setProperty(t,o);o("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),o("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),o("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),o("--DataGrid-rowWidth",`${t.rowWidth}px`),o("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),o("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),o("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),o("--DataGrid-headerHeight",`${t.headerHeight}px`),o("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),o("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),o("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),o("--height",`${t.rowHeight}px`)}function Ca(e,t,o,n){const r=(0,wt.Qy)(e.rowHeight,fa.rowHeight,wt.Oq);return{rowHeight:Math.floor(r*o),headerHeight:Math.floor(e.columnHeaderHeight*o),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*o),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*o),columnsTotalWidth:ya(t),headersTotalHeight:Co(t,e),leftPinnedWidth:n.left.reduce(((e,t)=>e+t.computedWidth),0),rightPinnedWidth:n.right.reduce(((e,t)=>e+t.computedWidth),0)}}const xa=new WeakMap,Aa=void 0!==globalThis.ResizeObserver?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Ea=(e,t,o)=>{o.current.caches.rowsMeta={heights:new Map};const r=Z(o),i=(0,Se.H0)(o),a=Do(o),l=Math.min(a.enabled?a.paginationModel.pageSize:i,i);return(0,n.A)({},e,{rowsMeta:{currentPageTotalHeight:l*r,positions:Array.from({length:l},((e,t)=>t*r)),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})};function Sa(e){const{apiRef:t,lookup:o,columnIndex:n,rowId:r,minFirstColumnIndex:i,maxLastColumnIndex:a,columns:l}=e,s=l.length,c=l[n],u=t.current.getRow(r),d=t.current.getRowValue(u,c),p="function"==typeof c.colSpan?c.colSpan(d,u,c,t):c.colSpan;if(!p||1===p)return ka(o,r,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:c.computedWidth}}),{colSpan:1};let h=c.computedWidth;for(let e=1;e=i&&t{if(Ra(e)){if(void 0!==o[e.field])throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${o[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(o[e.field]=t)}const{groupId:n,children:r}=e;r.forEach((e=>{Ma(e,[...t,n],o)}))},Ia=e=>{if(!e)return{};const t={};return e.forEach((e=>{Ma(e,[],t)})),t},Pa=(e,t,o)=>{const n=e=>t[e]??[],r=[],i=Math.max(...e.map((e=>n(e).length))),a=(e,t,o)=>(0,Ri.H)(n(e).slice(0,o+1),n(t).slice(0,o+1));for(let t=0;t{const i=n(r)[t]??null;if(0===e.length)return[{columnFields:[r],groupId:i}];const l=e[e.length-1],s=l.columnFields[l.columnFields.length-1];return l.groupId!==i||!a(s,r,t)||(c=s,u=r,o?.left&&o.left.includes(c)&&!o.left.includes(u)||o?.right&&!o.right.includes(c)&&o.right.includes(u))?[...e,{columnFields:[r],groupId:i}]:[...e.slice(0,e.length-1),{columnFields:[...l.columnFields,r],groupId:i}];var c,u}),[]);r.push(i)}return r},Oa=["groupId","children"],Ta=e=>{let t={};return e.forEach((e=>{if(Ra(e))return;const{groupId:o,children:r}=e,i=(0,l.A)(e,Oa);if(!o)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const a=(0,n.A)({},i,{groupId:o}),s=Ta(r);if(void 0!==s[o]||void 0!==t[o])throw new Error(`MUI X: The groupId ${o} is used multiple times in the columnGroupingModel.`);t=(0,n.A)({},t,s,{[o]:a})})),(0,n.A)({},t)},$a=(e,t,o)=>{if(!t.columnGroupingModel)return e;const r=(0,j.JR)(o),i=(0,j.TI)(o),a=Ta(t.columnGroupingModel??[]),l=Ia(t.columnGroupingModel??[]),s=Pa(r,l,o.current.state.pinnedColumns??{}),c=0===i.length?0:Math.max(...i.map((e=>l[e]?.length??0)));return(0,n.A)({},e,{columnGrouping:{lookup:a,unwrappedGroupingModel:l,headerStructure:s,maxDepth:c}})},za={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0};function Da(e,t){if(void 0!==t&&e.changedTouches){for(let o=0;o(0,n.A)({},e,{columnResize:{resizingColumnField:""}});function Ha(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const ja=(e,t)=>{const o=(0,Jt.I)(),i=Ur(e,"useGridColumnResize"),a=(0,Ro.A)(Ha).current,l=r.useRef(null),s=r.useRef(null),c=(0,ve.A)(),u=r.useRef(void 0),d=t=>{i.debug(`Updating width to ${t} for col ${a.colDef.field}`);const o=a.columnHeaderElement.offsetWidth,n=t-o,r=t-a.initialColWidth;if(r>0){const t=a.initialTotalWidth+r;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${t}px`)}a.colDef.computedWidth=t,a.colDef.width=t,a.colDef.flex=0,a.columnHeaderElement.style.width=`${t}px`;const l=a.headerFilterElement;l&&(l.style.width=`${t}px`),a.groupHeaderElements.forEach((e=>{const o=e;let r;r="1"===o.getAttribute("aria-colspan")?`${t}px`:`${o.offsetWidth+n}px`,o.style.width=r})),a.cellElements.forEach((e=>{const o=e;let r;r="1"===o.getAttribute("aria-colspan")?`${t}px`:`${o.offsetWidth+n}px`,o.style.setProperty("--width",r)}));const s=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,a.colDef.field);s===dn.K.LEFT&&(Ba(a.fillerLeft,"width",n),a.leftPinnedCellsAfter.forEach((e=>{Ba(e,"left",n)})),a.leftPinnedHeadersAfter.forEach((e=>{Ba(e,"left",n)}))),s===dn.K.RIGHT&&(Ba(a.fillerRight,"width",n),a.rightPinnedCellsBefore.forEach((e=>{Ba(e,"right",n)})),a.rightPinnedHeadersBefore.forEach((e=>{Ba(e,"right",n)})))},p=t=>{if(C(),a.previousMouseClickEvent){const o=a.previousMouseClickEvent,n=o.timeStamp,r=o.clientX,i=o.clientY;if(t.timeStamp-n<300&&t.clientX===r&&t.clientY===i)return a.previousMouseClickEvent=void 0,void e.current.publishEvent("columnResizeStop",null,t)}if(a.colDef){e.current.setColumnWidth(a.colDef.field,a.colDef.width),i.debug(`Updating col ${a.colDef.field} with new width: ${a.colDef.width}`);const t=(0,j.em)(e);a.groupHeaderElements.forEach((e=>{const o=e,n=`${e.getAttribute("data-fields").slice(2,-2).split("-|-").reduce(((e,o)=>!1!==t.columnVisibilityModel[o]?e+t.lookup[o].computedWidth:e),0)}px`;o.style.width=n}))}c.start(0,(()=>{e.current.publishEvent("columnResizeStop",null,t)}))},h=(t,n,r)=>{const i=e.current.rootElementRef.current;var c,u;a.initialColWidth=t.computedWidth,a.initialTotalWidth=e.current.getRootDimensions().rowWidth,a.colDef=t,a.columnHeaderElement=(c=e.current.columnHeadersContainerRef.current,u=t.field,c.querySelector(`[data-field="${Fi(u)}"]`));const d=i.querySelector(`.${f.x.headerFilterRow} [data-field="${Fi(t.field)}"]`);d&&(a.headerFilterElement=d),a.groupHeaderElements=function(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${Fi(t)}-|"]`)??[])}(e.current.columnHeadersContainerRef?.current,t.field),a.cellElements=function(e,t){if(!Li(e,f.x.root))throw new Error("MUI X: The root element is not found.");const o=e.getAttribute("aria-colindex");if(!o)return[];const n=Number(o)-1,r=[];return t.virtualScrollerRef?.current?(Vi(t).forEach((e=>{const o=e.getAttribute("data-id");if(!o)return;let i=n;const a=t.unstable_getCellColSpanInfo(o,n);a&&a.spannedByColSpan&&(i=a.leftVisibleCellIndex);const l=e.querySelector(`[data-colindex="${i}"]`);l&&r.push(l)})),r):[]}(a.columnHeaderElement,e.current),a.fillerLeft=ji(e.current,o?"filler--pinnedRight":"filler--pinnedLeft"),a.fillerRight=ji(e.current,o?"filler--pinnedLeft":"filler--pinnedRight");const p=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,a.colDef.field);a.leftPinnedCellsAfter=p!==dn.K.LEFT?[]:function(e,t,o){const n=Wi(t);return Bi({api:e,colIndex:n,position:o?"right":"left",filterFn:e=>o?en})}(e.current,a.columnHeaderElement,o),a.rightPinnedCellsBefore=p!==dn.K.RIGHT?[]:function(e,t,o){const n=Wi(t);return Bi({api:e,colIndex:n,position:o?"left":"right",filterFn:e=>o?e>n:eo?en})}(e.current,a.columnHeaderElement,o),a.rightPinnedHeadersBefore=p!==dn.K.RIGHT?[]:function(e,t,o){const n=Wi(t);return _i({api:e,position:o?"left":"right",colIndex:n,filterFn:(e,t)=>!t.classList.contains(f.x["columnHeader--last"])&&(o?e>n:e{if(0===t.buttons)return void m(t);let o=La(l.current,t.clientX,a.columnHeaderElement.getBoundingClientRect(),s.current);o=He(o,a.colDef.minWidth,a.colDef.maxWidth),d(o);const n={element:a.columnHeaderElement,colDef:a.colDef,width:o};e.current.publishEvent("columnResize",n,t)})),v=(0,ce.A)((e=>{Da(e,u.current)&&p(e)})),y=(0,ce.A)((t=>{const o=Da(t,u.current);if(!o)return;if("mousemove"===t.type&&0===t.buttons)return void v(t);let n=La(l.current,o.x,a.columnHeaderElement.getBoundingClientRect(),s.current);n=He(n,a.colDef.minWidth,a.colDef.maxWidth),d(n);const r={element:a.columnHeaderElement,colDef:a.colDef,width:n};e.current.publishEvent("columnResize",r,t)})),w=(0,ce.A)((t=>{const o=Li(t.target,f.x["columnSeparator--resizable"]);if(!o)return;const n=t.changedTouches[0];null!=n&&(u.current=n.identifier);const r=Li(t.target,f.x.columnHeader).getAttribute("data-field"),a=e.current.getColumn(r);i.debug(`Start Resize on col ${a.field}`),e.current.publishEvent("columnResizeStart",{field:r},t),h(a,o,n.clientX);const l=(0,ki.A)(t.currentTarget);l.addEventListener("touchmove",y),l.addEventListener("touchend",v)})),C=r.useCallback((()=>{const t=(0,ki.A)(e.current.rootElementRef.current);t.body.style.removeProperty("cursor"),t.removeEventListener("mousemove",g),t.removeEventListener("mouseup",m),t.removeEventListener("touchmove",y),t.removeEventListener("touchend",v),setTimeout((()=>{t.removeEventListener("click",Fa,!0)}),100),a.columnHeaderElement&&(a.columnHeaderElement.style.pointerEvents="unset")}),[e,a,g,m,y,v]),x=r.useCallback((({field:t})=>{e.current.setState((e=>(0,n.A)({},e,{columnResize:(0,n.A)({},e.columnResize,{resizingColumnField:t})})))}),[e]),A=r.useCallback((()=>{e.current.setState((e=>(0,n.A)({},e,{columnResize:(0,n.A)({},e.columnResize,{resizingColumnField:""})})))}),[e]),E=(0,ce.A)((({colDef:t},o)=>{if(0!==o.button)return;if(!o.currentTarget.classList.contains(f.x["columnSeparator--resizable"]))return;o.preventDefault(),i.debug(`Start Resize on col ${t.field}`),e.current.publishEvent("columnResizeStart",{field:t.field},o),h(t,o.currentTarget,o.clientX);const n=(0,ki.A)(e.current.rootElementRef.current);n.body.style.cursor="col-resize",a.previousMouseClickEvent=o.nativeEvent,n.addEventListener("mousemove",g),n.addEventListener("mouseup",m),n.addEventListener("click",Fa,!0)})),S=(0,ce.A)(((o,r)=>{if(t.disableAutosize)return;if(0!==r.button)return;const i=e.current.state.columns.lookup[o.field];!1!==i.resizable&&e.current.autosizeColumns((0,n.A)({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[i.field]}))})),k=function(e){const t=r.useRef(void 0),o=()=>Jo(e),n=(0,b.Nc)(e,o);return r.useEffect((()=>{t.current&&!1===n&&(t.current.resolve(),t.current=void 0)})),()=>{if(!t.current){if(!1===o())return Promise.resolve();t.current=function(){let e,t;const o=new Promise(((o,n)=>{e=o,t=n}));return o.resolve=e,o.reject=t,o}()}return t.current}}(e),R=r.useRef(!1),M=r.useCallback((async o=>{const r=e.current.rootElementRef?.current;if(!r)return;if(R.current)return;R.current=!0;const i=(0,j.em)(e),a=(0,n.A)({},za,o,{columns:o?.columns??i.orderedFields});a.columns=a.columns.filter((e=>!1!==i.columnVisibilityModel[e]));const l=a.columns.map((t=>e.current.state.columns.lookup[t]));try{!t.disableVirtualization&&a.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await k());const o=function(e,t,o){const n={},r=e.current.rootElementRef.current;return r.classList.add(f.x.autosizing),o.forEach((o=>{const r=function(e,t){const o=e.virtualScrollerRef.current;return Array.from(o.querySelectorAll(`:scope > div > div > div > [data-field="${Fi(t)}"][role="gridcell"]`))}(e.current,o.field),i=r.map((e=>e.getBoundingClientRect().width??0)),a=t.includeOutliers?i:function(e,t){if(e.length<4)return e;const o=e.slice();o.sort(((e,t)=>e-t));const n=o[Math.floor(.25*o.length)],r=o[Math.floor(.75*o.length)-1],i=r-n,a=i<5?5:i*t;return o.filter((e=>e>n-a&&e div > [data-field="${Fi(s)}"][role="columnheader"]`));if(t){const e=t.querySelector(`.${f.x.columnHeaderTitle}`),o=t.querySelector(`.${f.x.columnHeaderTitleContainerContent}`),n=t.querySelector(`.${f.x.iconButtonContainer}`),r=t.querySelector(`.${f.x.menuIcon}`),i=e??o,l=window.getComputedStyle(t,null),s=parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10),c=i.scrollWidth+1+s+(n?.clientWidth??0)+(r?.clientWidth??0);a.push(c)}}var l,s;const c=o.minWidth!==-1/0&&void 0!==o.minWidth,u=o.maxWidth!==1/0&&void 0!==o.maxWidth,d=c?o.minWidth:0,p=u?o.maxWidth:1/0,h=0===a.length?0:Math.max(...a);n[o.field]=He(h,d,p)})),r.classList.remove(f.x.autosizing),n}(e,a,l),r=l.map((e=>(0,n.A)({},e,{width:o[e.field],computedWidth:o[e.field],flex:0})));if(a.expand){const t=i.orderedFields.map((e=>i.lookup[e])).filter((e=>!1!==i.columnVisibilityModel[e.field])).reduce(((e,t)=>e+(o[t.field]??t.computedWidth??t.width)),0),n=e.current.getRootDimensions().viewportInnerSize.width-t;if(n>0){const e=n/(r.length||1);r.forEach((t=>{t.width+=e,t.computedWidth+=e}))}}e.current.updateColumns(r),r.forEach(((t,o)=>{if(t.width!==l[o].width){const o=t.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t.field),colDef:t,width:o})}}))}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),R.current=!1}}),[e,k,t.disableVirtualization]);r.useEffect((()=>C),[C]),(0,gr.A)((()=>{t.autosizeOnMount&&Promise.resolve().then((()=>{e.current.autosizeColumns(t.autosizeOptions)}))})),qr(e,(()=>e.current.columnHeadersContainerRef?.current),"touchstart",w,{passive:!0}),on(e,{autosizeColumns:M},"public"),fe(e,"columnResizeStop",A),fe(e,"columnResizeStart",x),fe(e,"columnSeparatorMouseDown",E),fe(e,"columnSeparatorDoubleClick",S),be(e,"columnResize",t.onColumnResize),be(e,"columnWidthChange",t.onColumnWidthChange)};function Ba(e,t,o){e&&(e.style[t]=`${parseInt(e.style[t],10)+o}px`)}function _a(e){return 0!==e.firstRowIndex||0!==e.lastRowIndex}const Va=(e,t,o)=>{if(!e)return null;let n=e[t.field];const r=t.rowSpanValueGetter??t.valueGetter;return r&&(n=r(n,e,t,o)),n},Wa={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},Ga={firstRowIndex:0,lastRowIndex:0},Ka=new Set([ei,"__reorder__",kt]),Ua=(e,t,o,r,i,a,l)=>{const s=a?{}:(0,n.A)({},e.current.state.rowSpanning.spannedCells),c=a?{}:(0,n.A)({},e.current.state.rowSpanning.hiddenCells),u=a?{}:(0,n.A)({},e.current.state.rowSpanning.hiddenCellOriginMap);return a&&(l=Ga),t.forEach((t=>{if(!Ka.has(t.field)){for(let n=i.firstRowIndex;n=r.firstRowIndex&&a&&Va(a.model,t,e)===l;){const e=o[i+1];c[e.id]?c[e.id][t.field]=!0:c[e.id]={[t.field]:!0},m.push(n),h+=1,d=a.id,p=i,i-=1,a=o[i]}}m.forEach((e=>{u[e]?u[e][t.field]=p:u[e]={[t.field]:p}}));let f=n+1;for(;f<=r.lastRowIndex&&o[f]&&Va(o[f].model,t,e)===l;){const e=o[f];c[e.id]?c[e.id][t.field]=!0:c[e.id]={[t.field]:!0},u[f]?u[f][t.field]=p:u[f]={[t.field]:p},f+=1,h+=1}h>0&&(s[d]?s[d][t.field]=h+1:s[d]={[t.field]:h+1})}l={firstRowIndex:Math.min(l.firstRowIndex,i.firstRowIndex),lastRowIndex:Math.max(l.lastRowIndex,i.lastRowIndex)}}})),{spannedCells:s,hiddenCells:c,hiddenCellOriginMap:u,processedRange:l}},qa=(e,t)=>{const o=(0,Se.A6)(t).length;if(e.pagination){const e=Bo(t);let n=20;return e>0&&(n=e-1),{firstRowIndex:0,lastRowIndex:Math.min(n,o)}}return{firstRowIndex:0,lastRowIndex:Math.min(20,o)}},Xa=(e,t,o)=>{if(!t.rowSpanning)return(0,n.A)({},e,{rowSpanning:Wa});const r=e.rows.dataRowIds||[],i=e.columns.orderedFields||[],a=e.rows.dataRowIdToModelLookup,l=e.columns.lookup,s=Boolean(e.filter.filterModel.items.length)||Boolean(e.filter.filterModel.quickFilterValues?.length);if(!r.length||!i.length||!a||!l||s)return(0,n.A)({},e,{rowSpanning:Wa});const c=qa(t,o),u=r.map((e=>({id:e,model:a[e]}))),d=i.map((e=>l[e])),{spannedCells:p,hiddenCells:h,hiddenCellOriginMap:m}=Ua(o,d,u,c,c,!0,Ga);return(0,n.A)({},e,{rowSpanning:{spannedCells:p,hiddenCells:h,hiddenCellOriginMap:m}})};new Set;const Ya=(e,t,o)=>(0,n.A)({},e,{listViewColumn:t.listViewColumn?(0,n.A)({},t.listViewColumn,{computedWidth:Qa(o)}):void 0});function Qa(e){return Q(e).viewportInnerSize.width}var Ja=o(52044);const Za=(0,T.Mz)(Po.ZI,Qn.XU,Fo,((e,t,o)=>({groupKeys:[],paginationModel:o,sortModel:t,filterModel:e,start:o.page*o.pageSize,end:o.page*o.pageSize+o.pageSize-1})));let el=function(e){return e.Default="set-new-rows",e.LazyLoading="replace-row-range",e}({});class tl{constructor(e){this.chunkSize=void 0,this.getCacheKeys=e=>{if(this.chunkSize<1||"number"!=typeof e.start)return[e];const t=[];for(let o=e.start;o{const o=this.getCacheKeys(e),r=new Map;return o.forEach((o=>{const i=o.end===e.end,a=(0,n.A)({},t,{pageInfo:(0,n.A)({},t.pageInfo,{hasNextPage:void 0!==t.pageInfo?.hasNextPage&&!i||t.pageInfo?.hasNextPage,nextCursor:void 0===t.pageInfo?.nextCursor||i?t.pageInfo?.nextCursor:t.rows[o.end+1].id}),rows:"number"!=typeof o.start||"number"!=typeof e.start?t.rows:t.rows.slice(o.start-e.start,o.end-e.start+1)});r.set(o,a)})),r},this.chunkSize=e}}function ol(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}tl.mergeResponses=e=>1===e.length?e[0]:e.reduce(((e,t)=>({rows:[...e.rows,...t.rows],rowCount:t.rowCount,pageInfo:t.pageInfo})),{rows:[],rowCount:0,pageInfo:{}});class nl{constructor({ttl:e=3e5,getKey:t=ol}){this.cache=void 0,this.ttl=void 0,this.getKey=void 0,this.cache={},this.ttl=e,this.getKey=t}set(e,t){const o=this.getKey(e),n=Date.now()+this.ttl;this.cache[o]={value:t,expiry:n}}get(e){const t=this.getKey(e),o=this.cache[t];if(o){if(!(Date.now()>o.expiry))return o.value;delete this.cache[t]}}clear(){this.cache={}}}class rl extends Error{constructor(e){super(e.message),this.params=void 0,this.cause=void 0,this.name="GridGetRowsError",this.params=e.params,this.cause=e.cause}}class il extends Error{constructor(e){super(e.message),this.params=void 0,this.cause=void 0,this.name="GridUpdateRowError",this.params=e.params,this.cause=e.cause}}const al={clear:()=>{},get:()=>{},set:()=>{}};function ll(e,t={}){return null===e?al:e??new nl(t)}const sl=(e,t)=>{((e,t)=>{(e=>{const t=r.useRef(null),o=r.useRef(null),n=r.useRef(null),i=r.useRef(null),a=r.useRef(null),l=r.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:o,virtualScrollerRef:n,virtualScrollbarVerticalRef:i,virtualScrollbarHorizontalRef:a,columnHeadersContainerRef:l})})(e),((e,t)=>{r.useEffect((()=>{e.current.setState((e=>(0,n.A)({},e,{props:{getRowId:t.getRowId}})))}),[e,t.getRowId])})(e,t),(e=>{const t=(0,Jt.I)();void 0===e.current.state.isRtl&&(e.current.state.isRtl=t);const o=r.useRef(!0);r.useEffect((()=>{o.current?o.current=!1:e.current.setState((e=>(0,n.A)({},e,{isRtl:t})))}),[e,t])})(e),((e,t)=>{on(e,{getLogger:r.useCallback((e=>Lr?jr(e,"debug",t.logger):t.logLevel?jr(e,t.logLevel.toString(),t.logger):Nr),[t.logLevel,t.logger])},"private")})(e,t),(e=>{const t=r.useRef({}),o=r.useCallback((e=>{t.current[e.stateId]=e}),[]),i=r.useCallback(((o,n)=>{let r;if(r="function"==typeof o?o(e.current.state):o,e.current.state===r)return!1;const i={current:{state:r}};let a=!1;const l=[];if(Object.keys(t.current).forEach((o=>{const n=t.current[o],r=n.stateSelector(e),s=n.stateSelector(i);s!==r&&(l.push({stateId:n.stateId,hasPropChanged:s!==n.propModel}),void 0!==n.propModel&&s!==n.propModel&&(a=!0))})),l.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${l[0].stateId}, therefore, you're not allowed to update ${l.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(a||(e.current.state=r,e.current.publishEvent("stateChange",r),e.current.store.update(r)),1===l.length){const{stateId:o,hasPropChanged:r}=l[0],s=t.current[o],c=s.stateSelector(i);s.propOnChange&&r&&s.propOnChange(c,{reason:n,api:e.current}),a||e.current.publishEvent(s.changeEvent,c,{reason:n})}return!a}),[e]),a={updateControlState:r.useCallback(((t,o,r)=>e.current.setState((e=>(0,n.A)({},e,{[t]:o(e[t])})),r)),[e]),registerControlState:o};on(e,{setState:i},"public"),on(e,a,"private")})(e),(e=>{const t=r.useRef({}),o=r.useRef(!1),n=r.useCallback((e=>{!o.current&&e&&(o.current=!0,Object.values(e.appliers).forEach((e=>{e()})),o.current=!1)}),[]),i=r.useCallback(((e,o,r)=>{t.current[e]||(t.current[e]={processors:new Map,processorsAsArray:[],appliers:{}});const i=t.current[e];return i.processors.get(o)!==r&&(i.processors.set(o,r),i.processorsAsArray=Array.from(t.current[e].processors.values()).filter((e=>null!==e)),n(i)),()=>{t.current[e].processors.set(o,null),t.current[e].processorsAsArray=Array.from(t.current[e].processors.values()).filter((e=>null!==e))}}),[n]),a=r.useCallback(((e,o,n)=>(t.current[e]||(t.current[e]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[e].appliers[o]=n,()=>{const n=t.current[e].appliers,r=(0,l.A)(n,[o].map(Br.A));t.current[e].appliers=r})),[]),s=r.useCallback((e=>{n(t.current[e])}),[n]),c={unstable_applyPipeProcessors:r.useCallback(((...e)=>{const[o,n,r]=e;if(!t.current[o])return n;const i=t.current[o].processorsAsArray;let a=n;for(let e=0;e{const t=r.useRef(new Map),o=r.useRef({}),n=r.useCallback(((t,n,r)=>{const i=()=>{const e=o.current[n],r=(0,l.A)(e,[t].map(Br.A));o.current[n]=r};o.current[n]||(o.current[n]={});const a=o.current[n],s=a[t];return a[t]=r,s&&s!==r?(t===e.current.getActiveStrategy(Wr[n])&&e.current.publishEvent("activeStrategyProcessorChange",n),i):i}),[e]),i=r.useCallback(((t,n)=>{const r=e.current.getActiveStrategy(Wr[t]);if(null==r)throw new Error("Can't apply a strategy processor before defining an active strategy");const i=o.current[t];if(!i||!i[r])throw new Error(`No processor found for processor "${t}" on strategy "${r}"`);return(0,i[r])(n)}),[e]),a=r.useCallback((e=>{const o=Array.from(t.current.entries()).find((([,t])=>t.group===e&&t.isAvailable()));return o?.[0]??Vr}),[]),s=r.useCallback(((o,n,r)=>{t.current.set(n,{group:o,isAvailable:r}),e.current.publishEvent("strategyAvailabilityChange")}),[e]);on(e,{registerStrategyProcessor:n,applyStrategyProcessor:i,getActiveStrategy:a,setStrategyAvailability:s},"private")})(e),((e,t)=>{const o=r.useCallback((e=>{if(null==t.localeText[e])throw new Error(`Missing translation for key ${e}.`);return t.localeText[e]}),[t.localeText]);e.current.register("public",{getLocaleText:o})})(e,t),e.current.register("private",{rootProps:t})})(e,t),((e,t)=>{const o=(e=>{const{classes:t}=e;return r.useMemo((()=>(0,d.A)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},f.B,t)),[t])})({classes:t.classes}),i=r.useCallback((r=>{const i=(0,n.A)({},ti,{cellClassName:o.cellCheckbox,headerClassName:o.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,l=null!=r.lookup[ei];return a&&!l?(r.lookup[ei]=i,r.orderedFields=[ei,...r.orderedFields]):!a&&l?(delete r.lookup[ei],r.orderedFields=r.orderedFields.filter((e=>e!==ei))):a&&l&&(r.lookup[ei]=(0,n.A)({},i,r.lookup[ei]),t.columns.some((e=>e.field===ei))||(r.orderedFields=[ei,...r.orderedFields.filter((e=>e!==ei))])),r}),[e,o,t.columns,t.checkboxSelection]);pi(e,"hydrateColumns",i)})(e,t),(e=>{Pi(e,Vr,"rowTreeCreation",ca)})(e),Kr(Gr,e,t),Kr(pa,e,t),Kr(mi,e,t),Kr(sa,e,t),Kr(qi,e,t),Kr(aa,e,t),Kr(Di,e,t),Kr(ha,e,t),Kr(Xi,e,t),Kr(Oi,e,t),Kr(Xa,e,t),Kr(gi,e,t),Kr(Na,e,t),Kr(ui,e,t),Kr($a,e,t),Kr(rn,e,t),Kr(va,e,t),Kr(Ea,e,t),Kr(Ya,e,t),((e,t)=>{const o=Ur(e,"useGridKeyboardNavigation"),n=(0,Jt.I)(),i=t.listView,a=r.useCallback((()=>Ui(e)),[e]),l="DataGrid"!==t.signature&&t.headerFilters,s=r.useCallback(((t,n,r="left",a="up")=>{const l=(0,Po.em)(e),s=e.current.unstable_getCellColSpanInfo(n,t);s&&s.spannedByColSpan&&("left"===r?t=s.leftVisibleCellIndex:"right"===r&&(t=s.rightVisibleCellIndex));const c=i?un(e).field:(0,j.TI)(e)[t],u=function(e,t,o,n){const r=ln(e);if(!r[t]?.[o])return t;const i=(0,Po.qA)(e);let a=i.indexOf(t)+("down"===n?1:-1);for(;a>=0&&ae.id===u));o.debug(`Navigating to cell row ${d}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:d}),e.current.setCellFocus(u,c)}),[e,o,i]),c=r.useCallback(((t,n)=>{o.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const r=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(r,n)}),[e,o]),u=r.useCallback(((t,n)=>{o.debug(`Navigating to header filter col ${t}`),e.current.scrollToIndexes({colIndex:t});const r=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFilterFocus(r,n)}),[e,o]),d=r.useCallback(((t,n,r)=>{o.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const{field:i}=e.current.getVisibleColumns()[t];e.current.setColumnGroupHeaderFocus(i,n,r)}),[e,o]),p=r.useCallback((e=>a()[e]?.id),[a]),h=r.useCallback(((t,o)=>{const r=o.currentTarget.querySelector(`.${f.x.columnHeaderTitleContainerContent}`);if(r&&r.contains(o.target)&&t.field!==ti.field)return;const i=a(),h=e.current.getViewportPageSize(),m=t.field?e.current.getColumnIndex(t.field):0,g=i.length>0?0:null,b=i.length-1,v=(0,j.iv)(e).length-1,y=fo(e);let w=!0;switch(o.key){case"ArrowDown":l?u(m,o):null!==g&&s(m,p(g));break;case"ArrowRight":{const e=Ki({currentColIndex:m,firstColIndex:0,lastColIndex:v,isRtl:n});null!==e&&c(e,o);break}case"ArrowLeft":{const e=Gi({currentColIndex:m,firstColIndex:0,lastColIndex:v,isRtl:n});null!==e&&c(e,o);break}case"ArrowUp":y>0&&d(m,y-1,o);break;case"PageDown":null!==g&&null!==b&&s(m,p(Math.min(g+h,b)));break;case"Home":c(0,o);break;case"End":c(v,o);break;case"Enter":(o.ctrlKey||o.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:w=!1}w&&o.preventDefault()}),[e,a,l,u,s,p,n,c,d]),m=r.useCallback(((t,o)=>{const r=so(e)===t.field,i=co(e)===t.field;if(r||i||!ai(o.key))return;const l=a(),d=e.current.getViewportPageSize(),h=t.field?e.current.getColumnIndex(t.field):0,m=l.length-1,f=(0,j.iv)(e).length-1;let g=!0;switch(o.key){case"ArrowDown":{const e=p(0);null!=e&&s(h,e);break}case"ArrowRight":{const e=Ki({currentColIndex:h,firstColIndex:0,lastColIndex:f,isRtl:n});null!==e&&u(e,o);break}case"ArrowLeft":{const r=Gi({currentColIndex:h,firstColIndex:0,lastColIndex:f,isRtl:n});null!==r?u(r,o):e.current.setColumnHeaderFilterFocus(t.field,o);break}case"ArrowUp":c(h,o);break;case"PageDown":null!==m&&s(h,p(Math.min(0+d,m)));break;case"Home":u(0,o);break;case"End":u(f,o);break;case" ":break;default:g=!1}g&&o.preventDefault()}),[e,a,u,n,c,s,p]),g=r.useCallback(((t,o)=>{const n=fn(e);if(null===n)return;const{field:r,depth:i}=n,{fields:l,depth:u,maxDepth:h}=t,m=a(),f=e.current.getViewportPageSize(),g=e.current.getColumnIndex(r),b=r?e.current.getColumnIndex(r):0,v=m.length-1,y=(0,j.iv)(e).length-1;let w=!0;switch(o.key){case"ArrowDown":u===h-1?c(g,o):d(g,i+1,o);break;case"ArrowUp":u>0&&d(g,i-1,o);break;case"ArrowRight":{const e=l.length-l.indexOf(r)-1;g+e+1<=y&&d(g+e+1,i,o);break}case"ArrowLeft":{const e=l.indexOf(r);g-e-1>=0&&d(g-e-1,i,o);break}case"PageDown":null!==v&&s(b,p(Math.min(0+f,v)));break;case"Home":d(0,i,o);break;case"End":d(y,i,o);break;case" ":break;default:w=!1}w&&o.preventDefault()}),[e,a,c,d,s,p]),b=r.useCallback(((t,o)=>{if(Hi(o))return;const r=e.current.getCellParams(t.id,t.field);if(r.cellMode===Ht.Edit||!ai(o.key))return;if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:o,cell:r}))return;const d=a();if(0===d.length)return;const h=e.current.getViewportPageSize(),m=i?()=>0:e.current.getColumnIndex,f=t.field?m(t.field):0,g=d.findIndex((e=>e.id===t.id)),b=d.length-1,v=(i?[un(e)]:(0,j.iv)(e)).length-1;let y=!0;switch(o.key){case"ArrowDown":g0?s(f,p(g-1)):l?u(f,o):c(f,o);break;case"ArrowRight":{const e=Ki({currentColIndex:f,firstColIndex:0,lastColIndex:v,isRtl:n});null!==e&&s(e,p(g),n?"left":"right");break}case"ArrowLeft":{const e=Gi({currentColIndex:f,firstColIndex:0,lastColIndex:v,isRtl:n});null!==e&&s(e,p(g),n?"right":"left");break}case"Tab":o.shiftKey&&f>0?s(f-1,p(g),"left"):!o.shiftKey&&f{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null})(w)))break;!o.shiftKey&&g=0?s(f,p(e)):c(f,o);break}case"Home":o.ctrlKey||o.metaKey||o.shiftKey?s(0,p(0)):s(0,p(g));break;case"End":o.ctrlKey||o.metaKey||o.shiftKey?s(v,p(b)):s(v,p(g));break;default:y=!1}var w;y&&o.preventDefault()}),[e,a,n,s,p,l,u,c,i]),v=r.useCallback(((e,{event:t})=>" "!==t.key&&e),[]);pi(e,"canStartEditing",v),fe(e,"columnHeaderKeyDown",h),fe(e,"headerFilterKeyDown",m),fe(e,"columnGroupHeaderKeyDown",g),fe(e,"cellKeyDown",b)})(e,t),((e,t)=>{const o=Ur(e,"useGridSelection"),i=r.useCallback((e=>(...o)=>{t.rowSelection&&e(...o)}),[t.rowSelection]),a=t.signature!==Oo.DataGrid&&(t.rowSelectionPropagation?.parents||t.rowSelectionPropagation?.descendants),l=r.useMemo((()=>t.rowSelectionModel),[t.rowSelectionModel]),s=r.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:l,propOnChange:t.onRowSelectionModelChange,stateSelector:Rn,changeEvent:"rowSelectionChange"});const{checkboxSelection:c,disableRowSelectionOnClick:u,isRowSelectable:d}=t,p=Pr(t),h=(0,b.Nc)(e,Se.qj),m=(0,b.Nc)(e,Se.V2)>1,g=r.useCallback((t=>{let o=t;const n=s.current??t,r=e.current.isRowSelected(t);if(r){const t=(0,Po.ux)(e),r=t.findIndex((e=>e===n)),i=t.findIndex((e=>e===o));if(r===i)return;o=r>i?t[i+1]:t[i-1]}s.current=t,e.current.selectRowRange({startId:n,endId:o},!r)}),[e]),v=(0,ce.A)((()=>t.pagination&&t.checkboxSelectionVisibleOnly&&"client"===t.paginationMode?Go(e):(0,Po.ux)(e))),y=r.useCallback(((r,i)=>{if(t.signature===Oo.DataGrid&&!p&&("include"!==r.type||r.ids.size>1))throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join("\n"));Rn(e)!==r&&(o.debug("Setting selection model"),e.current.setState((e=>(0,n.A)({},e,{rowSelection:t.rowSelection?r:da})),i))}),[e,o,t.rowSelection,t.signature,p]),w=r.useCallback((t=>Mn(e).has(t)),[e]),C=r.useCallback((o=>{if(!1===t.rowSelection)return!1;if(d&&!d(e.current.getRowParams(o)))return!1;const n=(0,Se.Qu)(e,o);return"footer"!==n?.type&&"pinnedRow"!==n?.type}),[e,t.rowSelection,d]),x=r.useCallback((()=>Pn(e)),[e]),A=r.useCallback(((n,r=!0,i=!1)=>{if(e.current.isRowSelectable(n))if(s.current=n,i){o.debug(`Setting selection for row ${n}`);const i={type:"include",ids:new Set},l=e=>{i.ids.add(e)};r&&(l(n),a&&Or(e,h,n,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,l)),e.current.setRowSelectionModel(i,"singleRowSelection")}else{o.debug(`Toggling selection for row ${n}`);const i=Rn(e),l={type:i.type,ids:new Set(i.ids)},s=kn(l);s.unselect(n);const c=e=>{s.select(e)},u=e=>{s.unselect(e)};r?(c(n),a&&Or(e,h,n,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,c)):a&&Tr(e,h,n,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,u),("include"===l.type&&l.ids.size<2||p)&&e.current.setRowSelectionModel(l,"singleRowSelection")}}),[e,o,a,h,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,p]),E=r.useCallback(((n,r=!0,i=!1)=>{if(o.debug("Setting selection for several rows"),!1===t.rowSelection)return;const l=new Set;for(let t=0;t{o.select(e)};for(const o of l)Or(e,h,o,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,n)}}else c.ids=new Set;if(s.type===c.type&&c.ids.size===s.ids.size&&Array.from(c.ids).every((e=>s.ids.has(e))))return}else{c={type:s.type,ids:new Set(s.ids)};const o=kn(c),n=e=>{o.select(e)},i=e=>{o.unselect(e)};for(const s of l)r?(o.select(s),a&&Or(e,h,s,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,n)):(i(s),a&&Tr(e,h,s,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,i))}("include"===c.type&&c.ids.size<2||p)&&e.current.setRowSelectionModel(c,"multipleRowsSelection")}),[o,a,p,e,h,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,t.rowSelection]),S=r.useCallback((o=>{if(!m||!a||0===o.ids.size&&"include"===o.type)return o;const n={type:o.type,ids:new Set(o.ids)},r=kn(n),i=e=>{r.select(e)};for(const n of o.ids)Or(e,h,n,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,i,r);return n}),[e,h,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,m,a]),k={selectRows:E,selectRowRange:r.useCallback((({startId:t,endId:n},r=!0,i=!1)=>{if(!e.current.getRow(t)||!e.current.getRow(n))return;o.debug(`Expanding selection from row ${t} to row ${n}`);const a=(0,Po.ux)(e),l=a.indexOf(t),s=a.indexOf(n),[c,u]=l>s?[s,l]:[l,s],d=a.slice(c,u+1);e.current.selectRows(d,r,i)}),[e,o]),getPropagatedRowSelectionModel:S};on(e,{selectRow:A,setRowSelectionModel:y,getSelectedRows:x,isRowSelected:w,isRowSelectable:C},"public"),on(e,k,t.signature===Oo.DataGrid?"private":"public");const R=r.useRef(!0),M=r.useCallback(((o=!1)=>{if(R.current)return;const n=Rn(e),r=(0,Se.rI)(e),i=(0,Po.wx)(e),a=e=>"server"===t.filterMode?!r[e]:!r[e]||!1===i[e],l={type:n.type,ids:new Set(n.ids)},s=kn(l);let c=!1;for(const e of n.ids){if(a(e)){if(t.keepNonExistentRowsSelected)continue;s.unselect(e),c=!0;continue}if(!t.rowSelectionPropagation?.parents)continue;const o=h[e];if("group"===o?.type){if(o.isAutoGenerated){s.unselect(e),c=!0;continue}o.children.every((e=>!1===i[e]))||(s.unselect(e),c=!0)}}const u=m&&t.rowSelectionPropagation?.parents&&(l.ids.size>0||"exclude"===l.type);if(c||u&&!o)if(u)if("exclude"===l.type){const o=v(),n=[];for(let e=0;e{const n=o.metaKey||o.ctrlKey,r=!c&&!n&&!(e=>!!e.key)(o),i=!p||r,a=e.current.isRowSelected(t),l=In(e)>1&&i||!a;e.current.selectRow(t,l,i)}),[e,p,c]),P=r.useCallback(((t,o)=>{if(u)return;const n=o.target.closest(`.${f.x.cell}`)?.getAttribute("data-field");if(n!==ti.field&&n!==kt){if(n){const t=e.current.getColumn(n);if(t?.type===ro)return}"pinnedRow"!==(0,Se.Qu)(e,t.id).type&&(o.shiftKey&&p?g(t.id):I(t.id,o))}}),[u,p,e,g,I]),O=r.useCallback(((e,t)=>{p&&t.shiftKey&&window.getSelection()?.removeAllRanges()}),[p]),T=r.useCallback(((t,o)=>{p&&o.nativeEvent.shiftKey?g(t.id):e.current.selectRow(t.id,t.value,!p)}),[e,g,p]),$=r.useCallback((o=>{const n=(0,Po.ZI)(e),r=(0,Po.q6)(e),i=n.items.length>0||r?.some((e=>e.length));t.isRowSelectable||t.checkboxSelectionVisibleOnly||!a||i?e.current.selectRows(v(),o):e.current.setRowSelectionModel({type:o?"exclude":"include",ids:new Set})}),[e,a,v,t.checkboxSelectionVisibleOnly,t.isRowSelectable]),z=r.useCallback((e=>{$(e.value)}),[$]),D=r.useCallback(((t,o)=>{if(e.current.getCellMode(t.id,t.field)!==Ht.Edit&&!Hi(o)){if(ai(o.key)&&o.shiftKey){const n=hn(e);if(n&&n.id!==t.id){o.preventDefault();const r=e.current.isRowSelected(n.id);if(!p)return void e.current.selectRow(n.id,!r,!0);const i=e.current.getRowIndexRelativeToVisibleRows(n.id),a=e.current.getRowIndexRelativeToVisibleRows(t.id);let l,s;i>a?r?(l=a,s=i-1):(l=a,s=i):r?(l=i+1,s=a):(l=i,s=a);const c=Uo(e),u=[];for(let e=l;e<=s;e+=1)u.push(c.rows[e].id);return void e.current.selectRows(u,!r)}}if(" "===o.key&&o.shiftKey)return o.preventDefault(),void I(t.id,o);"A"===String.fromCharCode(o.keyCode)&&(o.ctrlKey||o.metaKey)&&(o.preventDefault(),$(!0))}}),[e,p,I,$]),L=(0,ce.A)((()=>{if(!t.rowSelection)return void e.current.setRowSelectionModel(da);if(void 0===l)return;if(!a||!m||"include"===l.type&&0===l.ids.size)return void e.current.setRowSelectionModel(l);const o=e.current.getPropagatedRowSelectionModel(l);o.type===l.type&&o.ids.size===l.ids.size&&Array.from(l.ids).every((e=>o.ids.has(e)))?e.current.setRowSelectionModel(l):e.current.setRowSelectionModel(o)}));fe(e,"sortedRowsSet",i((()=>M(!0)))),fe(e,"filteredRowsSet",i((()=>M()))),fe(e,"rowClick",i(P)),fe(e,"rowSelectionCheckboxChange",i(T)),fe(e,"headerSelectionCheckboxChange",z),fe(e,"cellMouseDown",i(O)),fe(e,"cellKeyDown",i(D)),r.useEffect((()=>{L()}),[e,l,t.rowSelection,L]);const F=null!=l;r.useEffect((()=>{if(F||!t.rowSelection||"function"!=typeof C)return;const o=Rn(e);if("include"!==o.type)return;const n=new Set;for(const e of o.ids)C(e)&&n.add(e);n.size{if(!t.rowSelection||F)return;const o=Rn(e);!p&&("include"===o.type&&o.ids.size>1||"exclude"===o.type)&&e.current.setRowSelectionModel(da)}),[e,p,c,F,t.rowSelection]),r.useEffect((()=>{i(M)}),[M,i]),r.useEffect((()=>{R.current&&(R.current=!1)}),[])})(e,t),function(e,t){const o=Ur(e,"useGridColumns"),i=r.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:j.FY,changeEvent:"columnVisibilityModelChange"});const a=r.useCallback((t=>{o.debug("Updating columns state."),e.current.setState(fi(t)),e.current.publishEvent("columnsChange",t.orderedFields)}),[o,e]),l=r.useCallback((t=>(0,j.gv)(e)[t]),[e]),s=r.useCallback((()=>(0,j.OV)(e)),[e]),c=r.useCallback((()=>(0,j.iv)(e)),[e]),u=r.useCallback(((t,o=!0)=>(o?(0,j.iv)(e):(0,j.OV)(e)).findIndex((e=>e.field===t))),[e]),d=r.useCallback((t=>{const o=u(t);return(0,j.Sw)(e)[o]}),[e,u]),p=r.useCallback((t=>{(0,j.FY)(e)!==t&&(e.current.setState((o=>(0,n.A)({},o,{columns:wo({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})}))),e.current.updateRenderContext?.())}),[e]),h=r.useCallback((t=>{if(qn(e))return void e.current.updateNonPivotColumns(t);const o=wo({apiRef:e,columnsToUpsert:t,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});a(o)}),[e,a]),m=r.useCallback(((t,o)=>{const r=(0,j.FY)(e);if(o!==(r[t]??!0)){const i=(0,n.A)({},r,{[t]:o});e.current.setColumnVisibilityModel(i)}}),[e]),f=r.useCallback((t=>(0,j.JR)(e).findIndex((e=>e===t))),[e]),g=r.useCallback(((t,r)=>{const i=(0,j.JR)(e),l=f(t);if(l===r)return;o.debug(`Moving column ${t} to index ${r}`);const s=[...i],c=s.splice(l,1)[0];s.splice(r,0,c),a((0,n.A)({},(0,j.em)(e),{orderedFields:s}));const u={column:e.current.getColumn(t),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(t),oldIndex:l};e.current.publishEvent("columnIndexChange",u)}),[e,o,a,f]),b=r.useCallback(((t,r)=>{o.debug(`Updating column ${t} width to ${r}`);const i=(0,j.em)(e),l=i.lookup[t],s=(0,n.A)({},l,{width:r,hasBeenResized:!0});a(vo((0,n.A)({},i,{lookup:(0,n.A)({},i.lookup,{[t]:s})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:s,width:r})}),[e,o,a]),v={setColumnIndex:g};on(e,{getColumn:l,getAllColumns:s,getColumnIndex:u,getColumnPosition:d,getVisibleColumns:c,getColumnIndexRelativeToVisibleColumns:f,updateColumns:h,setColumnVisibilityModel:p,setColumnVisibility:m,setColumnWidth:b},"public"),on(e,v,t.signature===Oo.DataGrid?"private":"public");const y=r.useCallback(((o,r)=>{const i={},a=(0,j.FY)(e);(!r.exportOnlyDirtyModels||null!=t.columnVisibilityModel||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(a).length>0)&&(i.columnVisibilityModel=a),i.orderedFields=(0,j.JR)(e);const l=(0,j.OV)(e),s={};return l.forEach((e=>{if(e.hasBeenResized){const t={};go.forEach((o=>{let n=e[o];n===1/0&&(n=-1),t[o]=n})),s[e.field]=t}})),Object.keys(s).length>0&&(i.dimensions=s),(0,n.A)({},o,{columns:i})}),[e,t.columnVisibilityModel,t.initialState?.columns]),w=r.useCallback(((t,o)=>{const n=o.stateToRestore.columns?.columnVisibilityModel,r=o.stateToRestore.columns;if(null==n&&null==r)return t;const i=wo({apiRef:e,columnsToUpsert:[],initialState:r,columnVisibilityModel:n,keepOnlyColumnsToUpsert:!1});return e.current.setState(fi(i)),null!=r&&e.current.publishEvent("columnsChange",i.orderedFields),t}),[e]),C=r.useCallback(((e,o)=>{if(o===V.columns){const e=t.slots.columnsPanel;return(0,M.jsx)(e,(0,n.A)({},t.slotProps?.columnsPanel))}return e}),[t.slots.columnsPanel,t.slotProps?.columnsPanel]),x=r.useCallback((o=>{const n=qn(e);return t.disableColumnSelector||n?o:[...o,"columnMenuColumnsItem"]}),[t.disableColumnSelector,e]);pi(e,"columnMenu",x),pi(e,"exportState",y),pi(e,"restoreState",w),pi(e,"preferencePanel",C);const A=r.useRef(null);fe(e,"viewportInnerSizeChange",(t=>{if(A.current!==t.width){if(A.current=t.width,!(0,j.iv)(e).some((e=>e.flex&&e.flex>0)))return;a(vo((0,j.em)(e),e.current.getRootDimensions()))}}));const E=r.useCallback((()=>{o.info("Columns pipe processing have changed, regenerating the columns");const t=wo({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});a(t)}),[e,o,a]);hi(e,"hydrateColumns",E);const S=r.useRef(!0);r.useEffect((()=>{if(S.current)return void(S.current=!1);if(o.info(`GridColumns have changed, new length ${t.columns.length}`),i.current===t.columns)return;const n=wo({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0});i.current=t.columns,a(n)}),[o,e,a,t.columns]),r.useEffect((()=>{void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)}),[e,o,t.columnVisibilityModel])}(e,t),((e,t)=>{const o=Ur(e,"useGridRows"),i=r.useRef(Date.now()),a=r.useRef(t.rowCount),l=(0,ve.A)(),s=r.useCallback((t=>{const o=(0,Se.rI)(e)[t];if(o)return o;const n=(0,Se.Qu)(e,t);return n&&(0,wt.nF)(n)?{[wt.gb]:t}:null}),[e]),c=r.useCallback((t=>Ct(e,t)),[e]),u=r.useCallback((({cache:o,throttle:r})=>{const a=()=>{i.current=Date.now(),e.current.setState((o=>(0,n.A)({},o,{rows:(0,wt.TW)({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:(0,Se.qj)(e),previousTreeDepths:(0,Se.Mz)(e),previousGroupsToFetch:(0,Se.r)(e)})}))),e.current.publishEvent("rowsSet")};if(l.clear(),e.current.caches.rows=o,!r)return void a();const s=t.throttleRowsMs-(Date.now()-i.current);s>0?l.start(s,a):a()}),[t.throttleRowsMs,t.rowCount,t.loading,e,l]),d=r.useCallback((n=>{if(o.debug(`Updating all rows, new length ${n.length}`),qn(e))return void e.current.updateNonPivotRows(n,!1);const r=(0,wt.Z)({rows:n,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),i=e.current.caches.rows;r.rowsBeforePartialUpdates=i.rowsBeforePartialUpdates,u({cache:r,throttle:!0})}),[o,t.getRowId,t.loading,t.rowCount,u,e]),p=r.useCallback((o=>{if(t.signature===Oo.DataGrid&&o.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(qn(e))return void e.current.updateNonPivotRows(o);const n=(0,wt.ro)(e,o,t.getRowId),r=(0,wt.Ze)({updates:n,getRowId:t.getRowId,previousCache:e.current.caches.rows});u({cache:r,throttle:!0})}),[t.signature,t.getRowId,u,e]),h=r.useCallback(((o,n)=>{const r=(0,wt.ro)(e,o,t.getRowId),i=(0,wt.Ze)({updates:r,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:n??[]});u({cache:i,throttle:!1})}),[t.getRowId,u,e]),m=r.useCallback((t=>{o.debug(`Setting loading to ${t}`),e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{loading:t})}))),e.current.caches.rows.loadingPropBeforePartialUpdates=t}),[e,o]),f=r.useCallback((()=>{const t=(0,Se.A6)(e),o=(0,Se.rI)(e);return new Map(t.map((e=>[e,o[e]??{}])))}),[e]),g=r.useCallback((()=>(0,Se.H0)(e)),[e]),b=r.useCallback((()=>(0,Se.A6)(e)),[e]),v=r.useCallback((t=>{const{rowIdToIndexMap:o}=Uo(e);return o.get(t)}),[e]),y=r.useCallback(((t,o)=>{const r=(0,Se.Qu)(e,t);if(!r)throw new Error(`MUI X: No row with id #${t} found.`);if("group"!==r.type)throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const i=(0,n.A)({},r,{childrenExpanded:o});e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{tree:(0,n.A)({},e.rows.tree,{[t]:i})})}))),e.current.publishEvent("rowExpansionChange",i)}),[e]),w=r.useCallback((t=>(0,Se.Qu)(e,t)??null),[e]),C=r.useCallback((({skipAutoGeneratedRows:t=!0,groupId:o,applySorting:n,applyFiltering:r})=>{const i=(0,Se.qj)(e);let a;if(n){const n=i[o];if(!n)return[];const r=(0,Qn.RJ)(e);a=[];for(let e=r.findIndex((e=>e===o))+1;en.depth;e+=1){const o=r[e];t&&(0,wt.nF)(i[o])||a.push(o)}}else a=(0,wt.l_)(i,o,t);if(r){const t=(0,Po.wx)(e);a=(0,la.Z)(t)?a:a.filter((e=>!1!==t[e]))}return a}),[e]),x=r.useCallback(((t,r)=>{const i=(0,Se.Qu)(e,t);if(!i)throw new Error(`MUI X: No row with id #${t} found.`);if(i.parent!==wt.OL)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if("leaf"!==i.type)throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState((i=>{const a=(0,Se.qj)(e)[wt.OL],l=a.children,s=l.findIndex((e=>e===t));if(-1===s||s===r)return i;o.debug(`Moving row ${t} to index ${r}`);const c=[...l];return c.splice(r,0,c.splice(s,1)[0]),(0,n.A)({},i,{rows:(0,n.A)({},i.rows,{tree:(0,n.A)({},i.rows.tree,{[wt.OL]:(0,n.A)({},a,{children:c})})})})})),e.current.publishEvent("rowsSet")}),[e,o]),A={getRow:s,setLoading:m,getRowId:c,getRowModels:f,getRowsCount:g,getAllRowIds:b,setRows:d,updateRows:p,getRowNode:w,getRowIndexRelativeToVisibleRows:v,unstable_replaceRows:r.useCallback(((o,r)=>{if(t.signature===Oo.DataGrid&&r.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0===r.length)return;if((0,Se.V2)(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const i=(0,n.A)({},(0,Se.qj)(e)),a=(0,n.A)({},(0,Se.rI)(e)),l=i[wt.OL],s=[...l.children],c=new Set;for(let e=0;e"leaf"===i[e]?.type));e.current.caches.rows.dataRowIdToModelLookup=a,e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,s.length),dataRowIdToModelLookup:a,dataRowIds:u,tree:i})}))),e.current.publishEvent("rowsSet")}),[e,t.signature,t.getRowId,t.loading,t.rowCount])},E={setRowIndex:x,setRowChildrenExpansion:y,getRowGroupChildren:C},S={updateNestedRows:h},k=r.useCallback((()=>{let r;o.info("Row grouping pre-processing have changed, regenerating the row tree"),r=e.current.caches.rows.rowsBeforePartialUpdates===t.rows?(0,n.A)({},e.current.caches.rows,{updates:{type:"full",rows:(0,Se.A6)(e)}}):(0,wt.Z)({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),u({cache:r,throttle:!1})}),[o,e,t.rows,t.getRowId,t.loading,t.rowCount,u]),R=(0,Ro.A)((()=>t.dataSource)),M=r.useCallback((e=>{t.dataSource&&t.dataSource!==R.current?R.current=t.dataSource:"rowTreeCreation"===e&&k()}),[k,R,t.dataSource]),I=r.useCallback((()=>{e.current.getActiveStrategy(_r.RowTree)!==(0,Se.Y1)(e)&&k()}),[e,k]);fe(e,"activeStrategyProcessorChange",M),fe(e,"strategyAvailabilityChange",I);const P=r.useCallback((()=>{e.current.setState((o=>{const r=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:(0,Se.qj)(e),treeDepths:(0,Se.Mz)(e),dataRowIds:(0,Se.A6)(e),dataRowIdToModelLookup:(0,Se.rI)(e)});return(0,n.A)({},o,{rows:(0,n.A)({},o.rows,r,{totalTopLevelRowCount:(0,wt.fS)({tree:r.tree,rowCountProp:t.rowCount})})})})),e.current.publishEvent("rowsSet")}),[e,t.rowCount]);hi(e,"hydrateRows",P),on(e,A,"public"),on(e,E,t.signature===Oo.DataGrid?"private":"public"),on(e,S,"private");const O=r.useRef(!0);r.useEffect((()=>{if(O.current)return void(O.current=!1);let r=!1;t.rowCount!==a.current&&(r=!0,a.current=t.rowCount);const i=t.dataSource?(0,Se.Zy)(e):t.rows,l=e.current.caches.rows.rowsBeforePartialUpdates===i,s=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,c=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;l&&(s||(e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{loading:t.loading})}))),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),c||(e.current.setState((e=>(0,n.A)({},e,{rows:(0,n.A)({},e.rows,{totalRowCount:Math.max(t.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,e.rows.totalTopLevelRowCount)})}))),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!r)||(o.debug(`Updating all rows, new length ${i?.length}`),u({cache:(0,wt.Z)({rows:i,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))}),[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,o,u,e])})(e,t),((e,t)=>{const o=(0,Ro.A)((()=>e.current.state.rowSpanning!==Wa?qa(t,e):Ga)),i=r.useCallback(((r,i=!1)=>{const{range:a,rows:l}=Uo(e,(t.pagination,t.paginationMode));if(null===a||!_a(r))return;i&&(o.current=Ga);const s=function(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex(0,n.A)({},e,{rowSpanning:{spannedCells:u,hiddenCells:d,hiddenCellOriginMap:p}})))}),[e,o,t.pagination,t.paginationMode]),a=r.useCallback((()=>{const t=en(e);_a(t)&&i(t,!0)}),[e,i]);fe(e,"renderedRowsIntervalChange",_e(t.rowSpanning,i)),fe(e,"sortedRowsSet",_e(t.rowSpanning,a)),fe(e,"paginationModelChange",_e(t.rowSpanning,a)),fe(e,"filteredRowsSet",_e(t.rowSpanning,a)),fe(e,"columnsChange",_e(t.rowSpanning,a)),r.useEffect((()=>{t.rowSpanning?e.current.state.rowSpanning===Wa&&a():e.current.state.rowSpanning!==Wa&&e.current.setState((e=>(0,n.A)({},e,{rowSpanning:Wa})))}),[e,a,t.rowSpanning])})(e,t),function(e,t){const o=r.useCallback((t=>({field:t,colDef:e.current.getColumn(t)})),[e]),n=r.useCallback((t=>{const o=e.current.getRow(t);if(!o)throw new ua(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:o}}),[e]),i=r.useCallback(((t,o,n,{cellMode:r,colDef:i,hasFocus:a,rowNode:l,tabIndex:s})=>{const c=n[o],u=i?.valueGetter?i.valueGetter(c,n,i,e):c,d={id:t,field:o,row:n,rowNode:l,colDef:i,cellMode:r,hasFocus:a,tabIndex:s,value:u,formattedValue:u,isEditable:!1,api:e.current};return i&&i.valueFormatter&&(d.formattedValue=i.valueFormatter(u,n,i,e)),d.isEditable=i&&e.current.isCellEditable(d),d}),[e]),a=r.useCallback(((o,n)=>{const r=e.current.getRow(o),i=(0,Se.Qu)(e,o);if(!r||!i)throw new ua(`No row with id #${o} found`);const a=hn(e),l=bn(e),s=e.current.getCellMode(o,n);return e.current.getCellParamsForRow(o,n,r,{colDef:t.listView&&t.listViewColumn?.field===n?un(e):e.current.getColumn(n),rowNode:i,hasFocus:null!==a&&a.field===n&&a.id===o,tabIndex:l&&l.field===n&&l.id===o?0:-1,cellMode:s})}),[e,t.listView,t.listViewColumn?.field]),l=r.useCallback(((t,o)=>{const n=e.current.getColumn(o),r=e.current.getRow(t);if(!r)throw new ua(`No row with id #${t} found`);return n&&n.valueGetter?n.valueGetter(r[n.field],r,n,e):r[o]}),[e]),s=r.useCallback(((t,o)=>(0,wt.e$)(t,o,e)),[e]),c=r.useCallback(((t,o)=>{const n=s(t,o);return o&&o.valueFormatter?o.valueFormatter(n,t,o,e):n}),[e,s]),u=r.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${Fi(t)}"]`)}(e.current.rootElementRef.current,t):null),[e]),d=r.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(Ni(t))}(e.current.rootElementRef.current,t):null),[e]),p=r.useCallback(((t,o)=>e.current.rootElementRef.current?function(e,{id:t,field:o}){const n=`${Ni(t)} .${f.x.cell}[data-field="${Fi(o)}"]`;return e.querySelector(n)}(e.current.rootElementRef.current,{id:t,field:o}):null),[e]),h={getCellParamsForRow:i};on(e,{getCellValue:l,getCellParams:a,getCellElement:p,getRowValue:s,getRowFormattedValue:c,getRowParams:n,getRowElement:d,getColumnHeaderParams:o,getColumnHeaderElement:u},"public"),on(e,h,"private")}(e,t),(e=>{const t=r.useRef({}),o=()=>{t.current={}},n={resetColSpan:o,calculateColSpan:r.useCallback((({rowId:o,minFirstColumn:n,maxLastColumn:r,columns:i})=>{for(let a=n;a1&&(a+=l.colSpan-1)}}),[e])};on(e,{unstable_getCellColSpanInfo:(e,o)=>t.current[e]?.[o]},"public"),on(e,n,"private"),fe(e,"columnOrderChange",o)})(e),((e,t)=>{const o=r.useCallback((t=>po(e)[t]??[]),[e]),i=r.useCallback((()=>ho(e)),[e]);on(e,{getColumnGroupPath:o,getAllGroupDetails:i},"public");const a=r.useCallback((()=>{const o=Ia(t.columnGroupingModel??[]);e.current.setState((e=>{const t=e.columns?.orderedFields??[],r=e.pinnedColumns??{},i=Pa(t,o,r);return(0,n.A)({},e,{columnGrouping:(0,n.A)({},e.columnGrouping,{headerStructure:i})})}))}),[e,t.columnGroupingModel]),l=r.useCallback((t=>{const o=e.current.getPinnedColumns?.()??{},r=(0,j.JR)(e),i=(0,j.TI)(e),a=Ta(t??[]),l=Ia(t??[]),s=Pa(r,l,o),c=0===i.length?0:Math.max(...i.map((e=>l[e]?.length??0)));e.current.setState((e=>(0,n.A)({},e,{columnGrouping:{lookup:a,unwrappedGroupingModel:l,headerStructure:s,maxDepth:c}})))}),[e]);fe(e,"columnIndexChange",a),fe(e,"columnsChange",(()=>{l(t.columnGroupingModel)})),fe(e,"columnVisibilityModelChange",(()=>{l(t.columnGroupingModel)})),r.useEffect((()=>{l(t.columnGroupingModel)}),[l,t.columnGroupingModel])})(e,t),((e,t)=>{((e,t)=>{const[o,i]=r.useState({}),a=r.useRef(o),s=r.useRef({}),{processRowUpdate:c,onProcessRowUpdateError:u,cellModesModel:d,onCellModesModelChange:p}=t,h=e=>(...o)=>{t.editMode===Nt.Cell&&e(...o)},m=r.useCallback(((t,o)=>{const n=e.current.getCellParams(t,o);if(!e.current.isCellEditable(n))throw new Error(`MUI X: The cell with id=${t} and field=${o} is not editable.`)}),[e]),f=r.useCallback(((t,o,n)=>{if(e.current.getCellMode(t,o)!==n)throw new Error(`MUI X: The cell with id=${t} and field=${o} is not in ${n} mode.`)}),[e]),g=r.useCallback(((t,o)=>{if(!t.isEditable)return;if(t.cellMode===Ht.Edit)return;const r=(0,n.A)({},t,{reason:Lt.cellDoubleClick});e.current.publishEvent("cellEditStart",r,o)}),[e]),b=r.useCallback(((t,o)=>{if(t.cellMode===Ht.View)return;if(e.current.getCellMode(t.id,t.field)===Ht.View)return;const r=(0,n.A)({},t,{reason:Ft.cellFocusOut});e.current.publishEvent("cellEditStop",r,o)}),[e]),v=r.useCallback(((t,o)=>{if(t.cellMode===Ht.Edit){if(229===o.which)return;let r;if("Escape"===o.key?r=Ft.escapeKeyDown:"Enter"===o.key?r=Ft.enterKeyDown:"Tab"===o.key&&(r=o.shiftKey?Ft.shiftTabKeyDown:Ft.tabKeyDown,o.preventDefault()),r){const i=(0,n.A)({},t,{reason:r});e.current.publishEvent("cellEditStop",i,o)}}else if(t.isEditable){let r;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:o,cellParams:t,editMode:"cell"}))return;if(ii(o)?r=Lt.printableKeyDown:si(o)?r=Lt.pasteKeyDown:"Enter"===o.key?r=Lt.enterKeyDown:"Backspace"!==o.key&&"Delete"!==o.key||(r=Lt.deleteKeyDown),r){const i=(0,n.A)({},t,{reason:r,key:o.key});e.current.publishEvent("cellEditStart",i,o)}}}),[e]),y=r.useCallback((t=>{const{id:o,field:n,reason:r}=t,i={id:o,field:n};r!==Lt.printableKeyDown&&r!==Lt.deleteKeyDown&&r!==Lt.pasteKeyDown||(i.deleteValue=!0),e.current.startCellEditMode(i)}),[e]),w=r.useCallback((t=>{const{id:o,field:n,reason:r}=t;let i;e.current.runPendingEditCellValueMutation(o,n),r===Ft.enterKeyDown?i="below":r===Ft.tabKeyDown?i="right":r===Ft.shiftTabKeyDown&&(i="left");const a="escapeKeyDown"===r;e.current.stopCellEditMode({id:o,field:n,ignoreModifications:a,cellToFocusAfter:i})}),[e]);var C;fe(e,"cellDoubleClick",h(g)),fe(e,"cellFocusOut",h(b)),fe(e,"cellKeyDown",h(v)),fe(e,"cellEditStart",h(y)),fe(e,"cellEditStop",h(w)),be(e,"cellEditStart",t.onCellEditStart),be(e,"cellEditStop",(C=t.onCellEditStop,async(...t)=>{if(C){const{id:o,field:n}=t[0],r=e.current.state.editRows,i=r[o][n]?.error;i||C(...t)}}));const x=r.useCallback(((t,o)=>{const n=Yi(e);return n[t]&&n[t][o]?Ht.Edit:Ht.View}),[e]),A=(0,ce.A)((o=>{const n=o!==t.cellModesModel;p&&n&&p(o,{api:e.current}),t.cellModesModel&&n||(i(o),a.current=o,e.current.publishEvent("cellModesModelChange",o))})),E=r.useCallback(((e,t,o)=>{const r=(0,n.A)({},a.current);if(null!==o)r[e]=(0,n.A)({},r[e],{[t]:(0,n.A)({},o)});else{const o=r[e],n=(0,l.A)(o,[t].map(Br.A));r[e]=n,0===Object.keys(r[e]).length&&delete r[e]}A(r)}),[A]),S=r.useCallback(((t,o,r)=>{e.current.setState((e=>{const i=(0,n.A)({},e.editRows);return null!==r?i[t]=(0,n.A)({},i[t],{[o]:(0,n.A)({},r)}):(delete i[t][o],0===Object.keys(i[t]).length&&delete i[t]),(0,n.A)({},e,{editRows:i})}))}),[e]),k=r.useCallback((e=>{const{id:t,field:o}=e,r=(0,l.A)(e,ea);m(t,o),f(t,o,Ht.View),E(t,o,(0,n.A)({mode:Ht.Edit},r))}),[m,f,E]),R=(0,ce.A)((async t=>{const{id:o,field:r,deleteValue:i,initialValue:a}=t,l=e.current.getCellValue(o,r);let s=l;i?s=Zi(e.current.getColumn(r)):a&&(s=a);const c=e.current.getColumn(r),u=!!c.preProcessEditCellProps&&i;let d={value:s,error:!1,isProcessingProps:u};if(S(o,r,d),e.current.setCellFocus(o,r),u&&(d=await Promise.resolve(c.preProcessEditCellProps({id:o,row:e.current.getRow(o),props:d,hasChanged:s!==l})),e.current.getCellMode(o,r)===Ht.Edit)){const t=Yi(e);S(o,r,(0,n.A)({},d,{value:t[o][r].value,isProcessingProps:!1}))}})),M=r.useCallback((e=>{const{id:t,field:o}=e,r=(0,l.A)(e,ta);f(t,o,Ht.Edit),E(t,o,(0,n.A)({mode:Ht.View},r))}),[f,E]),I=(0,ce.A)((async o=>{const{id:n,field:r,ignoreModifications:i,cellToFocusAfter:a="none"}=o;f(n,r,Ht.Edit),e.current.runPendingEditCellValueMutation(n,r);const l=()=>{S(n,r,null),E(n,r,null),"none"!==a&&e.current.moveFocusToRelativeCell(n,r,a)};if(i)return void l();const d=Yi(e),{error:p,isProcessingProps:h}=d[n][r],m=e.current.getRow(n);if(p||h)return s.current[n][r].mode=Ht.Edit,void E(n,r,{mode:Ht.Edit});const g=e.current.getRowWithUpdatedValuesFromCellEditing(n,r);if(t.dataSource?.updateRow){if((0,Ri.H)(m,g))return void l();const t=()=>{s.current[n][r].mode=Ht.Edit,E(n,r,{mode:Ht.Edit})},o={rowId:n,updatedRow:g,previousRow:m};try{await e.current.dataSource.editRow(o),l()}catch{t()}}else if(c){const t=e=>{s.current[n][r].mode=Ht.Edit,E(n,r,{mode:Ht.Edit}),u&&u(e)};try{Promise.resolve(c(g,m,{rowId:n})).then((t=>{e.current.updateRows([t]),l()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([g]),l()})),P={setCellEditingEditCellValue:r.useCallback((async t=>{const{id:o,field:r,value:i,debounceMs:a,unstable_skipValueParser:l}=t;m(o,r),f(o,r,Ht.Edit);const s=e.current.getColumn(r),c=e.current.getRow(o);let u=i;s.valueParser&&!l&&(u=s.valueParser(i,c,s,e));let d=Yi(e),p=(0,n.A)({},d[o][r],{value:u,changeReason:a?"debouncedSetEditCellValue":"setEditCellValue"});if(s.preProcessEditCellProps){const e=i!==d[o][r].value;p=(0,n.A)({},p,{isProcessingProps:!0}),S(o,r,p),p=await Promise.resolve(s.preProcessEditCellProps({id:o,row:c,props:p,hasChanged:e}))}return e.current.getCellMode(o,r)!==Ht.View&&(d=Yi(e),p=(0,n.A)({},p,{isProcessingProps:!1}),p.value=s.preProcessEditCellProps?d[o][r].value:u,S(o,r,p),d=Yi(e),!d[o]?.[r]?.error)}),[e,m,f,S]),getRowWithUpdatedValuesFromCellEditing:r.useCallback(((t,o)=>{const r=e.current.getColumn(o),i=Yi(e),a=e.current.getRow(t);if(!i[t]||!i[t][o])return e.current.getRow(t);const{value:l}=i[t][o];return r.valueSetter?r.valueSetter(l,a,r,e):(0,n.A)({},a,{[o]:l})}),[e])};on(e,{getCellMode:x,startCellEditMode:k,stopCellEditMode:M},"public"),on(e,P,"private"),r.useEffect((()=>{d&&A(d)}),[d,A]),(0,we.A)((()=>{const t=(0,Se.rI)(e),r=s.current;s.current=Be(o),Object.entries(o).forEach((([o,i])=>{Object.entries(i).forEach((([i,a])=>{const l=r[o]?.[i]?.mode||Ht.View,s=t[o]?e.current.getRowId(t[o]):o;a.mode===Ht.Edit&&l===Ht.View?R((0,n.A)({id:s,field:i},a)):a.mode===Ht.View&&l===Ht.Edit&&I((0,n.A)({id:s,field:i},a))}))}))}),[e,o,R,I])})(e,t),((e,t)=>{const[o,i]=r.useState({}),a=r.useRef(o),s=r.useRef({}),c=r.useRef({}),u=r.useRef(void 0),d=r.useRef(null),{processRowUpdate:p,onProcessRowUpdateError:h,rowModesModel:m,onRowModesModelChange:f}=t,g=e=>(...o)=>{t.editMode===Nt.Row&&e(...o)},b=r.useCallback(((t,o)=>{const n=e.current.getCellParams(t,o);if(!e.current.isCellEditable(n))throw new Error(`MUI X: The cell with id=${t} and field=${o} is not editable.`)}),[e]),v=r.useCallback(((t,o)=>{if(e.current.getRowMode(t)!==o)throw new Error(`MUI X: The row with id=${t} is not in ${o} mode.`)}),[e]),y=r.useCallback((t=>{const o=Yi(e);return Object.values(o[t]).some((e=>e.error))}),[e]),w=r.useCallback(((t,o)=>{if(!t.isEditable)return;if(e.current.getRowMode(t.id)===jt.Edit)return;const r=e.current.getRowParams(t.id),i=(0,n.A)({},r,{field:t.field,reason:oa.cellDoubleClick});e.current.publishEvent("rowEditStart",i,o)}),[e]),C=r.useCallback((e=>{d.current=e}),[]),x=r.useCallback(((t,o)=>{t.isEditable&&e.current.getRowMode(t.id)!==jt.View&&(d.current=null,u.current=setTimeout((()=>{if(d.current?.id!==t.id){if(!e.current.getRow(t.id))return;if(e.current.getRowMode(t.id)===jt.View)return;if(y(t.id))return;const r=e.current.getRowParams(t.id),i=(0,n.A)({},r,{field:t.field,reason:na.rowFocusOut});e.current.publishEvent("rowEditStop",i,o)}})))}),[e,y]);r.useEffect((()=>()=>{clearTimeout(u.current)}),[]);const A=r.useCallback(((t,o)=>{if(t.cellMode===jt.Edit){if(229===o.which)return;let r;if("Escape"===o.key)r=na.escapeKeyDown;else if("Enter"===o.key)r=na.enterKeyDown;else if("Tab"===o.key){const n=(0,j.TI)(e).filter((o=>e.current.getColumn(o).type===ro||e.current.isCellEditable(e.current.getCellParams(t.id,o))));if(o.shiftKey?t.field===n[0]&&(r=na.shiftTabKeyDown):t.field===n[n.length-1]&&(r=na.tabKeyDown),o.preventDefault(),!r){const r=n.findIndex((e=>e===t.field)),i=n[o.shiftKey?r-1:r+1];e.current.setCellFocus(t.id,i)}}if(r){if(r!==na.escapeKeyDown&&y(t.id))return;const i=(0,n.A)({},e.current.getRowParams(t.id),{reason:r,field:t.field});e.current.publishEvent("rowEditStop",i,o)}}else if(t.isEditable){let r;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:o,cellParams:t,editMode:"row"}))return;if(ii(o)||si(o)?r=oa.printableKeyDown:"Enter"===o.key?r=oa.enterKeyDown:"Backspace"!==o.key&&"Delete"!==o.key||(r=oa.deleteKeyDown),r){const i=e.current.getRowParams(t.id),a=(0,n.A)({},i,{field:t.field,reason:r});e.current.publishEvent("rowEditStart",a,o)}}}),[e,y]),E=r.useCallback((t=>{const{id:o,field:n,reason:r}=t,i={id:o,fieldToFocus:n};r!==oa.printableKeyDown&&r!==oa.deleteKeyDown||(i.deleteValue=!!n),e.current.startRowEditMode(i)}),[e]),S=r.useCallback((t=>{const{id:o,reason:n,field:r}=t;let i;e.current.runPendingEditCellValueMutation(o),n===na.enterKeyDown?i="below":n===na.tabKeyDown?i="right":n===na.shiftTabKeyDown&&(i="left");const a="escapeKeyDown"===n;e.current.stopRowEditMode({id:o,ignoreModifications:a,field:r,cellToFocusAfter:i})}),[e]);fe(e,"cellDoubleClick",g(w)),fe(e,"cellFocusIn",g(C)),fe(e,"cellFocusOut",g(x)),fe(e,"cellKeyDown",g(A)),fe(e,"rowEditStart",g(E)),fe(e,"rowEditStop",g(S)),be(e,"rowEditStart",t.onRowEditStart),be(e,"rowEditStop",t.onRowEditStop);const k=r.useCallback((o=>Qi(e,{rowId:o,editMode:t.editMode})?jt.Edit:jt.View),[e,t.editMode]),R=(0,ce.A)((o=>{const n=o!==t.rowModesModel;f&&n&&f(o,{api:e.current}),t.rowModesModel&&n||(i(o),a.current=o,e.current.publishEvent("rowModesModelChange",o))})),M=r.useCallback(((e,t)=>{const o=(0,n.A)({},a.current);null!==t?o[e]=(0,n.A)({},t):delete o[e],R(o)}),[R]),I=r.useCallback(((t,o)=>{e.current.setState((e=>{const r=(0,n.A)({},e.editRows);return null!==o?r[t]=o:delete r[t],(0,n.A)({},e,{editRows:r})}))}),[e]),P=r.useCallback(((t,o,r)=>{e.current.setState((e=>{const i=(0,n.A)({},e.editRows);return null!==r?i[t]=(0,n.A)({},i[t],{[o]:(0,n.A)({},r)}):(delete i[t][o],0===Object.keys(i[t]).length&&delete i[t]),(0,n.A)({},e,{editRows:i})}))}),[e]),O=r.useCallback((e=>{const{id:t}=e,o=(0,l.A)(e,ra);v(t,jt.View),M(t,(0,n.A)({mode:jt.Edit},o))}),[v,M]),T=(0,ce.A)((t=>{const{id:o,fieldToFocus:r,deleteValue:i,initialValue:a}=t,l=e.current.getRow(o),s=(0,j.OV)(e),u=s.reduce(((t,n)=>{const l=n.field;if(!e.current.getCellParams(o,l).isEditable)return t;const s=e.current.getColumn(l);let c=e.current.getCellValue(o,l);return r===l&&(i||a)&&(i?c=Zi(s):a&&(c=a)),t[l]={value:c,error:!1,isProcessingProps:s.editable&&!!s.preProcessEditCellProps&&i},t}),{});c.current[o]=l,I(o,u),r&&e.current.setCellFocus(o,r),s.filter((e=>e.editable&&!!e.preProcessEditCellProps&&i)).forEach((t=>{const r=t.field,s=e.current.getCellValue(o,r),c=i?Zi(t):a??s;Promise.resolve(t.preProcessEditCellProps({id:o,row:l,props:u[r],hasChanged:c!==s})).then((t=>{if(e.current.getRowMode(o)===jt.Edit){const i=Yi(e);P(o,r,(0,n.A)({},t,{value:i[o][r].value,isProcessingProps:!1}))}}))}))})),$=r.useCallback((e=>{const{id:t}=e,o=(0,l.A)(e,ia);v(t,jt.Edit),M(t,(0,n.A)({mode:jt.View},o))}),[v,M]),z=(0,ce.A)((async o=>{const{id:n,ignoreModifications:r,field:i,cellToFocusAfter:a="none"}=o;e.current.runPendingEditCellValueMutation(n);const l=()=>{"none"!==a&&i&&e.current.moveFocusToRelativeCell(n,i,a),I(n,null),M(n,null),delete c.current[n]};if(r)return void l();const u=Yi(e),d=c.current[n];if(Object.values(u[n]).some((e=>e.isProcessingProps)))return void(s.current[n].mode=jt.Edit);if(y(n))return s.current[n].mode=jt.Edit,void M(n,{mode:jt.Edit});const m=e.current.getRowWithUpdatedValuesFromRowEditing(n);if(t.dataSource?.updateRow){if((0,Ri.H)(d,m))return void l();const t=()=>{s.current[n].mode=jt.Edit,M(n,{mode:jt.Edit})},o={rowId:n,updatedRow:m,previousRow:d};try{await e.current.dataSource.editRow(o),l()}catch{t()}}else if(p){const t=e=>{s.current[n]&&(s.current[n].mode=jt.Edit,M(n,{mode:jt.Edit})),h&&h(e)};try{Promise.resolve(p(m,d,{rowId:n})).then((t=>{e.current.updateRows([t]),l()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([m]),l()})),D={setRowEditingEditCellValue:r.useCallback((t=>{const{id:o,field:r,value:i,debounceMs:a,unstable_skipValueParser:s}=t;b(o,r);const c=e.current.getColumn(r),u=e.current.getRow(o);let d=i;c.valueParser&&!s&&(d=c.valueParser(i,u,c,e));let p=Yi(e),h=(0,n.A)({},p[o][r],{value:d,changeReason:a?"debouncedSetEditCellValue":"setEditCellValue"});return c.preProcessEditCellProps||P(o,r,h),new Promise((t=>{const i=[];if(c.preProcessEditCellProps){const a=h.value!==p[o][r].value;h=(0,n.A)({},h,{isProcessingProps:!0}),P(o,r,h);const s=p[o],m=(0,l.A)(s,[r].map(Br.A)),f=Promise.resolve(c.preProcessEditCellProps({id:o,row:u,props:h,hasChanged:a,otherFieldsProps:m})).then((i=>{e.current.getRowMode(o)!==jt.View?(p=Yi(e),(i=(0,n.A)({},i,{isProcessingProps:!1})).value=c.preProcessEditCellProps?p[o][r].value:d,P(o,r,i)):t(!1)}));i.push(f)}Object.entries(p[o]).forEach((([a,s])=>{if(a===r)return;const c=e.current.getColumn(a);if(!c.preProcessEditCellProps)return;s=(0,n.A)({},s,{isProcessingProps:!0}),P(o,a,s),p=Yi(e);const d=p[o],h=(0,l.A)(d,[a].map(Br.A)),m=Promise.resolve(c.preProcessEditCellProps({id:o,row:u,props:s,hasChanged:!1,otherFieldsProps:h})).then((r=>{e.current.getRowMode(o)!==jt.View?(r=(0,n.A)({},r,{isProcessingProps:!1}),P(o,a,r)):t(!1)}));i.push(m)})),Promise.all(i).then((()=>{e.current.getRowMode(o)===jt.Edit?(p=Yi(e),t(!p[o][r].error)):t(!1)}))}))}),[e,b,P]),getRowWithUpdatedValuesFromRowEditing:r.useCallback((t=>{const o=Yi(e),r=e.current.getRow(t);if(!o[t])return e.current.getRow(t);let i=(0,n.A)({},c.current[t],r);return Object.entries(o[t]).forEach((([t,o])=>{const n=e.current.getColumn(t);n?.valueSetter?i=n.valueSetter(o.value,i,n,e):i[t]=o.value})),i}),[e])};on(e,{getRowMode:k,startRowEditMode:O,stopRowEditMode:$},"public"),on(e,D,"private"),r.useEffect((()=>{m&&R(m)}),[m,R]),(0,we.A)((()=>{const t=(0,Se.rI)(e),r=s.current;s.current=Be(o);const i=new Set([...Object.keys(o),...Object.keys(r)]);Array.from(i).forEach((i=>{const a=o[i]??{mode:jt.View},l=r[i]?.mode||jt.View,s=t[i]?e.current.getRowId(t[i]):i;a.mode===jt.Edit&&l===jt.View?T((0,n.A)({id:s},a)):a.mode===jt.View&&l===jt.Edit&&z((0,n.A)({id:s},a))}))}),[e,o,T,z])})(e,t);const o=r.useRef({}),{isCellEditable:i}=t,a=r.useCallback((e=>!(0,wt.nF)(e.rowNode)&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!i||i(e))),[i]);r.useEffect((()=>{const e=o.current;return()=>{Object.entries(e).forEach((([t,o])=>{Object.keys(o).forEach((o=>{const[n]=e[t][o];clearTimeout(n),delete e[t][o]}))}))}}),[]);const s=r.useCallback(((e,t)=>{if(o.current[e])if(t){if(o.current[e][t]){const[,n]=o.current[e][t];n()}}else Object.keys(o.current[e]).forEach((t=>{const[,n]=o.current[e][t];n()}))}),[]),c=r.useCallback((n=>{const{id:r,field:i,debounceMs:a}=n;return new Promise((l=>{((e,t,n,r)=>{if(!n)return void r();if(o.current[e]||(o.current[e]={}),o.current[e][t]){const[n]=o.current[e][t];clearTimeout(n)}const i=setTimeout((()=>{r(),delete o.current[e][t]}),n);o.current[e][t]=[i,()=>{const[n]=o.current[e][t];clearTimeout(n),r(),delete o.current[e][t]}]})(r,i,a,(async()=>{const o=t.editMode===Nt.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(r,i)===Ht.Edit){const e=await o(n);l(e)}}))}))}),[e,t.editMode]),u=r.useCallback(((o,n)=>t.editMode===Nt.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(o,n):e.current.getRowWithUpdatedValuesFromRowEditing(o)),[e,t.editMode]),d=r.useCallback(((t,o)=>{const n=Yi(e);return n[t]?.[o]??null}),[e]),p={runPendingEditCellValueMutation:s};on(e,{isCellEditable:a,setEditCellValue:c,getRowWithUpdatedValues:u,unstable_getEditCellMeta:d},"public"),on(e,p,"private")})(e,t),((e,t)=>{const o=Ur(e,"useGridFocus"),i=r.useRef(null),a=null!==e.current.rootElementRef.current,l=r.useCallback(((t,o)=>{t&&e.current.getRow(t.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(t.id,t.field),o)}),[e]),s=r.useCallback(((t,r)=>{const i=hn(e);i?.id===t&&i?.field===r||(e.current.setState((e=>(o.debug(`Focusing on cell with id=${t} and field=${r}`),(0,n.A)({},e,{tabIndex:{cell:{id:t,field:r},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:t,field:r},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))),e.current.getRow(t)&&(i&&l(i,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,r))))}),[e,o,l]),c=r.useCallback(((t,r={})=>{const i=hn(e);l(i,r),e.current.setState((e=>(o.debug(`Focusing on column header with colIndex=${t}`),(0,n.A)({},e,{tabIndex:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))))}),[e,o,l]),u=r.useCallback(((t,r={})=>{const i=hn(e);l(i,r),e.current.setState((e=>(o.debug(`Focusing on column header filter with colIndex=${t}`),(0,n.A)({},e,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null}}))))}),[e,o,l]),d=r.useCallback(((t,o,r={})=>{const i=hn(e);i&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(i.id,i.field),r),e.current.setState((e=>(0,n.A)({},e,{tabIndex:{columnGroupHeader:{field:t,depth:o},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:t,depth:o},columnHeader:null,columnHeaderFilter:null,cell:null}})))}),[e]),p=r.useCallback((()=>fn(e)),[e]),h=r.useCallback(((o,n,r)=>{let i=e.current.getColumnIndex(n);const a=(0,j.iv)(e),l=Uo(e,(t.pagination,t.paginationMode)),s=(0,Se.$2)(e),c=[].concat(s.top||[],l.rows,s.bottom||[]);let u=c.findIndex((e=>e.id===o));"right"===r?i+=1:"left"===r?i-=1:u+=1,i>=a.length?(u+=1,u=0&&(i=a.length-1)),u=He(u,0,c.length-1);const d=c[u];if(!d)return;const p=e.current.unstable_getCellColSpanInfo(d.id,i);p&&p.spannedByColSpan&&("left"===r||"below"===r?i=p.leftVisibleCellIndex:"right"===r&&(i=p.rightVisibleCellIndex)),i=He(i,0,a.length-1);const h=a[i];e.current.setCellFocus(d.id,h.field)}),[e,t.pagination,t.paginationMode]),m=r.useCallback((({id:t,field:o})=>{e.current.setCellFocus(t,o)}),[e]),g=r.useCallback(((t,o)=>{"Enter"===o.key||"Tab"===o.key||"Shift"===o.key||ai(o.key)||e.current.setCellFocus(t.id,t.field)}),[e]),b=r.useCallback((({field:t},o)=>{o.target===o.currentTarget&&e.current.setColumnHeaderFocus(t,o)}),[e]),v=r.useCallback((({fields:t,depth:o},n)=>{if(n.target!==n.currentTarget)return;const r=fn(e);null!==r&&r.depth===o&&t.includes(r.field)||e.current.setColumnGroupHeaderFocus(t[0],o,n)}),[e]),y=r.useCallback(((t,r)=>{r.relatedTarget?.getAttribute("class")?.includes(f.x.columnHeader)||(o.debug("Clearing focus"),e.current.setState((e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))))}),[o,e]),w=r.useCallback((e=>{i.current=e}),[]),C=r.useCallback((t=>{const o=i.current;i.current=null;const r=hn(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:t,cell:o}))return;if(!r)return void(o&&e.current.setCellFocus(o.id,o.field));if(o?.id===r.id&&o?.field===r.field)return;const a=e.current.getCellElement(r.id,r.field);a?.contains(t.target)||(o?e.current.setCellFocus(o.id,o.field):(e.current.setState((e=>(0,n.A)({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),l(r,t)))}),[e,l]),x=r.useCallback((t=>{if("view"===t.cellMode)return;const o=hn(e);o?.id===t.id&&o?.field===t.field||e.current.setCellFocus(t.id,t.field)}),[e]),A=r.useCallback((()=>{const o=hn(e);if(o&&!e.current.getRow(o.id)){const r=o.id;let i=null;if(void 0!==r){const o=e.current.getRowElement(r),n=o?.dataset.rowindex?Number(o?.dataset.rowindex):0,a=Uo(e,(t.pagination,t.paginationMode)),l=a.rows[He(n,0,a.rows.length-1)];i=l?.id??null}e.current.setState((e=>(0,n.A)({},e,{focus:{cell:null===i?null:{id:i,field:o.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))}}),[e,t.pagination,t.paginationMode]),E=(0,ce.A)((()=>{const o=hn(e);if(!o)return;const r=Uo(e,(t.pagination,t.paginationMode));if(r.rows.find((e=>e.id===o.id)))return;const i=(0,j.iv)(e);e.current.setState((e=>(0,n.A)({},e,{tabIndex:{cell:{id:r.rows[0].id,field:i[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}})))})),S={moveFocusToRelativeCell:h,setColumnGroupHeaderFocus:d,getColumnGroupHeaderFocus:p};on(e,{setCellFocus:s,setColumnHeaderFocus:c,setColumnHeaderFilterFocus:u},"public"),on(e,S,"private"),r.useEffect((()=>{const t=(0,ki.A)(e.current.rootElementRef.current);return t.addEventListener("mouseup",C),()=>{t.removeEventListener("mouseup",C)}}),[e,a,C]),fe(e,"columnHeaderBlur",y),fe(e,"cellDoubleClick",m),fe(e,"cellMouseDown",w),fe(e,"cellKeyDown",g),fe(e,"cellModeChange",x),fe(e,"columnHeaderFocus",b),fe(e,"columnGroupHeaderFocus",v),fe(e,"rowsSet",A),fe(e,"paginationModelChange",E)})(e,t),((e,t)=>{const o=Ur(e,"useGridPreferencesPanel"),i=r.useCallback((()=>{e.current.setState((t=>{if(!t.preferencePanel.open)return t;o.debug("Hiding Preferences Panel");const r=B(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:r.openedPanelValue}),(0,n.A)({},t,{preferencePanel:{open:!1}})}))}),[e,o]),a=r.useCallback(((t,r,i)=>{o.debug("Opening Preferences Panel"),e.current.setState((e=>(0,n.A)({},e,{preferencePanel:(0,n.A)({},e.preferencePanel,{open:!0,openedPanelValue:t,panelId:r,labelId:i})}))),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t})}),[o,e]);on(e,{showPreferences:a,hidePreferences:i},"public");const l=r.useCallback(((o,r)=>{const i=B(e);return!r.exportOnlyDirtyModels||null!=t.initialState?.preferencePanel||i.open?(0,n.A)({},o,{preferencePanel:i}):o}),[e,t.initialState?.preferencePanel]),s=r.useCallback(((t,o)=>{const r=o.stateToRestore.preferencePanel;return null!=r&&e.current.setState((e=>(0,n.A)({},e,{preferencePanel:r}))),t}),[e]);pi(e,"exportState",l),pi(e,"restoreState",s)})(e,t),((e,t)=>{const o=Ur(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Po.ZI,changeEvent:"filterModelChange"});const i=r.useCallback((()=>{e.current.setState((t=>{const o=(0,Po.ZI)(e),r=e.current.getFilterState(o),i=(0,n.A)({},t,{filter:(0,n.A)({},t.filter,r)}),a=$i(e,i);return(0,n.A)({},i,{visibleRowsLookup:a})})),e.current.publishEvent("filteredRowsSet")}),[e]),a=r.useCallback(((e,o)=>null==o||!1===o.filterable||t.disableColumnFilter?e:[...e,"columnMenuFilterItem"]),[t.disableColumnFilter]),l=r.useCallback((t=>{const o=(0,Po.ZI)(e),r=[...o.items],i=r.findIndex((e=>e.id===t.id));-1===i?r.push(t):r[i]=t,e.current.setFilterModel((0,n.A)({},o,{items:r}),"upsertFilterItem")}),[e]),s=r.useCallback((t=>{const o=(0,Po.ZI)(e),r=[...o.items];t.forEach((e=>{const t=r.findIndex((t=>t.id===e.id));-1===t?r.push(e):r[t]=e})),e.current.setFilterModel((0,n.A)({},o,{items:r}),"upsertFilterItems")}),[e]),c=r.useCallback((t=>{const o=(0,Po.ZI)(e),r=o.items.filter((e=>e.id!==t.id));r.length!==o.items.length&&e.current.setFilterModel((0,n.A)({},o,{items:r}),"deleteFilterItem")}),[e]),u=r.useCallback(((r,i,a)=>{if(o.debug("Displaying filter panel"),r){const o=(0,Po.ZI)(e),i=o.items.filter((t=>{if(void 0!==t.value)return!Array.isArray(t.value)||0!==t.value.length;const o=e.current.getColumn(t.field),n=o.filterOperators?.find((e=>e.value===t.operator));return!(void 0===n?.requiresFilterValue||n?.requiresFilterValue)}));let a;const l=i.find((e=>e.field===r)),s=e.current.getColumn(r);a=l?i:t.disableMultipleColumnsFiltering?[Xe({field:r,operator:s.filterOperators[0].value},e)]:[...i,Xe({field:r,operator:s.filterOperators[0].value},e)],e.current.setFilterModel((0,n.A)({},o,{items:a}))}e.current.showPreferences(V.filters,i,a)}),[e,o,t.disableMultipleColumnsFiltering]),d=r.useCallback((()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,o]),p=r.useCallback((t=>{const o=(0,Po.ZI)(e);o.logicOperator!==t&&e.current.setFilterModel((0,n.A)({},o,{logicOperator:t}),"changeLogicOperator")}),[e]),h=r.useCallback((t=>{const o=(0,Po.ZI)(e);(0,Ri.H)(o.quickFilterValues,t)||e.current.setFilterModel((0,n.A)({},o,{quickFilterValues:[...t]}))}),[e]),m=r.useCallback(((n,r)=>{(0,Po.ZI)(e)!==n&&(o.debug("Setting filter model"),e.current.updateControlState("filter",Qe(n,t.disableMultipleColumnsFiltering,e),r),e.current.unstable_applyFilters())}),[e,o,t.disableMultipleColumnsFiltering]),f=r.useCallback((o=>{const r=Ye(o,t.disableMultipleColumnsFiltering,e),i="client"===t.filterMode?ot(r,e,t.disableEval):null,a=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:i,filterModel:r??Ke()});return(0,n.A)({},a,{filterModel:r})}),[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),g={setFilterLogicOperator:p,unstable_applyFilters:i,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:s,setFilterModel:m,showFilterPanel:u,hideFilterPanel:d,setQuickFilterValues:h,ignoreDiacritics:t.ignoreDiacritics,getFilterState:f};on(e,g,"public");const b=r.useCallback(((o,r)=>{const i=(0,Po.ZI)(e);return i.items.forEach((e=>{delete e.fromInput})),r.exportOnlyDirtyModels&&null==t.filterModel&&null==t.initialState?.filter?.filterModel&&(0,Ri.H)(i,Ke())?o:(0,n.A)({},o,{filter:{filterModel:i}})}),[e,t.filterModel,t.initialState?.filter?.filterModel]),v=r.useCallback(((o,r)=>{const i=r.stateToRestore.filter?.filterModel;return null==i?o:(e.current.updateControlState("filter",Qe(i,t.disableMultipleColumnsFiltering,e),"restoreState"),(0,n.A)({},o,{callbacks:[...o.callbacks,e.current.unstable_applyFilters]}))}),[e,t.disableMultipleColumnsFiltering]),y=r.useCallback(((e,o)=>{if(o===V.filters){const e=t.slots.filterPanel;return(0,M.jsx)(e,(0,n.A)({},t.slotProps?.filterPanel))}return e}),[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:w}=t,C=(0,Ro.A)(zi),x=r.useCallback((o=>{if("client"!==t.filterMode||!o.isRowMatchingFilters||!o.filterModel.items.length&&!o.filterModel.quickFilterValues?.length)return Ge;const n=(0,Se.rI)(e),r={},{isRowMatchingFilters:i}=o,a={},l={passingFilterItems:null,passingQuickFilterValues:null},s=C.current(e.current.state.rows.dataRowIdToModelLookup);for(let t=0;t{o.debug("onColUpdated - GridColumns changed, applying filters");const t=(0,Po.ZI)(e),r=(0,j.gv)(e),i=t.items.filter((e=>e.field&&r[e.field]));i.length{"filtering"===t&&e.current.unstable_applyFilters()}),[e]),S=r.useCallback((()=>{e.current.setState((t=>(0,n.A)({},t,{visibleRowsLookup:$i(e,t)})))}),[e]);fe(e,"rowsSet",i),fe(e,"columnsChange",A),fe(e,"activeStrategyProcessorChange",E),fe(e,"rowExpansionChange",S),fe(e,"columnVisibilityModelChange",(()=>{const t=(0,Po.ZI)(e);t.quickFilterValues&&tt(t)&&e.current.unstable_applyFilters()})),di((()=>{e.current.unstable_applyFilters()})),(0,we.A)((()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)}),[e,o,t.filterModel])})(e,t),((e,t)=>{const o=Ur(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Qn.XU,changeEvent:"sortModelChange"});const i=r.useCallback(((t,o)=>{const n=(0,Qn.XU)(e),r=n.findIndex((e=>e.field===t));let i=[...n];return r>-1?null==o?.sort?i.splice(r,1):i.splice(r,1,o):i=[...n,o],i}),[e]),a=r.useCallback(((o,r)=>{const i=(0,Qn.XU)(e).find((e=>e.field===o.field));if(i){const e=void 0===r?Me(o.sortingOrder??t.sortingOrder,i.sort):r;return void 0===e?void 0:(0,n.A)({},i,{sort:e})}return{field:o.field,sort:void 0===r?Me(o.sortingOrder??t.sortingOrder):r}}),[e,t.sortingOrder]),l=r.useCallback(((e,o)=>null==o||!1===o.sortable||t.disableColumnSorting?e:(o.sortingOrder||t.sortingOrder).some((e=>!!e))?[...e,"columnMenuSortItem"]:e),[t.sortingOrder,t.disableColumnSorting]),s=r.useCallback((()=>{e.current.setState((r=>{if("server"===t.sortingMode)return o.debug("Skipping sorting rows as sortingMode = server"),(0,n.A)({},r,{sorting:(0,n.A)({},r.sorting,{sortedRows:(0,wt.l_)((0,Se.qj)(e),wt.OL,!1)})});const i=((e,t)=>{const o=e.map((e=>((e,t)=>{const o=t.current.getColumn(e.field);if(!o||null===e.sort)return null;let n;return n=o.getSortComparator?o.getSortComparator(e.sort):"desc"===e.sort?(...e)=>-1*o.sortComparator(...e):o.sortComparator,n?{getSortCellParams:e=>({id:e,field:o.field,rowNode:(0,Se.Qu)(t,e),value:t.current.getCellValue(e,o.field),api:t.current}),comparator:n}:null})(e,t))).filter((e=>!!e));return 0===o.length?null:e=>e.map((e=>({node:e,params:o.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>{return n=e,r=t,o.reduce(((e,t,o)=>{if(0!==e)return e;const i=n.params[o],a=r.params[o];return t.comparator(i.value,a.value,i,a)}),0);var n,r})).map((e=>e.node.id))})((0,Qn.XU)(e),e),a=e.current.applyStrategyProcessor("sorting",{sortRowList:i});return(0,n.A)({},r,{sorting:(0,n.A)({},r.sorting,{sortedRows:a})})})),e.current.publishEvent("sortedRowsSet")}),[e,o,t.sortingMode]),c=r.useCallback((n=>{(0,Qn.XU)(e)!==n&&(o.debug("Setting sort model"),e.current.setState(Re(n,t.disableMultipleColumnsSorting)),e.current.applySorting())}),[e,o,t.disableMultipleColumnsSorting]),u=r.useCallback(((o,n,r)=>{const l=e.current.getColumn(o),s=a(l,n);let c;c=!r||t.disableMultipleColumnsSorting?null==s?.sort?[]:[s]:i(l.field,s),e.current.setSortModel(c)}),[e,i,a,t.disableMultipleColumnsSorting]),d=r.useCallback((()=>(0,Qn.XU)(e)),[e]),p=r.useCallback((()=>(0,Qn.J6)(e).map((e=>e.model))),[e]),h=r.useCallback((()=>(0,Qn.RJ)(e)),[e]),m=r.useCallback((t=>e.current.getSortedRowIds()[t]),[e]);on(e,{getSortModel:d,getSortedRows:p,getSortedRowIds:h,getRowIdFromRowIndex:m,setSortModel:c,sortColumn:u,applySorting:s},"public");const f=r.useCallback(((o,r)=>{const i=(0,Qn.XU)(e);return!r.exportOnlyDirtyModels||null!=t.sortModel||null!=t.initialState?.sorting?.sortModel||i.length>0?(0,n.A)({},o,{sorting:{sortModel:i}}):o}),[e,t.sortModel,t.initialState?.sorting?.sortModel]),g=r.useCallback(((o,r)=>{const i=r.stateToRestore.sorting?.sortModel;return null==i?o:(e.current.setState(Re(i,t.disableMultipleColumnsSorting)),(0,n.A)({},o,{callbacks:[...o.callbacks,e.current.applySorting]}))}),[e,t.disableMultipleColumnsSorting]),b=r.useCallback((t=>{const o=(0,Se.qj)(e),n=o[wt.OL],r=t.sortRowList?t.sortRowList(n.children.map((e=>o[e]))):[...n.children];return null!=n.footerId&&r.push(n.footerId),r}),[e]);pi(e,"exportState",f),pi(e,"restoreState",g),Pi(e,Vr,"sorting",b);const v=r.useCallback((({field:e,colDef:o},n)=>{if(!o.sortable||t.disableColumnSorting)return;const r="always"===t.multipleColumnsSortingMode||n.shiftKey||n.metaKey||n.ctrlKey;u(e,void 0,r)}),[u,t.disableColumnSorting,t.multipleColumnsSortingMode]),y=r.useCallback((({field:e,colDef:o},n)=>{o.sortable&&!t.disableColumnSorting&&("Enter"!==n.key||n.ctrlKey||n.metaKey||u(e,void 0,"always"===t.multipleColumnsSortingMode||n.shiftKey))}),[u,t.disableColumnSorting,t.multipleColumnsSortingMode]),w=r.useCallback((()=>{const t=(0,Qn.XU)(e),o=(0,j.gv)(e);if(t.length>0){const n=t.filter((e=>o[e.field]));n.length{"sorting"===t&&e.current.applySorting()}),[e]);pi(e,"columnMenu",l),fe(e,"columnHeaderClick",v),fe(e,"columnHeaderKeyDown",y),fe(e,"rowsSet",e.current.applySorting),fe(e,"columnsChange",w),fe(e,"activeStrategyProcessorChange",C),di((()=>{e.current.applySorting()})),(0,we.A)((()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)}),[e,t.sortModel])})(e,t),((e,t)=>{const o=Ur(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:z,changeEvent:"densityChange"});const i=(0,ce.A)((t=>{z(e)!==t&&(o.debug(`Set grid density to ${t}`),e.current.setState((e=>(0,n.A)({},e,{density:t}))))}));on(e,{setDensity:i},"public");const a=r.useCallback(((o,r)=>{const i=z(e);return r.exportOnlyDirtyModels&&null==t.density&&null==t.initialState?.density?o:(0,n.A)({},o,{density:i})}),[e,t.density,t.initialState?.density]),l=r.useCallback(((t,o)=>{const r=o.stateToRestore?.density?o.stateToRestore.density:z(e);return e.current.setState((e=>(0,n.A)({},e,{density:r}))),t}),[e]);pi(e,"exportState",a),pi(e,"restoreState",l),r.useEffect((()=>{t.density&&e.current.setDensity(t.density)}),[e,t.density])})(e,t),ja(e,t),((e,t)=>{((e,t)=>{const o=Ur(e,"useGridPaginationMeta"),i=(0,b.Nc)(e,Ho);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:Ho,changeEvent:"paginationMetaChange"});const a=r.useCallback((t=>{i!==t&&(o.debug("Setting 'paginationMeta' to",t),e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{meta:t})}))))}),[e,o,i]);on(e,{setPaginationMeta:a},"public");const l=r.useCallback(((o,r)=>{const i=Ho(e);return r.exportOnlyDirtyModels&&null==t.paginationMeta&&null==t.initialState?.pagination?.meta?o:(0,n.A)({},o,{pagination:(0,n.A)({},o.pagination,{meta:i})})}),[e,t.paginationMeta,t.initialState?.pagination?.meta]),s=r.useCallback(((t,o)=>{const r=o.stateToRestore.pagination?.meta?o.stateToRestore.pagination.meta:Ho(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{meta:r})}))),t}),[e]);pi(e,"exportState",l),pi(e,"restoreState",s),r.useEffect((()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)}),[e,t.paginationMeta])})(e,t),((e,t)=>{const o=Ur(e,"useGridPaginationModel"),i=(0,b.Nc)(e,D),a=r.useRef((0,Po.ZI)(e)),l=Math.floor(t.rowHeight*i);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Fo,changeEvent:"paginationModelChange"});const s=r.useCallback((t=>{const n=Fo(e);t!==n.page&&(o.debug(`Setting page to ${t}`),e.current.setPaginationModel({page:t,pageSize:n.pageSize}))}),[e,o]),c=r.useCallback((t=>{const n=Fo(e);t!==n.pageSize&&(o.debug(`Setting page size to ${t}`),e.current.setPaginationModel({pageSize:t,page:n.page}))}),[e,o]),u=r.useCallback((r=>{const i=Fo(e);r!==i&&(o.debug("Setting 'paginationModel' to",r),e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:Mi(e.pagination,t.signature,r)})})),"setPaginationModel"))}),[e,o,t.signature]);on(e,{setPage:s,setPageSize:c,setPaginationModel:u},"public");const d=r.useCallback(((o,r)=>{const i=Fo(e);return!r.exportOnlyDirtyModels||null!=t.paginationModel||null!=t.initialState?.pagination?.paginationModel||0!==i.page&&i.pageSize!==(t.autoPageSize?0:100)?(0,n.A)({},o,{pagination:(0,n.A)({},o.pagination,{paginationModel:i})}):o}),[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),p=r.useCallback(((o,r)=>{const i=r.stateToRestore.pagination?.paginationModel?(0,n.A)({},$o(t.autoPageSize),r.stateToRestore.pagination?.paginationModel):Fo(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:Mi(e.pagination,t.signature,i)})})),"stateRestorePreProcessing"),o}),[e,t.autoPageSize,t.signature]);pi(e,"exportState",d),pi(e,"restoreState",p);const h=r.useCallback((()=>{if(!t.autoPageSize)return;const o=e.current.getRootDimensions(),n=Math.max(1,Math.floor(o.viewportInnerSize.height/l));e.current.setPageSize(n)}),[e,t.autoPageSize,l]),m=r.useCallback((t=>{if(null==t)return;const o=Fo(e);if(0===o.page)return;const n=_o(e);o.page>n-1&&e.current.setPage(Math.max(0,n-1))}),[e]),f=r.useCallback((()=>{0!==Fo(e).page&&e.current.setPage(0),0!==e.current.getScrollPosition().top&&e.current.scroll({top:0})}),[e]),g=r.useCallback((t=>{const o=(0,n.A)({},t,{items:(0,Po.Ai)(e)});(0,Ri.H)(o,a.current)||(a.current=o,f())}),[e,f]);fe(e,"viewportInnerSizeChange",h),fe(e,"paginationModelChange",(()=>{const t=Fo(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:t.page*t.pageSize})})),fe(e,"rowCountChange",m),fe(e,"sortModelChange",f),fe(e,"filterModelChange",g);const v=r.useRef(!0);r.useEffect((()=>{v.current?v.current=!1:t.pagination&&e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:Mi(e.pagination,t.signature,t.paginationModel)})})))}),[e,t.paginationModel,t.signature,t.pagination]),r.useEffect((()=>{e.current.setState((e=>{const o=!0===t.pagination;return e.pagination.paginationMode===t.paginationMode||e.pagination.enabled===o?e:(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationMode:t.paginationMode,enabled:!0===t.pagination})})}))}),[e,t.paginationMode,t.pagination]),r.useEffect(h,[h])})(e,t),((e,t)=>{const o=Ur(e,"useGridRowCount"),i=(0,b.Nc)(e,Po.RN),a=(0,b.Nc)(e,No),l=(0,b.Nc)(e,Ho),s=(0,b.Nc)(e,Fo),c=(0,Ro.A)((()=>Fo(e).pageSize));e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:No,changeEvent:"rowCountChange"});const u=r.useCallback((t=>{a!==t&&(o.debug("Setting 'rowCount' to",t),e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{rowCount:t})}))))}),[e,o,a]);on(e,{setRowCount:u},"public");const d=r.useCallback(((o,r)=>{const i=No(e);return r.exportOnlyDirtyModels&&null==t.rowCount&&null==t.initialState?.pagination?.rowCount?o:(0,n.A)({},o,{pagination:(0,n.A)({},o.pagination,{rowCount:i})})}),[e,t.rowCount,t.initialState?.pagination?.rowCount]),p=r.useCallback(((t,o)=>{const r=o.stateToRestore.pagination?.rowCount?o.stateToRestore.pagination.rowCount:No(e);return e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{rowCount:r})}))),t}),[e]);pi(e,"exportState",d),pi(e,"restoreState",p);const h=r.useCallback((o=>{"client"!==t.paginationMode&&c.current&&o.pageSize!==c.current&&(c.current=o.pageSize,-1===a&&e.current.setPage(0))}),[t.paginationMode,c,a,e]);fe(e,"paginationModelChange",h),r.useEffect((()=>{"client"===t.paginationMode?e.current.setRowCount(i):null!=t.rowCount&&e.current.setRowCount(t.rowCount)}),[e,t.paginationMode,i,t.rowCount]);const m=!1===l.hasNextPage;r.useEffect((()=>{m&&-1===a&&e.current.setRowCount(s.pageSize*s.page+i)}),[e,i,m,a,s])})(e,t)})(e,t),((e,t)=>{const{getRowHeight:o,getRowSpacing:i,getEstimatedRowHeight:a}=t,l=e.current.caches.rowsMeta.heights,s=r.useRef(-1),c=r.useRef(!1),u=r.useRef(!1),d=(0,b.Nc)(e,D),p=qo(e),h=(0,b.Nc)(e,Se.$2),m=(0,b.Nc)(e,Z),f=r.useCallback((t=>{const r=Q(e).rowHeight,l=e.current.getRowHeightEntry(t.id);if(o){const e=o((0,n.A)({},t,{densityFactor:d}));if("auto"===e){if(l.needsFirstMeasurement){const e=a?a((0,n.A)({},t,{densityFactor:d})):r;l.content=e??r}c.current=!0,l.autoHeight=!0}else l.content=(0,wt.Qy)(e,r,wt.nW),l.needsFirstMeasurement=!1,l.autoHeight=!1}else l.content=r,l.needsFirstMeasurement=!1;if(i){const o=e.current.getRowIndexRelativeToVisibleRows(t.id),r=i((0,n.A)({},t,{isFirstVisible:0===o,isLastVisible:o===p.rows.length-1,indexRelativeToCurrentPage:o}));l.spacingTop=r.top??0,l.spacingBottom=r.bottom??0}else l.spacingTop=0,l.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",l,t),l}),[e,p.rows,o,a,m,i,d]),g=r.useCallback((()=>{c.current=!1;const t=h.top.reduce(((e,t)=>{const o=f(t);return e+o.content+o.spacingTop+o.spacingBottom+o.detail}),0),o=h.bottom.reduce(((e,t)=>{const o=f(t);return e+o.content+o.spacingTop+o.spacingBottom+o.detail}),0),r=[],i=p.rows.reduce(((e,t)=>{r.push(e);const o=f(t);return e+(o.content+o.spacingTop+o.spacingBottom+o.detail)}),0);c.current||(s.current=1/0);const a=t!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||o!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||i!==e.current.state.rowsMeta.currentPageTotalHeight,l={currentPageTotalHeight:i,positions:r,pinnedTopRowsTotalHeight:t,pinnedBottomRowsTotalHeight:o};e.current.setState((e=>(0,n.A)({},e,{rowsMeta:l}))),a&&e.current.updateDimensions(),u.current=!0}),[e,h,p.rows,f]),v=(0,Ro.A)((()=>new Aa((t=>{for(let o=0;o0?n.borderBoxSize[0].blockSize:n.contentRect.height,i=n.target.__mui_id,a=Cn(e)?.id;if(a===i&&0===r)return;e.current.unstable_storeRowHeightMeasurement(i,r)}u.current||requestAnimationFrame((()=>{e.current.requestPipeProcessorsApplication("rowHeight")}))})))).current;hi(e,"rowHeight",g),(0,we.A)((()=>{g()}),[g]);const y={unstable_getRowHeight:e=>l.get(e)?.content??m,unstable_setLastMeasuredRowIndex:e=>{c.current&&e>s.current&&(s.current=e)},unstable_storeRowHeightMeasurement:(t,o)=>{const n=e.current.getRowHeightEntry(t),r=n.content!==o;n.needsFirstMeasurement=!1,n.content=o,u.current&&=!r},resetRowHeights:()=>{l.clear(),g()}},w={hydrateRowsMeta:g,observeRowHeight:(e,t)=>(e.__mui_id=t,v.observe(e),()=>v.unobserve(e)),rowHasAutoHeight:e=>l.get(e)?.autoHeight??!1,getRowHeightEntry:e=>{let t=l.get(e);return void 0===t&&(t={content:m,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},l.set(e,t)),t},getLastMeasuredRowIndex:()=>s.current};on(e,y,"public"),on(e,w,"private")})(e,t),((e,t)=>{const o=(0,Jt.I)(),n=Ur(e,"useGridScroll"),i=e.current.columnHeadersContainerRef,a=e.current.virtualScrollerRef,l=(0,b.Nc)(e,Po.em),s=r.useCallback((o=>{const r=Q(e),i=(0,Se.H0)(e),s=t.listView?[un(e)]:(0,j.iv)(e);if(null!=o.rowIndex&&0===i||0===s.length)return!1;n.debug(`Scrolling to cell at row ${o.rowIndex}, col: ${o.colIndex} `);let c={};if(void 0!==o.colIndex){const t=(0,j.Sw)(e);let n;if(void 0!==o.rowIndex){const t=l[o.rowIndex]?.id,r=e.current.unstable_getCellColSpanInfo(t,o.colIndex);r&&!r.spannedByColSpan&&(n=r.cellProps.width)}void 0===n&&(n=s[o.colIndex].computedWidth),c.left=ma({containerSize:r.viewportOuterSize.width,scrollPosition:Math.abs(a.current.scrollLeft),elementSize:n,elementOffset:t[o.colIndex]})}if(void 0!==o.rowIndex){const n=Yo(e),i=jo(e),l=Bo(e),s=t.pagination?o.rowIndex-i*l:o.rowIndex,u=n.positions[s+1]?n.positions[s+1]-n.positions[s]:n.currentPageTotalHeight-n.positions[s];c.top=ma({containerSize:r.viewportInnerSize.height,scrollPosition:a.current.scrollTop,elementSize:u,elementOffset:n.positions[s]})}return c=e.current.unstable_applyPipeProcessors("scrollToIndexes",c,o),(void 0!==typeof c.left||void 0!==typeof c.top)&&(e.current.scroll(c),!0)}),[n,e,a,t.pagination,l,t.listView]),c=r.useCallback((e=>{if(a.current&&void 0!==e.left&&i.current){const t=o?-1:1;i.current.scrollLeft=e.left,a.current.scrollLeft=t*e.left,n.debug(`Scrolling left: ${e.left}`)}a.current&&void 0!==e.top&&(a.current.scrollTop=e.top,n.debug(`Scrolling top: ${e.top}`)),n.debug("Scrolling, updating container, and viewport")}),[a,o,i,n]),u=r.useCallback((()=>a?.current?{top:a.current.scrollTop,left:a.current.scrollLeft}:{top:0,left:0}),[a]);on(e,{scroll:c,scrollToIndexes:s,getScrollPosition:u},"public")})(e,t),(e=>{const t=Ur(e,"useGridColumnMenu"),o=r.useCallback((o=>{const r=Jn(e),i=o;(!0!==r.open||i!==r.field)&&(e.current.setState((e=>e.columnMenu.open&&e.columnMenu.field===o?e:(t.debug("Opening Column Menu"),(0,n.A)({},e,{columnMenu:{open:!0,field:o}})))),e.current.hidePreferences())}),[e,t]),i=r.useCallback((()=>{const o=Jn(e);if(o.field){const t=(0,j.gv)(e),n=(0,j.FY)(e),r=(0,j.JR)(e);let i=o.field;if(t[i]||(i=r[0]),!1===n[i]){const e=r.filter((e=>e===i||!1!==n[e])),t=e.indexOf(i);i=e[t+1]||e[t-1]}e.current.setColumnHeaderFocus(i)}const r={open:!1,field:void 0};(r.open!==o.open||r.field!==o.field)&&e.current.setState((e=>(t.debug("Hiding Column Menu"),(0,n.A)({},e,{columnMenu:r}))))}),[e,t]),a=r.useCallback((n=>{t.debug("Toggle Column Menu");const r=Jn(e);r.open&&r.field===n?i():o(n)}),[e,t,o,i]);on(e,{showColumnMenu:o,hideColumnMenu:i,toggleColumnMenu:a},"public"),fe(e,"columnResizeStart",i),fe(e,"virtualScrollerWheel",e.current.hideColumnMenu),fe(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)})(e),Si(e,t),((e,t)=>{const o=null!==e.current.rootElementRef.current,i=Ur(e,"useGridPrintExport"),a=r.useRef(null),l=r.useRef(null),s=r.useRef({}),c=r.useRef([]),u=r.useRef(null);r.useEffect((()=>{a.current=(0,ki.A)(e.current.rootElementRef.current)}),[e,o]);const d=r.useCallback(((t,o,n)=>new Promise((r=>{const i=bi({apiRef:e,options:{fields:t,allColumns:o}}).map((e=>e.field)),a=(0,j.OV)(e),l={};a.forEach((e=>{l[e.field]=i.includes(e.field)})),n&&(l[ti.field]=!0),e.current.setColumnVisibilityModel(l),r()}))),[e]),p=r.useCallback((t=>{const o=t({apiRef:e}).reduce(((t,o)=>{const n=e.current.getRow(o);return n[wt.gb]||t.push(n),t}),[]);e.current.setRows(o)}),[e]),h=r.useCallback(((o,r)=>{const i=(0,n.A)({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},r),l=o.contentDocument;if(!l)return;const s=Yo(e),c=e.current.rootElementRef.current,u=c.cloneNode(!0);u.querySelector(`.${f.x.main}`).style.overflow="visible",u.style.contain="size";let d=c.querySelector(`.${f.x.toolbarContainer}`)?.offsetHeight||0,p=c.querySelector(`.${f.x.footerContainer}`)?.offsetHeight||0;const h=u.querySelector(`.${f.x.footerContainer}`);i.hideToolbar&&(u.querySelector(`.${f.x.toolbarContainer}`)?.remove(),d=0),i.hideFooter&&h&&(h.remove(),p=0);const m=s.currentPageTotalHeight+Co(e,t)+d+p;u.style.height=`${m}px`,u.style.boxSizing="content-box",!i.hideFooter&&h&&(h.style.position="absolute",h.style.width="100%",h.style.top=m-p+"px");const g=document.createElement("div");g.appendChild(u),l.body.style.marginTop="0px",l.body.innerHTML=g.innerHTML;const b="function"==typeof i.pageStyle?i.pageStyle():i.pageStyle;if("string"==typeof b){const e=l.createElement("style");e.appendChild(l.createTextNode(b)),l.head.appendChild(e)}i.bodyClassName&&l.body.classList.add(...i.bodyClassName.split(" "));let v=[];if(i.copyStyles){const e=c.getRootNode();v=function(e,t){const o=[],n=t.querySelectorAll("style, link[rel='stylesheet']");for(let t=0;t{t.addEventListener("load",(()=>e()))}))),e.head.appendChild(t)}}return o}(l,"ShadowRoot"===e.constructor.name?e:a.current)}Promise.all(v).then((()=>{o.contentWindow.print()}))}),[e,a,t]),m=r.useCallback((t=>{a.current.body.removeChild(t),e.current.restoreState(l.current||{}),l.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.setState((e=>(0,n.A)({},e,{virtualization:u.current}))),e.current.setRows(c.current),l.current=null,s.current={},c.current=[]}),[e]),g=r.useCallback((async o=>{if(i.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(l.current=e.current.exportState(),s.current=(0,j.FY)(e),c.current=e.current.getSortedRows().filter((e=>!e[wt.gb])),t.pagination){const t={page:0,pageSize:(0,Po.O7)(e)};e.current.setState((e=>(0,n.A)({},e,{pagination:(0,n.A)({},e.pagination,{paginationModel:Mi(e.pagination,"DataGridPro",t)})})))}u.current=e.current.state.virtualization,e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{enabled:!1,enabledForColumns:!1})}))),await d(o?.fields,o?.allColumns,o?.includeCheckboxes),p(o?.getRowsToExport??vi),await new Promise((e=>{requestAnimationFrame((()=>{e()}))}));const r=function(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}(o?.fileName);r.onload=()=>{h(r,o),r.contentWindow.matchMedia("print").addEventListener("change",(e=>{!1===e.matches&&m(r)}))},a.current.body.appendChild(r)}),[t,i,e,h,m,d,p]);on(e,{exportDataAsPrint:g},"public");const b=r.useCallback(((e,t)=>t.printOptions?.disableToolbarButton?e:[...e,{component:(0,M.jsx)(Ei,{options:t.printOptions}),componentName:"printExport"}]),[]);pi(e,"exportMenu",b)})(e,t),((e,t)=>{const o=t.ignoreValueFormatterDuringExport,n=("object"==typeof o?o?.clipboardExport:o)||!1,i=t.clipboardCopyCellDelimiter,a=r.useCallback((t=>{if(!function(e){return(e.ctrlKey||e.metaKey)&&"C"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey}(t))return;if(o=t.target,window.getSelection()?.toString()||o&&(o.selectionEnd||0)-(o.selectionStart||0)>0)return;var o;let r="";if(In(e)>0)r=e.current.getDataAsCsv({includeHeaders:!1,delimiter:i,shouldAppendQuotes:!1,escapeFormulas:!1});else{const t=hn(e);if(t){const o=e.current.getCellParams(t.id,t.field);r=ni(o,{csvOptions:{delimiter:i,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:n})}}var a;r=e.current.unstable_applyPipeProcessors("clipboardCopy",r),r&&(a=r,navigator.clipboard?navigator.clipboard.writeText(a).catch((()=>{ci(a)})):ci(a),e.current.publishEvent("clipboardCopy",r))}),[e,n,i]);qr(e,(()=>e.current.rootElementRef.current),"keydown",a),be(e,"clipboardCopy",t.onClipboardCopy)})(e,t),function(e,t){const o=Ur(e,"useResizeContainer"),i=r.useRef(!1),a=r.useRef(ga),l=(0,b.Nc)(e,j.Q1),s=(0,b.Nc)(e,D),c=(0,b.Nc)(e,ya),u=r.useRef(!0),{rowHeight:d,headerHeight:p,groupHeaderHeight:h,headerFilterHeight:m,headersTotalHeight:f,leftPinnedWidth:g,rightPinnedWidth:v}=Ca(t,e,s,l),y=r.useCallback((()=>Q(e)),[e]),w=r.useCallback((t=>{e.current.setState((e=>(0,n.A)({},e,{dimensions:t}))),e.current.rootElementRef.current&&wa(e.current.rootElementRef.current,Q(e))}),[e]),C=r.useCallback((()=>{const o=Q(e);if(!o.isReady)return 0;const n=Uo(e);if(t.getRowHeight){const t=en(e),o=t.lastRowIndex-t.firstRowIndex;return Math.min(o-1,n.rows.length)}const r=Math.floor(o.viewportInnerSize.height/d);return Math.min(r,n.rows.length)}),[e,t.getRowHeight,d]),x=r.useCallback((()=>{if(u.current)return;const o=function(e,t){if(void 0!==t)return t;if(null===e)return 0;const o=xa.get(e);if(void 0!==o)return o;const n=(0,ki.A)(e).createElement("div");n.style.width="99px",n.style.height="99px",n.style.position="absolute",n.style.overflow="scroll",n.className="scrollDiv",e.appendChild(n);const r=n.offsetWidth-n.clientWidth;return e.removeChild(n),xa.set(e,r),r}(e.current.mainElementRef.current,t.scrollbarSize),n=Yo(e),r=f+n.pinnedTopRowsTotalHeight,i=n.pinnedBottomRowsTotalHeight,l={width:c,height:xn(n.currentPageTotalHeight,1)};let s,b,y=!1,C=!1;if(t.autoHeight)C=!1,y=Math.round(c)>Math.round(a.current.width),s={width:a.current.width,height:r+i+l.height},b={width:Math.max(0,s.width-(C?o:0)),height:Math.max(0,s.height-(y?o:0))};else{s={width:a.current.width,height:a.current.height},b={width:Math.max(0,s.width),height:Math.max(0,s.height-r-i)};const e=l,t=b,n=e.width>t.width,c=e.height>t.height;(n||c)&&(C=c,y=e.width+(C?o:0)>t.width,y&&(C=e.height+o>t.height)),C&&(b.width-=o),y&&(b.height-=o)}const x=Math.max(s.width,c+(C?o:0)),A={width:c,height:r+l.height+i},E={isReady:!0,root:a.current,viewportOuterSize:s,viewportInnerSize:b,contentSize:l,minimumSize:A,hasScrollX:y,hasScrollY:C,scrollbarSize:o,headerHeight:p,groupHeaderHeight:h,headerFilterHeight:m,rowWidth:x,rowHeight:d,columnsTotalWidth:c,leftPinnedWidth:g,rightPinnedWidth:v,headersTotalHeight:f,topContainerHeight:r,bottomContainerHeight:i},S=e.current.state.dimensions;var k,R;(0,Ri.H)(S,E)||(w(E),k=E.viewportInnerSize,R=S.viewportInnerSize,(k.width!==R.width||k.height!==R.height)&&e.current.publishEvent("viewportInnerSizeChange",E.viewportInnerSize),e.current.updateRenderContext?.())}),[e,w,t.scrollbarSize,t.autoHeight,d,p,h,m,c,f,g,v]),A=(0,ce.A)(x),E=r.useMemo((()=>t.resizeThrottleMs>0?function(e,t=166){let o,n;const r=()=>{o=void 0,e(...n)};function i(...e){n=e,void 0===o&&(o=setTimeout(r,t))}return i.clear=()=>{clearTimeout(o),o=void 0},i}((()=>{A(),e.current.publishEvent("debouncedResize",a.current)}),t.resizeThrottleMs):void 0),[e,t.resizeThrottleMs,A]);r.useEffect((()=>E?.clear),[E]);const S={getRootDimensions:y},k={updateDimensions:x,getViewportPageSize:C};(0,we.A)(x,[x]),on(e,S,"public"),on(e,k,"private");const R=r.useCallback((t=>{wa(t,Q(e))}),[e]),M=r.useCallback((e=>{if(a.current=e,0!==e.height||i.current||t.autoHeight||An||(o.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),i.current=!0),0!==e.width||i.current||An||(o.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),i.current=!0),u.current||!E)return u.current=!1,void x();E()}),[x,t.autoHeight,E,o]);be(e,"rootMount",R),be(e,"resize",M),be(e,"debouncedResize",t.onResize)}(e,t),function(e,t){be(e,"columnHeaderClick",t.onColumnHeaderClick),be(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),be(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),be(e,"columnHeaderOver",t.onColumnHeaderOver),be(e,"columnHeaderOut",t.onColumnHeaderOut),be(e,"columnHeaderEnter",t.onColumnHeaderEnter),be(e,"columnHeaderLeave",t.onColumnHeaderLeave),be(e,"cellClick",t.onCellClick),be(e,"cellDoubleClick",t.onCellDoubleClick),be(e,"cellKeyDown",t.onCellKeyDown),be(e,"preferencePanelClose",t.onPreferencePanelClose),be(e,"preferencePanelOpen",t.onPreferencePanelOpen),be(e,"menuOpen",t.onMenuOpen),be(e,"menuClose",t.onMenuClose),be(e,"rowDoubleClick",t.onRowDoubleClick),be(e,"rowClick",t.onRowClick),be(e,"stateChange",t.onStateChange)}(e,t),(e=>{const t=r.useCallback(((t={})=>e.current.unstable_applyPipeProcessors("exportState",{},t)),[e]),o=r.useCallback((t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((e=>{e()}))}),[e]);on(e,{exportState:t,restoreState:o},"public")})(e),function(e,t){const o=o=>{e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{enabled:o,enabledForColumns:o,enabledForRows:o&&!t.autoHeight})})))},i={unstable_setVirtualization:o,unstable_setColumnVirtualization:t=>{e.current.setState((e=>(0,n.A)({},e,{virtualization:(0,n.A)({},e.virtualization,{enabledForColumns:t})})))}};on(e,i,"public"),r.useEffect((()=>{o(!t.disableVirtualization)}),[t.disableVirtualization,t.autoHeight])}(e,t),function(e,t){const o=()=>{e.current.setState((t=>t.listViewColumn?(0,n.A)({},t,{listViewColumn:(0,n.A)({},t.listViewColumn,{computedWidth:Qa(e)})}):t))},i=r.useRef(null);fe(e,"viewportInnerSizeChange",(e=>{i.current!==e.width&&(i.current=e.width,o())})),fe(e,"columnVisibilityModelChange",o),(0,we.A)((()=>{const o=t.listViewColumn;o&&e.current.setState((t=>(0,n.A)({},t,{listViewColumn:(0,n.A)({},o,{computedWidth:Qa(e)})})))}),[e,t.listViewColumn]),r.useEffect((()=>{t.listView&&t.listViewColumn}),[t.listView,t.listViewColumn])}(e,t),((e,t)=>{const{api:o,strategyProcessor:i,events:a,setStrategyAvailability:l}=((e,t,o={})=>{const i=r.useCallback((()=>{e.current.setStrategyAvailability(_r.DataSource,el.Default,t.dataSource?()=>!0:()=>!1)}),[e,t.dataSource]),[a,l]=r.useState(!1),s=(0,b.Nc)(e,Fo),c=r.useRef(0),u=t.onDataSourceError,d=(0,Ro.A)((()=>{const e=t.pageSizeOptions.map((e=>"number"==typeof e?e:e.value)).sort(((e,t)=>e-t)),o=Math.min(s.pageSize,e[0]);return new tl(o)})).current,[p,h]=r.useState((()=>ll(t.dataSourceCache,o.cacheOptions))),m=r.useCallback((async(r,i)=>{const l=t.dataSource?.getRows;if(!l)return;if(r&&r!==wt.OL&&"DataGrid"!==t.signature)return void o.fetchRowChildren?.([r]);o.clearDataSourceState?.();const s=(0,n.A)({},Za(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),i),h=d.getCacheKeys(s).map((e=>p.get(e)));if(h.every((e=>void 0!==e)))return void e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:tl.mergeResponses(h),fetchParams:s});(a||0===e.current.getRowsCount())&&e.current.setLoading(!0);const m=c.current+1;c.current=m;try{const t=await l(s);d.splitResponse(s,t).forEach(((e,t)=>p.set(t,e))),c.current===m&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:t,fetchParams:s})}catch(t){c.current===m&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:t,fetchParams:s}),"function"==typeof u&&u(new rl({message:t?.message,params:s,cause:t})))}finally{a&&c.current===m&&e.current.setLoading(!1)}}),[d,p,e,a,t.dataSource?.getRows,u,o,t.signature]),f=r.useCallback((()=>{l(e.current.getActiveStrategy(_r.DataSource)===el.Default)}),[e]),g=r.useCallback((t=>{if("error"in t)return void e.current.setRows([]);const{response:o}=t;void 0!==o.rowCount&&e.current.setRowCount(o.rowCount),e.current.setRows(o.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:t.fetchParams,response:o},!0)}),[e]),v=t.dataSource?.updateRow,y=o.handleEditRow,w=r.useCallback((async t=>{if(v)try{const o=await v(t);return"function"==typeof y?(y(t,o),o):(e.current.updateNestedRows([o],[]),o&&!(0,Ri.H)(o,t.previousRow)&&e.current.dataSource.cache.clear(),o)}catch(e){throw"function"==typeof u&&u(new il({message:e?.message,params:t,cause:e})),e}}),[e,v,u,y]),C={dataSource:{fetchRows:m,cache:p,editRow:w}},x=r.useMemo((()=>(0,Ja.A)(m,0)),[m]),A=r.useRef(!0);return r.useEffect((()=>{if(A.current)return void(A.current=!1);if(void 0===t.dataSourceCache)return;const e=ll(t.dataSourceCache,o.cacheOptions);h((t=>t!==e?e:t))}),[t.dataSourceCache,o.cacheOptions]),r.useEffect((()=>{t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows())}),[e,t.dataSource]),{api:{public:C},debouncedFetchRows:x,strategyProcessor:{strategyName:el.Default,group:"dataSourceRowsUpdate",processor:g},setStrategyAvailability:i,cacheChunkManager:d,cache:p,events:{strategyAvailabilityChange:f,sortModelChange:_e(a,(()=>x())),filterModelChange:_e(a,(()=>x())),paginationModelChange:_e(a,(()=>x()))}}})(e,t);on(e,o.public,"public"),Pi(e,i.strategyName,i.group,i.processor),Object.entries(a).forEach((([t,o])=>{fe(e,t,o)})),r.useEffect((()=>{l()}),[l])})(e,t)};var cl=o(53356),ul=o(46343);const dl={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:o,estimated:n})=>n?`${e}–${t} of ${-1!==o?o:n&&n>t?`around ${n}`:`more than ${t}`}`:`${e}–${t} of ${-1!==o?o:`more than ${t}`}`,paginationItemAriaLabel:e=>"first"===e?"Go to first page":"last"===e?"Go to last page":"next"===e?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,o)=>"is any of"===t?`${e} is any of: ${o}`:`${e} ${t} ${o}`,promptChangeFilterDescription:(e,t,o)=>"is any of"===t?`Filter where ${e} is any of: ${o}`:`Filter where ${e} ${t} ${o}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`},pl=["field","type","align","width","height","empty","style","className"],hl="1.3em",ml=[40,80],fl={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},gl=function(){const e=(t=12345,()=>{let e=t+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296});var t;return(t,o)=>t+(o-t)*e()}(),bl=h((function(e){const{field:t,type:o,align:i,width:a,height:c,empty:p=!1,style:h,className:m}=e,g=(0,l.A)(e,pl),b=(0,S.A)(),v=(e=>{const{align:t,classes:o,empty:n}=e,r={root:["cell","cellSkeleton",`cell--text${t?(0,u.A)(t):"Left"}`,n&&"cellEmpty"]};return(0,d.A)(r,f.B,o)})({classes:b.classes,align:i,empty:p}),y=r.useMemo((()=>{if("boolean"===o||"actions"===o)return{variant:"circular",width:hl,height:hl};const[e,t]=o?fl[o]??ml:ml;return{variant:"text",width:`${Math.round(gl(e,t))}%`,height:"1.2em"}}),[o]);return(0,M.jsx)("div",(0,n.A)({"data-field":t,className:(0,s.A)(v.root,m),style:(0,n.A)({height:c,maxWidth:a,minWidth:a},h)},g,{children:!p&&(0,M.jsx)(b.slots.baseSkeleton,(0,n.A)({},y))}))})),vl=["className"],yl=(0,Y.A)("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})((()=>({display:"flex",visibility:"hidden",width:0}))),wl=(0,a.R)((function(e,t){const{className:o}=e,r=(0,l.A)(e,vl),i=(0,S.A)(),a=(e=>{const{classes:t}=e;return(0,d.A)({root:["iconButtonContainer"]},f.B,t)})(i);return(0,M.jsx)(yl,(0,n.A)({className:(0,s.A)(a.root,o),ownerState:i},r,{ref:t}))}));function Cl(e){const{counter:t,field:o,onClick:i}=e,a=(0,W.h)(),l=(0,S.A)(),s=(e=>{const{classes:t}=e;return(0,d.A)({icon:["filterIcon"]},f.B,t)})((0,n.A)({},e,{classes:l.classes})),c=(0,$e.A)(),u=(0,b.Nc)(a,_,c),p=(0,$e.A)(),h=r.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=B(a);t&&n===V.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,p,c),i&&i(a.current.getColumnHeaderParams(o),e)}),[a,o,i,p,c]);if(!t)return null;const m=(0,M.jsx)(l.slots.baseIconButton,(0,n.A)({id:c,onClick:h,"aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?p:void 0},l.slotProps?.baseIconButton,{children:(0,M.jsx)(l.slots.columnFilteredIcon,{className:s.icon,fontSize:"small"})}));return(0,M.jsx)(l.slots.baseTooltip,(0,n.A)({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},l.slotProps?.baseTooltip,{children:(0,M.jsxs)(wl,{children:[t>1&&(0,M.jsx)(l.slots.baseBadge,{badgeContent:t,color:"default",children:m}),1===t&&m]})}))}const xl=["sortingOrder"],Al=r.memo((function(e){const{sortingOrder:t}=e,o=(0,l.A)(e,xl),r=(0,S.A)(),[i]=t,a="asc"===i?r.slots.columnSortedAscendingIcon:r.slots.columnSortedDescendingIcon;return a?(0,M.jsx)(a,(0,n.A)({},o)):null})),El=["direction","index","sortingOrder","disabled","className"],Sl=(0,Y.A)(Ce,{name:"MuiDataGrid",slot:"SortButton"})({transition:g.f.transition(["opacity"],{duration:g.f.transitions.duration.short,easing:g.f.transitions.easing.easeInOut})});function kl(e){const{direction:t,index:o,sortingOrder:i,disabled:a,className:c}=e,u=(0,l.A)(e,El),p=(0,W.h)(),h=(0,S.A)(),m=(0,n.A)({},e,{classes:h.classes}),g=(e=>{const{classes:t}=e;return(0,d.A)({root:["sortButton"],icon:["sortIcon"]},f.B,t)})(m),b=function(e,t,o,r){let i;const a={};return"asc"===t?i=e.columnSortedAscendingIcon:"desc"===t?i=e.columnSortedDescendingIcon:(i=Al,a.sortingOrder=r),i?(0,M.jsx)(i,(0,n.A)({fontSize:"small",className:o},a)):null}(h.slots,t,g.icon,i);if(!b)return null;const v=(0,M.jsx)(Sl,(0,n.A)({as:h.slots.baseIconButton,ownerState:m,"aria-label":p.current.getLocaleText("columnHeaderSortIconLabel"),title:p.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:a,className:(0,s.A)(g.root,c)},h.slotProps?.baseIconButton,u,{children:b}));return(0,M.jsxs)(r.Fragment,{children:[null!=o&&(0,M.jsx)(h.slots.baseBadge,{badgeContent:o,color:"default",overlap:"circular",children:v}),null==o&&v]})}function Rl(e){return(0,M.jsx)(wl,{children:(0,M.jsx)(kl,(0,n.A)({},e,{tabIndex:-1}))})}const Ml=r.memo(Rl),Il=["className","selectedRowCount"],Pl=(0,Y.A)("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:g.f.spacing(0,2),visibility:"hidden",width:0,height:0,[g.f.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),Ol=(0,a.R)((function(e,t){const{className:o,selectedRowCount:r}=e,i=(0,l.A)(e,Il),a=(0,W.h)(),c=(0,S.A)(),u=(e=>{const{classes:t}=e;return(0,d.A)({root:["selectedRowCount"]},f.B,t)})(c),p=a.current.getLocaleText("footerRowSelected")(r);return(0,M.jsx)(Pl,(0,n.A)({className:(0,s.A)(u.root,o),ownerState:c},i,{ref:t,children:p}))})),Tl=["className"],$l=(0,Y.A)("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),zl=(0,a.R)((function(e,t){const{className:o}=e,r=(0,l.A)(e,Tl),i=(0,S.A)(),a=(e=>{const{classes:t}=e;return(0,d.A)({root:["footerContainer","withBorderColor"]},f.B,t)})(i);return(0,M.jsx)($l,(0,n.A)({className:(0,s.A)(a.root,o),ownerState:i},r,{ref:t}))})),Dl=(0,a.R)((function(e,t){const o=(0,W.h)(),r=(0,S.A)(),i=(0,b.Nc)(o,Se.O8),a=(0,b.Nc)(o,In),l=(0,b.Nc)(o,Po.RN),s=!r.hideFooterSelectedRowCount&&a>0?(0,M.jsx)(Ol,{selectedRowCount:a}):(0,M.jsx)("div",{}),c=r.hideFooterRowCount||r.pagination?null:(0,M.jsx)(r.slots.footerRowCount,(0,n.A)({},r.slotProps?.footerRowCount,{rowCount:i,visibleRowCount:l})),u=r.pagination&&!r.hideFooterPagination&&r.slots.pagination&&(0,M.jsx)(r.slots.pagination,{});return(0,M.jsxs)(zl,(0,n.A)({},e,{ref:t,children:[s,c,u]}))})),Ll=["className","rowCount","visibleRowCount"],Fl=(0,Y.A)("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:g.f.spacing(0,2)}),Nl=(0,a.R)((function(e,t){const{className:o,rowCount:r,visibleRowCount:i}=e,a=(0,l.A)(e,Ll),c=(0,W.h)(),u=(0,S.A)(),p=(e=>{const{classes:t}=e;return(0,d.A)({root:["rowCount"]},f.B,t)})(u);if(0===r)return null;const h=i{const{classes:t}=e;return(0,d.A)({root:["overlay"]},f.B,t)})(i);return(0,M.jsx)(jl,(0,n.A)({className:(0,s.A)(a.root,o),ownerState:i},r,{ref:t}))})),_l=(e,t,o,n,r,i)=>{let a;switch(e){case Rt.LEFT:a=n[o];break;case Rt.RIGHT:a=r-n[o]-t+i;break;default:a=void 0}return a},Vl=(e,t,o,n,r)=>{const i=t===o-1;return!(e!==Rt.LEFT||!i)||!!n&&(e===Rt.LEFT||(e===Rt.RIGHT?!i:!i||r))},Wl=(e,t)=>e===Rt.RIGHT&&0===t,Gl={root:f.x.scrollbarFiller,header:f.x["scrollbarFiller--header"],borderTop:f.x["scrollbarFiller--borderTop"],borderBottom:f.x["scrollbarFiller--borderBottom"],pinnedRight:f.x["scrollbarFiller--pinnedRight"]};function Kl({header:e,borderTop:t=!0,borderBottom:o,pinnedRight:n}){return(0,M.jsx)("div",{role:"presentation",className:(0,s.A)(Gl.root,e&&Gl.header,t&&Gl.borderTop,o&&Gl.borderBottom,n&&Gl.pinnedRight)})}const Ul=(e,t)=>{if(e)if(t){if(e===Rt.LEFT)return"right";if(e===Rt.RIGHT)return"left"}else{if(e===Rt.LEFT)return"left";if(e===Rt.RIGHT)return"right"}};function ql(e,t,o,n){const r=Ul(o,t);return r&&void 0!==n?(e[r]=n,e):e}const Xl=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],Yl=(0,Y.A)("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),Ql=e=>parseInt(e.getAttribute("data-colindex"),10),Jl=(0,a.R)((function(e,t){const o=(0,S.A)(),{slots:i}=o,a=(0,Jt.I)(),u=(e=>{const{classes:t}=e;return(0,d.A)({root:["skeletonLoadingOverlay"]},f.B,t)})({classes:o.classes}),p=r.useRef(null),h=(0,c.A)(p,t),m=(0,W.h)(),g=(0,b.Nc)(m,Q),v=(0,b.Nc)(m,J),y=(0,b.Nc)(m,j.Sw),w=r.useMemo((()=>y.filter((e=>e<=v)).length),[v,y]),{skeletonRowsCount:C,visibleColumns:x,showFirstRowBorder:A}=e,E=(0,l.A)(e,Xl),k=(0,b.Nc)(m,j.iv),R=r.useMemo((()=>k.slice(0,w)),[k,w]),I=(0,b.Nc)(m,j.Q1),P=r.useCallback((e=>-1!==I.left.findIndex((t=>t.field===e))?Rt.LEFT:-1!==I.right.findIndex((t=>t.field===e))?Rt.RIGHT:void 0),[I.left,I.right]),O=r.useMemo((()=>{const e=[];for(let t=0;te.field===l.field)):e-I.left.length,b=g.hasScrollY?g.scrollbarSize:0,v=ql({},a,c,_l(c,l.computedWidth,e,y,g.columnsTotalWidth,b)),w=g.columnsTotalWidth0},`skeleton-scrollbar-filler-${t}`))}e.push((0,M.jsx)("div",{className:(0,s.A)(f.x.row,f.x.rowSkeleton,0===t&&!A&&f.x["row--firstVisible"]),children:r},`skeleton-row-${t}`))}return e}),[C,R,P,a,I,g.hasScrollY,g.scrollbarSize,g.columnsTotalWidth,g.viewportOuterSize.width,g.rowHeight,y,o.showCellVerticalBorder,i,x,A]);return fe(m,"columnResize",(e=>{const{colDef:t,width:o}=e,n=p.current?.querySelectorAll(`[data-field="${Fi(t.field)}"]`);if(!n)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const r=R.findIndex((e=>e.field===t.field)),i=P(t.field),a=i===Rt.LEFT,l=i===Rt.RIGHT,s=getComputedStyle(n[0]).getPropertyValue("--width"),c=parseInt(s,10)-o;if(n&&n.forEach((e=>{e.style.setProperty("--width",`${o}px`)})),a){const e=p.current?.querySelectorAll(`.${f.x["cell--pinnedLeft"]}`);e?.forEach((e=>{Ql(e)>r&&(e.style.left=parseInt(getComputedStyle(e).left,10)-c+"px")}))}if(l){const e=p.current?.querySelectorAll(`.${f.x["cell--pinnedRight"]}`);e?.forEach((e=>{Ql(e)e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>Zl,style:{display:"block"}}},os=(0,a.R)((function(e,t){const{variant:o="linear-progress",noRowsVariant:r="skeleton",style:i}=e,a=(0,l.A)(e,es),s=(0,W.h)(),c=(0,S.A)(),u=(0,b.Nc)(s,Se.H0),d=ts[0===u?r:o],p=d.component(c);return(0,M.jsx)(Bl,(0,n.A)({style:(0,n.A)({},d.style,i)},a,{ref:t,children:(0,M.jsx)(p,{})}))})),ns=(0,a.R)((function(e,t){const o=(0,W.h)().current.getLocaleText("noRowsLabel");return(0,M.jsx)(Bl,(0,n.A)({},e,{ref:t,children:o}))})),rs=(0,a.R)((function(e,t){const o=(0,S.A)(),r=(0,W.h)(),i=(0,b.Nc)(r,j.JR),a=!o.disableColumnSelector&&i.length>0;return(0,M.jsxs)(Bl,(0,n.A)({},e,{ref:t,children:[r.current.getLocaleText("noColumnsOverlayLabel"),a&&(0,M.jsx)(o.slots.baseButton,(0,n.A)({size:"small"},o.slotProps?.baseButton,{onClick:()=>{r.current.showPreferences(V.columns)},children:r.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))})),is=(0,m.Ay)(Ce)({maxHeight:"calc(100% + 1px)",flexGrow:1}),as=["className"],ls=(0,Y.A)("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:g.f.spacing(2.5,1.5,2,1),gap:g.f.spacing(2.5)});function ss(e){const{className:t}=e,o=(0,l.A)(e,as),r=(0,S.A)(),i=(e=>{const{classes:t}=e;return(0,d.A)({root:["panelContent"]},f.B,t)})(r);return(0,M.jsx)(ls,(0,n.A)({className:(0,s.A)(i.root,t),ownerState:r},o))}const cs=["className"],us=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:g.f.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${g.f.colors.border.base}`});function ds(e){const{className:t}=e,o=(0,l.A)(e,cs),r=(0,S.A)(),i=(e=>{const{classes:t}=e;return(0,d.A)({root:["panelFooter"]},f.B,t)})(r);return(0,M.jsx)(us,(0,n.A)({className:(0,s.A)(i.root,t),ownerState:r},o))}const ps=["className"],hs=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),ms=(0,a.R)((function(e,t){const{className:o}=e,r=(0,l.A)(e,ps),i=(0,S.A)(),a=(e=>{const{classes:t}=e;return(0,d.A)({root:["panelWrapper"]},f.B,t)})(i);return(0,M.jsx)(hs,(0,n.A)({tabIndex:-1,className:(0,s.A)(a.root,o),ownerState:i},r,{ref:t}))})),fs=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],gs=["InputComponentProps"],bs=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:g.f.spacing(1.5)}),vs=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),ys=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),ws=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),Cs=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),xs=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),As=e=>e.headerName||e.field,Es=new Intl.Collator,Ss=(0,a.R)((function(e,t){const{item:o,hasMultipleFilters:i,deleteFilter:a,applyFilterChanges:c,showMultiFilterOperators:p,disableMultiFilterOperator:h,applyMultiFilterOperatorChanges:m,focusElementRef:g,logicOperators:v=[We.And,We.Or],columnsSort:y,filterColumns:w,deleteIconProps:C={},logicOperatorInputProps:x={},operatorInputProps:A={},columnInputProps:E={},valueInputProps:k={},readOnly:R}=e,I=(0,l.A)(e,fs),P=(0,W.h)(),O=(0,b.Nc)(P,j.gv),T=(0,b.Nc)(P,j.Oe),$=(0,b.Nc)(P,Po.ZI),z=(0,$e.A)(),D=(0,$e.A)(),L=(0,$e.A)(),F=(0,$e.A)(),N=(0,S.A)(),H=(e=>{const{classes:t}=e;return(0,d.A)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},f.B,t)})(N),B=r.useRef(null),_=r.useRef(null),V=$.logicOperator??We.And,G=i&&v.length>0,K=(N.slotProps?.baseSelect||{}).native??!1,U=N.slotProps?.baseSelectOption||{},{InputComponentProps:q}=k,X=(0,l.A)(k,gs),Y=(0,b.Nc)(P,qn),Q=(0,b.Nc)(P,Yn),{filteredColumns:J,selectedField:Z}=r.useMemo((()=>{let e=o.field;const t=!1===O[o.field].filterable?O[o.field]:null;if(t)return{filteredColumns:[t],selectedField:e};if(Y)return{filteredColumns:T.filter((e=>void 0!==Q.get(e.field))),selectedField:e};if(void 0===w||"function"!=typeof w)return{filteredColumns:T,selectedField:e};const n=w({field:o.field,columns:T,currentFilters:$?.items||[]});return{filteredColumns:T.filter((t=>{const r=n.includes(t.field);return t.field!==o.field||r||(e=void 0),r})),selectedField:e}}),[o.field,O,Y,w,T,$?.items,Q]),ee=r.useMemo((()=>{switch(y){case"asc":return J.sort(((e,t)=>Es.compare(As(e),As(t))));case"desc":return J.sort(((e,t)=>-Es.compare(As(e),As(t))));default:return J}}),[J,y]),te=o.field?P.current.getColumn(o.field):null,oe=r.useMemo((()=>o.operator&&te?te.filterOperators?.find((e=>e.value===o.operator)):null),[o,te]),ne=r.useCallback((e=>{const t=e.target.value,r=P.current.getColumn(t);if(r.field===te.field)return;const i=r.filterOperators.find((e=>e.value===o.operator))||r.filterOperators[0];let a=i.InputComponent&&i.InputComponent===oe?.InputComponent&&r.type===te.type?o.value:void 0;if("singleSelect"===r.type&&void 0!==a){const e=r,t=_t(e);Array.isArray(a)?a=a.filter((o=>void 0!==Vt(o,t,e?.getOptionValue))):void 0===Vt(o.value,t,e?.getOptionValue)&&(a=void 0)}c((0,n.A)({},o,{field:t,operator:i.value,value:a}))}),[P,c,o,te,oe]),re=r.useCallback((e=>{const t=e.target.value,r=te?.filterOperators.find((e=>e.value===t)),i=!r?.InputComponent||r?.InputComponent!==oe?.InputComponent;c((0,n.A)({},o,{operator:t,value:i?void 0:o.value}))}),[c,o,te,oe]),ie=r.useCallback((e=>{const t=e.target.value===We.And.toString()?We.And:We.Or;m(t)}),[m]);return r.useImperativeHandle(g,(()=>({focus:()=>{oe?.InputComponent?B?.current?.focus():_.current.focus()}})),[oe]),(0,M.jsxs)(bs,(0,n.A)({className:H.root,"data-id":o.id,ownerState:N},I,{ref:t,children:[(0,M.jsx)(vs,(0,n.A)({},C,{className:(0,s.A)(H.deleteIcon,C.className),ownerState:N,children:(0,M.jsx)(N.slots.baseIconButton,(0,n.A)({"aria-label":P.current.getLocaleText("filterPanelDeleteIconLabel"),title:P.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{a(o)},size:"small",disabled:R},N.slotProps?.baseIconButton,{children:(0,M.jsx)(N.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),(0,M.jsx)(ys,(0,n.A)({as:N.slots.baseSelect,sx:[G?{display:"flex"}:{display:"none"},p?{visibility:"visible"}:{visibility:"hidden"},x.sx],className:(0,s.A)(H.logicOperatorInput,x.className),ownerState:N},x,{size:"small",slotProps:{htmlInput:{"aria-label":P.current.getLocaleText("filterPanelLogicOperator")}},value:V??"",onChange:ie,disabled:!!h||1===v.length,native:K},N.slotProps?.baseSelect,{children:v.map((e=>(0,r.createElement)(N.slots.baseSelectOption,(0,n.A)({},U,{native:K,key:e.toString(),value:e.toString()}),P.current.getLocaleText((e=>{switch(e){case We.And:return"filterPanelOperatorAnd";case We.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(e)))))})),(0,M.jsx)(ws,(0,n.A)({as:N.slots.baseSelect},E,{className:(0,s.A)(H.columnInput,E.className),ownerState:N,size:"small",labelId:D,id:z,label:P.current.getLocaleText("filterPanelColumns"),value:Z??"",onChange:ne,native:K,disabled:R},N.slotProps?.baseSelect,{children:ee.map((e=>(0,r.createElement)(N.slots.baseSelectOption,(0,n.A)({},U,{native:K,key:e.field,value:e.field}),As(e))))})),(0,M.jsx)(Cs,(0,n.A)({as:N.slots.baseSelect,size:"small"},A,{className:(0,s.A)(H.operatorInput,A.className),ownerState:N,labelId:F,label:P.current.getLocaleText("filterPanelOperator"),id:L,value:o.operator,onChange:re,native:K,inputRef:_,disabled:R},N.slotProps?.baseSelect,{children:te?.filterOperators?.map((e=>(0,r.createElement)(N.slots.baseSelectOption,(0,n.A)({},U,{native:K,key:e.value,value:e.value}),e.label||P.current.getLocaleText(`filterOperator${(0,u.A)(e.value)}`))))})),(0,M.jsx)(xs,(0,n.A)({},X,{className:(0,s.A)(H.valueInput,X.className),ownerState:N,children:oe?.InputComponent?(0,M.jsx)(oe.InputComponent,(0,n.A)({apiRef:P,item:o,applyValue:c,focusElementRef:B,disabled:R,slotProps:{root:{size:"small"}}},oe.InputComponentProps,q),o.field):null}))]}))})),ks=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],Rs=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),Ms=(0,a.R)((function(e,t){const o=(0,W.h)(),i=(0,S.A)(),a=(0,b.Nc)(o,Po.ZI),s=(0,b.Nc)(o,j.Oe),c=(0,b.Nc)(o,j.U8),u=r.useRef(null),d=r.useRef(null),{logicOperators:p=[We.And,We.Or],columnsSort:h,filterFormProps:m,getColumnForNewFilter:f,disableAddFilterButton:g=!1,disableRemoveAllButton:v=!1}=e,y=(0,l.A)(e,ks),w=o.current.upsertFilterItem,C=r.useCallback((e=>{o.current.setFilterLogicOperator(e)}),[o]),x=r.useCallback((()=>{let e;if(f&&"function"==typeof f){const t=f({currentFilters:a?.items||[],columns:s});if(null===t)return null;e=s.find((({field:e})=>e===t))}else e=s.find((e=>e.filterOperators?.length));return e?Rs(e):null}),[a?.items,s,f]),A=r.useCallback((()=>{if(void 0===f||"function"!=typeof f)return x();const e=a.items.length?a.items:[x()].filter(Boolean),t=f({currentFilters:e,columns:s});if(null===t)return null;const o=s.find((({field:e})=>e===t));return o?Rs(o):null}),[a.items,s,f,x]),E=r.useMemo((()=>a.items.length?a.items:(d.current||(d.current=x()),d.current?[d.current]:[])),[a.items,x]),k=E.length>1,{readOnlyFilters:R,validFilters:I}=r.useMemo((()=>E.reduce(((e,t)=>(c[t.field]?e.validFilters.push(t):e.readOnlyFilters.push(t),e)),{readOnlyFilters:[],validFilters:[]})),[E,c]),P=r.useCallback((()=>{const e=A();e&&o.current.upsertFilterItems([...E,e])}),[o,A,E]),O=r.useCallback((e=>{const t=1===I.length;o.current.deleteFilterItem(e),t&&o.current.hideFilterPanel()}),[o,I.length]),T=r.useCallback((()=>1===I.length&&void 0===I[0].value?(o.current.deleteFilterItem(I[0]),o.current.hideFilterPanel()):o.current.setFilterModel((0,n.A)({},a,{items:R}),"removeAllFilterItems")),[o,R,a,I]);return r.useEffect((()=>{p.length>0&&a.logicOperator&&!p.includes(a.logicOperator)&&C(p[0])}),[p,C,a.logicOperator]),r.useEffect((()=>{I.length>0&&u.current.focus()}),[I.length]),(0,M.jsxs)(ms,(0,n.A)({},y,{ref:t,children:[(0,M.jsxs)(ss,{children:[R.map(((e,t)=>(0,M.jsx)(Ss,(0,n.A)({item:e,applyFilterChanges:w,deleteFilter:O,hasMultipleFilters:k,showMultiFilterOperators:t>0,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:C,focusElementRef:null,readOnly:!0,logicOperators:p,columnsSort:h},m),null==e.id?t:e.id))),I.map(((e,t)=>(0,M.jsx)(Ss,(0,n.A)({item:e,applyFilterChanges:w,deleteFilter:O,hasMultipleFilters:k,showMultiFilterOperators:R.length+t>0,disableMultiFilterOperator:R.length+t!==1,applyMultiFilterOperatorChanges:C,focusElementRef:t===I.length-1?u:null,logicOperators:p,columnsSort:h},m),null==e.id?t+R.length:e.id)))]}),i.disableMultipleColumnsFiltering||g&&v?null:(0,M.jsxs)(ds,{children:[g?(0,M.jsx)("span",{}):(0,M.jsx)(i.slots.baseButton,(0,n.A)({onClick:P,startIcon:(0,M.jsx)(i.slots.filterPanelAddIcon,{})},i.slotProps?.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")})),!v&&I.length>0?(0,M.jsx)(i.slots.baseButton,(0,n.A)({onClick:T,startIcon:(0,M.jsx)(i.slots.filterPanelRemoveAllIcon,{})},i.slotProps?.baseButton,{children:o.current.getLocaleText("filterPanelRemoveAll")})):null]})]}))}));var Is=o(26410);const Ps=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;var Os=o(17437);const Ts=["children"],$s=(0,Os.i7)({from:{opacity:0},to:{opacity:1}}),zs=(0,Os.i7)({"from, to":{"--scrollable":'" "'}}),Ds=(0,Y.A)("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})` flex: 1; display: flex; flex-direction: column; animation: ${zs}; animation-timeline: --scroll-timeline; animation-fill-mode: none; box-sizing: border-box; overflow: auto; scrollbar-width: thin; scroll-timeline: --scroll-timeline block; &::before, &::after { content: ''; flex-shrink: 0; display: block; position: sticky; left: 0; width: 100%; height: 4px; animation: ${$s} linear both; animation-timeline: --scroll-timeline; // Custom property toggle trick: // - Detects if the element is scrollable // - https://css-tricks.com/the-css-custom-property-toggle-trick/ --visibility-scrollable: var(--scrollable) visible; --visibility-not-scrollable: hidden; visibility: var(--visibility-scrollable, var(--visibility-not-scrollable)); } &::before { top: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%); animation-range: 0 4px; } &::after { bottom: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%); animation-direction: reverse; animation-range: calc(100% - 4px) 100%; } `,Ls=(0,a.R)((function(e,t){const{children:o}=e,r=(0,l.A)(e,Ts);return(0,M.jsx)(Ds,(0,n.A)({},r,{ref:t,children:o}))})),Fs=new Intl.Collator,Ns=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:g.f.spacing(.5,1.5)}),Hs=(0,m.Ay)(Ls,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),js=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:g.f.spacing(1.5,2),borderBottom:`1px solid ${g.f.colors.border.base}`}),Bs=(0,m.Ay)(Ce,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${Is.A.input}::-webkit-search-decoration,\n & .${Is.A.input}::-webkit-search-cancel-button,\n & .${Is.A.input}::-webkit-search-results-button,\n & .${Is.A.input}::-webkit-search-results-decoration`]:{display:"none"}}),_s=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:g.f.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${g.f.colors.border.base}`}),Vs=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:g.f.spacing(1,0),alignSelf:"center",font:g.f.typography.font.body});var Ws=o(96148);const Gs=["children","className","classes","onClose"],Ks=(0,Ws.A)("MuiDataGrid",["panel","paper"]),Us=(0,m.Ay)(Ce,{name:"MuiDataGrid",slot:"panel"})({zIndex:g.f.zIndex.panel}),qs=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:g.f.colors.background.overlay,borderRadius:g.f.radius.base,boxShadow:g.f.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${g.f.spacing(2)})`,overflow:"auto"}),Xs=(0,a.R)(((e,t)=>{const{children:o,className:i,onClose:a}=e,c=(0,l.A)(e,Gs),u=(0,W.h)(),d=(0,S.A)(),p=Ks,[h,m]=r.useState(!1),f=P(),g=(0,ce.A)((()=>m(!0))),b=(0,ce.A)((()=>m(!1))),v=(0,ce.A)((()=>{a?.()})),y=(0,ce.A)((e=>{"Escape"===e.key&&a?.()})),[w,C]=r.useState(null);return r.useEffect((()=>{const e=u.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');e&&C(e)}),[u]),w?(0,M.jsx)(Us,(0,n.A)({as:d.slots.basePopper,ownerState:d,placement:"bottom-end",className:(0,s.A)(p.panel,i,f),flip:!0,onDidShow:g,onDidHide:b,onClickAway:v,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},c,d.slotProps?.basePopper,{target:e.target??w,ref:t,children:(0,M.jsx)(qs,{className:p.paper,ownerState:d,onKeyDown:y,children:h&&o})})):null})),Ys=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],Qs=(0,T.Mz)(Yi,((e,t)=>!!t&&!!(0,la.Z)(e))),Js=(0,a.R)((function(e,t){const{selected:o,rowId:i,row:a,index:u,style:p,rowHeight:h,className:m,visibleColumns:g,pinnedColumns:v,offsetLeft:w,columnsTotalWidth:C,firstColumnIndex:x,lastColumnIndex:A,focusedColumnIndex:E,isFirstVisible:k,isLastVisible:I,isNotVisible:P,showBottomBorder:O,scrollbarWidth:T,gridHasFiller:$,onClick:z,onDoubleClick:D,onMouseEnter:L,onMouseLeave:F,onMouseOut:N,onMouseOver:H}=e,B=(0,l.A)(e,Ys),_=y(),V=R(),W=r.useRef(null),G=(0,S.A)(),K=qo(_),U=(0,b.Nc)(_,Qn.XU),q=(0,b.Nc)(_,Se.V2),X=(0,b.Nc)(_,j.Sw),Y=G.rowReordering,Q=(0,b.Nc)(_,Qs,Y),J=(0,c.A)(W,t),Z=(0,Se.Qu)(_,i),ee=(0,b.Nc)(_,Qi,{rowId:i,editMode:G.editMode}),te=G.editMode===Nt.Row,oe=void 0!==E,ne=oe&&E>=v.left.length&&E=A,ie=function(e,t){return(0,d.A)(t,f.B,e)}(G.classes,{root:["row",o&&"selected",te&&"row--editable",ee&&"row--editing",k&&"row--firstVisible",I&&"row--lastVisible",O&&"row--borderBottom","auto"===h&&"row--dynamicHeight"]}),ae=V.hooks.useGridRowAriaAttributes();r.useLayoutEffect((()=>{if(K.range){const e=_.current.getRowIndexRelativeToVisibleRows(i);void 0!==e&&_.current.unstable_setLastMeasuredRowIndex(e)}if(W.current&&"auto"===h)return _.current.observeRowHeight(W.current,i)}),[_,K.range,h,i]);const le=r.useCallback(((e,t)=>o=>{Hi(o)||_.current.getRow(i)&&(_.current.publishEvent(e,_.current.getRowParams(i),o),t&&t(o))}),[_,i]),se=r.useCallback((e=>{const t=Li(e.target,f.x.cell),o=t?.getAttribute("data-field");if(o){if(o===ti.field)return;if(o===kt)return;if("__reorder__"===o)return;if(_.current.getCellMode(i,o)===Ht.Edit)return;const e=_.current.getColumn(o);if(e?.type===ro)return}le("rowClick",z)(e)}),[_,z,le,i]),{slots:ce,slotProps:ue,disableColumnReorder:de}=G,pe=(0,b.Nc)(_,(()=>(0,n.A)({},_.current.getRowHeightEntry(i))),void 0,b.TJ),he=r.useMemo((()=>{if(P)return{opacity:0,width:0,height:0};const e=(0,n.A)({},p,{maxHeight:"auto"===h?"none":h,minHeight:h,"--height":"number"==typeof h?`${h}px`:h});if(pe.spacingTop&&(e["border"===G.rowSpacingType?"borderTopWidth":"marginTop"]=pe.spacingTop),pe.spacingBottom){const t="border"===G.rowSpacingType?"borderBottomWidth":"marginBottom";let o=e[t];"number"!=typeof o&&(o=parseInt(o||"0",10)),o+=pe.spacingBottom,e[t]=o}return e}),[P,h,p,pe,G.rowSpacingType]),me=_.current.unstable_applyPipeProcessors("rowClassName",[],i),fe=ae(Z,u);if("function"==typeof G.getRowClassName){const e=u-(K.range?.firstRowIndex||0),t=(0,n.A)({},_.current.getRowParams(i),{isFirstVisible:0===e,isLastVisible:e===K.rows.length-1,indexRelativeToCurrentPage:e});me.push(G.getRowClassName(t))}const ge=(e,t,o,r,l=Rt.NONE)=>{const s=_.current.unstable_getCellColSpanInfo(i,o);if(s?.spannedByColSpan)return null;const c=s?.cellProps.width??e.computedWidth,u=s?.cellProps.colSpan??1,d=_l(l,e.computedWidth,o,X,C,T);if("skeletonRow"===Z.type)return(0,M.jsx)(ce.skeletonCell,{type:e.type,width:c,height:h,field:e.field,align:e.align},e.field);const p="__reorder__"===e.field,m=!(de||e.disableReorder),f=Q&&!U.length&&q<=1,g=!(m||p&&f),b=l===Rt.VIRTUAL,v=Wl(l,t),y=Vl(l,t,r,G.showCellVerticalBorder,$);return(0,M.jsx)(ce.cell,(0,n.A)({column:e,width:c,rowId:i,align:e.align||"left",colIndex:o,colSpan:u,disableDragEvents:g,isNotVisible:b,pinnedOffset:d,pinnedPosition:l,showLeftBorder:v,showRightBorder:y,row:a,rowNode:Z},ue?.cell),e.field)},be=v.left.map(((e,t)=>ge(e,t,t,v.left.length,Rt.LEFT))),ve=v.right.map(((e,t)=>{const o=g.length-v.right.length+t;return ge(e,t,o,v.right.length,Rt.RIGHT)})),ye=g.length-v.left.length-v.right.length,we=[];ne&&we.push(ge(g[E],E-v.left.length,E,ye,Rt.VIRTUAL));for(let e=x;e0,borderTop:!k})]}))})),Zs=h(Js);let ec;const tc=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],oc=["changeReason","unstable_updateValueOnRender"];Rt.LEFT,dn.K.LEFT,Rt.RIGHT,dn.K.RIGHT,Rt.NONE,Rt.VIRTUAL;const nc=(0,a.R)((function(e,t){const{column:o,row:i,rowId:a,rowNode:p,align:h,colIndex:m,width:g,className:v,style:w,colSpan:C,disableDragEvents:x,isNotVisible:A,pinnedOffset:E,pinnedPosition:k,showRightBorder:I,showLeftBorder:P,onClick:O,onDoubleClick:T,onMouseDown:$,onMouseUp:z,onMouseOver:D,onKeyDown:L,onKeyUp:F,onDragEnter:N,onDragOver:H}=e,j=(0,l.A)(e,tc),B=y(),_=(0,S.A)(),V=(0,Jt.I)(),W=o.field,G=(0,b.Nc)(B,Ji,{rowId:a,field:W}),K=R().hooks.useCellAggregationResult(a,W),U=G?Ht.Edit:Ht.View,q=B.current.getCellParamsForRow(a,W,i,{colDef:o,cellMode:U,rowNode:p,tabIndex:(0,b.Nc)(B,(()=>{const e=bn(B);return e&&e.field===W&&e.id===a?0:-1})),hasFocus:(0,b.Nc)(B,(()=>{const e=hn(B);return e?.id===a&&e.field===W}))});q.api=B.current,K&&(q.value=K.value,q.formattedValue=o.valueFormatter?o.valueFormatter(q.value,i,o,B):q.value);const X=(0,b.Nc)(B,(()=>B.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:a,field:W}))),Y=(0,b.Nc)(B,ln),Q=(0,b.Nc)(B,sn),{hasFocus:J,isEditable:Z=!1,value:ee}=q,te="actions"===o.type&&o.getActions?.(B.current.getRowParams(a)).some((e=>!e.props.disabled)),oe="view"!==U&&Z||te?-1:q.tabIndex,{classes:ne,getCellClassName:re}=_,ie=[(0,b.Nc)(B,(()=>B.current.unstable_applyPipeProcessors("cellClassName",[],{id:a,field:W}).filter(Boolean).join(" ")))];o.cellClassName&&ie.push("function"==typeof o.cellClassName?o.cellClassName(q):o.cellClassName),"flex"===o.display&&ie.push(f.x["cell--flex"]),re&&ie.push(re(q));const ae=q.formattedValue??ee,le=r.useRef(null),se=(0,c.A)(t,le),ce=r.useRef(null),ue=_.cellSelection??!1,de=(e=>{const{align:t,showLeftBorder:o,showRightBorder:n,pinnedPosition:r,isEditable:i,isSelected:a,isSelectionMode:l,classes:s}=e,c={root:["cell",`cell--text${(0,u.A)(t)}`,a&&"selected",i&&"cell--editable",o&&"cell--withLeftBorder",n&&"cell--withRightBorder",r===Rt.LEFT&&"cell--pinnedLeft",r===Rt.RIGHT&&"cell--pinnedRight",l&&!i&&"cell--selectionMode"]};return(0,d.A)(c,f.B,s)})({align:h,showLeftBorder:P,showRightBorder:I,isEditable:Z,classes:_.classes,pinnedPosition:k,isSelected:X,isSelectionMode:ue}),pe=r.useCallback((e=>t=>{const o=B.current.getCellParams(a,W||"");B.current.publishEvent(e,o,t),z&&z(t)}),[B,W,z,a]),he=r.useCallback((e=>t=>{const o=B.current.getCellParams(a,W||"");B.current.publishEvent(e,o,t),$&&$(t)}),[B,W,$,a]),me=r.useCallback(((e,t)=>o=>{if(!B.current.getRow(a))return;const n=B.current.getCellParams(a,W||"");B.current.publishEvent(e,n,o),t&&t(o)}),[B,W,a]),fe=Y[a]?.[W]??!1,ge=Q[a]?.[W]??1,be=r.useMemo((()=>{if(A)return{padding:0,opacity:0,width:0,height:0,border:0};const e=ql((0,n.A)({"--width":`${g}px`},w),V,k,E),t=k===Rt.LEFT,o=k===Rt.RIGHT;return ge>1&&(e.height=`calc(var(--height) * ${ge})`,e.zIndex=10,(t||o)&&(e.zIndex=40)),e}),[g,A,w,E,k,V,ge]);if(r.useEffect((()=>{if(!J||U===Ht.Edit)return;const e=(0,ki.A)(B.current.rootElementRef.current);if(le.current&&!le.current.contains(e.activeElement)){const e=le.current.querySelector('[tabindex="0"]'),t=ce.current||e||le.current;if(void 0===ec&&document.createElement("div").focus({get preventScroll(){return ec=!0,!1}}),ec)t.focus({preventScroll:!0});else{const e=B.current.getScrollPosition();t.focus(),B.current.scroll(e)}}}),[J,U,B]),fe)return(0,M.jsx)("div",{"data-colindex":m,role:"presentation",style:(0,n.A)({width:"var(--width)"},be)});let ve,ye,we=j.onFocus;if(null===G&&o.renderCell&&(ve=o.renderCell(q)),null!==G&&o.renderEditCell){const e=B.current.getRowWithUpdatedValues(a,o.field),t=(0,l.A)(G,oc),r=o.valueFormatter?o.valueFormatter(G.value,e,o,B):q.formattedValue,i=(0,n.A)({},q,{row:e,formattedValue:r},t);ve=o.renderEditCell(i),ie.push(f.x["cell--editing"]),ie.push(ne?.["cell--editing"])}if(void 0===ve){const e=ae?.toString();ve=e,ye=e}r.isValidElement(ve)&&te&&(ve=r.cloneElement(ve,{focusElementRef:ce}));const Ce=x?null:{onDragEnter:me("cellDragEnter",N),onDragOver:me("cellDragOver",H)};return(0,M.jsx)("div",(0,n.A)({className:(0,s.A)(de.root,ie,v),role:"gridcell","data-field":W,"data-colindex":m,"aria-colindex":m+1,"aria-colspan":C,"aria-rowspan":ge,style:be,title:ye,tabIndex:oe,onClick:me("cellClick",O),onDoubleClick:me("cellDoubleClick",T),onMouseOver:me("cellMouseOver",D),onMouseDown:he("cellMouseDown"),onMouseUp:pe("cellMouseUp"),onKeyDown:me("cellKeyDown",L),onKeyUp:me("cellKeyUp",F)},Ce,j,{onFocus:we,ref:se,children:ve}))})),rc=h(nc),ic=r.memo((e=>{const{colDef:t,open:o,columnMenuId:i,columnMenuButtonId:a,iconButtonRef:l}=e,s=(0,W.h)(),c=(0,S.A)(),u=(e=>{const{classes:t,open:o}=e,n={root:["menuIcon",o&&"menuOpen"],button:["menuIconButton"]};return(0,d.A)(n,f.B,t)})((0,n.A)({},e,{classes:c.classes})),p=r.useCallback((e=>{e.preventDefault(),e.stopPropagation(),s.current.toggleColumnMenu(t.field)}),[s,t.field]),h=t.headerName??t.field;return(0,M.jsx)("div",{className:u.root,children:(0,M.jsx)(c.slots.baseTooltip,(0,n.A)({title:s.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},c.slotProps?.baseTooltip,{children:(0,M.jsx)(c.slots.baseIconButton,(0,n.A)({ref:l,tabIndex:-1,className:u.button,"aria-label":s.current.getLocaleText("columnMenuAriaLabel")(h),size:"small",onClick:p,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?i:void 0,id:a},c.slotProps?.baseIconButton,{children:(0,M.jsx)(c.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})}));function ac({columnMenuId:e,columnMenuButtonId:t,ContentComponent:o,contentComponentProps:r,field:i,open:a,target:l,onExited:s}){const c=(0,W.h)(),u=c.current.getColumn(i),d=(0,ce.A)((e=>{e&&(e.stopPropagation(),l?.contains(e.target))||c.current.hideColumnMenu()}));return l&&u?(0,M.jsx)(to,{position:"bottom-"+("right"===u.align?"start":"end"),open:a,target:l,onClose:d,onExited:s,children:(0,M.jsx)(o,(0,n.A)({colDef:u,hideMenu:d,open:a,id:e,labelledby:t},r))}):null}const lc=["className","aria-label"],sc=(0,Y.A)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),cc=(0,a.R)((function(e,t){const{className:o}=e,r=(0,l.A)(e,lc),i=(0,S.A)(),a=(e=>{const{classes:t}=e;return(0,d.A)({root:["columnHeaderTitle"]},f.B,t)})(i);return(0,M.jsx)(sc,(0,n.A)({className:(0,s.A)(a.root,o),ownerState:i},r,{ref:t}))}));function uc(e){const{label:t,description:o}=e,i=(0,S.A)(),a=r.useRef(null),[l,s]=r.useState(""),c=r.useCallback((()=>{if(!o&&a?.current){const o=(e=a.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;s(o?t:"")}var e}),[o,t]);return(0,M.jsx)(i.slots.baseTooltip,(0,n.A)({title:o||l},i.slotProps?.baseTooltip,{children:(0,M.jsx)(cc,{onMouseOver:c,ref:a,children:t})}))}const dc=["resizable","resizing","height","side"];var pc=function(e){return e.Left="left",e.Right="right",e}(pc||{});function hc(e){const{height:t,side:o=pc.Right}=e,i=(0,l.A)(e,dc),a=(0,S.A)(),s=(e=>{const{resizable:t,resizing:o,classes:n,side:r}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",o&&"columnSeparator--resizing",r&&`columnSeparator--side${(0,u.A)(r)}`],icon:["iconSeparator"]};return(0,d.A)(i,f.B,n)})((0,n.A)({},e,{side:o,classes:a.classes})),c=r.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,M.jsx)("div",(0,n.A)({className:s.root,style:{minHeight:t}},i,{onClick:c,children:(0,M.jsx)(a.slots.columnResizeIcon,{className:s.icon})}))}const mc=r.memo(hc),fc=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],gc=(0,a.R)((function(e,t){const{classes:o,colIndex:i,height:a,isResizing:u,sortDirection:d,hasFocus:p,tabIndex:h,separatorSide:m,isDraggable:f,headerComponent:g,description:b,width:v,columnMenuIconButton:w=null,columnMenu:C=null,columnTitleIconButtons:x=null,headerClassName:A,label:E,resizable:k,draggableContainerProps:R,columnHeaderSeparatorProps:I,style:P}=e,O=(0,l.A)(e,fc),T=y(),$=(0,S.A)(),z=r.useRef(null),D=(0,c.A)(z,t);let L="none";return null!=d&&(L="asc"===d?"ascending":"descending"),r.useLayoutEffect((()=>{const e=T.current.state.columnMenu;if(p&&!e.open){const e=z.current.querySelector('[tabindex="0"]')||z.current;e?.focus(),T.current.columnHeadersContainerRef?.current&&(T.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[T,p]),(0,M.jsxs)("div",(0,n.A)({className:(0,s.A)(o.root,A),style:(0,n.A)({},P,{width:v}),role:"columnheader",tabIndex:h,"aria-colindex":i+1,"aria-sort":L},O,{ref:D,children:[(0,M.jsxs)("div",(0,n.A)({className:o.draggableContainer,draggable:f,role:"presentation"},R,{children:[(0,M.jsxs)("div",{className:o.titleContainer,role:"presentation",children:[(0,M.jsx)("div",{className:o.titleContainerContent,children:void 0!==g?g:(0,M.jsx)(uc,{label:E,description:b,columnWidth:v})}),x]}),w]})),(0,M.jsx)(mc,(0,n.A)({resizable:!$.disableColumnResize&&!!k,resizing:u,height:a,side:m},I)),C]}))})),bc=h((function(e){const{colDef:t,columnMenuOpen:o,colIndex:i,headerHeight:a,isResizing:l,isLast:c,sortDirection:u,sortIndex:p,filterItemsCounter:h,hasFocus:m,tabIndex:g,disableReorder:b,separatorSide:v,showLeftBorder:w,showRightBorder:C,pinnedPosition:x,pinnedOffset:A}=e,E=y(),k=(0,S.A)(),R=(0,Jt.I)(),I=r.useRef(null),P=(0,$e.A)(),O=(0,$e.A)(),T=r.useRef(null),[$,z]=r.useState(o),D=r.useMemo((()=>!k.disableColumnReorder&&!b&&!t.disableReorder),[k.disableColumnReorder,b,t.disableReorder]);let L;t.renderHeader&&(L=t.renderHeader(E.current.getColumnHeaderParams(t.field)));const F=(e=>{const{colDef:t,classes:o,isDragging:n,sortDirection:r,showRightBorder:i,showLeftBorder:a,filterItemsCounter:l,pinnedPosition:s,isLastUnpinned:c,isSiblingFocused:u}=e,p=null!=r,h=null!=l&&l>0,m="number"===t.type,g={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",n&&"columnHeader--moving",p&&"columnHeader--sorted",h&&"columnHeader--filtered",m&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder",s===Rt.LEFT&&"columnHeader--pinnedLeft",s===Rt.RIGHT&&"columnHeader--pinnedRight",c&&"columnHeader--lastUnpinned",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,d.A)(g,f.B,o)})((0,n.A)({},e,{classes:k.classes,showRightBorder:C,showLeftBorder:w})),N=r.useCallback((e=>o=>{Hi(o)||E.current.publishEvent(e,E.current.getColumnHeaderParams(t.field),o)}),[E,t.field]),H=r.useMemo((()=>({onClick:N("columnHeaderClick"),onContextMenu:N("columnHeaderContextMenu"),onDoubleClick:N("columnHeaderDoubleClick"),onMouseOver:N("columnHeaderOver"),onMouseOut:N("columnHeaderOut"),onMouseEnter:N("columnHeaderEnter"),onMouseLeave:N("columnHeaderLeave"),onKeyDown:N("columnHeaderKeyDown"),onFocus:N("columnHeaderFocus"),onBlur:N("columnHeaderBlur")})),[N]),j=r.useMemo((()=>D?{onDragStart:N("columnHeaderDragStart"),onDragEnter:N("columnHeaderDragEnter"),onDragOver:N("columnHeaderDragOver"),onDragEndCapture:N("columnHeaderDragEnd")}:{}),[D,N]),B=r.useMemo((()=>({onMouseDown:N("columnSeparatorMouseDown"),onDoubleClick:N("columnSeparatorDoubleClick")})),[N]);r.useEffect((()=>{$||z(o)}),[$,o]);const _=r.useCallback((()=>{z(!1)}),[]),V=!k.disableColumnMenu&&!t.disableColumnMenu&&(0,M.jsx)(ic,{colDef:t,columnMenuId:P,columnMenuButtonId:O,open:$,iconButtonRef:T}),W=(0,M.jsx)(ac,{columnMenuId:P,columnMenuButtonId:O,field:t.field,open:o,target:T.current,ContentComponent:k.slots.columnMenu,contentComponentProps:k.slotProps?.columnMenu,onExited:_}),G=t.sortingOrder??k.sortingOrder,K=(t.sortable||null!=u)&&!t.hideSortIcons&&!k.disableColumnSorting,U=(0,M.jsxs)(r.Fragment,{children:[!k.disableColumnFilter&&(0,M.jsx)(k.slots.columnHeaderFilterIconButton,(0,n.A)({field:t.field,counter:h},k.slotProps?.columnHeaderFilterIconButton)),K&&(0,M.jsx)(k.slots.columnHeaderSortIcon,(0,n.A)({field:t.field,direction:u,index:p,sortingOrder:G,disabled:!t.sortable},k.slotProps?.columnHeaderSortIcon))]});r.useLayoutEffect((()=>{const e=E.current.state.columnMenu;if(m&&!e.open){const e=I.current.querySelector('[tabindex="0"]')||I.current;e?.focus(),E.current.columnHeadersContainerRef?.current&&(E.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[E,m]);const q="function"==typeof t.headerClassName?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,X=t.headerName??t.field,Y=r.useMemo((()=>ql((0,n.A)({},e.style),R,x,A)),[x,A,e.style,R]);return(0,M.jsx)(gc,(0,n.A)({ref:I,classes:F,columnMenuOpen:o,colIndex:i,height:a,isResizing:l,sortDirection:u,hasFocus:m,tabIndex:g,separatorSide:v,isDraggable:D,headerComponent:L,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:V,columnTitleIconButtons:U,headerClassName:(0,s.A)(q,c&&f.x["columnHeader--last"]),label:X,resizable:!k.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:W,draggableContainerProps:j,columnHeaderSeparatorProps:B,style:Y},H))}));function vc(e){const{groupId:t,width:o,depth:i,maxDepth:a,fields:l,height:s,colIndex:c,hasFocus:u,tabIndex:p,isLastColumn:h,pinnedPosition:m,pinnedOffset:g}=e,v=(0,S.A)(),y=(0,Jt.I)(),w=r.useRef(null),C=(0,W.h)(),x=(0,b.Nc)(C,ho),A=t?x[t]:{},{headerName:E=t??"",description:k="",headerAlign:R}=A;let I;const P=t&&x[t]?.renderHeaderGroup,O=r.useMemo((()=>({groupId:t,headerName:E,description:k,depth:i,maxDepth:a,fields:l,colIndex:c,isLastColumn:h})),[t,E,k,i,a,l,c,h]);t&&P&&(I=P(O));const T=(0,n.A)({},e,{classes:v.classes,headerAlign:R,depth:i,isDragging:!1}),$=E??t,z=(0,$e.A)(),D=null===t?`empty-group-cell-${z}`:t,L=(e=>{const{classes:t,headerAlign:o,isDragging:n,isLastColumn:r,showLeftBorder:i,showRightBorder:a,groupId:l,pinnedPosition:s}=e,c={root:["columnHeader","left"===o&&"columnHeader--alignLeft","center"===o&&"columnHeader--alignCenter","right"===o&&"columnHeader--alignRight",n&&"columnHeader--moving",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",null===l?"columnHeader--emptyGroup":"columnHeader--filledGroup",s===Rt.LEFT&&"columnHeader--pinnedLeft",s===Rt.RIGHT&&"columnHeader--pinnedRight",r&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,d.A)(c,f.B,t)})(T);r.useLayoutEffect((()=>{if(u){const e=w.current.querySelector('[tabindex="0"]')||w.current;e?.focus()}}),[C,u]);const F=r.useCallback((e=>t=>{Hi(t)||C.current.publishEvent(e,O,t)}),[C,O]),N=r.useMemo((()=>({onKeyDown:F("columnGroupHeaderKeyDown"),onFocus:F("columnGroupHeaderFocus"),onBlur:F("columnGroupHeaderBlur")})),[F]),H="function"==typeof A.headerClassName?A.headerClassName(O):A.headerClassName,j=r.useMemo((()=>ql((0,n.A)({},e.style),y,m,g)),[m,g,e.style,y]);return(0,M.jsx)(gc,(0,n.A)({ref:w,classes:L,columnMenuOpen:!1,colIndex:c,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:p,isDraggable:!1,headerComponent:I,headerClassName:H,description:k,elementId:D,width:o,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:$,"aria-colspan":l.length,"data-fields":`|-${l.join("-|-")}-|`,style:j},N))}const yc=(0,m.Ay)("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),wc=["className"],Cc=(0,Y.A)("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),xc=(0,a.R)((function(e,t){const{className:o}=e,r=(0,l.A)(e,wc),i=(0,S.A)(),a=(e=>{const{classes:t}=e;return(0,d.A)({root:["columnHeaders"]},f.B,t)})(i);return(0,M.jsx)(Cc,(0,n.A)({className:(0,s.A)(a.root,o),ownerState:i},r,{role:"presentation",ref:t}))})),Ac=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Ec=h((0,a.R)((function(e,t){const{visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:u,columnHeaderFocus:d,columnGroupHeaderFocus:p,headerGroupingMaxDepth:h,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:w}=e,C=(0,l.A)(e,Ac),{getInnerProps:x,getColumnHeadersRow:A,getColumnGroupHeadersRows:E}=(e=>{const{visibleColumns:t,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:l,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:h,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g}=e,[v,w]=r.useState(""),[C,x]=r.useState(""),A=y(),E=(0,S.A)(),k=(0,b.Nc)(A,po),R=(0,b.Nc)(A,j.Sw),I=(0,b.Nc)(A,tn),P=(0,b.Nc)(A,j.Q1),O=(0,b.Nc)(A,j.gv),T=_n(R,I,P.left.length),$=(0,b.Nc)(A,J),z=(0,b.Nc)(A,ne),D=(0,b.Nc)(A,re),L=(0,b.Nc)(A,ie),F=(0,b.Nc)(A,le),N=r.useCallback((e=>x(e.field)),[]),H=r.useCallback((()=>x("")),[]),B=r.useCallback((e=>w(e.field)),[]),_=r.useCallback((()=>w("")),[]),V=r.useMemo((()=>P.left.length?{firstColumnIndex:0,lastColumnIndex:P.left.length}:null),[P.left.length]),W=r.useMemo((()=>P.right.length?{firstColumnIndex:t.length-P.right.length,lastColumnIndex:t.length}:null),[P.right.length,t.length]);fe(A,"columnResizeStart",N),fe(A,"columnResizeStop",H),fe(A,"columnHeaderDragStart",B),fe(A,"columnHeaderDragEndNative",_);const G=e=>{const{renderContext:o=I}=e||{},n=o.firstColumnIndex,r=o.lastColumnIndex;return{renderedColumns:t.slice(n,r),firstColumnToRender:n,lastColumnToRender:r}},K=(e,t,o,n=!1)=>{const i=e?.position===Rt.RIGHT,a=void 0===e?.position,l=P.right.length>0&&i||0===P.right.length&&a,c=T-o;return(0,M.jsxs)(r.Fragment,{children:[a&&(0,M.jsx)("div",{role:"presentation",style:{width:c}}),t,a&&(0,M.jsx)("div",{role:"presentation",className:(0,s.A)(f.x.filler,n&&f.x["filler--borderBottom"])}),l&&(0,M.jsx)(Kl,{header:!0,pinnedRight:i,borderBottom:n,borderTop:!1})]})},U=(e,t={})=>{const{renderedColumns:r,firstColumnToRender:l}=G(e),s=[];for(let u=0;u{const r=G(o);if(0===r.renderedColumns.length)return null;const{firstColumnToRender:i,lastColumnToRender:a}=r,s=m[e],c=t[i].field,p=k[c]?.[e]??null,f=s.findIndex((({groupId:e,columnFields:t})=>e===p&&t.includes(c))),g=t[a-1].field,b=k[g]?.[e]??null,v=s.findIndex((({groupId:e,columnFields:t})=>e===b&&t.includes(g))),y=s.slice(f,v+1).map((e=>(0,n.A)({},e,{columnFields:e.columnFields.filter((e=>!1!==h[e]))}))).filter((e=>e.columnFields.length>0)),w=y[0].columnFields.indexOf(c),C=y[0].columnFields.slice(0,w).reduce(((e,t)=>e+(O[t].computedWidth??0)),0);let x=i;const A=y.map((({groupId:t,columnFields:n},r)=>{const i=null!==u&&u.depth===e&&n.includes(u.field),a=null!==l&&l.depth===e&&n.includes(l.field)?0:-1,s={groupId:t,width:n.reduce(((e,t)=>e+O[t].computedWidth),0),fields:n,colIndex:x,hasFocus:i,tabIndex:a},c=o.position,p=_l(c,s.width,x,R,$,F);x+=n.length;let h=r;return c===Rt.LEFT&&(h=x-1),(0,M.jsx)(vc,{groupId:t,width:s.width,fields:s.fields,colIndex:s.colIndex,depth:e,isLastColumn:r===y.length-1,maxDepth:d,height:L,hasFocus:i,tabIndex:a,pinnedPosition:c,pinnedOffset:p,showLeftBorder:Wl(c,h),showRightBorder:Vl(c,h,y.length,E.showColumnVerticalBorder,z)},r)}));return K(o,A,C)};return{renderContext:I,leftRenderContext:V,rightRenderContext:W,pinnedColumns:P,visibleColumns:t,columnPositions:R,getFillers:K,getColumnHeadersRow:()=>(0,M.jsxs)(yc,{role:"row","aria-rowindex":d+1,ownerState:E,className:f.x["row--borderBottom"],style:{height:D},children:[V&&U({position:Rt.LEFT,renderContext:V},{disableReorder:!0}),U({renderContext:I}),W&&U({position:Rt.RIGHT,renderContext:W},{disableReorder:!0,separatorSide:pc.Left})]}),getColumnsToRender:G,getColumnGroupHeadersRows:()=>{if(0===d)return null;const e=[];for(let t=0;t({role:"rowgroup"})}})({visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:u,columnHeaderFocus:d,columnGroupHeaderFocus:p,headerGroupingMaxDepth:h,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:w});return(0,M.jsxs)(xc,(0,n.A)({},C,x(),{ref:t,children:[E(),A()]}))}))),Sc=["displayOrder"],kc=["hideMenu","colDef","id","labelledby","className","children","open"],Rc=(0,m.Ay)(Ce)((()=>({minWidth:248}))),Mc=(0,a.R)((function(e,t){const{hideMenu:o,id:i,labelledby:a,className:c,children:u,open:d}=e,p=(0,l.A)(e,kc),h=(0,S.A)(),m=r.useCallback((e=>{"Tab"===e.key&&e.preventDefault(),li(e.key)&&o(e)}),[o]);return(0,M.jsx)(Rc,(0,n.A)({as:h.slots.baseMenuList,id:i,className:(0,s.A)(f.x.menuList,c),"aria-labelledby":a,onKeyDown:m,autoFocus:d},p,{ref:t,children:u}))}));function Ic(e){const{colDef:t,onClick:o}=e,n=(0,W.h)(),i=(0,S.A)(),a=1===(0,j.iv)(n).filter((e=>!0!==e.disableColumnMenu)).length,l=r.useCallback((e=>{a||(n.current.setColumnVisibility(t.field,!1),o(e))}),[n,t.field,o,a]);return i.disableColumnSelector||!1===t.hideable?null:(0,M.jsx)(i.slots.baseMenuItem,{onClick:l,disabled:a,iconStart:(0,M.jsx)(i.slots.columnMenuHideIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuHideColumn")})}function Pc(e){const{onClick:t}=e,o=(0,W.h)(),n=(0,S.A)(),i=r.useCallback((e=>{t(e),o.current.showPreferences(V.columns)}),[o,t]);return n.disableColumnSelector?null:(0,M.jsx)(n.slots.baseMenuItem,{onClick:i,iconStart:(0,M.jsx)(n.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:o.current.getLocaleText("columnMenuManageColumns")})}const Oc=["defaultSlots","defaultSlotProps","slots","slotProps"],Tc={columnMenuSortItem:function(e){const{colDef:t,onClick:o}=e,n=(0,W.h)(),i=(0,b.Nc)(n,Qn.XU),a=(0,S.A)(),l=r.useMemo((()=>{if(!t)return null;const e=i.find((e=>e.field===t.field));return e?.sort}),[t,i]),s=t.sortingOrder??a.sortingOrder,c=r.useCallback((e=>{o(e);const r=e.currentTarget.getAttribute("data-value")||null;n.current.sortColumn(t.field,r===l?null:r)}),[n,t,o,l]);if(a.disableColumnSorting||!t||!t.sortable||!s.some((e=>!!e)))return null;const u=e=>{const o=n.current.getLocaleText(e);return"function"==typeof o?o(t):o};return(0,M.jsxs)(r.Fragment,{children:[s.includes("asc")&&"asc"!==l?(0,M.jsx)(a.slots.baseMenuItem,{onClick:c,"data-value":"asc",iconStart:(0,M.jsx)(a.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:u("columnMenuSortAsc")}):null,s.includes("desc")&&"desc"!==l?(0,M.jsx)(a.slots.baseMenuItem,{onClick:c,"data-value":"desc",iconStart:(0,M.jsx)(a.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:u("columnMenuSortDesc")}):null,s.includes(null)&&null!=l?(0,M.jsx)(a.slots.baseMenuItem,{onClick:c,iconStart:a.slots.columnMenuUnsortIcon?(0,M.jsx)(a.slots.columnMenuUnsortIcon,{fontSize:"small"}):(0,M.jsx)("span",{}),children:n.current.getLocaleText("columnMenuUnsort")}):null]})},columnMenuFilterItem:function(e){const{colDef:t,onClick:o}=e,n=(0,W.h)(),i=(0,S.A)(),a=r.useCallback((e=>{o(e),n.current.showFilterPanel(t.field)}),[n,t.field,o]);return i.disableColumnFilter||!t.filterable?null:(0,M.jsx)(i.slots.baseMenuItem,{onClick:a,iconStart:(0,M.jsx)(i.slots.columnMenuFilterIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuFilter")})},columnMenuColumnsItem:function(e){return(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(Ic,(0,n.A)({},e)),(0,M.jsx)(Pc,(0,n.A)({},e))]})}},$c={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},zc=(0,a.R)((function(e,t){const{defaultSlots:o,defaultSlotProps:i,slots:a,slotProps:s}=e,c=(0,l.A)(e,Oc),u=(e=>{const t=y(),o=(0,S.A)(),{defaultSlots:i,defaultSlotProps:a,slots:s={},slotProps:c={},hideMenu:u,colDef:d,addDividers:p=!0}=e,h=r.useMemo((()=>(0,n.A)({},i,s)),[i,s]),m=r.useMemo((()=>{if(!c||0===Object.keys(c).length)return a;const e=(0,n.A)({},c);return Object.entries(a).forEach((([t,o])=>{e[t]=(0,n.A)({},o,c[t]||{})})),e}),[a,c]),f=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),g=r.useMemo((()=>{const e=Object.keys(i);return Object.keys(s).filter((t=>!e.includes(t)))}),[s,i]);return r.useMemo((()=>{const e=Array.from(new Set([...f,...g])).filter((e=>null!=h[e])).sort(((e,t)=>{const o=m[e],n=m[t];return(Number.isFinite(o?.displayOrder)?o.displayOrder:100)-(Number.isFinite(n?.displayOrder)?n.displayOrder:100)}));return e.reduce(((t,r,i)=>{let a={colDef:d,onClick:u};const s=m[r];if(s){const e=(0,l.A)(s,Sc);a=(0,n.A)({},a,e)}return p&&i!==e.length-1?[...t,[h[r],a],[o.slots.baseDivider,{}]]:[...t,[h[r],a]]}),[])}),[p,d,f,u,h,m,g,o.slots.baseDivider])})((0,n.A)({},c,{defaultSlots:o,defaultSlotProps:i,slots:a,slotProps:s}));return(0,M.jsx)(Mc,(0,n.A)({},c,{ref:t,children:u.map((([e,t],o)=>(0,M.jsx)(e,(0,n.A)({},t),o)))}))})),Dc=(0,a.R)((function(e,t){return(0,M.jsx)(zc,(0,n.A)({},e,{ref:t,defaultSlots:Tc,defaultSlotProps:$c}))})),Lc=(0,a.R)((function(e,t){const o=(0,W.h)().current.getLocaleText("noResultsOverlayLabel");return(0,M.jsx)(Bl,(0,n.A)({},e,{ref:t,children:o}))}));var Fc=o(16014),Nc=o(16082);var Hc=o(39241),jc=o(1321),Bc=o(20439),_c=o(39407),Vc=o(1908);function Wc(e){return(0,Vc.Ay)("MuiBadge",e)}const Gc=(0,Ws.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);var Kc=o(85078);const Uc=(0,m.Ay)("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),qc=(0,m.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.badge,t[o.variant],t[`anchorOrigin${(0,_c.A)(o.anchorOrigin.vertical)}${(0,_c.A)(o.anchorOrigin.horizontal)}${(0,_c.A)(o.overlap)}`],"default"!==o.color&&t[`color${(0,_c.A)(o.color)}`],o.invisible&&t.invisible]}})((0,Hc.A)((({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter((0,jc.A)(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Gc.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Gc.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Gc.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Gc.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Gc.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Gc.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Gc.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Gc.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}))));function Xc(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Yc=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiBadge"}),{anchorOrigin:n,className:r,classes:i,component:a,components:l={},componentsProps:c={},children:u,overlap:p="rectangular",color:h="default",invisible:m=!1,max:f=99,badgeContent:g,slots:b,slotProps:v,showZero:y=!1,variant:w="standard",...C}=o,{badgeContent:x,invisible:A,max:E,displayValue:S}=function(e){const{badgeContent:t,invisible:o=!1,max:n=99,showZero:r=!1}=e,i=(0,Nc.A)({badgeContent:t,max:n});let a=o;!1!==o||0!==t||r||(a=!0);const{badgeContent:l,max:s=n}=a?i:e;return{badgeContent:l,invisible:a,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:f,invisible:m,badgeContent:g,showZero:y}),k=(0,Nc.A)({anchorOrigin:Xc(n),color:h,overlap:p,variant:w,badgeContent:g}),R=A||null==x&&"dot"!==w,{color:I=h,overlap:P=p,anchorOrigin:O,variant:T=w}=R?k:o,$=Xc(O),z="dot"!==T?S:void 0,D={...o,badgeContent:x,invisible:R,max:E,displayValue:z,showZero:y,anchorOrigin:$,color:I,overlap:P,variant:T},L=(e=>{const{color:t,anchorOrigin:o,invisible:n,overlap:r,variant:i,classes:a={}}=e,l={root:["root"],badge:["badge",i,n&&"invisible",`anchorOrigin${(0,_c.A)(o.vertical)}${(0,_c.A)(o.horizontal)}`,`anchorOrigin${(0,_c.A)(o.vertical)}${(0,_c.A)(o.horizontal)}${(0,_c.A)(r)}`,`overlap${(0,_c.A)(r)}`,"default"!==t&&`color${(0,_c.A)(t)}`]};return(0,d.A)(l,Wc,a)})(D),F={slots:{root:b?.root??l.Root,badge:b?.badge??l.Badge},slotProps:{root:v?.root??c.root,badge:v?.badge??c.badge}},[N,H]=(0,Kc.A)("root",{elementType:Uc,externalForwardedProps:{...F,...C},ownerState:D,className:(0,s.A)(L.root,r),ref:t,additionalProps:{as:a}}),[j,B]=(0,Kc.A)("badge",{elementType:qc,externalForwardedProps:F,ownerState:D,className:L.badge});return(0,M.jsxs)(N,{...H,children:[u,(0,M.jsx)(j,{...B,children:z})]})})),Qc=Yc;var Jc=o(27629),Zc=o(17862),eu=o(8861),tu=o(82777),ou=o(24566);const nu=(0,m.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.absolute&&t.absolute,t[o.variant],o.light&&t.light,"vertical"===o.orientation&&t.vertical,o.flexItem&&t.flexItem,o.children&&t.withChildren,o.children&&"vertical"===o.orientation&&t.withChildrenVertical,"right"===o.textAlign&&"vertical"!==o.orientation&&t.textAlignRight,"left"===o.textAlign&&"vertical"!==o.orientation&&t.textAlignLeft]}})((0,Hc.A)((({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,tu.X4)(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]})))),ru=(0,m.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.wrapper,"vertical"===o.orientation&&t.wrapperVertical]}})((0,Hc.A)((({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]})))),iu=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:r,className:i,orientation:a="horizontal",component:l=(r||"vertical"===a?"div":"hr"),flexItem:c=!1,light:u=!1,role:p=("hr"!==l?"separator":void 0),textAlign:h="center",variant:m="fullWidth",...f}=o,g={...o,absolute:n,component:l,flexItem:c,light:u,orientation:a,role:p,textAlign:h,variant:m},b=(e=>{const{absolute:t,children:o,classes:n,flexItem:r,light:i,orientation:a,textAlign:l,variant:s}=e,c={root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",r&&"flexItem",o&&"withChildren",o&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,d.A)(c,ou.K,n)})(g);return(0,M.jsx)(nu,{as:l,className:(0,s.A)(b.root,i),role:p,ref:t,ownerState:g,"aria-orientation":"separator"!==p||"hr"===l&&"vertical"!==a?void 0:a,...f,children:r?(0,M.jsx)(ru,{className:b.wrapper,ownerState:g,children:r}):null})}));iu&&(iu.muiSkipListHighlight=!0);const au=iu;var lu=o(79844),su=o(75337);function cu(e){return(0,Vc.Ay)("MuiLinearProgress",e)}(0,Ws.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const uu=Os.i7` 0% { left: -35%; right: 100%; } 60% { left: 100%; right: -90%; } 100% { left: 100%; right: -90%; } `,du="string"!=typeof uu?Os.AH` animation: ${uu} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; `:null,pu=Os.i7` 0% { left: -200%; right: 100%; } 60% { left: 107%; right: -8%; } 100% { left: 107%; right: -8%; } `,hu="string"!=typeof pu?Os.AH` animation: ${pu} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; `:null,mu=Os.i7` 0% { opacity: 1; background-position: 0 -23px; } 60% { opacity: 0; background-position: 0 -23px; } 100% { opacity: 1; background-position: -200px -23px; } `,fu="string"!=typeof mu?Os.AH` animation: ${mu} 3s infinite linear; `:null,gu=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,tu.a)(e.palette[t].main,.62):(0,tu.e$)(e.palette[t].main,.5),bu=(0,m.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`color${(0,_c.A)(o.color)}`],t[o.variant]]}})((0,Hc.A)((({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter((0,jc.A)()).map((([t])=>({props:{color:t},style:{backgroundColor:gu(e,t)}}))),{props:({ownerState:e})=>"inherit"===e.color&&"buffer"!==e.variant,style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]})))),vu=(0,m.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.dashed,t[`dashedColor${(0,_c.A)(o.color)}`]]}})((0,Hc.A)((({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter((0,jc.A)()).map((([t])=>{const o=gu(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${o} 0%, ${o} 16%, transparent 42%)`}}}))]}))),fu||{animation:`${mu} 3s infinite linear`}),yu=(0,m.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.bar,t.bar1,t[`barColor${(0,_c.A)(o.color)}`],("indeterminate"===o.variant||"query"===o.variant)&&t.bar1Indeterminate,"determinate"===o.variant&&t.bar1Determinate,"buffer"===o.variant&&t.bar1Buffer]}})((0,Hc.A)((({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter((0,jc.A)()).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}}))),{props:{variant:"determinate"},style:{transition:"transform .4s linear"}},{props:{variant:"buffer"},style:{zIndex:1,transition:"transform .4s linear"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:du||{animation:`${uu} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]})))),wu=(0,m.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.bar,t.bar2,t[`barColor${(0,_c.A)(o.color)}`],("indeterminate"===o.variant||"query"===o.variant)&&t.bar2Indeterminate,"buffer"===o.variant&&t.bar2Buffer]}})((0,Hc.A)((({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter((0,jc.A)()).map((([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}}))),{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"!==e.color,style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"===e.color,style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter((0,jc.A)()).map((([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:gu(e,t),transition:"transform .4s linear"}}))),{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:hu||{animation:`${pu} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]})))),Cu=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiLinearProgress"}),{className:n,color:r="primary",value:i,valueBuffer:a,variant:l="indeterminate",...c}=o,u={...o,color:r,variant:l},p=(e=>{const{classes:t,variant:o,color:n}=e,r={root:["root",`color${(0,_c.A)(n)}`,o],dashed:["dashed",`dashedColor${(0,_c.A)(n)}`],bar1:["bar","bar1",`barColor${(0,_c.A)(n)}`,("indeterminate"===o||"query"===o)&&"bar1Indeterminate","determinate"===o&&"bar1Determinate","buffer"===o&&"bar1Buffer"],bar2:["bar","bar2","buffer"!==o&&`barColor${(0,_c.A)(n)}`,"buffer"===o&&`color${(0,_c.A)(n)}`,("indeterminate"===o||"query"===o)&&"bar2Indeterminate","buffer"===o&&"bar2Buffer"]};return(0,d.A)(r,cu,t)})(u),h=(0,Jt.I)(),m={},f={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==i){m["aria-valuenow"]=Math.round(i),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let e=i-100;h&&(e=-e),f.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==a){let e=(a||0)-100;h&&(e=-e),f.bar2.transform=`translateX(${e}%)`}return(0,M.jsxs)(bu,{className:(0,s.A)(p.root,n),ownerState:u,role:"progressbar",...m,ref:t,...c,children:["buffer"===l?(0,M.jsx)(vu,{className:p.dashed,ownerState:u}):null,(0,M.jsx)(yu,{className:p.bar1,ownerState:u,style:f.bar1}),"determinate"===l?null:(0,M.jsx)(wu,{className:p.bar2,ownerState:u,style:f.bar2})]})})),xu=Cu;var Au=o(42812),Eu=o(40583);const Su=(0,m.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"flex-start"===o.alignItems&&t.alignItemsFlexStart]}})((0,Hc.A)((({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]})))),ku=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiListItemIcon"}),{className:n,...i}=o,a=r.useContext(Eu.A),l={...o,alignItems:a.alignItems},c=(e=>{const{alignItems:t,classes:o}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,d.A)(n,Au.f,o)})(l);return(0,M.jsx)(Su,{className:(0,s.A)(c.root,n),ownerState:l,ref:t,...i})})),Ru=ku;var Mu=o(91790),Iu=o(35124),Pu=o(29312);const Ou=(0,m.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Pu.A.primary}`]:t.primary},{[`& .${Pu.A.secondary}`]:t.secondary},t.root,o.inset&&t.inset,o.primary&&o.secondary&&t.multiline,o.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Mu.A.root}:where(& .${Pu.A.primary})`]:{display:"block"},[`.${Mu.A.root}:where(& .${Pu.A.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Tu=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiListItemText"}),{children:n,className:i,disableTypography:a=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:p,secondaryTypographyProps:h,slots:m={},slotProps:f={},...g}=o,{dense:b}=r.useContext(Eu.A);let v=null!=c?c:n,y=p;const w={...o,disableTypography:a,inset:l,primary:!!v,secondary:!!y,dense:b},C=(e=>{const{classes:t,inset:o,primary:n,secondary:r,dense:i}=e,a={root:["root",o&&"inset",i&&"dense",n&&r&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,d.A)(a,Pu.b,t)})(w),x={slots:m,slotProps:{primary:u,secondary:h,...f}},[A,E]=(0,Kc.A)("root",{className:(0,s.A)(C.root,i),elementType:Ou,externalForwardedProps:{...x,...g},ownerState:w,ref:t}),[S,k]=(0,Kc.A)("primary",{className:C.primary,elementType:Iu.A,externalForwardedProps:x,ownerState:w}),[R,I]=(0,Kc.A)("secondary",{className:C.secondary,elementType:Iu.A,externalForwardedProps:x,ownerState:w});return null==v||v.type===Iu.A||a||(v=(0,M.jsx)(S,{variant:b?"body2":"body1",component:k?.variant?void 0:"span",...k,children:v})),null==y||y.type===Iu.A||a||(y=(0,M.jsx)(R,{variant:"body2",color:"textSecondary",...I,children:y})),(0,M.jsxs)(A,{...E,children:[v,y]})})),$u=Tu;var zu=o(71026),Du=o(37603),Lu=o(83508),Fu=o(98300),Nu=o(76761);function Hu(e){return(0,Vc.Ay)("MuiFormControlLabel",e)}const ju=(0,Ws.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var Bu=o(93583);const _u=(0,m.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${ju.label}`]:t.label},t.root,t[`labelPlacement${(0,_c.A)(o.labelPlacement)}`]]}})((0,Hc.A)((({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ju.disabled}`]:{cursor:"default"},[`& .${ju.label}`]:{[`&.${ju.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]})))),Vu=(0,m.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk"})((0,Hc.A)((({theme:e})=>({[`&.${ju.error}`]:{color:(e.vars||e).palette.error.main}})))),Wu=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiFormControlLabel"}),{checked:n,className:i,componentsProps:a={},control:l,disabled:c,disableTypography:u,inputRef:p,label:h,labelPlacement:m="end",name:f,onChange:g,required:b,slots:v={},slotProps:y={},value:w,...C}=o,x=(0,Nu.A)(),A=c??l.props.disabled??x?.disabled,E=b??l.props.required,S={disabled:A,required:E};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(S[e]=o[e])}));const k=(0,Bu.A)({props:o,muiFormControl:x,states:["error"]}),R={...o,disabled:A,labelPlacement:m,required:E,error:k.error},I=(e=>{const{classes:t,disabled:o,labelPlacement:n,error:r,required:i}=e,a={root:["root",o&&"disabled",`labelPlacement${(0,_c.A)(n)}`,r&&"error",i&&"required"],label:["label",o&&"disabled"],asterisk:["asterisk",r&&"error"]};return(0,d.A)(a,Hu,t)})(R),P={slots:v,slotProps:{...a,...y}},[O,T]=(0,Kc.A)("typography",{elementType:Iu.A,externalForwardedProps:P,ownerState:R});let $=h;return null==$||$.type===Iu.A||u||($=(0,M.jsx)(O,{component:"span",...T,className:(0,s.A)(I.label,T?.className),children:$})),(0,M.jsxs)(_u,{className:(0,s.A)(I.root,i),ownerState:R,ref:t,...C,children:[r.cloneElement(l,S),E?(0,M.jsxs)("div",{children:[$,(0,M.jsxs)(Vu,{ownerState:R,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):$]})})),Gu=Wu;var Ku=o(7388),Uu=o(42722);function qu(e){return(0,Vc.Ay)("MuiSwitch",e)}const Xu=(0,Ws.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Yu=(0,m.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.edge&&t[`edge${(0,_c.A)(o.edge)}`],t[`size${(0,_c.A)(o.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Xu.thumb}`]:{width:16,height:16},[`& .${Xu.switchBase}`]:{padding:4,[`&.${Xu.checked}`]:{transform:"translateX(16px)"}}}}]}),Qu=(0,m.Ay)(Uu.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.switchBase,{[`& .${Xu.input}`]:t.input},"default"!==o.color&&t[`color${(0,_c.A)(o.color)}`]]}})((0,Hc.A)((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Xu.checked}`]:{transform:"translateX(20px)"},[`&.${Xu.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Xu.checked} + .${Xu.track}`]:{opacity:.5},[`&.${Xu.disabled} + .${Xu.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${Xu.input}`]:{left:"-100%",width:"300%"}}))),(0,Hc.A)((({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,tu.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((0,jc.A)(["light"])).map((([t])=>({props:{color:t},style:{[`&.${Xu.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,tu.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xu.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,tu.a)(e.palette[t].main,.62):(0,tu.e$)(e.palette[t].main,.55)}`}},[`&.${Xu.checked} + .${Xu.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]})))),Ju=(0,m.Ay)("span",{name:"MuiSwitch",slot:"Track"})((0,Hc.A)((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)})))),Zu=(0,m.Ay)("span",{name:"MuiSwitch",slot:"Thumb"})((0,Hc.A)((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})))),ed=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiSwitch"}),{className:n,color:r="primary",edge:i=!1,size:a="medium",sx:l,slots:c={},slotProps:u={},...p}=o,h={...o,color:r,edge:i,size:a},m=(e=>{const{classes:t,edge:o,size:n,color:r,checked:i,disabled:a}=e,l={root:["root",o&&`edge${(0,_c.A)(o)}`,`size${(0,_c.A)(n)}`],switchBase:["switchBase",`color${(0,_c.A)(r)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s=(0,d.A)(l,qu,t);return{...t,...s}})(h),f={slots:c,slotProps:u},[g,b]=(0,Kc.A)("root",{className:(0,s.A)(m.root,n),elementType:Yu,externalForwardedProps:f,ownerState:h,additionalProps:{sx:l}}),[v,y]=(0,Kc.A)("thumb",{className:m.thumb,elementType:Zu,externalForwardedProps:f,ownerState:h}),w=(0,M.jsx)(v,{...y}),[C,x]=(0,Kc.A)("track",{className:m.track,elementType:Ju,externalForwardedProps:f,ownerState:h});return(0,M.jsxs)(g,{...b,children:[(0,M.jsx)(Qu,{type:"checkbox",icon:w,checkedIcon:w,ref:t,ownerState:h,...p,classes:{...m,root:m.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:"function"==typeof u.switchBase?u.switchBase(h):u.switchBase},...u.input&&{input:"function"==typeof u.input?u.input(h):u.input}}}),(0,M.jsx)(C,{...x})]})})),td=ed;var od=o(60431),nd=o(38490),rd=o(37768),id=o(96258),ad=o(56416),ld=o(73514);const sd=r.createContext(),cd=r.createContext();function ud(e){return(0,Vc.Ay)("MuiTableCell",e)}const dd=(0,Ws.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),pd=(0,m.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${(0,_c.A)(o.size)}`],"normal"!==o.padding&&t[`padding${(0,_c.A)(o.padding)}`],"inherit"!==o.align&&t[`align${(0,_c.A)(o.align)}`],o.stickyHeader&&t.stickyHeader]}})((0,Hc.A)((({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?(0,tu.a)((0,tu.X4)(e.palette.divider,1),.88):(0,tu.e$)((0,tu.X4)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${dd.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]})))),hd=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiTableCell"}),{align:n="inherit",className:i,component:a,padding:l,scope:c,size:u,sortDirection:p,variant:h,...m}=o,f=r.useContext(sd),g=r.useContext(cd),b=g&&"head"===g.variant;let v;v=a||(b?"th":"td");let y=c;"td"===v?y=void 0:!y&&b&&(y="col");const w=h||g&&g.variant,C={...o,align:n,component:v,padding:l||(f&&f.padding?f.padding:"normal"),size:u||(f&&f.size?f.size:"medium"),sortDirection:p,stickyHeader:"head"===w&&f&&f.stickyHeader,variant:w},x=(e=>{const{classes:t,variant:o,align:n,padding:r,size:i,stickyHeader:a}=e,l={root:["root",o,a&&"stickyHeader","inherit"!==n&&`align${(0,_c.A)(n)}`,"normal"!==r&&`padding${(0,_c.A)(r)}`,`size${(0,_c.A)(i)}`]};return(0,d.A)(l,ud,t)})(C);let A=null;return p&&(A="asc"===p?"ascending":"descending"),(0,M.jsx)(pd,{as:v,ref:t,className:(0,s.A)(x.root,i),"aria-sort":A,scope:y,ownerState:C,...m})})),md=hd;function fd(e){return(0,Vc.Ay)("MuiToolbar",e)}(0,Ws.A)("MuiToolbar",["root","gutters","regular","dense"]);const gd=(0,m.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableGutters&&t.gutters,t[o.variant]]}})((0,Hc.A)((({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]})))),bd=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiToolbar"}),{className:n,component:r="div",disableGutters:i=!1,variant:a="regular",...l}=o,c={...o,component:r,disableGutters:i,variant:a},u=(e=>{const{classes:t,disableGutters:o,variant:n}=e,r={root:["root",!o&&"gutters",n]};return(0,d.A)(r,fd,t)})(c);return(0,M.jsx)(gd,{as:r,className:(0,s.A)(u.root,n),ref:t,ownerState:c,...l})})),vd=bd;var yd=o(56536),wd=o(1883),Cd=o(9792);const xd=(0,Cd.A)((0,M.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Ad=(0,Cd.A)((0,M.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ed=r.forwardRef((function(e,t){const{backIconButtonProps:o,count:n,disabled:r=!1,getItemAriaLabel:i,nextIconButtonProps:a,onPageChange:l,page:s,rowsPerPage:c,showFirstButton:u,showLastButton:d,slots:p={},slotProps:h={},...m}=e,f=(0,Jt.I)(),g=p.firstButton??rd.A,b=p.lastButton??rd.A,v=p.nextButton??rd.A,y=p.previousButton??rd.A,w=p.firstButtonIcon??Ad,C=p.lastButtonIcon??xd,x=p.nextButtonIcon??wd.A,A=p.previousButtonIcon??yd.A,E=f?b:g,S=f?v:y,k=f?y:v,R=f?g:b,I=f?h.lastButton:h.firstButton,P=f?h.nextButton:h.previousButton,O=f?h.previousButton:h.nextButton,T=f?h.firstButton:h.lastButton;return(0,M.jsxs)("div",{ref:t,...m,children:[u&&(0,M.jsx)(E,{onClick:e=>{l(e,0)},disabled:r||0===s,"aria-label":i("first",s),title:i("first",s),...I,children:f?(0,M.jsx)(C,{...h.lastButtonIcon}):(0,M.jsx)(w,{...h.firstButtonIcon})}),(0,M.jsx)(S,{onClick:e=>{l(e,s-1)},disabled:r||0===s,color:"inherit","aria-label":i("previous",s),title:i("previous",s),...P??o,children:f?(0,M.jsx)(x,{...h.nextButtonIcon}):(0,M.jsx)(A,{...h.previousButtonIcon})}),(0,M.jsx)(k,{onClick:e=>{l(e,s+1)},disabled:r||-1!==n&&s>=Math.ceil(n/c)-1,color:"inherit","aria-label":i("next",s),title:i("next",s),...O??a,children:f?(0,M.jsx)(A,{...h.previousButtonIcon}):(0,M.jsx)(x,{...h.nextButtonIcon})}),d&&(0,M.jsx)(R,{onClick:e=>{l(e,Math.max(0,Math.ceil(n/c)-1))},disabled:r||s>=Math.ceil(n/c)-1,"aria-label":i("last",s),title:i("last",s),...T,children:f?(0,M.jsx)(w,{...h.firstButtonIcon}):(0,M.jsx)(C,{...h.lastButtonIcon})})]})}));var Sd=o(54587);function kd(e){return(0,Vc.Ay)("MuiTablePagination",e)}const Rd=(0,Ws.A)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Md;const Id=(0,m.Ay)(md,{name:"MuiTablePagination",slot:"Root"})((0,Hc.A)((({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})))),Pd=(0,m.Ay)(vd,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Rd.actions}`]:t.actions,...t.toolbar})})((0,Hc.A)((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Rd.actions}`]:{flexShrink:0,marginLeft:20}})))),Od=(0,m.Ay)("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),Td=(0,m.Ay)("p",{name:"MuiTablePagination",slot:"SelectLabel"})((0,Hc.A)((({theme:e})=>({...e.typography.body2,flexShrink:0})))),$d=(0,m.Ay)(Ku.A,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Rd.selectIcon}`]:t.selectIcon,[`& .${Rd.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Rd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),zd=(0,m.Ay)(Du.A,{name:"MuiTablePagination",slot:"MenuItem"})({}),Dd=(0,m.Ay)("p",{name:"MuiTablePagination",slot:"DisplayedRows"})((0,Hc.A)((({theme:e})=>({...e.typography.body2,flexShrink:0}))));function Ld({from:e,to:t,count:o}){return`${e}–${t} of ${-1!==o?o:`more than ${t}`}`}function Fd(e){return`Go to ${e} page`}const Nd=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiTablePagination"}),{ActionsComponent:n=Ed,backIconButtonProps:i,colSpan:a,component:l=md,count:c,disabled:u=!1,getItemAriaLabel:p=Fd,labelDisplayedRows:h=Ld,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:f,onPageChange:g,onRowsPerPageChange:b,page:v,rowsPerPage:y,rowsPerPageOptions:w=[10,25,50,100],SelectProps:C={},showFirstButton:x=!1,showLastButton:A=!1,slotProps:E={},slots:S={},...k}=o,R=o,I=(e=>{const{classes:t}=e;return(0,d.A)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},kd,t)})(R),P=E?.select??C,O=P.native?"option":zd;let T;l!==md&&"td"!==l||(T=a||1e3);const $=(0,Sd.A)(P.id),z=(0,Sd.A)(P.labelId),D={slots:S,slotProps:E},[L,F]=(0,Kc.A)("root",{ref:t,className:I.root,elementType:Id,externalForwardedProps:{...D,component:l,...k},ownerState:R,additionalProps:{colSpan:T}}),[N,H]=(0,Kc.A)("toolbar",{className:I.toolbar,elementType:Pd,externalForwardedProps:D,ownerState:R}),[j,B]=(0,Kc.A)("spacer",{className:I.spacer,elementType:Od,externalForwardedProps:D,ownerState:R}),[_,V]=(0,Kc.A)("selectLabel",{className:I.selectLabel,elementType:Td,externalForwardedProps:D,ownerState:R,additionalProps:{id:z}}),[W,G]=(0,Kc.A)("select",{className:I.select,elementType:$d,externalForwardedProps:D,ownerState:R}),[K,U]=(0,Kc.A)("menuItem",{className:I.menuItem,elementType:O,externalForwardedProps:D,ownerState:R}),[q,X]=(0,Kc.A)("displayedRows",{className:I.displayedRows,elementType:Dd,externalForwardedProps:D,ownerState:R});return(0,M.jsx)(L,{...F,children:(0,M.jsxs)(N,{...H,children:[(0,M.jsx)(j,{...B}),w.length>1&&(0,M.jsx)(_,{...V,children:m}),w.length>1&&(0,M.jsx)(W,{variant:"standard",...!P.variant&&{input:Md||(Md=(0,M.jsx)(lu.Ay,{}))},value:y,onChange:b,id:$,labelId:z,...P,classes:{...P.classes,root:(0,s.A)(I.input,I.selectRoot,(P.classes||{}).root),select:(0,s.A)(I.select,(P.classes||{}).select),icon:(0,s.A)(I.selectIcon,(P.classes||{}).icon)},disabled:u,...G,children:w.map((e=>(0,r.createElement)(K,{...U,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e)))}),(0,M.jsx)(q,{...X,children:h({from:0===c?0:v*y+1,to:-1===c?(v+1)*y:-1===y?c:Math.min(c,(v+1)*y),count:-1===c?-1:c,page:v})}),(0,M.jsx)(n,{className:I.actions,backIconButtonProps:i,count:c,nextIconButtonProps:f,onPageChange:g,page:v,rowsPerPage:y,showFirstButton:x,showLastButton:A,slotProps:E.actions,slots:S.actions,getItemAriaLabel:p,disabled:u})]})})})),Hd=Nd;var jd=o(27519),Bd=o(17726);function _d(e){return e.substring(2).toLowerCase()}function Vd(e){const{children:t,disableReactTree:o=!1,mouseEvent:n="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=e,l=r.useRef(!1),s=r.useRef(null),u=r.useRef(!1),d=r.useRef(!1);r.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const p=(0,c.A)((0,Bd.A)(t),s),h=(0,ce.A)((e=>{const t=d.current;d.current=!1;const n=(0,ki.A)(s.current);if(!u.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidtho=>{d.current=!0;const n=t.props[e];n&&n(o)},f={ref:p};return!1!==a&&(f[a]=m(a)),r.useEffect((()=>{if(!1!==a){const e=_d(a),t=(0,ki.A)(s.current),o=()=>{l.current=!0};return t.addEventListener(e,h),t.addEventListener("touchmove",o),()=>{t.removeEventListener(e,h),t.removeEventListener("touchmove",o)}}}),[h,a]),!1!==n&&(f[n]=m(n)),r.useEffect((()=>{if(!1!==n){const e=_d(n),t=(0,ki.A)(s.current);return t.addEventListener(e,h),()=>{t.removeEventListener(e,h)}}}),[h,n]),r.cloneElement(t,f)}var Wd=o(38572),Gd=o(49565),Kd=o(80688);function Ud(e){return(0,Vc.Ay)("MuiSkeleton",e)}(0,Ws.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const qd=Os.i7` 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } `,Xd=Os.i7` 0% { transform: translateX(-100%); } 50% { /* +0.5s of delay between each loop */ transform: translateX(100%); } 100% { transform: translateX(100%); } `,Yd="string"!=typeof qd?Os.AH` animation: ${qd} 2s ease-in-out 0.5s infinite; `:null,Qd="string"!=typeof Xd?Os.AH` &::after { animation: ${Xd} 2s linear 0.5s infinite; } `:null,Jd=(0,m.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!1!==o.animation&&t[o.animation],o.hasChildren&&t.withChildren,o.hasChildren&&!o.width&&t.fitContent,o.hasChildren&&!o.height&&t.heightAuto]}})((0,Hc.A)((({theme:e})=>{const t=(r=e.shape.borderRadius,String(r).match(/[\d.\-+]*\s*(.*)/)[1]||""||"px"),o=(n=e.shape.borderRadius,parseFloat(n));var n,r;return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,tu.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${o}${t}/${Math.round(o/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Yd||{animation:`${qd} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(\n 90deg,\n transparent,\n ${(e.vars||e).palette.action.hover},\n transparent\n )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Qd||{"&::after":{animation:`${Xd} 2s linear 0.5s infinite`}}}]}}))),Zd=r.forwardRef((function(e,t){const o=(0,Bc.b)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:r,component:i="span",height:a,style:l,variant:c="text",width:u,...p}=o,h={...o,animation:n,component:i,variant:c,hasChildren:Boolean(p.children)},m=(e=>{const{classes:t,variant:o,animation:n,hasChildren:r,width:i,height:a}=e,l={root:["root",o,n,r&&"withChildren",r&&!i&&"fitContent",r&&!a&&"heightAuto"]};return(0,d.A)(l,Ud,t)})(h);return(0,M.jsx)(Jd,{as:i,ref:t,className:(0,s.A)(m.root,r),ownerState:h,...p,style:{width:u,height:a,...l}})})),ep=Zd,tp=Cd.A,op=tp((0,M.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),np=tp((0,M.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),rp=tp((0,M.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),ip=tp((0,M.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),ap=tp((0,M.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),lp=tp((0,M.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),sp=tp((0,M.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),cp=(tp((0,M.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),tp((0,M.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),tp((0,M.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ColumnIcon")),up=tp((0,M.jsx)("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),dp=tp((0,M.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),pp=tp((0,M.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),hp=tp((0,M.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),mp=tp((0,M.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),fp=tp((0,M.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),gp=tp((0,M.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),bp=tp((0,M.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),vp=tp((0,M.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),yp=tp((0,M.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-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-2zm6 4c1.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"}),"Drag"),wp=tp((0,M.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Cp=tp((0,M.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),xp=tp((0,M.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),Ap=tp((0,M.jsx)("g",{children:(0,M.jsx)("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Ep=tp((0,M.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Clear"),Sp=(tp((0,M.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),tp((0,M.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")),kp=tp((0,M.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),Rp=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],Mp=["onRowsPerPageChange","material","disabled"],Ip=["material"],Pp=["autoFocus","label","fullWidth","slotProps","className","material"],Op=["material"],Tp=["material"],$p=["material"],zp=["material"],Dp=["material"],Lp=["material"],Fp=["material"],Np=["material"],Hp=["material","label","className"],jp=["material"],Bp=["inert","iconStart","iconEnd","children","material"],_p=["slotProps","material"],Vp=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],Wp=["key"],Gp=["inputProps","InputProps","InputLabelProps"],Kp=["slotProps","material"],Up=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],qp=["native"],Xp=(0,m.Ay)(id.A)((({theme:e})=>({[`&.${ad.A.positionEnd} .${nd.A.sizeSmall}`]:{marginRight:e.spacing(-.75)}}))),Yp=(0,m.Ay)(Gu,{shouldForwardProp:e=>"fullWidth"!==e})((({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${ju.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]}))),Qp=(0,m.Ay)(Jc.A,{shouldForwardProp:e=>"density"!==e})((({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]}))),Jp=(0,m.Ay)($u)({[`& .${Pu.A.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),Zp=(0,a.R)((function(e,t){const{id:o,label:r,labelId:i,material:a,disabled:s,slotProps:c,onChange:u,onKeyDown:d,onOpen:p,onClose:h,size:m,style:f,fullWidth:g}=e,b=(0,l.A)(e,Rp),v={PaperProps:{onKeyDown:d}};return h&&(v.onClose=h),(0,M.jsxs)(Fu.A,{size:m,fullWidth:g,style:f,disabled:s,ref:t,children:[(0,M.jsx)(Kd.A,{id:i,htmlFor:o,shrink:!0,variant:"outlined",children:r}),(0,M.jsx)(Ku.A,(0,n.A)({id:o,labelId:i,label:r,displayEmpty:!0,onChange:u},b,{variant:"outlined",notched:!0,inputProps:c?.htmlInput,onOpen:p,MenuProps:v,size:m},a))]})})),eh=(0,m.Ay)(Hd)((({theme:e})=>({[`& .${Rd.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Rd.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),th=(0,a.R)((function(e,t){const{onRowsPerPageChange:o,material:i,disabled:a}=e,s=(0,l.A)(e,Mp),c=r.useMemo((()=>{if(a)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}}),[a]),u=(0,W.h)(),d=(0,S.A)(),{estimatedRowCount:p}=d;return(0,M.jsx)(eh,(0,n.A)({component:"div",onRowsPerPageChange:(0,ce.A)((e=>{o?.(Number(e.target.value))})),labelRowsPerPage:u.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:e=>u.current.getLocaleText("paginationDisplayedRows")((0,n.A)({},e,{estimated:p})),getItemAriaLabel:u.current.getLocaleText("paginationItemAriaLabel")},c,s,i,{ref:t}))})),oh=(0,a.R)((function(e,t){const{material:o}=e,r=(0,l.A)(e,Ip);return(0,M.jsx)(Qc,(0,n.A)({},r,o,{ref:t}))})),nh=(0,a.R)((function(e,t){const{autoFocus:o,label:i,fullWidth:a,slotProps:u,className:d,material:p}=e,h=(0,l.A)(e,Pp),m=r.useRef(null),f=(0,c.A)(m,t),g=r.useRef(null);return r.useEffect((()=>{if(o){const e=m.current?.querySelector("input");e?.focus({preventScroll:!0})}else!1===o&&g.current&&g.current.stop({})}),[o]),i?(0,M.jsx)(Yp,{className:d,control:(0,M.jsx)(Qp,(0,n.A)({},h,p,{inputProps:u?.htmlInput,ref:f,touchRippleRef:g})),label:i,fullWidth:a}):(0,M.jsx)(Qp,(0,n.A)({},h,p,{className:(0,s.A)(d,p?.className),inputProps:u?.htmlInput,ref:f,touchRippleRef:g}))})),rh=(0,a.R)((function(e,t){const{material:o}=e,r=(0,l.A)(e,Op);return(0,M.jsx)(eu.A,(0,n.A)({},r,o,{ref:t}))})),ih=(0,a.R)((function(e,t){const{material:o}=e,r=(0,l.A)(e,Tp);return(0,M.jsx)(au,(0,n.A)({},r,o,{ref:t}))})),ah=(0,a.R)((function(e,t){const{material:o}=e,r=(0,l.A)(e,$p);return(0,M.jsx)(xu,(0,n.A)({},r,o,{ref:t}))})),lh=(0,a.R)((function(e,t){const{material:o}=e,r=(0,l.A)(e,zp);return(0,M.jsx)(od.A,(0,n.A)({},r,o,{ref:t}))})),sh=(0,a.R)((function(e,t){const{material:o}=e,r=(0,l.A)(e,Dp);return(0,M.jsx)(Zc.A,(0,n.A)({},r,o,{ref:t}))})),ch=(0,a.R)((function(e,t){const{material:o}=e,r=(0,l.A)(e,Lp);return(0,M.jsx)(rd.A,(0,n.A)({},r,o,{ref:t}))})),uh=(0,a.R)((function(e,t){const{material:o}=e,r=(0,l.A)(e,Fp);return(0,M.jsx)(ld.A,(0,n.A)({},r,o,{ref:t}))})),dh=(0,a.R)((function(e,t){const{material:o}=e,r=(0,l.A)(e,Np);return(0,M.jsx)(ep,(0,n.A)({},r,o,{ref:t}))})),ph=(0,a.R)((function(e,t){const{material:o,label:r,className:i}=e,a=(0,l.A)(e,Hp);return r?(0,M.jsx)(Yp,{className:i,control:(0,M.jsx)(td,(0,n.A)({},a,o,{ref:t})),label:r}):(0,M.jsx)(td,(0,n.A)({},a,o,{className:i,ref:t}))})),hh=(0,a.R)((function(e,t){const{material:o}=e,r=(0,l.A)(e,jp);return(0,M.jsx)(zu.A,(0,n.A)({},r,o,{ref:t}))}));function mh(e,t=!0){if(!e)return;const{slotProps:o,material:r}=e,i=(0,l.A)(e,Kp);t&&(i.startAdornment&&(i.startAdornment=(0,M.jsx)(Xp,{position:"start",children:i.startAdornment})),i.endAdornment&&(i.endAdornment=(0,M.jsx)(Xp,{position:"end",children:i.endAdornment})));for(const e in r)Object.hasOwn(r,e)&&(i[e]=r[e]);return o?.htmlInput&&(i.inputProps?i.inputProps=(0,n.A)({},i.inputProps,o?.htmlInput):i.inputProps=o?.htmlInput),i}const fh={"bottom-start":"top left","bottom-end":"top right"};function gh(e,t){return function(e,t){return void 0===e.focusTrap?t:(0,M.jsx)(su.A,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:(0,M.jsx)("div",{tabIndex:-1,children:t})})}(e,function(e,t){return void 0===e.onClickAway?t:(0,M.jsx)(Vd,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}(e,t))}const bh={booleanCellTrueIcon:wp,booleanCellFalseIcon:fp,columnMenuIcon:mp,openFilterButtonIcon:ap,filterPanelDeleteIcon:fp,columnFilteredIcon:lp,columnSelectorIcon:cp,columnSortedAscendingIcon:op,columnSortedDescendingIcon:np,columnResizeIcon:up,densityCompactIcon:dp,densityStandardIcon:pp,densityComfortableIcon:hp,exportIcon:kp,moreActionsIcon:Cp,treeDataCollapseIcon:ip,treeDataExpandIcon:rp,groupingCriteriaCollapseIcon:ip,groupingCriteriaExpandIcon:rp,detailPanelExpandIcon:gp,detailPanelCollapseIcon:bp,rowReorderIcon:yp,quickFilterIcon:sp,quickFilterClearIcon:Ep,columnMenuHideIcon:xp,columnMenuSortAscendingIcon:op,columnMenuSortDescendingIcon:np,columnMenuUnsortIcon:null,columnMenuFilterIcon:lp,columnMenuManageColumnsIcon:Ap,columnMenuClearIcon:Ep,loadIcon:vp,filterPanelAddIcon:gp,filterPanelRemoveAllIcon:Sp,columnReorderIcon:yp,menuItemCheckIcon:wp},vh={baseAutocomplete:function(e){const t=(0,S.A)(),{id:o,multiple:r,freeSolo:i,options:a,getOptionLabel:s,isOptionEqualToValue:c,value:u,onChange:d,label:p,placeholder:h,slotProps:m,material:f}=e,g=(0,l.A)(e,Vp);return(0,M.jsx)(Fc.A,(0,n.A)({id:o,multiple:r,freeSolo:i,options:a,getOptionLabel:s,isOptionEqualToValue:c,value:u,onChange:d,renderTags:(e,t)=>e.map(((e,o)=>{const r=t({index:o}),{key:i}=r,a=(0,l.A)(r,Wp);return(0,M.jsx)(Zc.A,(0,n.A)({variant:"outlined",size:"small",label:"string"==typeof e?e:s?.(e)},a),i)})),renderInput:e=>{const{inputProps:o,InputProps:r,InputLabelProps:i}=e,a=(0,l.A)(e,Gp);return(0,M.jsx)(Lu.A,(0,n.A)({},a,{label:p,placeholder:h,inputProps:o,InputProps:mh(r,!1),InputLabelProps:(0,n.A)({shrink:!0},i)},m?.textField,t.slotProps?.baseTextField))}},g,f))},baseBadge:oh,baseCheckbox:nh,baseChip:sh,baseCircularProgress:rh,baseDivider:ih,baseInput:function(e){return(0,M.jsx)(lu.Ay,(0,n.A)({},mh(e)))},baseLinearProgress:ah,baseMenuList:hh,baseMenuItem:function(e){const{inert:t,iconStart:o,iconEnd:i,children:a,material:s}=e,c=(0,l.A)(e,Bp);return t&&(c.disableRipple=!0),r.createElement(Du.A,(0,n.A)({},c,s),[o&&(0,M.jsx)(Ru,{children:o},"1"),(0,M.jsx)(Jp,{children:a},"2"),i&&(0,M.jsx)(Ru,{children:i},"3")])},baseTextField:function(e){const{slotProps:t,material:o}=e,r=(0,l.A)(e,_p);return(0,M.jsx)(Lu.A,(0,n.A)({variant:"outlined"},r,o,{inputProps:t?.htmlInput,InputProps:mh(t?.input),InputLabelProps:(0,n.A)({shrink:!0},t?.inputLabel)}))},baseButton:lh,baseIconButton:ch,baseTooltip:uh,basePagination:th,basePopper:function(e){const{open:t,children:o,className:i,flip:a,onExited:s,onDidShow:c,onDidHide:u,id:d,target:p,transition:h,placement:m,material:f}=e,g=(0,l.A)(e,Up),b=r.useMemo((()=>{const e=[{name:"preventOverflow",options:{padding:8}}];return a&&e.push({name:"flip",enabled:!0,options:{rootBoundary:"document"}}),(c||u)&&e.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c?.()},effect:()=>()=>{u?.()}}),e}),[a,c,u]);let v;if(h){const t=e=>t=>{e&&e(),s&&s(t)};v=r=>gh(e,(0,M.jsx)(Wd.A,(0,n.A)({},r.TransitionProps,{style:{transformOrigin:fh[r.placement]},onExited:t(r.TransitionProps?.onExited),children:(0,M.jsx)(Gd.A,{children:o})})))}else v=gh(e,o);return(0,M.jsx)(jd.A,(0,n.A)({id:d,className:i,open:t,anchorEl:p,transition:h,placement:m,modifiers:b},g,f,{children:v}))},baseSelect:Zp,baseSelectOption:function(e){let{native:t}=e,o=(0,l.A)(e,qp);return t?(0,M.jsx)("option",(0,n.A)({},o)):(0,M.jsx)(Du.A,(0,n.A)({},o))},baseSkeleton:dh,baseSwitch:ph},yh=(0,n.A)({},vh,bh),wh=(0,Y.A)("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});var Ch=o(57618),xh=o(16620),Ah=o(25054);const Eh=["render","className","onClick","onPointerUp"],Sh=(0,a.R)((function(e,t){const{render:o,className:i,onClick:a,onPointerUp:s}=e,u=(0,l.A)(e,Eh),d=(0,S.A)(),p=(0,$e.A)(),h=(0,$e.A)(),m=(0,W.h)(),f=(0,b.Nc)(m,B),g=f.open&&f.openedPanelValue===V.filters,v=(0,b.Nc)(m,Po.Ai).length,y={open:g,filterCount:v},w="function"==typeof i?i(y):i,{filterPanelTriggerRef:C}=K(),x=(0,c.A)(t,C),A=(0,Ah._)(d.slots.baseButton,o,(0,n.A)({},d.slotProps?.baseButton,{id:p,"aria-haspopup":"true","aria-expanded":g?"true":void 0,"aria-controls":g?h:void 0,onClick:e=>{g?m.current.hidePreferences():m.current.showPreferences(V.filters,h,p),a?.(e)},onPointerUp:e=>{g&&e.stopPropagation(),s?.(e)},className:w},u,{ref:x}),y);return(0,M.jsx)(r.Fragment,{children:A})})),kh=["render","className","onClick","onPointerUp"],Rh=(0,a.R)((function(e,t){const{render:o,className:i,onClick:a,onPointerUp:s}=e,u=(0,l.A)(e,kh),d=(0,S.A)(),p=(0,$e.A)(),h=(0,$e.A)(),m=(0,W.h)(),f=(0,b.Nc)(m,B),g=f.open&&f.openedPanelValue===V.columns,v={open:g},y="function"==typeof i?i(v):i,{columnsPanelTriggerRef:w}=K(),C=(0,c.A)(t,w),x=(0,Ah._)(d.slots.baseButton,o,(0,n.A)({},d.slotProps?.baseButton,{id:p,"aria-haspopup":"true","aria-expanded":g?"true":void 0,"aria-controls":g?h:void 0,className:y},u,{onPointerUp:e=>{g&&e.stopPropagation(),s?.(e)},onClick:e=>{g?m.current.hidePreferences():m.current.showPreferences(V.columns,h,p),a?.(e)},ref:C}),v);return(0,M.jsx)(r.Fragment,{children:x})})),Mh=["render","options","onClick"],Ih=(0,a.R)((function(e,t){const{render:o,options:i,onClick:a}=e,s=(0,l.A)(e,Mh),c=(0,S.A)(),u=(0,W.h)(),d=(0,Ah._)(c.slots.baseButton,o,(0,n.A)({},c.slotProps?.baseButton,{onClick:e=>{u.current.exportDataAsPrint(i),a?.(e)}},s,{ref:t}));return(0,M.jsx)(r.Fragment,{children:d})})),Ph=["render","options","onClick"],Oh=(0,a.R)((function(e,t){const{render:o,options:i,onClick:a}=e,s=(0,l.A)(e,Ph),c=(0,S.A)(),u=(0,W.h)(),d=(0,Ah._)(c.slots.baseButton,o,(0,n.A)({},c.slotProps?.baseButton,{onClick:e=>{u.current.exportDataAsCsv(i),a?.(e)}},s,{ref:t}));return(0,M.jsx)(r.Fragment,{children:d})}));var Th=o(57798),$h=o(32675),zh=o(49945),Dh=o(28525);const Lh=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],Fh=["ref","slotProps"],Nh=(0,Y.A)("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),Hh=(0,Y.A)(xh.I,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})((({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:e.expanded?0:1,pointerEvents:e.expanded?"none":"auto",transition:g.f.transition(["opacity"])}))),jh=(0,Y.A)((e=>{throw new Error("Failed assertion: should not be rendered")}),{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})((({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:e.expanded?1:0,transition:g.f.transition(["width","opacity"])})));function Bh(e){const t=(0,W.h)(),o=(0,S.A)(),r={classes:o.classes,expanded:!1},i=(e=>{const{classes:t}=e;return(0,d.A)({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},f.B,t)})(r),{quickFilterParser:a,quickFilterFormatter:c,debounceMs:u,className:p,slotProps:h}=e,m=(0,l.A)(e,Lh);return(0,M.jsx)(Th.e,{parser:a,formatter:c,debounceMs:u,render:(e,a)=>{const c=(0,n.A)({},r,{expanded:a.expanded});return(0,M.jsxs)(Nh,(0,n.A)({},e,{className:(0,s.A)(i.root,p),children:[(0,M.jsx)($h.m,{render:e=>(0,M.jsx)(o.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:(0,M.jsx)(Hh,(0,n.A)({className:i.trigger},e,{ownerState:c,color:"default","aria-disabled":a.expanded,children:(0,M.jsx)(o.slots.quickFilterIcon,{fontSize:"small"})}))})}),(0,M.jsx)(zh.X,{render:e=>{let{ref:r,slotProps:a}=e,s=(0,l.A)(e,Fh);return(0,M.jsx)(jh,(0,n.A)({as:o.slots.baseTextField,className:i.control,ownerState:c,inputRef:r,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:(0,n.A)({input:(0,n.A)({startAdornment:(0,M.jsx)(o.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:s.value?(0,M.jsx)(Dh.x,{render:(0,M.jsx)(o.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:(0,M.jsx)(o.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},a?.input)},a)},o.slotProps?.baseTextField,s,h?.root,m))}})]}))}})}const _h=["className"],Vh=["className"],Wh=e=>{const{classes:t}=e;return(0,d.A)({divider:["toolbarDivider"],label:["toolbarLabel"]},f.B,t)},Gh=(0,Y.A)(Ce,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:g.f.spacing(0,.5)}),Kh=(0,Y.A)("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:g.f.typography.font.large,fontWeight:g.f.typography.fontWeight.medium,margin:g.f.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function Uh(e){const t=(0,l.A)(e,_h),o=(0,S.A)(),r=Wh(o);return(0,M.jsx)(Gh,(0,n.A)({as:o.slots.baseDivider,orientation:"vertical",className:r.divider},t))}function qh(e){const t=(0,l.A)(e,Vh),o=(0,S.A)(),r=Wh(o);return(0,M.jsx)(Kh,(0,n.A)({className:r.label},t))}const Xh=(0,n.A)({},yh,{cell:rc,skeletonCell:bl,columnHeaderFilterIconButton:function(e){return e.counter?(0,M.jsx)(Cl,(0,n.A)({},e)):null},columnHeaderSortIcon:Ml,columnMenu:Dc,columnHeaders:Ec,detailPanels:function(e){return null},bottomContainer:function(e){const t=(0,d.A)({root:["bottomContainer"]},f.B,{});return(0,M.jsx)(wh,(0,n.A)({},e,{className:(0,s.A)(t.root,f.x["container--bottom"]),role:"presentation"}))},footer:Dl,footerRowCount:Nl,toolbar:function(e){const{showQuickFilter:t=!0,quickFilterProps:o,csvOptions:i,printOptions:a,additionalItems:l,additionalExportMenuItems:s}=e,c=(0,W.h)(),u=(0,S.A)(),[d,p]=r.useState(!1),h=r.useRef(null),m=(0,$e.A)(),f=(0,$e.A)(),g=!i?.disableToolbarButton||!a?.disableToolbarButton||s,b=()=>p(!1);return(0,M.jsxs)(Ch.M,{children:[u.label&&(0,M.jsx)(qh,{children:u.label}),!u.disableColumnSelector&&(0,M.jsx)(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarColumns"),children:(0,M.jsx)(Rh,{render:(0,M.jsx)(xh.I,{}),children:(0,M.jsx)(u.slots.columnSelectorIcon,{fontSize:"small"})})}),!u.disableColumnFilter&&(0,M.jsx)(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarFilters"),children:(0,M.jsx)(Sh,{render:(e,t)=>(0,M.jsx)(xh.I,(0,n.A)({},e,{color:t.filterCount>0?"primary":"default",children:(0,M.jsx)(u.slots.baseBadge,{badgeContent:t.filterCount,color:"primary",variant:"dot",children:(0,M.jsx)(u.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),l,g&&(!u.disableColumnFilter||!u.disableColumnSelector)&&(0,M.jsx)(Uh,{}),g&&(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarExport"),children:(0,M.jsx)(xh.I,{ref:h,id:f,"aria-controls":m,"aria-haspopup":"true","aria-expanded":d?"true":void 0,onClick:()=>p(!d),children:(0,M.jsx)(u.slots.exportIcon,{fontSize:"small"})})}),(0,M.jsx)(to,{target:h.current,open:d,onClose:b,position:"bottom-end",children:(0,M.jsxs)(u.slots.baseMenuList,(0,n.A)({id:m,"aria-labelledby":f,autoFocusItem:!0},u.slotProps?.baseMenuList,{children:[!a?.disableToolbarButton&&(0,M.jsx)(Ih,{render:(0,M.jsx)(u.slots.baseMenuItem,(0,n.A)({},u.slotProps?.baseMenuItem)),options:a,onClick:b,children:c.current.getLocaleText("toolbarExportPrint")}),!i?.disableToolbarButton&&(0,M.jsx)(Oh,{render:(0,M.jsx)(u.slots.baseMenuItem,(0,n.A)({},u.slotProps?.baseMenuItem)),options:i,onClick:b,children:c.current.getLocaleText("toolbarExportCSV")}),s?.(b)]}))})]}),t&&(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(Uh,{}),(0,M.jsx)(Bh,(0,n.A)({},o))]})]})},pinnedRows:function(e){return null},loadingOverlay:os,noResultsOverlay:Lc,noRowsOverlay:ns,noColumnsOverlay:rs,pagination:function(){const e=(0,W.h)(),t=(0,S.A)(),o=(0,b.Nc)(e,Fo),n=(0,b.Nc)(e,No),i=(0,b.Nc)(e,_o),{paginationMode:a,loading:l}=t,s=-1===n&&"server"===a&&l,c=r.useMemo((()=>Math.max(0,i-1)),[i]),u=r.useMemo((()=>-1===n||o.page<=c?o.page:c),[c,o.page,n]),d=r.useCallback((t=>{e.current.setPageSize(t)}),[e]),p=r.useCallback(((t,o)=>{e.current.setPage(o)}),[e]),h=(e=>{for(let o=0;o{const{classes:t}=e;return(0,d.A)({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},f.B,t)})(l),p=(0,b.Nc)(t,j.OV),h=(0,b.Nc)(t,qn),m=(0,b.Nc)(t,Yn),g=r.useMemo((()=>h?Array.from(m.values()):p),[h,m,p]),{sort:v,searchPredicate:y=Ps,autoFocusSearchField:w=!0,disableShowHideToggle:C=!1,disableResetButton:x=!1,toggleAllMode:A="all",getTogglableColumns:E,searchInputProps:k}=e,R=r.useMemo((()=>((e,t)=>{const o=new Set(Object.keys(e).filter((t=>!1===e[t]))),n=new Set(Object.keys(t).filter((e=>!1===t[e])));if(o.size!==n.size)return!1;let r=!0;return o.forEach((e=>{n.has(e)||(r=!1)})),r})(a,i)),[a,i]),I=r.useMemo((()=>{switch(v){case"asc":return[...g].sort(((e,t)=>Fs.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...g].sort(((e,t)=>-Fs.compare(e.headerName||e.field,t.headerName||t.field)));default:return g}}),[g,v]),P=e=>{const{name:o}=e.target;t.current.setColumnVisibility(o,!1===a[o])},O=r.useMemo((()=>{const e=E?E(I):null,t=e?I.filter((({field:t})=>e.includes(t))):I;return s?t.filter((e=>y(e,s.toLowerCase()))):t}),[I,s,y,E]),T=r.useCallback((e=>{const o=(0,j.FY)(t),r=(0,n.A)({},o),i=E?E(g):null;return("filteredOnly"===A?O:g).forEach((t=>{t.hideable&&(null==i||i.includes(t.field))&&(e?delete r[t.field]:r[t.field]=!1)})),t.current.setColumnVisibilityModel(r)}),[t,g,E,A,O]),$=r.useCallback((e=>{c(e.target.value)}),[]),z=r.useMemo((()=>O.filter((e=>e.hideable))),[O]),D=r.useMemo((()=>z.every((e=>null==a[e.field]||!1!==a[e.field]))),[a,z]),L=r.useMemo((()=>z.every((e=>!1===a[e.field]))),[a,z]),F=r.useRef(null);r.useEffect((()=>{w?o.current?.focus():F.current&&"function"==typeof F.current.focus&&F.current.focus()}),[w]);let N=!1;const H=e=>!1===N&&!1!==e.hideable&&(N=!0,!0),B=r.useCallback((()=>{c(""),o.current?.focus()}),[]);return(0,M.jsxs)(r.Fragment,{children:[(0,M.jsx)(js,{className:u.header,ownerState:l,children:(0,M.jsx)(Bs,(0,n.A)({as:l.slots.baseTextField,ownerState:l,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:o,className:u.searchInput,value:s,onChange:$,size:"small",type:"search",slotProps:{input:{startAdornment:(0,M.jsx)(l.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:(0,M.jsx)(l.slots.baseIconButton,(0,n.A)({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:s?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:B,edge:"end"},l.slotProps?.baseIconButton,{children:(0,M.jsx)(l.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},l.slotProps?.baseTextField,k))}),(0,M.jsx)(Hs,{ownerState:l,children:(0,M.jsxs)(Ns,{className:u.root,ownerState:l,children:[O.map((e=>(0,M.jsx)(l.slots.baseCheckbox,(0,n.A)({className:u.row,disabled:!1===e.hideable||h,checked:!1!==a[e.field],onChange:P,name:e.field,inputRef:H(e)?F:void 0,label:e.headerName||e.field,density:"compact",fullWidth:!0},l.slotProps?.baseCheckbox),e.field))),0===O.length&&(0,M.jsx)(Vs,{ownerState:l,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),C&&x?null:(0,M.jsxs)(_s,{ownerState:l,className:u.footer,children:[C?(0,M.jsx)("span",{}):(0,M.jsx)(l.slots.baseCheckbox,(0,n.A)({disabled:0===z.length||h,checked:D,indeterminate:!D&&!L,onChange:()=>T(!D),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},l.slotProps?.baseCheckbox)),x?null:(0,M.jsx)(l.slots.baseButton,(0,n.A)({onClick:()=>t.current.setColumnVisibilityModel(i),disabled:R||h},l.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]})]})},panel:Xs,row:Zs}),Yh={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1},Qh=Xh,Jh=new TextEncoder;let Zh=2048,em=new ArrayBuffer(Zh),tm=new Uint8Array(em),om=new Int32Array(em);function nm(e,t){return e<>>32-t}function rm(e){return function(e){return`rgba(from ${e} r g b / 1)`}(e)}function im(e){if(e)return`${e.fontWeight} ${e.fontSize} / ${e.lineHeight} ${e.fontFamily}`}class am{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,o={}){let n=this.events[e];n||(n={highPriority:new Map,regular:new Map},this.events[e]=n),o.isFirst?n.highPriority.set(t,!0):n.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const o=this.events[e];if(!o)return;const n=Array.from(o.highPriority.keys()),r=Array.from(o.regular.keys());for(let e=n.length-1;e>=0;e-=1){const r=n[e];o.highPriority.has(r)&&r.apply(this,t)}for(let e=0;e(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{this.value=e,this.listeners.forEach((t=>t(e)))},this.value=e,this.listeners=new Set}}const sm=Symbol("mui.api_private");let cm=0;const um={hooks:{useCSSVariables:function(){const e=(0,cl.A)();return r.useMemo((()=>{const t=function(e){const t=2*e.length;t>Zh&&(Zh=t+(4-t%4),em=new ArrayBuffer(Zh),tm=new Uint8Array(em),om=new Int32Array(em));const o=0|Jh.encodeInto(e,tm).written;let n=0,r=374761393+(0+o|0)|0;if(o<16)for(;(n+3|0)>>15,2246822519),r=Math.imul(r^r>>>13,3266489917),((r^r>>>16)>>>0).toString()}(function(e){const t=new WeakSet;return JSON.stringify(e,((e,o)=>{if(null!==o&&"object"==typeof o){if(t.has(o))return null;t.add(o)}return o}))}(e)),o=function(e){const t=function(e){return e.vars?e.vars.palette.TableCell.border:"light"===e.palette.mode?(0,tu.a)((0,tu.X4)(e.palette.divider,1),.88):(0,tu.e$)((0,tu.X4)(e.palette.divider,1),.68)}(e),o=e.palette.DataGrid,n=o?.bg??(e.vars||e).palette.background.default,r=o?.headerBg??n,i=o?.pinnedBg??n,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:(0,tu.X4)(e.palette.background.default,e.palette.action.disabledOpacity),l="dark"===e.palette.mode?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 95%, #fff)`:(e.vars||e).palette.background.paper,s=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,c=function(e){return e.vars?e.vars.shape.borderRadius:"number"==typeof e.shape.borderRadius?`${e.shape.borderRadius}px`:e.shape.borderRadius}(e),u=e.vars?.font?.body2??im(e.typography.body2),d=e.vars?.font?.caption??im(e.typography.caption),p=e.vars?.font?.body1??im(e.typography.body1),h=g.f.keys;return{[h.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[h.colors.border.base]:t,[h.colors.background.base]:n,[h.colors.background.overlay]:l,[h.colors.background.backdrop]:a,[h.colors.foreground.base]:(e.vars||e).palette.text.primary,[h.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[h.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[h.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[h.colors.foreground.error]:(e.vars||e).palette.error.dark,[h.colors.interactive.hover]:(e.vars||e).palette.action.hover,[h.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[h.colors.interactive.focus]:rm((e.vars||e).palette.primary.main),[h.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[h.colors.interactive.disabled]:rm((e.vars||e).palette.action.disabled),[h.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[h.colors.interactive.selected]:s,[h.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[h.header.background.base]:r,[h.cell.background.pinned]:i,[h.radius.base]:c,[h.typography.fontFamily.base]:e.typography.fontFamily,[h.typography.fontWeight.light]:e.typography.fontWeightLight,[h.typography.fontWeight.regular]:e.typography.fontWeightRegular,[h.typography.fontWeight.medium]:e.typography.fontWeightMedium,[h.typography.fontWeight.bold]:e.typography.fontWeightBold,[h.typography.font.body]:u,[h.typography.font.small]:d,[h.typography.font.large]:p,[h.transitions.easing.easeIn]:e.transitions.easing.easeIn,[h.transitions.easing.easeOut]:e.transitions.easing.easeOut,[h.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[h.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[h.transitions.duration.base]:`${e.transitions.duration.short}ms`,[h.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[h.shadows.base]:(e.vars||e).shadows[2],[h.shadows.overlay]:(e.vars||e).shadows[8],[h.zIndex.panel]:(e.vars||e).zIndex.modal,[h.zIndex.menu]:(e.vars||e).zIndex.modal}}(e);return{id:t,variables:o}}),[e])},useGridAriaAttributes:()=>{const e=y(),t=(0,S.A)(),o=(0,b.Nc)(e,j.iv),n=(0,b.Nc)(e,Po.O7),r=(0,b.Nc)(e,fo),i=(0,b.Nc)(e,Se.OQ),a=t["aria-label"],l=t["aria-labelledby"];return{role:"grid","aria-label":a||l||!t.label?a:t.label,"aria-labelledby":l,"aria-colcount":o.length,"aria-rowcount":r+1+i+n,"aria-multiselectable":Pr(t)}},useGridRowAriaAttributes:()=>{const e=y(),t=(0,b.Nc)(e,fo);return r.useCallback(((o,n)=>{const r={},i=n+t+2;return r["aria-rowindex"]=i,e.current.isRowSelectable(o.id)&&(r["aria-selected"]=e.current.isRowSelected(o.id)),r}),[e,t])},useCellAggregationResult:()=>null}},dm=function(e,t){const o=(e=>{const t=(0,cl.A)(),o=r.useMemo((()=>(0,ul.A)({props:e,theme:t,name:"MuiDataGrid"})),[t,e]),i=r.useMemo((()=>(0,n.A)({},dl,o.localeText)),[o.localeText]),a=r.useMemo((()=>function({defaultSlots:e,slots:t}){const o=t;if(!o||0===Object.keys(o).length)return e;const r=(0,n.A)({},e);return Object.keys(o).forEach((e=>{const t=e;void 0!==o[t]&&(r[t]=o[t])})),r}({defaultSlots:Qh,slots:o.slots})),[o.slots]),l=r.useMemo((()=>Object.keys(fa).reduce(((e,t)=>(e[t]=o[t]??fa[t],e)),{})),[o]);return r.useMemo((()=>(0,n.A)({},o,l,{localeText:i,slots:a},(e=>(0,n.A)({},Yh,e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}))(o))),[o,i,a,l])})(e),i=function(e,t){const o=r.useRef(null),n=r.useRef(null);n.current||(n.current=function(e){const t=e.current?.[sm];if(t)return t;const o={},n={state:o,store:lm.create(o),instanceId:{id:cm}};return cm+=1,n.getPublicApi=()=>e.current,n.register=(t,o)=>{Object.keys(o).forEach((r=>{const i=o[r],a=n[r];if(!0===a?.spying?a.target=i:n[r]=i,"public"===t){const t=e.current,o=t[r];!0===o?.spying?o.target=i:t[r]=i}}))},n.register("private",{caches:{},eventManager:new am}),n}(o)),o.current||(o.current=function(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[sm]:e.current}}(n));const i=r.useCallback(((...e)=>{const[o,r,i={}]=e;if(i.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(i)&&i.isPropagationStopped())return;const a=t.signature===Oo.DataGridPro||t.signature===Oo.DataGridPremium?{api:n.current.getPublicApi()}:{};n.current.eventManager.emit(o,r,i,a)}),[n,t.signature]),a=r.useCallback(((e,t,o)=>{n.current.eventManager.on(e,t,o);const r=n.current;return()=>{r.eventManager.removeListener(e,t)}}),[n]);return on(n,{subscribeEvent:a,publishEvent:i},"public"),e&&!e.current?.state&&(e.current=o.current),r.useImperativeHandle(e,(()=>o.current),[o]),r.useEffect((()=>{const e=n.current;return()=>{e.publishEvent("unmount")}}),[n]),n}(o.apiRef,o);return sl(i,o),(0,M.jsx)(Dr,{privateApiRef:i,configuration:um,props:o,children:(0,M.jsx)(Rr,(0,n.A)({className:o.className,style:o.style,sx:o.sx},o.slotProps?.root,{ref:t}))})},pm=r.memo((0,a.R)(dm));dm.propTypes={apiRef:i.shape({current:i.object}),"aria-label":i.string,"aria-labelledby":i.string,autoHeight:i.bool,autoPageSize:i.bool,autosizeOnMount:i.bool,autosizeOptions:i.shape({columns:i.arrayOf(i.string),disableColumnVirtualization:i.bool,expand:i.bool,includeHeaders:i.bool,includeOutliers:i.bool,outliersFactor:i.number}),cellModesModel:i.object,checkboxSelection:i.bool,classes:i.object,className:i.string,clipboardCopyCellDelimiter:i.string,columnBufferPx:i.number,columnGroupHeaderHeight:i.number,columnGroupingModel:i.arrayOf(i.object),columnHeaderHeight:i.number,columns:i.arrayOf(i.object).isRequired,columnVisibilityModel:i.object,dataSource:i.shape({getRows:i.func.isRequired,updateRow:i.func}),dataSourceCache:i.shape({clear:i.func.isRequired,get:i.func.isRequired,set:i.func.isRequired}),density:i.oneOf(["comfortable","compact","standard"]),disableAutosize:i.bool,disableColumnFilter:i.bool,disableColumnMenu:i.bool,disableColumnResize:i.bool,disableColumnSelector:i.bool,disableColumnSorting:i.bool,disableDensitySelector:i.bool,disableEval:i.bool,disableMultipleRowSelection:i.bool,disableRowSelectionOnClick:i.bool,disableVirtualization:i.bool,editMode:i.oneOf(["cell","row"]),estimatedRowCount:i.number,experimentalFeatures:i.shape({warnIfFocusStateIsNotSynced:i.bool}),filterDebounceMs:i.number,filterMode:i.oneOf(["client","server"]),filterModel:i.shape({items:i.arrayOf(i.shape({field:i.string.isRequired,id:i.oneOfType([i.number,i.string]),operator:i.string.isRequired,value:i.any})).isRequired,logicOperator:i.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:i.bool,quickFilterLogicOperator:i.oneOf(["and","or"]),quickFilterValues:i.array}),getCellClassName:i.func,getDetailPanelContent:i.func,getEstimatedRowHeight:i.func,getRowClassName:i.func,getRowHeight:i.func,getRowId:i.func,getRowSpacing:i.func,hideFooter:i.bool,hideFooterPagination:i.bool,hideFooterSelectedRowCount:i.bool,ignoreDiacritics:i.bool,ignoreValueFormatterDuringExport:i.oneOfType([i.shape({clipboardExport:i.bool,csvExport:i.bool}),i.bool]),initialState:i.object,isCellEditable:i.func,isRowSelectable:i.func,keepNonExistentRowsSelected:i.bool,label:i.string,loading:i.bool,localeText:i.object,logger:i.shape({debug:i.func.isRequired,error:i.func.isRequired,info:i.func.isRequired,warn:i.func.isRequired}),logLevel:i.oneOf(["debug","error","info","warn",!1]),nonce:i.string,onCellClick:i.func,onCellDoubleClick:i.func,onCellEditStart:i.func,onCellEditStop:i.func,onCellKeyDown:i.func,onCellModesModelChange:i.func,onClipboardCopy:i.func,onColumnHeaderClick:i.func,onColumnHeaderContextMenu:i.func,onColumnHeaderDoubleClick:i.func,onColumnHeaderEnter:i.func,onColumnHeaderLeave:i.func,onColumnHeaderOut:i.func,onColumnHeaderOver:i.func,onColumnOrderChange:i.func,onColumnResize:i.func,onColumnVisibilityModelChange:i.func,onColumnWidthChange:i.func,onDataSourceError:i.func,onDensityChange:i.func,onFilterModelChange:i.func,onMenuClose:i.func,onMenuOpen:i.func,onPaginationMetaChange:i.func,onPaginationModelChange:i.func,onPreferencePanelClose:i.func,onPreferencePanelOpen:i.func,onProcessRowUpdateError:i.func,onResize:i.func,onRowClick:i.func,onRowCountChange:i.func,onRowDoubleClick:i.func,onRowEditStart:i.func,onRowEditStop:i.func,onRowModesModelChange:i.func,onRowSelectionModelChange:i.func,onSortModelChange:i.func,onStateChange:i.func,pageSizeOptions:i.arrayOf(i.oneOfType([i.number,i.shape({label:i.string.isRequired,value:i.number.isRequired})]).isRequired),pagination:i.oneOf([!0]),paginationMeta:i.shape({hasNextPage:i.bool}),paginationMode:i.oneOf(["client","server"]),paginationModel:i.shape({page:i.number.isRequired,pageSize:i.number.isRequired}),processRowUpdate:i.func,resizeThrottleMs:i.number,rowBufferPx:i.number,rowCount:i.number,rowHeight:i.number,rowModesModel:i.object,rows:i.arrayOf(i.object),rowSelection:i.bool,rowSelectionModel:i.shape({ids:i.instanceOf(Set).isRequired,type:i.oneOf(["exclude","include"]).isRequired}),rowSpacingType:i.oneOf(["border","margin"]),rowSpanning:i.bool,scrollbarSize:i.number,showCellVerticalBorder:i.bool,showColumnVerticalBorder:i.bool,showToolbar:i.bool,slotProps:i.object,slots:i.object,sortingMode:i.oneOf(["client","server"]),sortingOrder:i.arrayOf(i.oneOf(["asc","desc"])),sortModel:i.arrayOf(i.shape({field:i.string.isRequired,sort:i.oneOf(["asc","desc"])})),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),virtualizeColumnsWithAutoRowHeight:i.bool}},43693:(e,t,o)=>{var n=o(77736);e.exports=function(e,t,o){return(t=n(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports},44394:(e,t,o)=>{var n=o(72552),r=o(40346);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},45748:(e,t,o)=>{"use strict";o.d(t,{z1:()=>S,cM:()=>f,UA:()=>P,uy:()=>g});var n=o(2616),r=2,i=.16,a=.05,l=.05,s=.15,c=5,u=4,d=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function p(e,t,o){var n;return(n=Math.round(e.h)>=60&&Math.round(e.h)<=240?o?Math.round(e.h)-r*t:Math.round(e.h)+r*t:o?Math.round(e.h)+r*t:Math.round(e.h)-r*t)<0?n+=360:n>=360&&(n-=360),n}function h(e,t,o){return 0===e.h&&0===e.s?e.s:((n=o?e.s-i*t:t===u?e.s+i:e.s+a*t)>1&&(n=1),o&&t===c&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100);var n}function m(e,t,o){var n;return n=o?e.v+l*t:e.v-s*t,n=Math.max(0,Math.min(1,n)),Math.round(100*n)/100}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],r=new n.Y(e),i=r.toHsv(),a=c;a>0;a-=1){var l=new n.Y({h:p(i,a,!0),s:h(i,a,!0),v:m(i,a,!0)});o.push(l)}o.push(r);for(var s=1;s<=u;s+=1){var f=new n.Y({h:p(i,s),s:h(i,s),v:m(i,s)});o.push(f)}return"dark"===t.theme?d.map((function(e){var r=e.index,i=e.amount;return new n.Y(t.backgroundColor||"#141414").mix(o[r],i).toHexString()})):o.map((function(e){return e.toHexString()}))}var g={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},b=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];b.primary=b[5];var v=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];v.primary=v[5];var y=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];y.primary=y[5];var w=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];w.primary=w[5];var C=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];C.primary=C[5];var x=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];x.primary=x[5];var A=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];A.primary=A[5];var E=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];E.primary=E[5];var S=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];S.primary=S[5];var k=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];k.primary=k[5];var R=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];R.primary=R[5];var M=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];M.primary=M[5];var I=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];I.primary=I[5];var P={red:b,volcano:v,orange:y,gold:w,yellow:C,lime:x,green:A,cyan:E,blue:S,geekblue:k,purple:R,magenta:M,grey:I},O=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];O.primary=O[5];var T=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];T.primary=T[5];var $=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];$.primary=$[5];var z=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];z.primary=z[5];var D=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];D.primary=D[5];var L=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];L.primary=L[5];var F=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];F.primary=F[5];var N=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];N.primary=N[5];var H=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];H.primary=H[5];var j=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];j.primary=j[5];var B=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];B.primary=B[5];var _=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];_.primary=_[5];var V=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];V.primary=V[5]},46343:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(19750);function r(e){const{theme:t,name:o,props:r}=e;return t&&t.components&&t.components[o]&&t.components[o].defaultProps?(0,n.A)(t.components[o].defaultProps,r):r}},46942:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",t=0;t{"use strict";o.d(t,{OV:()=>c,JR:()=>l,gv:()=>s,Sw:()=>b,FY:()=>u,em:()=>a,Oe:()=>v,U8:()=>y,kw:()=>w,FX:()=>d,iv:()=>p,TI:()=>h,Q1:()=>f});var n=o(92661),r=o(3068);const i=(0,n.gz)((e=>e.isRtl)),a=(0,n.gz)((e=>e.columns)),l=(0,n.Mz)(a,(e=>e.orderedFields)),s=(0,n.Mz)(a,(e=>e.lookup)),c=(0,n.S)(l,s,((e,t)=>e.map((e=>t[e])))),u=(0,n.Mz)(a,(e=>e.columnVisibilityModel)),d=(0,n.Mz)(a,(e=>e.initialColumnVisibilityModel)),p=(0,n.S)(c,u,((e,t)=>e.filter((e=>!1!==t[e.field])))),h=(0,n.S)(p,(e=>e.map((e=>e.field)))),m=(0,n.gz)((e=>e.pinnedColumns)),f=((0,n.S)(m,l,i,((e,t,o)=>g(e,t,o))),(0,n.S)(a,m,h,i,((e,t,o,n)=>{const r=g(t,o,n);return{left:r.left.map((t=>e.lookup[t])),right:r.right.map((t=>e.lookup[t]))}})));function g(e,t,o){if(!Array.isArray(e.left)&&!Array.isArray(e.right))return r.u;if(0===e.left?.length&&0===e.right?.length)return r.u;const n=(e,t)=>Array.isArray(e)?e.filter((e=>t.includes(e))):[],i=n(e.left,t),a=t.filter((e=>!i.includes(e))),l=n(e.right,a);return o?{left:l,right:i}:{left:i,right:l}}const b=(0,n.S)(p,(e=>{const t=[];let o=0;for(let n=0;ne.filter((e=>e.filterable)))),y=(0,n.S)(c,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),w=(0,n.S)(c,(e=>e.some((e=>void 0!==e.colSpan))))},47510:(e,t,o)=>{"use strict";o.d(t,{K:()=>_e});var n=o(58168),r=o(98587),i=o(96540),a=o(34164),l=o(21362),s=o(82777),c=o(26739),u=o(39241),d=o(20439),p=o(85078),h=o(39407),m=o(1321),f=o(49565),g=o(96148),b=o(1908);function v(e){return(0,b.Ay)("MuiAlert",e)}const y=(0,g.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var w=o(37768),C=o(9792),x=o(74848);const A=(0,C.A)((0,x.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),E=(0,C.A)((0,x.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),S=(0,C.A)((0,x.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),k=(0,C.A)((0,x.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var R=o(37523);const M=(0,c.Ay)(f.A,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`${o.variant}${(0,h.A)(o.color||o.severity)}`]]}})((0,u.A)((({theme:e})=>{const t="light"===e.palette.mode?s.e$:s.a,o="light"===e.palette.mode?s.a:s.e$;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((0,m.A)(["light"])).map((([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:o(e.palette[n].light,.9),[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}}))),...Object.entries(e.palette).filter((0,m.A)(["light"])).map((([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}}))),...Object.entries(e.palette).filter((0,m.A)(["dark"])).map((([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}})))]}}))),I=(0,c.Ay)("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),P=(0,c.Ay)("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),O=(0,c.Ay)("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),T={success:(0,x.jsx)(A,{fontSize:"inherit"}),warning:(0,x.jsx)(E,{fontSize:"inherit"}),error:(0,x.jsx)(S,{fontSize:"inherit"}),info:(0,x.jsx)(k,{fontSize:"inherit"})},$=i.forwardRef((function(e,t){const o=(0,d.b)({props:e,name:"MuiAlert"}),{action:n,children:r,className:i,closeText:s="Close",color:c,components:u={},componentsProps:m={},icon:f,iconMapping:g=T,onClose:b,role:y="alert",severity:C="success",slotProps:A={},slots:E={},variant:S="standard",...k}=o,$={...o,color:c,severity:C,variant:S,colorSeverity:c||C},z=(e=>{const{variant:t,color:o,severity:n,classes:r}=e,i={root:["root",`color${(0,h.A)(o||n)}`,`${t}${(0,h.A)(o||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,l.A)(i,v,r)})($),D={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...E},slotProps:{...m,...A}},[L,F]=(0,p.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,a.A)(z.root,i),elementType:M,externalForwardedProps:{...D,...k},ownerState:$,additionalProps:{role:y,elevation:0}}),[N,H]=(0,p.A)("icon",{className:z.icon,elementType:I,externalForwardedProps:D,ownerState:$}),[j,B]=(0,p.A)("message",{className:z.message,elementType:P,externalForwardedProps:D,ownerState:$}),[_,V]=(0,p.A)("action",{className:z.action,elementType:O,externalForwardedProps:D,ownerState:$}),[W,G]=(0,p.A)("closeButton",{elementType:w.A,externalForwardedProps:D,ownerState:$}),[K,U]=(0,p.A)("closeIcon",{elementType:R.A,externalForwardedProps:D,ownerState:$});return(0,x.jsxs)(L,{...F,children:[!1!==f?(0,x.jsx)(N,{...H,children:f||g[C]||T[C]}):null,(0,x.jsx)(j,{...B,children:r}),null!=n?(0,x.jsx)(_,{...V,children:n}):null,null==n&&b?(0,x.jsx)(_,{...V,children:(0,x.jsx)(W,{size:"small","aria-label":s,title:s,color:"inherit",onClick:b,...G,children:(0,x.jsx)(K,{fontSize:"small",...U})})}):null]})}));var z=o(35124),D=o(53948);function L(e){return(0,b.Ay)("MuiRichTreeView",e)}(0,g.A)("MuiRichTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox","itemLabelInput"]);var F=o(9553),N=o(24902);class H{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,o={}){let n=this.events[e];n||(n={highPriority:new Map,regular:new Map},this.events[e]=n),o.isFirst?n.highPriority.set(t,!0):n.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const o=this.events[e];if(!o)return;const n=Array.from(o.highPriority.keys()),r=Array.from(o.regular.keys());for(let e=n.length-1;e>=0;e-=1){const r=n[e];o.highPriority.has(r)&&r.apply(this,t)}for(let e=0;e{const[e]=i.useState((()=>new H));return{instance:{$$publishEvent:i.useCallback(((...t)=>{const[o,n,r={}]=t;r.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(r)&&r.isPropagationStopped()||e.emit(o,n,r)}),[e]),$$subscribeEvent:i.useCallback(((t,o)=>(e.on(t,o),()=>{e.removeListener(t,o)})),[e])}}};j.params={};const B=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};B.params={};var _=o(29401),V=o(25149),W=o(80886);const G=({params:e,store:t})=>{i.useEffect((()=>{t.update((t=>e.id===t.id.providedTreeId&&void 0!==t.id.treeId?t:(0,n.A)({},t,{id:(0,n.A)({},t.id,{treeId:e.id??(0,W.Y)()})})))}),[t,e.id]);const o=(0,_.d)(t,V.U);return{getRootProps:()=>({id:o})}};G.params={id:!0},G.getInitialState=({id:e})=>({id:{treeId:void 0,providedTreeId:e}});const K=[j,B,G],U=["apiRef"];class q{constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{const t=e(this.value);t!==this.value&&(this.value=t,this.listeners.forEach((e=>e(t))))},this.value=e,this.listeners=new Set}}let X=0;var Y=o(29677),Q=o(19268);const J={};function Z(e){const{contextValue:t,classes:o=J,slots:n=J,slotProps:r=J,children:a}=e,l=i.useMemo((()=>({classes:o,slots:{collapseIcon:n.collapseIcon,expandIcon:n.expandIcon,endIcon:n.endIcon},slotProps:{collapseIcon:r.collapseIcon,expandIcon:r.expandIcon,endIcon:r.endIcon}})),[o,n.collapseIcon,n.expandIcon,n.endIcon,r.collapseIcon,r.expandIcon,r.endIcon]);return(0,x.jsx)(Y.F.Provider,{value:t,children:(0,x.jsx)(Q.y.Provider,{value:l,children:t.wrapRoot({children:a})})})}var ee=o(78854);const te=(e,t,o)=>{e.$$publishEvent(t,o)};var oe=o(60957),ne=o(42049),re=o(10786);const ie=({disabledItemsFocusable:e,items:t,isItemDisabled:o,getItemLabel:n,getItemChildren:r,getItemId:i,initialDepth:a=0,initialParentId:l=null,getChildrenCount:s,ignoreChildren:c=!1})=>{const u={},d={},p={[oe.T2]:[]},h=(e,t,a)=>{const l=i?i(e):e.id;((e,t,o)=>{if(null==e)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(t)].join("\n"));if(null!=o[e])throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${e}"`].join("\n"))})(l,e,u);const m=n?n(e):e.label;if(null==m)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(e)].join("\n"));const f=r?r(e):e.children;u[l]={id:l,label:m,parentId:a,idAttribute:void 0,expandable:s?s(e)>0:!!f?.length,disabled:!!o&&o(e),depth:t},d[l]=e;const g=a??oe.T2;p[g]||(p[g]=[]),p[g].push(l),c||f?.forEach((e=>h(e,t+1,l)))};t?.forEach((e=>h(e,a,l)));const m={};return Object.keys(p).forEach((e=>{m[e]=(0,oe.vB)(p[e])})),{disabledItemsFocusable:e,itemMetaLookup:u,itemModelLookup:d,itemOrderedChildrenIdsLookup:p,itemChildrenIndexesLookup:m}},ae=({instance:e,params:t,store:o})=>{const r=i.useCallback((e=>(0,re.EJ)(o.value,e)),[o]),a=i.useCallback((e=>{const t=(0,re.uP)(o.value,e);return t?.parentId||null}),[o]),l=(0,ee.A)((e=>{o.update((t=>(0,n.A)({},t,{items:(0,n.A)({},t.items,{loading:e})})))})),s=(0,ee.A)((e=>{o.update((t=>(0,n.A)({},t,{items:(0,n.A)({},t.items,{error:e})})))})),c=(0,ee.A)((({itemId:e,shouldBeDisabled:t})=>{o.update((o=>{if(!o.items.itemMetaLookup[e])return o;const r=(0,n.A)({},o.items.itemMetaLookup);return r[e]=(0,n.A)({},r[e],{disabled:t??!r[e].disabled}),(0,n.A)({},o,{items:(0,n.A)({},o.items,{itemMetaLookup:r})})}))})),u=i.useCallback((()=>{const e=t=>{const n=(0,re.EJ)(o.value,t),r=(0,re.p1)(o.value,t);return r.length>0?n.children=r.map(e):delete n.children,n};return(0,re.p1)(o.value,null).map(e)}),[o]),d=i.useCallback((e=>(0,re.p1)(o.value,e)),[o]),p=e=>{const t=(0,re.uP)(o.value,e);if(null==t)return null;const n=(0,W.Q)({treeId:(0,V.U)(o.value),itemId:e,id:t.idAttribute});return document.getElementById(n)},h=i.useRef(!1),m=i.useCallback((()=>{h.current=!0}),[]),f=i.useCallback((()=>h.current),[]);return i.useEffect((()=>{e.areItemUpdatesPrevented()||o.update((o=>{const r=ie({disabledItemsFocusable:t.disabledItemsFocusable,items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel,getItemChildren:t.getItemChildren});return Object.values(o.items.itemMetaLookup).forEach((t=>{r.itemMetaLookup[t.id]||te(e,"removeItem",{id:t.id})})),(0,n.A)({},o,{items:(0,n.A)({},o.items,r)})}))}),[e,o,t.items,t.disabledItemsFocusable,t.isItemDisabled,t.getItemId,t.getItemLabel,t.getItemChildren]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":"number"==typeof t.itemChildrenIndentation?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:r,getItemDOMElement:p,getItemTree:u,getItemOrderedChildrenIds:d,setIsItemDisabled:c,getParentId:a},instance:{getItemDOMElement:p,preventItemUpdates:m,areItemUpdatesPrevented:f,addItems:({items:r,parentId:i,depth:a,getChildrenCount:l})=>{if(r){const s=ie({disabledItemsFocusable:t.disabledItemsFocusable,items:r,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel,getItemChildren:t.getItemChildren,getChildrenCount:l,initialDepth:a,initialParentId:i,ignoreChildren:!0});o.update((t=>{let o;return o=i?{itemModelLookup:(0,n.A)({},t.items.itemModelLookup,s.itemModelLookup),itemMetaLookup:(0,n.A)({},t.items.itemMetaLookup,s.itemMetaLookup),itemOrderedChildrenIdsLookup:(0,n.A)({},s.itemOrderedChildrenIdsLookup,t.items.itemOrderedChildrenIdsLookup),itemChildrenIndexesLookup:(0,n.A)({},s.itemChildrenIndexesLookup,t.items.itemChildrenIndexesLookup)}:{itemModelLookup:s.itemModelLookup,itemMetaLookup:s.itemMetaLookup,itemOrderedChildrenIdsLookup:s.itemOrderedChildrenIdsLookup,itemChildrenIndexesLookup:s.itemChildrenIndexesLookup},Object.values(t.items.itemMetaLookup).forEach((t=>{s.itemMetaLookup[t.id]||te(e,"removeItem",{id:t.id})})),(0,n.A)({},t,{items:(0,n.A)({},t.items,o)})}))}},setTreeViewLoading:l,setTreeViewError:s,removeChildren:t=>{o.update((o=>{if(!t)return(0,n.A)({},o,{items:(0,n.A)({},o.items,{itemMetaLookup:{},itemOrderedChildrenIdsLookup:{},itemChildrenIndexesLookup:{}})});const r=Object.keys(o.items.itemMetaLookup).reduce(((r,i)=>{const a=o.items.itemMetaLookup[i];return a.parentId===t?(te(e,"removeItem",{id:a.id}),r):(0,n.A)({},r,{[a.id]:a})}),{}),i=o.items.itemOrderedChildrenIdsLookup,a=o.items.itemChildrenIndexesLookup;return delete a[t],delete i[t],(0,n.A)({},o,{items:(0,n.A)({},o.items,{itemMetaLookup:r,itemOrderedChildrenIdsLookup:i,itemChildrenIndexesLookup:a})})}))},handleItemClick:(0,ee.A)(((e,o)=>{t.onItemClick&&t.onItemClick(e,o)}))}}};ae.getInitialState=e=>({items:(0,n.A)({},ie({disabledItemsFocusable:e.disabledItemsFocusable,items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel,getItemChildren:e.getItemChildren}),{loading:!1,error:null})}),ae.applyDefaultValuesToParams=({params:e})=>(0,n.A)({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"}),ae.wrapRoot=({children:e})=>(0,x.jsx)(ne.z.Provider,{value:re.AV,children:e}),ae.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemChildren:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};var le=o(3576),se=o(27668);const ce=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content"),ue=({instance:e,store:t,params:o})=>{o.expandedItems,o.defaultExpandedItems,(0,le.A)((()=>{t.update((e=>{const t=ce({isItemEditable:o.isItemEditable,expansionTrigger:o.expansionTrigger});return e.expansion.expansionTrigger===t?e:(0,n.A)({},e,{expansion:(0,n.A)({},e.expansion,{expansionTrigger:t})})}))}),[t,o.isItemEditable,o.expansionTrigger]);const r=(e,r)=>{void 0===o.expandedItems&&t.update((e=>(0,n.A)({},e,{expansion:(0,n.A)({},e.expansion,{expandedItems:r})}))),o.onExpandedItemsChange?.(e,r)},i=(0,ee.A)((({itemId:e,event:n,shouldBeExpanded:i})=>{const a=(0,se.l$)(t.value);let l;l=i?[e].concat(a):a.filter((t=>t!==e)),o.onItemExpansionToggle&&o.onItemExpansionToggle(n,e,i),r(n,l)})),a=(0,ee.A)((({itemId:o,event:n=null,shouldBeExpanded:r})=>{const i=(0,se.QQ)(t.value,o),a=r??!i;if(i===a)return;const l={isExpansionPrevented:!1,shouldBeExpanded:a,event:n,itemId:o};te(e,"beforeItemToggleExpansion",l),l.isExpansionPrevented||e.applyItemExpansion({itemId:o,event:n,shouldBeExpanded:a})}));return(0,le.A)((()=>{const e=o.expandedItems;void 0!==e&&t.update((t=>(0,n.A)({},t,{expansion:(0,n.A)({},t.expansion,{expandedItems:e})})))}),[t,o.expandedItems]),{publicAPI:{setItemExpansion:a},instance:{setItemExpansion:a,applyItemExpansion:i,expandAllSiblings:(e,n)=>{const i=(0,re.uP)(t.value,n);if(null==i)return;const a=(0,re.p1)(t.value,i.parentId).filter((e=>(0,se.Rt)(t.value,e)&&!(0,se.QQ)(t.value,e))),l=(0,se.l$)(t.value).concat(a);a.length>0&&(o.onItemExpansionToggle&&a.forEach((t=>{o.onItemExpansionToggle(e,t,!0)})),r(e,l))}}}},de=[];ue.applyDefaultValuesToParams=({params:e})=>(0,n.A)({},e,{defaultExpandedItems:e.defaultExpandedItems??de}),ue.getInitialState=e=>({expansion:{expandedItems:void 0===e.expandedItems?e.defaultExpandedItems:e.expandedItems,expansionTrigger:ce(e)}}),ue.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};var pe=o(28540),he=o(64938);const me=e=>{const t={};return e.forEach((e=>{t[e]=!0})),t},fe=({store:e,oldModel:t,newModel:o})=>{const n=new Map;return o.forEach((e=>{n.set(e,!0)})),{added:o.filter((t=>!(0,he.cs)(e.value,t))),removed:t.filter((e=>!n.has(e)))}},ge=Object.is;function be(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let o=0,n=0;for(const n in e){if(o+=1,!ge(e[n],t[n]))return!1;if(!(n in t))return!1}for(const e in t)n+=1;return o===n}function ve(e,t){const o=(0,he.Ye)(e),n=(0,he.AJ)(e,t);if((0,he.cs)(e,t))return{disabled:!n,visible:o,indeterminate:!1,checked:!0};if(0===(0,re.p1)(e,t).length)return{disabled:!n,visible:o,indeterminate:!1,checked:!1};let r=!1,i=!1;const a=o=>{o!==t&&((0,he.cs)(e,o)?r=!0:i=!0),(0,re.p1)(e,o).forEach(a)};return a(t),{disabled:!n,visible:o,indeterminate:r&&i,checked:!!(0,he.Fj)(e).parents&&r&&!i}}const ye=({store:e,params:t})=>{t.selectedItems,t.defaultSelectedItems;const o=i.useRef(null),r=i.useRef({}),a=(o,r,i)=>{const a=(0,he.T)(e.value);let l;const s=(0,he.UK)(e.value);if(l=s&&(t.selectionPropagation.descendants||t.selectionPropagation.parents)?(({store:e,selectionPropagation:t,newModel:o,oldModel:n,additionalItemsToPropagate:r})=>{if(!t.descendants&&!t.parents)return o;let i=!1;const a=me(o),l=fe({store:e,newModel:o,oldModel:n});return r?.forEach((e=>{a[e]?l.added.includes(e)||l.added.push(e):l.removed.includes(e)||l.removed.push(e)})),l.added.forEach((o=>{if(t.descendants){const t=n=>{n!==o&&(i=!0,a[n]=!0),(0,re.p1)(e.value,n).forEach(t)};t(o)}if(t.parents){const t=o=>!!a[o]&&(0,re.p1)(e.value,o).every(t),n=o=>{const r=(0,re.YW)(e.value,o);null!=r&&(0,re.p1)(e.value,r).every(t)&&(i=!0,a[r]=!0,n(r))};n(o)}})),l.removed.forEach((o=>{if(t.parents){let t=(0,re.YW)(e.value,o);for(;null!=t;)a[t]&&(i=!0,delete a[t]),t=(0,re.YW)(e.value,t)}if(t.descendants){const t=n=>{n!==o&&(i=!0,delete a[n]),(0,re.p1)(e.value,n).forEach(t)};t(o)}})),i?Object.keys(a):o})({store:e,selectionPropagation:t.selectionPropagation,newModel:r,oldModel:a,additionalItemsToPropagate:i}):r,t.onItemSelectionToggle)if(s){const n=fe({store:e,newModel:l,oldModel:a});t.onItemSelectionToggle&&(n.added.forEach((e=>{t.onItemSelectionToggle(o,e,!0)})),n.removed.forEach((e=>{t.onItemSelectionToggle(o,e,!1)})))}else t.onItemSelectionToggle&&l!==a&&(null!=a&&t.onItemSelectionToggle(o,a,!1),null!=l&&t.onItemSelectionToggle(o,l,!0));void 0===t.selectedItems&&e.update((e=>(0,n.A)({},e,{selection:(0,n.A)({},e.selection,{selectedItems:l})}))),t.onSelectedItemsChange?.(o,l)},l=({itemId:t,event:n=null,keepExistingSelection:i=!1,shouldBeSelected:l})=>{if(!(0,he.BF)(e.value))return;let s;const c=(0,he.UK)(e.value);if(i){const o=(0,he.Go)(e.value),n=(0,he.cs)(e.value,t);s=!n||!1!==l&&null!=l?n||!0!==l&&null!=l?o:[t].concat(o):o.filter((e=>e!==t))}else s=!1===l||null==l&&(0,he.cs)(e.value,t)?c?[]:null:c?[t]:t;a(n,s,[t]),o.current=t,r.current={}},s=(t,[o,n])=>{if(!(0,he.UK)(e.value))return;let i=(0,he.Go)(e.value).slice();Object.keys(r.current).length>0&&(i=i.filter((e=>!r.current[e])));const l=me(i),s=(0,pe.c2)(e.value,o,n),c=s.filter((e=>!l[e]));i=i.concat(c),a(t,i),r.current=me(s)};return(0,le.A)((()=>{e.update((e=>(0,n.A)({},e,{selection:{selectedItems:void 0===t.selectedItems?e.selection.selectedItems:t.selectedItems,isEnabled:!t.disableSelection,isMultiSelectEnabled:t.multiSelect,isCheckboxSelectionEnabled:t.checkboxSelection,selectionPropagation:{descendants:t.selectionPropagation.descendants,parents:t.selectionPropagation.parents}}})))}),[e,t.selectedItems,t.multiSelect,t.checkboxSelection,t.disableSelection,t.selectionPropagation.descendants,t.selectionPropagation.parents]),{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{setItemSelection:l},instance:{setItemSelection:l,selectAllNavigableItems:t=>{if(!(0,he.UK)(e.value))return;const o=(0,pe.nz)(e.value);a(t,o),r.current=me(o)},expandSelectionRange:(t,n)=>{if(null!=o.current){const[r,i]=(0,pe.XR)(e.value,n,o.current);s(t,[r,i])}},selectRangeFromStartToItem:(t,o)=>{s(t,[(0,pe.F1)(e.value),o])},selectRangeFromItemToEnd:(t,o)=>{s(t,[o,(0,pe.HG)(e.value)])},selectItemFromArrowNavigation:(t,o,n)=>{if(!(0,he.UK)(e.value))return;let i=(0,he.Go)(e.value).slice();0===Object.keys(r.current).length?(i.push(n),r.current={[o]:!0,[n]:!0}):(r.current[o]||(r.current={}),r.current[n]?(i=i.filter((e=>e!==o)),delete r.current[o]):(i.push(n),r.current[n]=!0)),a(t,i)}}}};ye.itemPlugin=({props:e})=>{const{itemId:t}=e,{store:o}=(0,Y.i)(),r=(0,_.d)(o,ve,t,be);return{propsEnhancers:{checkbox:({externalEventHandlers:e,interactions:i})=>(0,n.A)({tabIndex:-1,onChange:n=>{e.onChange?.(n),n.defaultMuiPrevented||(0,he.AJ)(o.value,t)&&i.handleCheckboxSelection(n)}},r)}}};const we=[],Ce={};ye.applyDefaultValuesToParams=({params:e})=>(0,n.A)({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?we:null),selectionPropagation:e.selectionPropagation??Ce}),ye.getInitialState=e=>({selection:{selectedItems:void 0===e.selectedItems?e.defaultSelectedItems:e.selectedItems,isEnabled:!e.disableSelection,isMultiSelectEnabled:e.multiSelect,isCheckboxSelectionEnabled:e.checkboxSelection,selectionPropagation:e.selectionPropagation}}),ye.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0,selectionPropagation:!0};class xe{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,o){this.timeouts||(this.timeouts=new Map);const n=setTimeout((()=>{"function"==typeof t&&t(),this.timeouts.delete(o.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(o.cleanupToken,n)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class Ae{constructor(){this.registry=new FinalizationRegistry((e=>{"function"==typeof e&&e()}))}register(e,t,o){this.registry.register(e,t,o)}unregister(e){this.registry.unregister(e)}reset(){}}class Ee{}const Se=function(e){let t=0;return function(o,n,r){null===e.registry&&(e.registry="undefined"!=typeof FinalizationRegistry?new Ae:new xe);const[a]=i.useState(new Ee),l=i.useRef(null),s=i.useRef(void 0);s.current=r;const c=i.useRef(null);if(!l.current&&s.current){const r=(e,t)=>{t.defaultMuiPrevented||s.current?.(e,t)};l.current=o.$$subscribeEvent(n,r),t+=1,c.current={cleanupToken:t},e.registry.register(a,(()=>{l.current?.(),l.current=null,c.current=null}),c.current)}else!s.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));i.useEffect((()=>{if(!l.current&&s.current){const e=(e,t)=>{t.defaultMuiPrevented||s.current?.(e,t)};l.current=o.$$subscribeEvent(n,e)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{l.current?.(),l.current=null}}),[o,n])}}({registry:null});var ke=o(31418);const Re=({instance:e,params:t,store:o})=>{const r=(0,ee.A)((e=>{o.update((t=>(0,ke.L6)(t)===e?t:(0,n.A)({},t,{focus:(0,n.A)({},t.focus,{focusedItemId:e})})))})),i=(o,n)=>{const i=e.getItemDOMElement(n);i&&i.focus(),r(n),t.onItemFocus&&t.onItemFocus(o,n)},a=(0,ee.A)(((e,t)=>{(e=>{const t=(0,re.uP)(o.value,e);return t&&(null==t.parentId||(0,se.QQ)(o.value,t.parentId))})(t)&&i(e,t)})),l=(0,ee.A)((()=>{const t=(0,ke.L6)(o.value);if(null!=t){if((0,re.uP)(o.value,t)){const o=e.getItemDOMElement(t);o&&o.blur()}r(null)}}));Se(e,"removeItem",(({id:e})=>{const t=(0,ke.L6)(o.value),n=(0,ke.hc)(o.value);t===e&&null!=n&&i(null,n)}));const s=e=>t=>{if(e.onFocus?.(t),t.defaultMuiPrevented)return;const n=(0,ke.hc)(o.value);t.target===t.currentTarget&&null!=n&&i(t,n)},c=e=>t=>{e.onBlur?.(t),t.defaultMuiPrevented||r(null)};return{getRootProps:e=>({onFocus:s(e),onBlur:c(e)}),publicAPI:{focusItem:a},instance:{focusItem:a,removeFocusedItem:l}}};Re.getInitialState=()=>({focus:{focusedItemId:null}}),Re.params={onItemFocus:!0};var Me=o(411),Ie=o(65658),Pe=o(41519),Oe=o(81326);const Te=({instance:e,store:t,params:o})=>{const n=(0,Me.I)(),r=i.useRef({}),a=(0,ee.A)((e=>{r.current=e(r.current)})),l=(0,_.d)(t,re.Ks);i.useEffect((()=>{if(e.areItemUpdatesPrevented())return;const t={};Object.values(l).forEach((e=>{t[e.id]=e.label.substring(0,1).toLowerCase()})),r.current=t}),[l,o.getItemId,e]);const s=e=>(0,he.BF)(t.value)&&!(0,re.lj)(t.value,e),c=e=>!(0,re.lj)(t.value,e)&&(0,se.Rt)(t.value,e);return{instance:{updateFirstCharMap:a,handleItemKeyDown:async(o,i)=>{if(o.defaultMuiPrevented)return;if(o.altKey||(0,pe.HZ)(o.target,o.currentTarget))return;const a=o.ctrlKey||o.metaKey,l=o.key,u=(0,he.UK)(t.value);switch(!0){case" "===l&&s(i):o.preventDefault(),u&&o.shiftKey?e.expandSelectionRange(o,i):e.setItemSelection({event:o,itemId:i,keepExistingSelection:u,shouldBeSelected:void 0});break;case"Enter"===l:(0,Ie.M)(e,Pe.j)&&(0,Oe.pF)(t.value,i)&&!(0,Oe.XG)(t.value,i)?e.setEditedItem(i):c(i)?(e.setItemExpansion({event:o,itemId:i}),o.preventDefault()):s(i)&&(u?(o.preventDefault(),e.setItemSelection({event:o,itemId:i,keepExistingSelection:!0})):(0,he.cs)(t.value,i)||(e.setItemSelection({event:o,itemId:i}),o.preventDefault()));break;case"ArrowDown"===l:{const n=(0,pe.ig)(t.value,i);n&&(o.preventDefault(),e.focusItem(o,n),u&&o.shiftKey&&s(n)&&e.selectItemFromArrowNavigation(o,i,n));break}case"ArrowUp"===l:{const n=(0,pe.eI)(t.value,i);n&&(o.preventDefault(),e.focusItem(o,n),u&&o.shiftKey&&s(n)&&e.selectItemFromArrowNavigation(o,i,n));break}case"ArrowRight"===l&&!n||"ArrowLeft"===l&&n:if(a)return;if((0,se.QQ)(t.value,i)){const n=(0,pe.ig)(t.value,i);n&&(e.focusItem(o,n),o.preventDefault())}else c(i)&&(e.setItemExpansion({event:o,itemId:i}),o.preventDefault());break;case"ArrowLeft"===l&&!n||"ArrowRight"===l&&n:if(a)return;if(c(i)&&(0,se.QQ)(t.value,i))e.setItemExpansion({event:o,itemId:i}),o.preventDefault();else{const n=(0,re.YW)(t.value,i);n&&(e.focusItem(o,n),o.preventDefault())}break;case"Home"===l:s(i)&&u&&a&&o.shiftKey?e.selectRangeFromStartToItem(o,i):e.focusItem(o,(0,pe.F1)(t.value)),o.preventDefault();break;case"End"===l:s(i)&&u&&a&&o.shiftKey?e.selectRangeFromItemToEnd(o,i):e.focusItem(o,(0,pe.HG)(t.value)),o.preventDefault();break;case"*"===l:e.expandAllSiblings(o,i),o.preventDefault();break;case"A"===String.fromCharCode(o.keyCode)&&a&&u&&(0,he.BF)(t.value):e.selectAllNavigableItems(o),o.preventDefault();break;case!(a||o.shiftKey||(d=l,!d||1!==d.length||!d.match(/\S/))):{const n=((e,o)=>{const n=o.toLowerCase(),i=e=>{const o=(0,pe.ig)(t.value,e);return null===o?(0,pe.F1)(t.value):o};let a=null,l=i(e);const s={};for(;null==a&&!s[l];)r.current[l]===n?a=l:(s[l]=!0,l=i(l));return a})(i,l);null!=n&&(e.focusItem(o,n),o.preventDefault());break}}var d}}}};Te.params={};const $e=[ae,ue,ye,Re,Te,Pe.j];var ze=o(63543);const De=["ownerState"],Le=i.createContext(null),Fe=i.memo((function({itemSlot:e,itemSlotProps:t,itemId:o}){const a=i.useContext(Le),{store:l}=(0,Y.i)(),s=(0,_.d)(l,re.uP,o),c=(0,_.d)(l,re.p1,o),u=e??ze.yh,d=(0,D.A)({elementType:u,externalSlotProps:t,additionalProps:{label:s?.label,id:s?.idAttribute,itemId:o},ownerState:{itemId:o,label:s?.label}}),p=(0,r.A)(d,De);return(0,x.jsx)(u,(0,n.A)({},p,{children:c?.map(a)}))}),be);function Ne(e){const{slots:t,slotProps:o}=e,{store:n}=(0,Y.i)(),r=t?.item,a=o?.item,l=(0,_.d)(n,re.p1,null),s=i.useCallback((e=>(0,x.jsx)(Fe,{itemSlot:r,itemSlotProps:a,itemId:e},e)),[r,a]);return(0,x.jsx)(Le.Provider,{value:s,children:l.map(s)})}const He=["slots","slotProps"],je=(0,F.h)("MuiRichTreeView"),Be=(0,c.Ay)("ul",{name:"MuiRichTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),_e=i.forwardRef((function(e,t){const o=je({props:e,name:"MuiRichTreeView"}),{slots:a,slotProps:s}=o,c=(0,r.A)(o,He),{getRootProps:u,contextValue:d}=(({plugins:e,rootRef:t,props:o})=>{const a=i.useMemo((()=>[...K,...e]),[e]),{pluginParams:l,forwardedProps:s,apiRef:c}=(e=>{let{props:{apiRef:t},plugins:o}=e,n=(0,r.A)(e.props,U);const a=i.useMemo((()=>{const e={};return o.forEach((t=>{Object.assign(e,t.params)})),e}),[o]),{forwardedProps:l,pluginParams:s}=i.useMemo((()=>{const e={},t={};Object.keys(n).forEach((o=>{const r=n[o];a[o]?e[o]=r:t[o]=r}));const r=o.reduce(((e,t)=>t.applyDefaultValuesToParams?t.applyDefaultValuesToParams({params:e}):e),e);return{forwardedProps:t,pluginParams:r}}),[o,n,a]);return{forwardedProps:l,pluginParams:s,apiRef:t}})({plugins:a,props:o}),u=i.useRef({}).current,d=function(e){const t=i.useRef({});return e?function(e){return null==e.current&&(e.current={}),e}(e):t}(c),p=i.useRef(null),h=(0,N.A)(p,t),m=i.useRef(null);if(null==m.current){X+=1;const e={cacheKey:{id:X}};a.forEach((t=>{t.getInitialState&&Object.assign(e,t.getInitialState(l))})),m.current=new q(e)}const f=(e=>{const{plugins:t,instance:o,publicAPI:n,store:r,rootRef:a}=e,l=i.useCallback((e=>{let o=null,n=null;const r=[],i={};t.forEach((t=>{if(!t.itemPlugin)return;const a=t.itemPlugin({props:e,rootRef:o,contentRef:n});a?.rootRef&&(o=a.rootRef),a?.contentRef&&(n=a.contentRef),a?.propsEnhancers&&(r.push(a.propsEnhancers),Object.keys(a.propsEnhancers).forEach((e=>{i[e]=!0})))}));const a=Object.fromEntries(Object.keys(i).map((e=>{return[e,(t=e,e=>{const o={};return r.forEach((n=>{const r=n[t];null!=r&&Object.assign(o,r(e))})),o})];var t})));return{contentRef:n,rootRef:o,propsEnhancers:a}}),[t]),s=i.useCallback((({itemId:e,children:n,idAttribute:r})=>{let i=n;for(let n=t.length-1;n>=0;n-=1){const a=t[n];a.wrapItem&&(i=a.wrapItem({instance:o,itemId:e,children:i,idAttribute:r}))}return i}),[t,o]),c=i.useCallback((({children:e})=>{let o=e;for(let e=t.length-1;e>=0;e-=1){const n=t[e];n.wrapRoot&&(o=n.wrapRoot({children:o}))}return o}),[t]);return i.useMemo((()=>({runItemPlugins:l,wrapItem:s,wrapRoot:c,instance:o,publicAPI:n,store:r,rootRef:a})),[l,s,c,o,n,r,a])})({plugins:a,instance:u,publicAPI:d.current,store:m.current,rootRef:p}),g=[];return a.forEach((e=>{const t=e({instance:u,params:l,rootRef:p,plugins:a,store:m.current});t.getRootProps&&g.push(t.getRootProps),t.publicAPI&&Object.assign(d.current,t.publicAPI),t.instance&&Object.assign(u,t.instance)})),{getRootProps:(e={})=>{const t=(0,n.A)({role:"tree"},s,e,{ref:h});return g.forEach((o=>{Object.assign(t,o(e))})),t},rootRef:h,contextValue:f}})({plugins:$e,rootRef:t,props:c}),p=(0,_.d)(d.store,re.DW),h=(0,_.d)(d.store,re.nt),m=(e=>{const{classes:t}=e;return i.useMemo((()=>(0,l.A)({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemLabelInput:["itemLabelInput"],itemCheckbox:["itemCheckbox"]},L,t)),[t])})(o),f=a?.root??Be,g=(0,D.A)({elementType:f,externalSlotProps:s?.root,className:m.root,getSlotProps:u,ownerState:o});return p?(0,x.jsx)(z.A,{children:"Loading..."}):h?(0,x.jsx)($,{severity:"error",children:h.message}):(0,x.jsx)(Z,{contextValue:d,classes:m,slots:a,slotProps:s,children:(0,x.jsx)(f,(0,n.A)({},g,{children:(0,x.jsx)(Ne,{slots:a,slotProps:s})}))})}))},48224:(e,t,o)=>{"use strict";o.d(t,{A:()=>a,c:()=>i});var n=o(96540);const r=n.createContext(void 0),i=({children:e,size:t})=>{const o=n.useContext(r);return n.createElement(r.Provider,{value:t||o},e)},a=r},49640:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var n=o(53954),r=o(52176),i=o(82284),a=o(9417);function l(e){var t=(0,r.A)();return function(){var o,r=(0,n.A)(e);if(t){var l=(0,n.A)(this).constructor;o=Reflect.construct(r,arguments,l)}else o=r.apply(this,arguments);return function(e,t){if(t&&("object"==(0,i.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.A)(e)}(this,o)}}},49806:(e,t,o)=>{"use strict";o.d(t,{sb:()=>i,vG:()=>a});var n=o(96540),r=o(50723);const i={token:r.A,override:{override:r.A},hashed:!0},a=n.createContext(i)},49945:(e,t,o)=>{"use strict";o.d(t,{X:()=>h});var n=o(58168),r=o(98587),i=o(96540),a=o(24902),l=o(51280),s=o(25054),c=o(77866),u=o(43203),d=o(74848);const p=["render","className","slotProps","onKeyDown","onChange"],h=(0,l.R)((function(e,t){const{render:o,className:l,slotProps:h,onKeyDown:m,onChange:f}=e,g=(0,r.A)(e,p),b=(0,c.A)(),{state:v,controlId:y,controlRef:w,onValueChange:C,onExpandedChange:x,clearValue:A}=(0,u.q)(),E="function"==typeof l?l(v):l,S=(0,a.A)(w,t),k=(0,s._)(b.slots.baseTextField,o,(0,n.A)({},b.slotProps?.baseTextField,{slotProps:(0,n.A)({htmlInput:(0,n.A)({role:"searchbox",id:y,tabIndex:v.expanded?void 0:-1},h?.htmlInput,{onBlur:e=>{""===v.value&&x(!1),h?.htmlInput?.onBlur?.(e)}})},h),value:v.value,className:E},g,{onChange:e=>{v.expanded||x(!0),C(e),f?.(e)},onKeyDown:e=>{"Escape"===e.key&&(""===v.value?x(!1):A()),m?.(e)},ref:S}),v);return(0,d.jsx)(i.Fragment,{children:k})}))},50723:(e,t,o)=>{"use strict";o.d(t,{A:()=>r,r:()=>n});const n={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},r=Object.assign(Object.assign({},n),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0})},51280:(e,t,o)=>{"use strict";o.d(t,{R:()=>i});var n=o(96540),r=o(26630);const i=e=>{if(r.A>=19){const t=t=>e(t,t.ref??null);return t.displayName=e.displayName??e.name,t}return n.forwardRef(e)}},51873:(e,t,o)=>{var n=o(9325).Symbol;e.exports=n},52176:(e,t,o)=>{"use strict";function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n=function(){return!!e})()}o.d(t,{A:()=>n})},52504:(e,t,o)=>{"use strict";o.d(t,{f:()=>l});var n=o(58168);const r={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=r.values;return`@media (min-width:${"number"==typeof t[e]?t[e]:e}px)`}},i={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},a=function e(t){if("string"==typeof t)return`var(${t})`;const o={};for(const n in t)Object.hasOwn(t,n)&&(o[n]=e(t[n]));return o}(i),l=(0,n.A)({breakpoints:r,spacing:function(e,t,o,n){return void 0===e?s(1):void 0===t?s(e):void 0===o?s(e)+" "+s(t):void 0===n?s(e)+" "+s(t)+" "+s(o):s(e)+" "+s(t)+" "+s(o)+" "+s(n)},transition:function(e,t){const{duration:o=l.transitions.duration.base,easing:n=l.transitions.easing.easeInOut,delay:r=0}=t??{};return e.map((e=>`${e} ${o} ${n} ${r}ms`)).join(", ")},keys:i},a);function s(e){return 0===e?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}},52764:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9792),r=o(74848);const i=(0,n.A)((0,r.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-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 14"}),"Search")},53830:(e,t,o)=>{"use strict";o.d(t,{A:()=>A});var n=o(96540),r=o(34164),i=o(836),a=o(1908),l=o(21362),s=o(14808),c=o(21124),u=o(57514),d=o(65387),p=o(7196),h=o(93781),m=o(74848);const f=(0,d.A)(),g=(0,s.A)("div",{name:"MuiStack",slot:"Root"});function b(e){return(0,c.A)({props:e,name:"MuiStack",defaultTheme:f})}function v(e,t){const o=n.Children.toArray(e).filter(Boolean);return o.reduce(((e,r,i)=>(e.push(r),i{let o={display:"flex",flexDirection:"column",...(0,p.NI)({theme:t},(0,p.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e})))};if(e.spacing){const n=(0,h.LX)(t),r=Object.keys(t.breakpoints.values).reduce(((t,o)=>(("object"==typeof e.spacing&&null!=e.spacing[o]||"object"==typeof e.direction&&null!=e.direction[o])&&(t[o]=!0),t)),{}),a=(0,p.kW)({values:e.direction,base:r}),l=(0,p.kW)({values:e.spacing,base:r});"object"==typeof a&&Object.keys(a).forEach(((e,t,o)=>{if(!a[e]){const n=t>0?a[o[t-1]]:"column";a[e]=n}}));const s=(t,o)=>{return e.useFlexGap?{gap:(0,h._W)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r=o?a[o]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r]}`]:(0,h._W)(n,t)}};var r};o=(0,i.A)(o,(0,p.NI)({theme:t},l,s))}return o=(0,p.iZ)(t.breakpoints,o),o};var w=o(26739),C=o(20439);const x=function(e={}){const{createStyledComponent:t=g,useThemeProps:o=b,componentName:i="MuiStack"}=e,s=t(y),c=n.forwardRef((function(e,t){const n=o(e),c=(0,u.A)(n),{component:d="div",direction:p="column",spacing:h=0,divider:f,children:g,className:b,useFlexGap:y=!1,...w}=c,C={direction:p,spacing:h,useFlexGap:y},x=(0,l.A)({root:["root"]},(e=>(0,a.Ay)(i,e)),{});return(0,m.jsx)(s,{as:d,ownerState:C,ref:t,className:(0,r.A)(x.root,b),...w,children:f?v(g,f):g})}));return c}({createStyledComponent:(0,w.Ay)("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>(0,C.b)({props:e,name:"MuiStack"})}),A=x},53954:(e,t,o)=>{"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}o.d(t,{A:()=>n})},54128:(e,t,o)=>{var n=o(31800),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},55174:(e,t,o)=>{"use strict";o.d(t,{k:()=>n});const n=o(96540).createContext(void 0)},56301:(e,t,o)=>{"use strict";o.d(t,{A:()=>V});var n=o(96540),r=o(34164),i=o(21362),a=o(411),l=o(53948),s=o(26739),c=o(53356),u=o(39241),d=o(20439),p=o(65418);function h(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var m=o(37313),f=o(41538),g=o(74848);const b={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var v=o(56536),y=o(1883),w=o(38329),C=o(96148),x=o(1908);function A(e){return(0,x.Ay)("MuiTabScrollButton",e)}const E=(0,C.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),S=(0,s.Ay)(w.A,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${E.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),k=n.forwardRef((function(e,t){const o=(0,d.b)({props:e,name:"MuiTabScrollButton"}),{className:n,slots:s={},slotProps:c={},direction:u,orientation:p,disabled:h,...m}=o,f=(0,a.I)(),b={isRtl:f,...o},w=(e=>{const{classes:t,orientation:o,disabled:n}=e,r={root:["root",o,n&&"disabled"]};return(0,i.A)(r,A,t)})(b),C=s.StartScrollButtonIcon??v.A,x=s.EndScrollButtonIcon??y.A,E=(0,l.A)({elementType:C,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b}),k=(0,l.A)({elementType:x,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b});return(0,g.jsx)(S,{component:"div",className:(0,r.A)(w.root,n),ref:t,role:null,ownerState:b,tabIndex:null,...m,style:{...m.style,..."vertical"===p&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:"left"===u?(0,g.jsx)(C,{...E}):(0,g.jsx)(x,{...k})})}));var R=o(54403);function M(e){return(0,x.Ay)("MuiTabs",e)}const I=(0,C.A)("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var P=o(33983),O=o(85078);const T=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,z=(e,t,o)=>{let n=!1,r=o(e,t);for(;r;){if(r===e.firstChild){if(n)return;n=!0}const t=r.disabled||"true"===r.getAttribute("aria-disabled");if(r.hasAttribute("tabindex")&&!t)return void r.focus();r=o(e,r)}},D=(0,s.Ay)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${I.scrollButtons}`]:t.scrollButtons},{[`& .${I.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})((0,u.A)((({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${I.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]})))),L=(0,s.Ay)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),F=(0,s.Ay)("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.list,t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),N=(0,s.Ay)("span",{name:"MuiTabs",slot:"Indicator"})((0,u.A)((({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]})))),H=(0,s.Ay)((function(e){const{onChange:t,...o}=e,r=n.useRef(),i=n.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return(0,m.A)((()=>{const e=(0,p.A)((()=>{const e=r.current;a(),e!==r.current&&t(r.current)})),o=(0,f.A)(i.current);return o.addEventListener("resize",e),()=>{e.clear(),o.removeEventListener("resize",e)}}),[t]),n.useEffect((()=>{a(),t(r.current)}),[t]),(0,g.jsx)("div",{style:b,...o,ref:i})}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),j={},B=n.forwardRef((function(e,t){const o=(0,d.b)({props:e,name:"MuiTabs"}),s=(0,c.A)(),u=(0,a.I)(),{"aria-label":m,"aria-labelledby":b,action:v,centered:y=!1,children:w,className:C,component:x="div",allowScrollButtonsMobile:A=!1,indicatorColor:E="primary",onChange:S,orientation:I="horizontal",ScrollButtonComponent:B,scrollButtons:_="auto",selectionFollowsFocus:V,slots:W={},slotProps:G={},TabIndicatorProps:K={},TabScrollButtonProps:U={},textColor:q="primary",value:X,variant:Y="standard",visibleScrollbar:Q=!1,...J}=o,Z="scrollable"===Y,ee="vertical"===I,te=ee?"scrollTop":"scrollLeft",oe=ee?"top":"left",ne=ee?"bottom":"right",re=ee?"clientHeight":"clientWidth",ie=ee?"height":"width",ae={...o,component:x,allowScrollButtonsMobile:A,indicatorColor:E,orientation:I,vertical:ee,scrollButtons:_,textColor:q,variant:Y,visibleScrollbar:Q,fixed:!Z,hideScrollbar:Z&&!Q,scrollableX:Z&&!ee,scrollableY:Z&&ee,centered:y&&!Z,scrollButtonsHideMobile:!A},le=(e=>{const{vertical:t,fixed:o,hideScrollbar:n,scrollableX:r,scrollableY:a,centered:l,scrollButtonsHideMobile:s,classes:c}=e,u={root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",n&&"hideScrollbar",r&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]};return(0,i.A)(u,M,c)})(ae),se=(0,l.A)({elementType:W.StartScrollButtonIcon,externalSlotProps:G.startScrollButtonIcon,ownerState:ae}),ce=(0,l.A)({elementType:W.EndScrollButtonIcon,externalSlotProps:G.endScrollButtonIcon,ownerState:ae}),[ue,de]=n.useState(!1),[pe,he]=n.useState(j),[me,fe]=n.useState(!1),[ge,be]=n.useState(!1),[ve,ye]=n.useState(!1),[we,Ce]=n.useState({overflow:"hidden",scrollbarWidth:0}),xe=new Map,Ae=n.useRef(null),Ee=n.useRef(null),Se={slots:W,slotProps:{indicator:K,scrollButton:U,...G}},ke=()=>{const e=Ae.current;let t,o;if(e){const o=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:o.top,bottom:o.bottom,left:o.left,right:o.right}}if(e&&!1!==X){const e=Ee.current.children;if(e.length>0){const t=e[xe.get(X)];o=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:o}},Re=(0,R.A)((()=>{const{tabsMeta:e,tabMeta:t}=ke();let o,n=0;ee?(o="top",t&&e&&(n=t.top-e.top+e.scrollTop)):(o=u?"right":"left",t&&e&&(n=(u?-1:1)*(t[o]-e[o]+e.scrollLeft)));const r={[o]:n,[ie]:t?t[ie]:0};if("number"!=typeof pe[o]||"number"!=typeof pe[ie])he(r);else{const e=Math.abs(pe[o]-r[o]),t=Math.abs(pe[ie]-r[ie]);(e>=1||t>=1)&&he(r)}})),Me=(e,{animation:t=!0}={})=>{t?function(e,t,o,n={},r=()=>{}){const{ease:i=h,duration:a=300}=n;let l=null;const s=t[e];let c=!1;const u=n=>{if(c)return void r(new Error("Animation cancelled"));null===l&&(l=n);const d=Math.min(1,(n-l)/a);t[e]=i(d)*(o-s)+s,d>=1?requestAnimationFrame((()=>{r(null)})):requestAnimationFrame(u)};s===o?r(new Error("Element already at target position")):requestAnimationFrame(u)}(te,Ae.current,e,{duration:s.transitions.duration.standard}):Ae.current[te]=e},Ie=e=>{let t=Ae.current[te];t+=ee?e:e*(u?-1:1),Me(t)},Pe=()=>{const e=Ae.current[re];let t=0;const o=Array.from(Ee.current.children);for(let n=0;ne){0===n&&(t=e);break}t+=r[re]}return t},Oe=()=>{Ie(-1*Pe())},Te=()=>{Ie(Pe())},[$e,{onChange:ze,...De}]=(0,O.A)("scrollbar",{className:(0,r.A)(le.scrollableX,le.hideScrollbar),elementType:H,shouldForwardComponentProp:!0,externalForwardedProps:Se,ownerState:ae}),Le=n.useCallback((e=>{ze?.(e),Ce({overflow:null,scrollbarWidth:e})}),[ze]),[Fe,Ne]=(0,O.A)("scrollButtons",{className:(0,r.A)(le.scrollButtons,U.className),elementType:k,externalForwardedProps:Se,ownerState:ae,additionalProps:{orientation:I,slots:{StartScrollButtonIcon:W.startScrollButtonIcon||W.StartScrollButtonIcon,EndScrollButtonIcon:W.endScrollButtonIcon||W.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:se,endScrollButtonIcon:ce}}}),He=(0,R.A)((e=>{const{tabsMeta:t,tabMeta:o}=ke();if(o&&t)if(o[oe]t[ne]){const n=t[te]+(o[ne]-t[ne]);Me(n,{animation:e})}})),je=(0,R.A)((()=>{Z&&!1!==_&&ye(!ve)}));n.useEffect((()=>{const e=(0,p.A)((()=>{Ae.current&&Re()}));let t;const o=(0,f.A)(Ae.current);let n;return o.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(Ee.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(n=new MutationObserver((o=>{o.forEach((e=>{e.removedNodes.forEach((e=>{t?.unobserve(e)})),e.addedNodes.forEach((e=>{t?.observe(e)}))})),e(),je()})),n.observe(Ee.current,{childList:!0})),()=>{e.clear(),o.removeEventListener("resize",e),n?.disconnect(),t?.disconnect()}}),[Re,je]),n.useEffect((()=>{const e=Array.from(Ee.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&Z&&!1!==_){const o=e[0],n=e[t-1],r={root:Ae.current,threshold:.99},i=new IntersectionObserver((e=>{fe(!e[0].isIntersecting)}),r);i.observe(o);const a=new IntersectionObserver((e=>{be(!e[0].isIntersecting)}),r);return a.observe(n),()=>{i.disconnect(),a.disconnect()}}}),[Z,_,ve,w?.length]),n.useEffect((()=>{de(!0)}),[]),n.useEffect((()=>{Re()})),n.useEffect((()=>{He(j!==pe)}),[He,pe]),n.useImperativeHandle(v,(()=>({updateIndicator:Re,updateScrollButtons:je})),[Re,je]);const[Be,_e]=(0,O.A)("indicator",{className:(0,r.A)(le.indicator,K.className),elementType:N,externalForwardedProps:Se,ownerState:ae,additionalProps:{style:pe}}),Ve=(0,g.jsx)(Be,{..._e});let We=0;const Ge=n.Children.map(w,(e=>{if(!n.isValidElement(e))return null;const t=void 0===e.props.value?We:e.props.value;xe.set(t,We);const o=t===X;return We+=1,n.cloneElement(e,{fullWidth:"fullWidth"===Y,indicator:o&&!ue&&Ve,selected:o,selectionFollowsFocus:V,onChange:S,textColor:q,value:t,...1!==We||!1!==X||e.props.tabIndex?{}:{tabIndex:0}})})),Ke=(()=>{const e={};e.scrollbarSizeListener=Z?(0,g.jsx)($e,{...De,onChange:Le}):null;const t=Z&&("auto"===_&&(me||ge)||!0===_);return e.scrollButtonStart=t?(0,g.jsx)(Fe,{direction:u?"right":"left",onClick:Oe,disabled:!me,...Ne}):null,e.scrollButtonEnd=t?(0,g.jsx)(Fe,{direction:u?"left":"right",onClick:Te,disabled:!ge,...Ne}):null,e})(),[Ue,qe]=(0,O.A)("root",{ref:t,className:(0,r.A)(le.root,C),elementType:D,externalForwardedProps:{...Se,...J,component:x},ownerState:ae}),[Xe,Ye]=(0,O.A)("scroller",{ref:Ae,className:le.scroller,elementType:L,externalForwardedProps:Se,ownerState:ae,additionalProps:{style:{overflow:we.overflow,[ee?"margin"+(u?"Left":"Right"):"marginBottom"]:Q?void 0:-we.scrollbarWidth}}}),[Qe,Je]=(0,O.A)("list",{ref:Ee,className:(0,r.A)(le.list,le.flexContainer),elementType:F,externalForwardedProps:Se,ownerState:ae,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=Ee.current,o=(0,P.A)(t).activeElement;if("tab"!==o.getAttribute("role"))return;let n="horizontal"===I?"ArrowLeft":"ArrowUp",r="horizontal"===I?"ArrowRight":"ArrowDown";switch("horizontal"===I&&u&&(n="ArrowRight",r="ArrowLeft"),e.key){case n:e.preventDefault(),z(t,o,$);break;case r:e.preventDefault(),z(t,o,T);break;case"Home":e.preventDefault(),z(t,null,T);break;case"End":e.preventDefault(),z(t,null,$)}})(t),e.onKeyDown?.(t)}})});return(0,g.jsxs)(Ue,{...qe,children:[Ke.scrollButtonStart,Ke.scrollbarSizeListener,(0,g.jsxs)(Xe,{...Ye,children:[(0,g.jsx)(Qe,{"aria-label":m,"aria-labelledby":b,"aria-orientation":"vertical"===I?"vertical":null,role:"tablist",...Je,children:Ge}),ue&&Ve]}),Ke.scrollButtonEnd]})}));var _=o(65836);const V=n.forwardRef((function(e,t){const{children:o,...r}=e,i=(0,_.QM)();if(null===i)throw new TypeError("No TabContext provided");const a=n.Children.map(o,(e=>n.isValidElement(e)?n.cloneElement(e,{"aria-controls":(0,_.eR)(i,e.props.value),id:(0,_.vU)(i,e.props.value)}):null));return(0,g.jsx)(B,{...r,ref:t,value:i.value,children:a})}))},56416:(e,t,o)=>{"use strict";o.d(t,{A:()=>a,P:()=>i});var n=o(96148),r=o(1908);function i(e){return(0,r.Ay)("MuiInputAdornment",e)}const a=(0,n.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"])},56536:(e,t,o)=>{"use strict";o.d(t,{A:()=>i}),o(96540);var n=o(9792),r=o(74848);const i=(0,n.A)((0,r.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},57536:(e,t,o)=>{"use strict";var n=o(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(12897)),i=o(89569),a=(0,r.default)((0,r.default)({},i.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});t.default=a},57618:(e,t,o)=>{"use strict";o.d(t,{M:()=>y});var n=o(58168),r=o(98587),i=o(96540),a=o(14808),l=o(21362),s=o(34164),c=o(51280),u=o(25054),d=o(52504),p=o(85486),h=o(27961),m=o(77866);function f(e,t){if(!e.ref.current||!t.ref.current)return 0;const o=e.ref.current.compareDocumentPosition(t.ref.current);return o?o&Node.DOCUMENT_POSITION_FOLLOWING||o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS?1:0:0}var g=o(74848);const b=["render","className"],v=(0,a.A)("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:0,display:"flex",alignItems:"center",justifyContent:"end",gap:d.f.spacing(.25),padding:d.f.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${d.f.colors.border.base}`}),y=(0,c.R)((function(e,t){const{render:o,className:a}=e,c=(0,r.A)(e,b),d=(0,m.A)(),y=(e=>{const{classes:t}=e;return(0,l.A)({root:["toolbar"]},p.B,t)})(d),[w,C]=i.useState(null),[x,A]=i.useState([]),E=i.useCallback((()=>x.sort(f)),[x]),S=i.useCallback(((e,t,o=!0)=>{let n=e;const r=E(),i=r.length;for(let e=0;e=i){if(!o)return-1;n=0}else if(n<0){if(!o)return-1;n=i-1}if(!r[n].ref.current?.disabled&&"true"!==r[n].ref.current?.ariaDisabled)return n}return-1}),[E]),k=i.useCallback(((e,t)=>{A((o=>[...o,{id:e,ref:t}]))}),[]),R=i.useCallback((e=>{A((t=>t.filter((t=>t.id!==e))))}),[]),M=i.useCallback((e=>{if(!w)return;const t=E(),o=t.findIndex((e=>e.id===w));let n=-1;if("ArrowRight"===e.key?(e.preventDefault(),n=S(o,1)):"ArrowLeft"===e.key?(e.preventDefault(),n=S(o,-1)):"Home"===e.key?(e.preventDefault(),n=S(-1,1,!1)):"End"===e.key&&(e.preventDefault(),n=S(t.length,-1,!1)),n>=0&&n{w!==e&&C(e)}),[w,C]),P=i.useCallback((e=>{const t=E(),o=t.findIndex((t=>t.id===e)),n=S(o,1);if(n>=0&&n{const e=E();if(e.length>0){if(!w)return void C(e[0].id);const t=e.findIndex((e=>e.id===w));if(e[t]){if(-1===t){const o=e[t];o&&(C(o.id),o.ref.current?.focus())}}else{const t=e[e.length-1];t&&(C(t.id),t.ref.current?.focus())}}}),[E,S]);const O=i.useMemo((()=>({focusableItemId:w,registerItem:k,unregisterItem:R,onItemKeyDown:M,onItemFocus:I,onItemDisabled:P})),[w,k,R,M,I,P]),T=(0,u._)(v,o,(0,n.A)({role:"toolbar","aria-orientation":"horizontal","aria-label":d.label||void 0,className:(0,s.A)(y.root,a)},c,{ref:t}));return(0,g.jsx)(h.P.Provider,{value:O,children:T})}))},57787:(e,t)=>{"use strict";var o=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case r:case a:case i:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case u:case m:case h:case l:return e;default:return t}}case n:return t}}}(e)===h}},57798:(e,t,o)=>{"use strict";o.d(t,{e:()=>w});var n=o(58168),r=o(98587),i=o(96540),a=o(52044),l=o(3576),s=o(91092),c=o(322),u=o(25054),d=o(43203),p=o(83753),h=o(74435),m=o(32067),f=o(77866),g=o(74848);const b=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],v=e=>e.split(" ").filter((e=>""!==e)),y=e=>e.join(" ");function w(e){const t=(0,f.A)(),{render:o,className:w,parser:C=v,formatter:x=y,debounceMs:A=t.filterDebounceMs,defaultExpanded:E,expanded:S,onExpandedChange:k}=e,R=(0,r.A)(e,b),M=(0,p.h)(),I=i.useRef(null),P=i.useRef(null),O=(0,h.Nc)(M,m.q6),[T,$]=i.useState(x(O??[])),[z,D]=i.useState(E??T.length>0),L=S??z,F=i.useMemo((()=>({value:T,expanded:L})),[T,L]),N="function"==typeof w?w(F):w,H=i.useRef(null),j=(0,s.A)(),B=i.useCallback((e=>{k&&k(e),void 0===S&&D(e)}),[k,S]),_=i.useRef(O);i.useEffect((()=>{(0,c.H)(_.current,O)||(_.current=O,$((e=>(0,c.H)(C(e),O)?e:x(O??[]))))}),[O,x,C]);const V=i.useRef(!0),W=i.useRef(L);i.useEffect((()=>{V.current?V.current=!1:W.current!==L&&(L?requestAnimationFrame((()=>{I.current?.focus({preventScroll:!0})})):P.current?.focus({preventScroll:!0}),W.current=L)}),[L]);const G=i.useMemo((()=>(0,a.A)((e=>{const t=C(e);_.current=t,M.current.setQuickFilterValues(t)}),A)),[M,A,C]);i.useEffect((()=>G.clear),[G]);const K=i.useCallback((e=>{const t=e.target.value;$(t),G(t)}),[G]),U=i.useCallback((()=>{$(""),M.current.setQuickFilterValues([]),I.current?.focus()}),[M,I]),q=i.useMemo((()=>({controlRef:I,triggerRef:P,state:F,controlId:j,clearValue:U,onValueChange:K,onExpandedChange:B})),[j,F,K,U,B]);(0,l.A)((()=>{H.current&&P.current&&H.current.style.setProperty("--trigger-width",`${P.current?.offsetWidth}px`)}),[]);const X=(0,u._)("div",o,(0,n.A)({className:N},R,{ref:H}),F);return(0,g.jsx)(d.f.Provider,{value:q,children:X})}},58296:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(21124),r=o(4894),i=o(31355);function a({props:e,name:t}){return(0,n.A)({props:e,name:t,defaultTheme:r.A,themeId:i.A})}},58493:(e,t,o)=>{"use strict";var n=o(96540),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,a=n.useEffect,l=n.useLayoutEffect,s=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!r(e,o)}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 o=t(),n=i({inst:{value:o,getSnapshot:t}}),r=n[0].inst,u=n[1];return l((function(){r.value=o,r.getSnapshot=t,c(r)&&u({inst:r})}),[e,o,t]),a((function(){return c(r)&&u({inst:r}),e((function(){c(r)&&u({inst:r})}))}),[e]),s(o),o};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},58503:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n=o(96540).createContext({})},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},59636:(e,t,o)=>{"use strict";o.d(t,{A:()=>w});var n=o(96540),r=o(34164),i=o(21362),a=o(26739),l=o(39241),s=o(20439),c=o(38329),u=o(90729),d=o(96148),p=o(1908);function h(e){return(0,p.Ay)("MuiAccordionSummary",e)}const m=(0,d.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);var f=o(85078),g=o(74848);const b=(0,a.Ay)(c.A,{name:"MuiAccordionSummary",slot:"Root"})((0,l.A)((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${m.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${m.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${m.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${m.expanded}`]:{minHeight:64}}}]}}))),v=(0,a.Ay)("span",{name:"MuiAccordionSummary",slot:"Content"})((0,l.A)((({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${m.expanded}`]:{margin:"20px 0"}}}]})))),y=(0,a.Ay)("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})((0,l.A)((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${m.expanded}`]:{transform:"rotate(180deg)"}})))),w=n.forwardRef((function(e,t){const o=(0,s.b)({props:e,name:"MuiAccordionSummary"}),{children:a,className:l,expandIcon:c,focusVisibleClassName:d,onClick:p,slots:m,slotProps:w,...C}=o,{disabled:x=!1,disableGutters:A,expanded:E,toggle:S}=n.useContext(u.A),k={...o,expanded:E,disabled:x,disableGutters:A},R=(e=>{const{classes:t,expanded:o,disabled:n,disableGutters:r}=e,a={root:["root",o&&"expanded",n&&"disabled",!r&&"gutters"],focusVisible:["focusVisible"],content:["content",o&&"expanded",!r&&"contentGutters"],expandIconWrapper:["expandIconWrapper",o&&"expanded"]};return(0,i.A)(a,h,t)})(k),M={slots:m,slotProps:w},[I,P]=(0,f.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,r.A)(R.root,l),elementType:b,externalForwardedProps:{...M,...C},ownerState:k,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:x,"aria-expanded":E,focusVisibleClassName:(0,r.A)(R.focusVisible,d)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{S&&S(e),p&&p(e)})(t)}})}),[O,T]=(0,f.A)("content",{className:R.content,elementType:v,externalForwardedProps:M,ownerState:k}),[$,z]=(0,f.A)("expandIconWrapper",{className:R.expandIconWrapper,elementType:y,externalForwardedProps:M,ownerState:k});return(0,g.jsxs)(I,{...P,children:[(0,g.jsx)(O,{...T,children:a}),c&&(0,g.jsx)($,{...z,children:c})]})}))},60436:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var n=o(43145),r=o(73893),i=o(27800);function a(e){return function(e){if(Array.isArray(e))return(0,n.A)(e)}(e)||(0,r.A)(e)||(0,i.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},60685:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n=(0,o(96540).createContext)(void 0)},60957:(e,t,o)=>{"use strict";o.d(t,{T2:()=>n,gE:()=>i,vB:()=>r});const n="__TREE_VIEW_ROOT_PARENT_ID__",r=e=>{const t={};return e.forEach(((e,o)=>{t[e]=o})),t},i=(e,t)=>{if(null==t)return!1;let o=e[t];if(!o)return!1;if(o.disabled)return!0;for(;null!=o.parentId;){if(o=e[o.parentId],!o)return!1;if(o.disabled)return!0}return!1}},61053:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n=(0,o(96540).createContext)({})},62279:(e,t,o)=>{"use strict";o.d(t,{QO:()=>l,TP:()=>u,lJ:()=>a,pM:()=>i,yH:()=>r});var n=o(96540);const r="ant",i="anticon",a=["outlined","borderless","filled","underlined"],l=n.createContext({getPrefixCls:(e,t)=>t||(e?`${r}-${e}`:r),iconPrefixCls:i}),{Consumer:s}=l,c={};function u(e){const t=n.useContext(l),{getPrefixCls:o,direction:r,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:c,styles:c},a),{getPrefixCls:o,direction:r,getPopupContainer:i})}},63518:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9792),r=o(74848);const i=(0,n.A)((0,r.jsx)("path",{d:"M19 6.41 17.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"}),"Close")},63543:(e,t,o)=>{"use strict";o.d(t,{yh:()=>ae});var n=o(98587),r=o(58168),i=o(96540),a=o(34164),l=o(8861),s=o(82777),c=o(42030),u=o(27629),d=o(53948),p=o(63248),h=o(21362),m=o(9553),f=o(26739),g=o(52658),b=o(24902),v=o(29677),y=o(41519),w=o(65658),C=o(29401),x=o(27668),A=o(31418),E=o(10786),S=o(64938),k=o(31216);const R=(0,k.M)([e=>e.lazyLoading],(e=>e.dataSource)),M=(0,k.M)([e=>e.lazyLoading],(e=>!!e?.enabled)),I=(0,k.M)([R,(e,t)=>t],((e,t)=>e.loading[t]||!1)),P=(0,k.M)([R,(e,t)=>t],((e,t)=>e.errors[t]||null));var O=o(81326);const T=e=>Array.isArray(e)?e.length>0&&e.some(T):Boolean(e);var $=o(42049),z=o(28540),D=o(80886),L=o(25149);var F=o(65348),N=o(33044),H=o(19268),j=o(9792),B=o(74848);const _=(0,j.A)((0,B.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),V=(0,j.A)((0,B.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function W(e){const{slots:t,slotProps:o,status:n}=e,{slots:i,slotProps:a}=(0,H.P)(),l={collapseIcon:t?.collapseIcon??i.collapseIcon??V,expandIcon:t?.expandIcon??i.expandIcon??_,endIcon:t?.endIcon??i.endIcon,icon:t?.icon};let s;s=l?.icon?"icon":n.expandable?n.expanded?"collapseIcon":"expandIcon":"endIcon";const c=l[s],u=(0,d.A)({elementType:c,externalSlotProps:e=>(0,r.A)({},(0,N.A)(a[s],e),(0,N.A)(o?.[s],e)),ownerState:{}});return c?(0,B.jsx)(c,(0,r.A)({},u)):null}const G=(0,f.Ay)("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>(0,p.MC)(e)&&"action"!==e})((({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:(0,s.X4)(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]})));function K(e){return null==e.action?null:(0,B.jsx)(G,(0,r.A)({},e))}function U(e){const{children:t,itemId:o,id:n}=e,{wrapItem:r,instance:a,store:l}=(0,v.i)(),s=(0,C.d)(l,L.U),c=(0,D.Q)({itemId:o,treeId:s,id:n});return(0,B.jsx)(i.Fragment,{children:r({children:t,itemId:o,instance:a,idAttribute:c})})}const q=(0,f.Ay)("input",{name:"MuiTreeItem",slot:"LabelInput"})((({theme:e})=>(0,r.A)({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}}))),X=["visible"],Y=["id","itemId","label","disabled","children","slots","slotProps","classes"],Q=(0,m.h)("MuiTreeItem"),J=(0,f.Ay)("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),Z=(0,f.Ay)("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>(0,p.MC)(e)&&"status"!==e})((({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}))),ee=(0,f.Ay)("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>(0,p.MC)(e)&&"editable"!==e})((({theme:e})=>(0,r.A)({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:e})=>e,style:{paddingLeft:"2px"}}]}))),te=(0,f.Ay)("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative","& svg":{fontSize:18}}),oe=(0,f.Ay)(c.A,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),ne=(0,f.Ay)("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),re=(0,f.Ay)(l.A,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),ie=(0,f.Ay)(i.forwardRef(((e,t)=>{const{visible:o}=e,i=(0,n.A)(e,X);return o?(0,B.jsx)(u.A,(0,r.A)({},i,{ref:t})):null})),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0}),ae=i.forwardRef((function(e,t){const o=Q({props:e,name:"MuiTreeItem"}),{id:l,itemId:s,label:c,disabled:u,children:p,slots:m={},slotProps:f={},classes:k}=o,R=(0,n.A)(o,Y),{getContextProviderProps:N,getRootProps:j,getContentProps:_,getIconContainerProps:V,getCheckboxProps:G,getLabelProps:X,getGroupTransitionProps:ae,getLabelInputProps:le,getDragAndDropOverlayProps:se,getErrorContainerProps:ce,getLoadingContainerProps:ue,status:de}=(e=>{const{runItemPlugins:t,instance:o,publicAPI:n,store:a}=(0,v.i)(),l=i.useContext($.z),s=(0,C.d)(a,((...e)=>"function"==typeof l?l(...e):l),e.itemId),{id:c,itemId:u,label:d,children:p,rootRef:h}=e,{rootRef:m,contentRef:f,propsEnhancers:k}=t(e),{interactions:R,status:F}=(({itemId:e,children:t})=>{const{instance:o,store:n,publicAPI:r}=(0,v.i)(),i=(0,C.d)(n,x.Rt,e),a=(0,C.d)(n,M),l=(0,C.d)(n,S.UK),s=(0,C.d)(n,(t=>!!a&&I(t,e))),c=(0,C.d)(n,(t=>!!a&&Boolean(P(t,e)))),u=T(t)||i,d=(0,C.d)(n,x.QQ,e),p=(0,C.d)(n,A.I$,e),h=(0,C.d)(n,S.cs,e),m=(0,C.d)(n,E.lj,e),f=(0,C.d)(n,O.XG,e),g=(0,C.d)(n,O.pF,e),b={expandable:u,expanded:d,focused:p,selected:h,disabled:m,editing:f,editable:g,loading:s,error:c},k=()=>{(0,w.M)(o,y.j)&&(f?o.setEditedItem(null):o.setEditedItem(e))};return{interactions:{handleExpansion:t=>{if(b.disabled)return;b.focused||o.focusItem(t,e);const r=l&&(t.shiftKey||t.ctrlKey||t.metaKey);!b.expandable||r&&(0,x.QQ)(n.value,e)||o.setItemExpansion({event:t,itemId:e})},handleSelection:t=>{b.disabled||(b.focused||b.editing||o.focusItem(t,e),l&&(t.shiftKey||t.ctrlKey||t.metaKey)?t.shiftKey?o.expandSelectionRange(t,e):o.setItemSelection({event:t,itemId:e,keepExistingSelection:!0}):o.setItemSelection({event:t,itemId:e,shouldBeSelected:!0}))},handleCheckboxSelection:t=>{const n=t.nativeEvent.shiftKey;l&&n?o.expandSelectionRange(t,e):o.setItemSelection({event:t,itemId:e,keepExistingSelection:l,shouldBeSelected:t.target.checked})},toggleItemEditing:k,handleSaveItemLabel:(t,r)=>{(0,w.M)(o,y.j)&&(0,O.XG)(n.value,e)&&(o.updateItemLabel(e,r),k(),o.focusItem(t,e))},handleCancelItemLabelEditing:t=>{(0,w.M)(o,y.j)&&(0,O.XG)(n.value,e)&&(k(),o.focusItem(t,e))}},status:b,publicAPI:r}})({itemId:u,children:p}),N=i.useRef(null),H=i.useRef(null),j=(0,b.A)(h,m,N),B=(0,b.A)(f,H),_=i.useRef(null),V=(0,C.d)(a,L.U),W=(0,C.d)(a,S.AJ,u),G=(0,C.d)(a,S.Ye),K=(0,D.Q)({itemId:u,treeId:V,id:c}),U=(0,C.d)(a,A.U_,u),q={rootRefObject:N,contentRefObject:H,interactions:R},X=e=>t=>{if(e.onBlur?.(t),t.defaultMuiPrevented)return;const n=o.getItemDOMElement(u);F.editing||t.relatedTarget&&(0,z.HZ)(t.relatedTarget,n)&&(t.target&&"labelInput"===t.target?.dataset?.element&&(0,z.HZ)(t.target,n)||"labelInput"===t.relatedTarget?.dataset?.element)||o.removeFocusedItem()},Y=e=>t=>{e.onKeyDown?.(t),t.defaultMuiPrevented||"labelInput"===t.target?.dataset?.element||o.handleItemKeyDown(t,u)},Q=e=>t=>{e.onMouseDown?.(t),t.defaultMuiPrevented||(t.shiftKey||t.ctrlKey||t.metaKey||F.disabled)&&t.preventDefault()};return{getContextProviderProps:()=>({itemId:u,id:c}),getRootProps:(t={})=>{const n=(0,r.A)({},(0,g.A)(e),(0,g.A)(t));let i;i=!!F.selected||!W&&void 0;const l=(0,r.A)({},n,{ref:j,role:"treeitem",tabIndex:U?0:-1,id:K,"aria-expanded":F.expandable?F.expanded:void 0,"aria-selected":i,"aria-disabled":F.disabled||void 0},t,{style:(0,r.A)({},t.style??{},{"--TreeView-itemDepth":s}),onFocus:(c=n,e=>{c.onFocus?.(e),e.defaultMuiPrevented||!F.focused&&(0,E.P$)(a.value,u)&&e.currentTarget===e.target&&o.focusItem(e,u)}),onBlur:X(n),onKeyDown:Y(n)});var c;const d=k.root?.((0,r.A)({},q,{externalEventHandlers:n}))??{};return(0,r.A)({},l,d)},getContentProps:(e={})=>{const t=(0,g.A)(e),n=(0,r.A)({},t,e,{ref:B,onClick:(i=t,e=>{i.onClick?.(e),o.handleItemClick(e,u),e.defaultMuiPrevented||_.current?.contains(e.target)||("content"===(0,x.cP)(a.value)&&R.handleExpansion(e),G||R.handleSelection(e))}),onMouseDown:Q(t),status:F});var i;["expanded","selected","focused","disabled","editing","editable"].forEach((e=>{F[e]&&(n[`data-${e}`]="")}));const l=k.content?.((0,r.A)({},q,{externalEventHandlers:t}))??{};return(0,r.A)({},n,l)},getGroupTransitionProps:(e={})=>{const t=(0,g.A)(e);return(0,r.A)({},t,{unmountOnExit:!0,component:"ul",role:"group",in:F.expanded,children:p},e)},getIconContainerProps:(e={})=>{const t=(0,g.A)(e);return(0,r.A)({},t,e,{onClick:(o=t,e=>{o.onClick?.(e),e.defaultMuiPrevented||"iconContainer"===(0,x.cP)(a.value)&&R.handleExpansion(e)})});var o},getCheckboxProps:(e={})=>{const t=(0,g.A)(e),o=(0,r.A)({},t,{ref:_},e),n=k.checkbox?.((0,r.A)({},q,{externalEventHandlers:t}))??{};return(0,r.A)({},o,n)},getLabelProps:(e={})=>{const t=(0,r.A)({},(0,g.A)(e)),o=(0,r.A)({},t,{children:d},e,{onDoubleClick:(n=t,e=>{n.onDoubleClick?.(e),e.defaultMuiPrevented||R.toggleItemEditing()})});var n;const i=k.label?.((0,r.A)({},q,{externalEventHandlers:t}))??{};return(0,r.A)({},i,o)},getLabelInputProps:(e={})=>{const t=(0,g.A)(e),o=k.labelInput?.((0,r.A)({},q,{externalEventHandlers:t}))??{};return(0,r.A)({},e,o)},getDragAndDropOverlayProps:(e={})=>{const t=(0,g.A)(e),o=k.dragAndDropOverlay?.((0,r.A)({},q,{externalEventHandlers:t}))??{};return(0,r.A)({},e,o)},getErrorContainerProps:(e={})=>{const t=(0,g.A)(e);return(0,r.A)({},t,e)},getLoadingContainerProps:(e={})=>{const t=(0,g.A)(e);return(0,r.A)({size:"12px",thickness:6},t,e)},rootRef:j,status:F,publicAPI:n}})({id:l,itemId:s,children:p,label:c,disabled:u}),pe=(e=>{const{classes:t}=(0,H.P)(),o=(0,r.A)({},e,{root:(0,a.A)(e?.root,t.root),content:(0,a.A)(e?.content,t.itemContent),iconContainer:(0,a.A)(e?.iconContainer,t.itemIconContainer),checkbox:(0,a.A)(e?.checkbox,t.itemCheckbox),label:(0,a.A)(e?.label,t.itemLabel),groupTransition:(0,a.A)(e?.groupTransition,t.itemGroupTransition),labelInput:(0,a.A)(e?.labelInput,t.itemLabelInput),dragAndDropOverlay:(0,a.A)(e?.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:(0,a.A)(e?.errorIcon,t.itemErrorIcon),loadingIcon:(0,a.A)(e?.loadingIcon,t.itemLoadingIcon)});return(0,h.A)({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"],expanded:["expanded"],editing:["editing"],editable:["editable"],selected:["selected"],focused:["focused"],disabled:["disabled"]},F.K,o)})(k),he=m.root??J,me=(0,d.A)({elementType:he,getSlotProps:j,externalForwardedProps:R,externalSlotProps:f.root,additionalProps:{ref:t},ownerState:{},className:pe.root}),fe=m.content??Z,ge=(0,d.A)({elementType:fe,getSlotProps:_,externalSlotProps:f.content,ownerState:{},className:(0,a.A)(pe.content,de.expanded&&pe.expanded,de.selected&&pe.selected,de.focused&&pe.focused,de.disabled&&pe.disabled,de.editing&&pe.editing,de.editable&&pe.editable)}),be=m.iconContainer??te,ve=(0,d.A)({elementType:be,getSlotProps:V,externalSlotProps:f.iconContainer,ownerState:{},className:pe.iconContainer}),ye=m.label??ee,we=(0,d.A)({elementType:ye,getSlotProps:X,externalSlotProps:f.label,ownerState:{},className:pe.label}),Ce=m.checkbox??ie,xe=(0,d.A)({elementType:Ce,getSlotProps:G,externalSlotProps:f.checkbox,ownerState:{},className:pe.checkbox}),Ae=m.groupTransition??void 0,Ee=(0,d.A)({elementType:Ae,getSlotProps:ae,externalSlotProps:f.groupTransition,ownerState:{},className:pe.groupTransition}),Se=m.labelInput??q,ke=(0,d.A)({elementType:Se,getSlotProps:le,externalSlotProps:f.labelInput,ownerState:{},className:pe.labelInput}),Re=m.dragAndDropOverlay??K,Me=(0,d.A)({elementType:Re,getSlotProps:se,externalSlotProps:f.dragAndDropOverlay,ownerState:{},className:pe.dragAndDropOverlay}),Ie=m.errorIcon??ne,Pe=(0,d.A)({elementType:Ie,getSlotProps:ce,externalSlotProps:f.errorIcon,ownerState:{},className:pe.errorIcon}),Oe=m.loadingIcon??re,Te=(0,d.A)({elementType:Oe,getSlotProps:ue,externalSlotProps:f.loadingIcon,ownerState:{},className:pe.loadingIcon});return(0,B.jsx)(U,(0,r.A)({},N(),{children:(0,B.jsxs)(he,(0,r.A)({},me,{children:[(0,B.jsxs)(fe,(0,r.A)({},ge,{children:[(0,B.jsxs)(be,(0,r.A)({},ve,{children:[de.error&&(0,B.jsx)(Ie,(0,r.A)({},Pe)),de.loading?(0,B.jsx)(Oe,(0,r.A)({},Te)):(0,B.jsx)(W,{status:de,slots:m,slotProps:f})]})),(0,B.jsx)(Ce,(0,r.A)({},xe)),de.editing?(0,B.jsx)(Se,(0,r.A)({},ke)):(0,B.jsx)(ye,(0,r.A)({},we)),(0,B.jsx)(Re,(0,r.A)({},Me))]})),p&&(0,B.jsx)(oe,(0,r.A)({as:Ae},Ee))]}))}))}))},64467:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(20816);function r(e,t,o){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}},64562:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9792),r=o(74848);const i=(0,n.A)((0,r.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},64938:(e,t,o)=>{"use strict";o.d(t,{AJ:()=>h,BF:()=>d,Fj:()=>m,Go:()=>l,T:()=>a,UK:()=>u,Ye:()=>p,cs:()=>c});var n=o(31216),r=o(10786);const i=e=>e.selection,a=(0,n.M)([i],(e=>e.selectedItems)),l=(0,n.M)([a],(e=>Array.isArray(e)?e:null!=e?[e]:[])),s=(0,n.M)([l],(e=>{const t=new Map;return e.forEach((e=>{t.set(e,!0)})),t})),c=(0,n.M)([s,(e,t)=>t],((e,t)=>e.has(t))),u=(0,n.M)([i],(e=>e.isEnabled&&e.isMultiSelectEnabled)),d=(0,n.M)([i],(e=>e.isEnabled)),p=(0,n.M)([i],(e=>e.isCheckboxSelectionEnabled)),h=(0,n.M)([r.lj,d],((e,t)=>t&&!e)),m=(0,n.M)([i],(e=>e.selectionPropagation))},64951:(e,t,o)=>{"use strict";o.d(t,{A:()=>b});var n=o(96540),r=o(34164),i=o(21362),a=o(38329),l=o(39407),s=o(26739),c=o(39241),u=o(20439),d=o(96148),p=o(1908);function h(e){return(0,p.Ay)("MuiTab",e)}const m=(0,d.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]);var f=o(74848);const g=(0,s.Ay)(a.A,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${(0,l.A)(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped,{[`& .${m.iconWrapper}`]:t.iconWrapper},{[`& .${m.icon}`]:t.icon}]}})((0,c.A)((({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${m.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${m.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${m.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${m.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${m.selected}`]:{opacity:1},[`&.${m.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${m.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${m.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]})))),b=n.forwardRef((function(e,t){const o=(0,u.b)({props:e,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:d,icon:p,iconPosition:m="top",indicator:b,label:v,onChange:y,onClick:w,onFocus:C,selected:x,selectionFollowsFocus:A,textColor:E="inherit",value:S,wrapped:k=!1,...R}=o,M={...o,disabled:s,disableFocusRipple:c,selected:x,icon:!!p,iconPosition:m,label:!!v,fullWidth:d,textColor:E,wrapped:k},I=(e=>{const{classes:t,textColor:o,fullWidth:n,wrapped:r,icon:a,label:s,selected:c,disabled:u}=e,d={root:["root",a&&s&&"labelIcon",`textColor${(0,l.A)(o)}`,n&&"fullWidth",r&&"wrapped",c&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return(0,i.A)(d,h,t)})(M),P=p&&v&&n.isValidElement(p)?n.cloneElement(p,{className:(0,r.A)(I.icon,p.props.className)}):p;return(0,f.jsxs)(g,{focusRipple:!c,className:(0,r.A)(I.root,a),ref:t,role:"tab","aria-selected":x,disabled:s,onClick:e=>{!x&&y&&y(e,S),w&&w(e)},onFocus:e=>{A&&!x&&y&&y(e,S),C&&C(e)},ownerState:M,tabIndex:x?0:-1,...R,children:["top"===m||"start"===m?(0,f.jsxs)(n.Fragment,{children:[P,v]}):(0,f.jsxs)(n.Fragment,{children:[v,P]}),b]})}))},65347:(e,t,o)=>{"use strict";o.d(t,{HZ:()=>s,Mk:()=>l,OL:()=>i,Oq:()=>y,Qy:()=>v,SN:()=>g,TW:()=>p,Z:()=>u,Ze:()=>f,e$:()=>c,fS:()=>d,gb:()=>a,l_:()=>m,nF:()=>h,nW:()=>w,ro:()=>b});var n=o(58168),r=o(24349);const i="auto-generated-group-node-root",a=Symbol("mui.id_autogenerated"),l=()=>({type:"group",id:i,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null}),s=(e,t,o)=>{const n=t?t(e):e.id;return function(e,t,o="A row was provided without id in the rows prop:"){if(null==e)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",o,JSON.stringify(t)].join("\n"))}(n,e,o),n},c=(e,t,o)=>{const n=t.field;if(!t||!t.valueGetter)return e[n];const r=e[t.field];return t.valueGetter(r,e,t,o)},u=({rows:e,getRowId:t,loading:o,rowCount:n})=>{const r={type:"full",rows:[]},i={};for(let o=0;o{const o=e[i];return Math.max(t,o.children.length+(null==o.footerId?0:1))},p=({apiRef:e,rowCountProp:t=0,loadingProp:o,previousTree:r,previousTreeDepths:i,previousGroupsToFetch:a})=>{const l=e.current.caches.rows,{tree:s,treeDepths:c,dataRowIds:u,groupingName:p,groupsToFetch:h=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:i,updates:l.updates,dataRowIdToModelLookup:l.dataRowIdToModelLookup,previousGroupsToFetch:a}),m=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:c,dataRowIds:u,dataRowIdToModelLookup:l.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},(0,n.A)({},m,{totalRowCount:Math.max(t,m.dataRowIds.length),totalTopLevelRowCount:d({tree:m.tree,rowCountProp:t}),groupingName:p,loading:o,groupsToFetch:h})},h=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,m=(e,t,o)=>{const n=e[t];if("group"!==n.type)return[];const r=[];for(let t=0;t{if("full"===e.updates.type)throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const i=new Map;o.forEach((e=>{const o=s(e,t,"A row was provided without id when calling updateRows():");i.has(o)?i.set(o,(0,n.A)({},i.get(o),e)):i.set(o,e)}));const a={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:(0,n.A)({},e.updates.idToActionLookup),groupKeys:r},l=(0,n.A)({},e.dataRowIdToModelLookup),c={insert:{},modify:{},remove:{}};i.forEach(((e,t)=>{const o=a.idToActionLookup[t];if("delete"===e._action){if("remove"===o||!l[t])return;return null!=o&&(c[o][t]=!0),a.actions.remove.push(t),void delete l[t]}const r=l[t];if(r)return"remove"===o?(c.remove[t]=!0,a.actions.modify.push(t)):null==o&&a.actions.modify.push(t),void(l[t]=(0,n.A)({},r,e));"remove"===o?(c.remove[t]=!0,a.actions.insert.push(t)):null==o&&a.actions.insert.push(t),l[t]=e}));const u=Object.keys(c);for(let e=0;e0&&(a.actions[t]=a.actions[t].filter((e=>!o[e])))}return{dataRowIdToModelLookup:l,updates:a,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},g="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function b(e,t,o){const i=[];return t.forEach((t=>{const a=s(t,o,"A row was provided without id when calling updateRows():"),l=(0,r.Qu)(e,a);if("pinnedRow"===l?.type){const o=e.current.caches.pinnedRows,r=o.idLookup[a];r&&(o.idLookup[a]=(0,n.A)({},r,t))}else i.push(t)})),i}const v=(e,t,o)=>"number"==typeof e&&e>0?e:t,y=["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join("\n"),w=["MUI X: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join("\n")},65348:(e,t,o)=>{"use strict";o.d(t,{K:()=>r,m:()=>i});var n=o(1908);function r(e){return(0,n.Ay)("MuiTreeItem",e)}const i=(0,o(96148).A)("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon","expanded","selected","focused","disabled","editable","editing"])},65658:(e,t,o)=>{"use strict";o.d(t,{M:()=>n});const n=(e,t)=>e.getAvailablePlugins().has(t)},65836:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>a,QM:()=>l,eR:()=>s,vU:()=>c});var n=o(96540),r=o(74848);const i=n.createContext(null);function a(e){const{children:t,value:o}=e,a=function(){const[e,t]=n.useState(null);return n.useEffect((()=>{t(`mui-p-${Math.round(1e5*Math.random())}`)}),[]),e}(),l=n.useMemo((()=>({idPrefix:a,value:o})),[a,o]);return(0,r.jsx)(i.Provider,{value:l,children:t})}function l(){return n.useContext(i)}function s(e,t){const{idPrefix:o}=e;return null===o?null:`${e.idPrefix}-P-${t}`}function c(e,t){const{idPrefix:o}=e;return null===o?null:`${e.idPrefix}-T-${t}`}},66351:(e,t,o)=>{"use strict";e.exports=o(57787)},66588:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>s,fk:()=>a,rb:()=>l});var n=o(82284),r=o(96540),i=o(40961);function a(e){return e instanceof HTMLElement||e instanceof SVGElement}function l(e){return e&&"object"===(0,n.A)(e)&&a(e.nativeElement)?e.nativeElement:a(e)?e:null}function s(e){var t;return l(e)||(e instanceof r.Component?null===(t=i.findDOMNode)||void 0===t?void 0:t.call(i,e):null)}},67018:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},68210:(e,t,o)=>{"use strict";o.d(t,{$e:()=>i,Ay:()=>c});var n={},r=[];function i(e,t){}function a(e,t){}function l(e,t,o){t||n[o]||(e(!1,o),n[o]=!0)}function s(e,t){l(i,e,t)}s.preMessage=function(e){r.push(e)},s.resetWarned=function(){n={}},s.noteOnce=function(e,t){l(a,e,t)};const c=s},72552:(e,t,o)=>{var n=o(51873),r=o(659),i=o(59350),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):i(e)}},73514:(e,t,o)=>{"use strict";o.d(t,{A:()=>D});var n=o(96540),r=o(34164),i=o(32350),a=o(21362),l=o(82777),s=o(411),c=o(49450),u=o(17726),d=o(26739),p=o(53356),h=o(39241),m=o(20439),f=o(39407),g=o(38572),b=o(27519),v=o(54403),y=o(30301),w=o(54587),C=o(1152),x=o(85078),A=o(96148),E=o(1908);function S(e){return(0,E.Ay)("MuiTooltip",e)}const k=(0,A.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var R=o(74848);const M=(0,d.Ay)(b.A,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.popper,!o.disableInteractive&&t.popperInteractive,o.arrow&&t.popperArrow,!o.open&&t.popperClose]}})((0,h.A)((({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${k.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${k.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${k.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${k.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${k.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${k.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${k.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${k.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]})))),I=(0,d.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.tooltip,o.touch&&t.touch,o.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,f.A)(o.placement.split("-")[0])}`]]}})((0,h.A)((({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,l.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${k.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${k.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${k.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${k.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${k.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${k.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${k.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${k.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${k.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${k.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${k.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${k.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${k.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${k.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t}))),P=(0,d.Ay)("span",{name:"MuiTooltip",slot:"Arrow"})((0,h.A)((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,l.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))));let O=!1;const T=new i.E;let $={x:0,y:0};function z(e,t){return(o,...n)=>{t&&t(o,...n),e(o,...n)}}const D=n.forwardRef((function(e,t){const o=(0,m.b)({props:e,name:"MuiTooltip"}),{arrow:l=!1,children:d,classes:h,components:A={},componentsProps:E={},describeChild:k=!1,disableFocusListener:D=!1,disableHoverListener:L=!1,disableInteractive:F=!1,disableTouchListener:N=!1,enterDelay:H=100,enterNextDelay:j=0,enterTouchDelay:B=700,followCursor:_=!1,id:V,leaveDelay:W=0,leaveTouchDelay:G=1500,onClose:K,onOpen:U,open:q,placement:X="bottom",PopperComponent:Y,PopperProps:Q={},slotProps:J={},slots:Z={},title:ee,TransitionComponent:te,TransitionProps:oe,...ne}=o,re=n.isValidElement(d)?d:(0,R.jsx)("span",{children:d}),ie=(0,p.A)(),ae=(0,s.I)(),[le,se]=n.useState(),[ce,ue]=n.useState(null),de=n.useRef(!1),pe=F||_,he=(0,i.A)(),me=(0,i.A)(),fe=(0,i.A)(),ge=(0,i.A)(),[be,ve]=(0,C.A)({controlled:q,default:!1,name:"Tooltip",state:"open"});let ye=be;const we=(0,w.A)(V),Ce=n.useRef(),xe=(0,v.A)((()=>{void 0!==Ce.current&&(document.body.style.WebkitUserSelect=Ce.current,Ce.current=void 0),ge.clear()}));n.useEffect((()=>xe),[xe]);const Ae=e=>{T.clear(),O=!0,ve(!0),U&&!ye&&U(e)},Ee=(0,v.A)((e=>{T.start(800+W,(()=>{O=!1})),ve(!1),K&&ye&&K(e),he.start(ie.transitions.duration.shortest,(()=>{de.current=!1}))})),Se=e=>{de.current&&"touchstart"!==e.type||(le&&le.removeAttribute("title"),me.clear(),fe.clear(),H||O&&j?me.start(O?j:H,(()=>{Ae(e)})):Ae(e))},ke=e=>{me.clear(),fe.start(W,(()=>{Ee(e)}))},[,Re]=n.useState(!1),Me=e=>{(0,c.A)(e.target)||(Re(!1),ke(e))},Ie=e=>{le||se(e.currentTarget),(0,c.A)(e.target)&&(Re(!0),Se(e))},Pe=e=>{de.current=!0;const t=re.props;t.onTouchStart&&t.onTouchStart(e)};n.useEffect((()=>{if(ye)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&Ee(e)}}),[Ee,ye]);const Oe=(0,y.A)((0,u.A)(re),se,t);ee||0===ee||(ye=!1);const Te=n.useRef(),$e={},ze="string"==typeof ee;k?($e.title=ye||!ze||L?null:ee,$e["aria-describedby"]=ye?we:null):($e["aria-label"]=ze?ee:null,$e["aria-labelledby"]=ye&&!ze?we:null);const De={...$e,...ne,...re.props,className:(0,r.A)(ne.className,re.props.className),onTouchStart:Pe,ref:Oe,..._?{onMouseMove:e=>{const t=re.props;t.onMouseMove&&t.onMouseMove(e),$={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}},Le={};N||(De.onTouchStart=e=>{Pe(e),fe.clear(),he.clear(),xe(),Ce.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ge.start(B,(()=>{document.body.style.WebkitUserSelect=Ce.current,Se(e)}))},De.onTouchEnd=e=>{re.props.onTouchEnd&&re.props.onTouchEnd(e),xe(),fe.start(G,(()=>{Ee(e)}))}),L||(De.onMouseOver=z(Se,De.onMouseOver),De.onMouseLeave=z(ke,De.onMouseLeave),pe||(Le.onMouseOver=Se,Le.onMouseLeave=ke)),D||(De.onFocus=z(Ie,De.onFocus),De.onBlur=z(Me,De.onBlur),pe||(Le.onFocus=Ie,Le.onBlur=Me));const Fe={...o,isRtl:ae,arrow:l,disableInteractive:pe,placement:X,PopperComponentProp:Y,touch:de.current},Ne="function"==typeof J.popper?J.popper(Fe):J.popper,He=n.useMemo((()=>{let e=[{name:"arrow",enabled:Boolean(ce),options:{element:ce,padding:4}}];return Q.popperOptions?.modifiers&&(e=e.concat(Q.popperOptions.modifiers)),Ne?.popperOptions?.modifiers&&(e=e.concat(Ne.popperOptions.modifiers)),{...Q.popperOptions,...Ne?.popperOptions,modifiers:e}}),[ce,Q.popperOptions,Ne?.popperOptions]),je=(e=>{const{classes:t,disableInteractive:o,arrow:n,touch:r,placement:i}=e,l={popper:["popper",!o&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",r&&"touch",`tooltipPlacement${(0,f.A)(i.split("-")[0])}`],arrow:["arrow"]};return(0,a.A)(l,S,t)})(Fe),Be="function"==typeof J.transition?J.transition(Fe):J.transition,_e={slots:{popper:A.Popper,transition:A.Transition??te,tooltip:A.Tooltip,arrow:A.Arrow,...Z},slotProps:{arrow:J.arrow??E.arrow,popper:{...Q,...Ne??E.popper},tooltip:J.tooltip??E.tooltip,transition:{...oe,...Be??E.transition}}},[Ve,We]=(0,x.A)("popper",{elementType:M,externalForwardedProps:_e,ownerState:Fe,className:(0,r.A)(je.popper,Q?.className)}),[Ge,Ke]=(0,x.A)("transition",{elementType:g.A,externalForwardedProps:_e,ownerState:Fe}),[Ue,qe]=(0,x.A)("tooltip",{elementType:I,className:je.tooltip,externalForwardedProps:_e,ownerState:Fe}),[Xe,Ye]=(0,x.A)("arrow",{elementType:P,className:je.arrow,externalForwardedProps:_e,ownerState:Fe,ref:ue});return(0,R.jsxs)(n.Fragment,{children:[n.cloneElement(re,De),(0,R.jsx)(Ve,{as:Y??b.A,placement:X,anchorEl:_?{getBoundingClientRect:()=>({top:$.y,left:$.x,right:$.x,bottom:$.y,width:0,height:0})}:le,popperRef:Te,open:!!le&&ye,id:we,transition:!0,...Le,...We,popperOptions:He,children:({TransitionProps:e})=>(0,R.jsx)(Ge,{timeout:ie.transitions.duration.shorter,...e,...Ke,children:(0,R.jsxs)(Ue,{...qe,children:[ee,l?(0,R.jsx)(Xe,{...Ye}):null]})})})]})}))},73738:e=>{function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},73893:(e,t,o)=>{"use strict";function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}o.d(t,{A:()=>n})},74435:(e,t,o)=>{"use strict";o.d(t,{Nc:()=>m,TJ:()=>s,U9:()=>u});var n=o(96540),r=o(87960),i=o(19888),a=o(15870);const l=Object.is,s=r.v,c=(e,t)=>e===t||e.length===t.length&&e.every(((e,o)=>e===t[o])),u=(e,t)=>{let o=Object.is;return t instanceof Array?o=c:t instanceof Object&&(o=s),o(e,t)},d=()=>({state:null,equals:null,selector:null,args:void 0}),p=[],h=()=>null,m=(e,t,o=void 0,r=l)=>{const s=(0,a.A)(d),c=null!==s.current.selector,[m,f]=n.useState(c?null:t(e,o));s.current.state=m,s.current.equals=r,s.current.selector=t;const g=s.current.args;if(s.current.args=o,c&&!u(g,o)){const t=s.current.selector(e,s.current.args);s.current.equals(s.current.state,t)||(s.current.state=t,f(t))}const b=n.useCallback((()=>(s.current.subscription||(s.current.subscription=e.current.store.subscribe((()=>{const t=s.current.selector(e,s.current.args);s.current.equals(s.current.state,t)||(s.current.state=t,f(t))}))),null)),p),v=n.useCallback((()=>()=>{s.current.subscription&&(s.current.subscription(),s.current.subscription=void 0)}),p);return(0,i.useSyncExternalStore)(v,b,h),m}},76288:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var n=o(82284),r=Symbol.for("react.element"),i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(e){return e&&"object"===(0,n.A)(e)&&(e.$$typeof===r||e.$$typeof===i)&&e.type===a}},76562:(e,t,o)=>{"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}o.d(t,{A:()=>n})},77132:(e,t,o)=>{"use strict";o.d(t,{Mo:()=>ot,J:()=>y,an:()=>R,Ki:()=>L,zA:()=>z,RC:()=>et,hV:()=>Q,IV:()=>Je});var n=o(64467),r=o(5544),i=o(60436),a=o(89379);const l=function(e){for(var t,o=0,n=0,r=e.length;r>=4;++n,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),o=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&o)+(59797*(o>>>16)<<16);switch(r){case 3:o^=(255&e.charCodeAt(n+2))<<16;case 2:o^=(255&e.charCodeAt(n+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(n)))+(59797*(o>>>16)<<16)}return(((o=1540483477*(65535&(o^=o>>>13))+(59797*(o>>>16)<<16))^o>>>15)>>>0).toString(36)};var s=o(34552),c=o(96540),u=o.t(c,2),d=(o(28104),o(43210),o(23029)),p=o(92901),h="%";function m(e){return e.join(h)}const f=function(){function e(t){(0,d.A)(this,e),(0,n.A)(this,"instanceId",void 0),(0,n.A)(this,"cache",new Map),this.instanceId=t}return(0,p.A)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var o=t(this.cache.get(e));null===o?this.cache.delete(e):this.cache.set(e,o)}}]),e}();var g="data-token-hash",b="data-css-hash",v="__cssinjs_instance__";const y=c.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(b,"]"))||[],o=document.head.firstChild;Array.from(t).forEach((function(t){t[v]=t[v]||e,t[v]===e&&document.head.insertBefore(t,o)}));var n={};Array.from(document.querySelectorAll("style[".concat(b,"]"))).forEach((function(t){var o,r=t.getAttribute(b);n[r]?t[v]===e&&(null===(o=t.parentNode)||void 0===o||o.removeChild(t)):n[r]=!0}))}return new f(e)}(),defaultCache:!0});var w=o(82284),C=o(20998);new RegExp("CALC_UNIT","g");var x=function(){function e(){(0,d.A)(this,e),(0,n.A)(this,"cache",void 0),(0,n.A)(this,"keys",void 0),(0,n.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,p.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,o,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t;r=r?null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=r)&&void 0!==t&&t.value&&n&&(r.value[1]=this.cacheCallTimes++),null===(o=r)||void 0===o?void 0:o.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,o){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var o=(0,r.A)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),E+=1}return(0,p.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,o){return o(e,t)}),void 0)}}]),e}(),k=new x;function R(e){var t=Array.isArray(e)?e:[e];return k.has(t)||k.set(t,new S(t)),k.get(t)}var M=new WeakMap,I={},P=new WeakMap;function O(e){var t=P.get(e)||"";return t||(Object.keys(e).forEach((function(o){var n=e[o];t+=o,n instanceof S?t+=n.id:n&&"object"===(0,w.A)(n)?t+=O(n):t+=n})),t=l(t),P.set(e,t)),t}function T(e,t){return l("".concat(t,"_").concat(O(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var $=(0,C.A)();function z(e){return"number"==typeof e?"".concat(e,"px"):e}function D(e,t,o){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var l=(0,a.A)((0,a.A)({},i),{},(r={},(0,n.A)(r,g,t),(0,n.A)(r,b,o),r)),s=Object.keys(l).map((function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},F=function(e,t,o){return Object.keys(e).length?".".concat(t).concat(null!=o&&o.scope?".".concat(o.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,r.A)(e,2),o=t[0],n=t[1];return"".concat(o,":").concat(n,";")})).join(""),"}"):""},N=function(e,t,o){var n={},i={};return Object.entries(e).forEach((function(e){var t,a,l=(0,r.A)(e,2),s=l[0],c=l[1];if(null!=o&&null!==(t=o.preserve)&&void 0!==t&&t[s])i[s]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=o&&null!==(a=o.ignore)&&void 0!==a&&a[s])){var u,d=L(s,null==o?void 0:o.prefix);n[d]="number"!=typeof c||null!=o&&null!==(u=o.unitless)&&void 0!==u&&u[s]?String(c):"".concat(c,"px"),i[s]="var(".concat(d,")")}})),[i,F(n,t,{scope:null==o?void 0:o.scope})]},H=o(30981),j=(0,a.A)({},u).useInsertionEffect;const B=j?function(e,t,o){return j((function(){return e(),t()}),o)}:function(e,t,o){c.useMemo(e,o),(0,H.A)((function(){return t(!0)}),o)},_=void 0!==(0,a.A)({},u).useInsertionEffect?function(e){var t=[],o=!1;return c.useEffect((function(){return o=!1,function(){o=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){o||t.push(e)}}:function(){return function(e){e()}},V=function(){return!1};function W(e,t,o,n,a){var l=c.useContext(y).cache,s=m([e].concat((0,i.A)(t))),u=_([s]),d=(V(),function(e){l.opUpdate(s,(function(t){var n=t||[void 0,void 0],i=(0,r.A)(n,2),a=i[0],l=[void 0===a?0:a,i[1]||o()];return e?e(l):l}))});c.useMemo((function(){d()}),[s]);var p=l.opGet(s)[1];return B((function(){null==a||a(p)}),(function(e){return d((function(t){var o=(0,r.A)(t,2),n=o[0],i=o[1];return e&&0===n&&(null==a||a(p)),[n+1,i]})),function(){l.opUpdate(s,(function(t){var o=t||[],i=(0,r.A)(o,2),a=i[0],c=void 0===a?0:a,d=i[1];return 0==c-1?(u((function(){!e&&l.opGet(s)||null==n||n(d,!1)})),null):[c-1,d]}))}}),[s]),p}var G={},K="css",U=new Map,q=0;var X=function(e,t,o,n){var r=o.getDerivativeToken(e),i=(0,a.A)((0,a.A)({},r),t);return n&&(i=n(i)),i},Y="token";function Q(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,c.useContext)(y),u=n.cache.instanceId,d=n.container,p=o.salt,h=void 0===p?"":p,m=o.override,f=void 0===m?G:m,w=o.formatToken,C=o.getComputedToken,x=o.cssVar,A=function(e,o){for(var n=M,r=0;rq&&n.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(g,'="').concat(e,'"]')).forEach((function(e){var o;e[v]===t&&(null===(o=e.parentNode)||void 0===o||o.removeChild(e))}))}(e,t),U.delete(e)}))}(e[0]._themeKey,u)}),(function(e){var t=(0,r.A)(e,4),o=t[0],n=t[3];if(x&&n){var i=(0,s.BD)(n,l("css-variables-".concat(o._themeKey)),{mark:b,prepend:"queue",attachTo:d,priority:-999});i[v]=u,i.setAttribute(g,o._themeKey)}}));return R}var J=o(58168);const Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ee="comm",te="rule",oe="decl",ne="@import",re="@namespace",ie="@keyframes",ae="@layer",le=Math.abs,se=String.fromCharCode;function ce(e){return e.trim()}function ue(e,t,o){return e.replace(t,o)}function de(e,t,o){return e.indexOf(t,o)}function pe(e,t){return 0|e.charCodeAt(t)}function he(e,t,o){return e.slice(t,o)}function me(e){return e.length}function fe(e,t){return t.push(e),e}function ge(e,t){for(var o="",n=0;n0?pe(Ae,--Ce):0,ye--,10===xe&&(ye=1,ve--),xe}function ke(){return xe=Ce2||Pe(xe)>3?"":" "}function $e(e,t){for(;--t&&ke()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Ie(e,Me()+(t<6&&32==Re()&&32==ke()))}function ze(e){for(;ke();)switch(xe){case e:return Ce;case 34:case 39:34!==e&&39!==e&&ze(xe);break;case 40:41===e&&ze(e);break;case 92:ke()}return Ce}function De(e,t){for(;ke()&&e+xe!==57&&(e+xe!==84||47!==Re()););return"/*"+Ie(t,Ce-1)+"*"+se(47===e?e:ke())}function Le(e){for(;!Pe(Re());)ke();return Ie(e,Ce)}function Fe(e){return function(e){return Ae="",e}(Ne("",null,null,null,[""],e=function(e){return ve=ye=1,we=me(Ae=e),Ce=0,[]}(e),0,[0],e))}function Ne(e,t,o,n,r,i,a,l,s){for(var c=0,u=0,d=a,p=0,h=0,m=0,f=1,g=1,b=1,v=0,y="",w=r,C=i,x=n,A=y;g;)switch(m=v,v=ke()){case 40:if(108!=m&&58==pe(A,d-1)){-1!=de(A+=ue(Oe(v),"&","&\f"),"&\f",le(c?l[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:A+=Oe(v);break;case 9:case 10:case 13:case 32:A+=Te(m);break;case 92:A+=$e(Me()-1,7);continue;case 47:switch(Re()){case 42:case 47:fe(je(De(ke(),Me()),t,o,s),s),5!=Pe(m||1)&&5!=Pe(Re()||1)||!me(A)||" "===he(A,-1,void 0)||(A+=" ");break;default:A+="/"}break;case 123*f:l[c++]=me(A)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(A=ue(A,/\f/g,"")),h>0&&(me(A)-d||0===f&&47===m)&&fe(h>32?Be(A+";",n,o,d-1,s):Be(ue(A," ","")+";",n,o,d-2,s),s);break;case 59:A+=";";default:if(fe(x=He(A,t,o,c,u,r,l,y,w=[],C=[],d,i),i),123===v)if(0===u)Ne(A,t,x,x,w,i,d,l,C);else{switch(p){case 99:if(110===pe(A,3))break;case 108:if(97===pe(A,2))break;default:u=0;case 100:case 109:case 115:}u?Ne(e,x,x,n&&fe(He(e,x,x,0,0,r,l,y,r,w=[],d,C),C),r,C,d,l,n?w:C):Ne(A,x,x,x,[""],C,0,l,C)}}c=u=h=0,f=b=1,y=A="",d=a;break;case 58:d=1+me(A),h=m;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==Se())continue;switch(A+=se(v),v*f){case 38:b=u>0?1:(A+="\f",-1);break;case 44:l[c++]=(me(A)-1)*b,b=1;break;case 64:45===Re()&&(A+=Oe(ke())),p=Re(),u=d=me(y=A+=Le(Me())),v++;break;case 45:45===m&&2==me(A)&&(f=0)}}return i}function He(e,t,o,n,r,i,a,l,s,c,u,d){for(var p=r-1,h=0===r?i:[""],m=function(e){return e.length}(h),f=0,g=0,b=0;f0?h[v]+" "+y:ue(y,/&\f/g,h[v])))&&(s[b++]=w);return Ee(e,t,o,0===r?te:l,s,c,u,d)}function je(e,t,o,n){return Ee(e,t,o,ee,se(xe),he(e,2,-2),0,n)}function Be(e,t,o,n,r){return Ee(e,t,o,oe,he(e,0,n),he(e,n+1,-1),n,r)}var _e,Ve="data-ant-cssinjs-cache-path",We="_FILE_STYLE__",Ge=!0;var Ke="_multi_value_";function Ue(e){return ge(Fe(e),be).replace(/\{%%%\:[^;];}/g,";")}var qe=function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},l=n.root,s=n.injectHash,c=n.parentSelectors,u=o.hashId,d=o.layer,p=(o.path,o.hashPriority),h=o.transformers,m=void 0===h?[]:h,f=(o.linters,""),g={};function b(t){var n=t.getName(u);if(!g[n]){var i=e(t.style,o,{root:!1,parentSelectors:c}),a=(0,r.A)(i,1)[0];g[n]="@keyframes ".concat(t.getName(u)).concat(a)}}var v=function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,o):t&&o.push(t)})),o}(Array.isArray(t)?t:[t]);return v.forEach((function(t){var n="string"!=typeof t||l?t:{};if("string"==typeof n)f+="".concat(n,"\n");else if(n._keyframe)b(n);else{var d=m.reduce((function(e,t){var o;return(null==t||null===(o=t.visit)||void 0===o?void 0:o.call(t,e))||e}),n);Object.keys(d).forEach((function(t){var n=d[t];if("object"!==(0,w.A)(n)||!n||"animationName"===t&&n._keyframe||function(e){return"object"===(0,w.A)(e)&&e&&("_skip_check_"in e||Ke in e)}(n)){var h;function k(e,t){var o=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),n=t;Z[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(b(t),n=t.getName(u)),f+="".concat(o,":").concat(n,";")}var m=null!==(h=null==n?void 0:n.value)&&void 0!==h?h:n;"object"===(0,w.A)(n)&&null!=n&&n[Ke]&&Array.isArray(m)?m.forEach((function(e){k(t,e)})):k(t,m)}else{var v=!1,y=t.trim(),C=!1;(l||s)&&u?y.startsWith("@")?v=!0:y=function(e,t,o){if(!t)return e;var n=".".concat(t),r="low"===o?":where(".concat(n,")"):n;return e.split(",").map((function(e){var t,o=e.trim().split(/\s+/),n=o[0]||"",a=(null===(t=n.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[n="".concat(a).concat(r).concat(n.slice(a.length))].concat((0,i.A)(o.slice(1))).join(" ")})).join(",")}("&"===y?"":t,u,p):!l||u||"&"!==y&&""!==y||(y="",C=!0);var x=e(n,o,{root:C,injectHash:v,parentSelectors:[].concat((0,i.A)(c),[y])}),A=(0,r.A)(x,2),E=A[0],S=A[1];g=(0,a.A)((0,a.A)({},g),S),f+="".concat(y).concat(E)}}))}})),l?d&&(f&&(f="@layer ".concat(d.name," {").concat(f,"}")),d.dependencies&&(g["@layer ".concat(d.name)]=d.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(d.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,g]};function Xe(e,t){return l("".concat(e.join("%")).concat(t))}function Ye(){return null}var Qe="style";function Je(e,t){var o=e.token,l=e.path,u=e.hashId,d=e.layer,p=e.nonce,h=e.clientOnly,m=e.order,f=void 0===m?0:m,w=c.useContext(y),x=w.autoClear,A=(w.mock,w.defaultCache),E=w.hashPriority,S=w.container,k=w.ssrInline,R=w.transformers,M=w.linters,I=w.cache,P=w.layer,O=o._tokenKey,T=[O];P&&T.push("layer"),T.push.apply(T,(0,i.A)(l));var z=$,D=W(Qe,T,(function(){var e=T.join("|");if(function(e){return function(){if(!_e&&(_e={},(0,C.A)())){var e=document.createElement("div");e.className=Ve,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),o=(0,r.A)(t,2),n=o[0],i=o[1];_e[n]=i}));var o,n=document.querySelector("style[".concat(Ve,"]"));n&&(Ge=!1,null===(o=n.parentNode)||void 0===o||o.removeChild(n)),document.body.removeChild(e)}}(),!!_e[e]}(e)){var o=function(e){var t=_e[e],o=null;if(t&&(0,C.A)())if(Ge)o=We;else{var n=document.querySelector("style[".concat(b,'="').concat(_e[e],'"]'));n?o=n.innerHTML:delete _e[e]}return[o,t]}(e),n=(0,r.A)(o,2),i=n[0],a=n[1];if(i)return[i,O,a,{},h,f]}var s=t(),c=qe(s,{hashId:u,hashPriority:E,layer:P?d:void 0,path:l.join("-"),transformers:R,linters:M}),p=(0,r.A)(c,2),m=p[0],g=p[1],v=Ue(m),y=Xe(T,v);return[v,O,y,g,h,f]}),(function(e,t){var o=(0,r.A)(e,3)[2];(t||x)&&$&&(0,s.m6)(o,{mark:b})}),(function(e){var t=(0,r.A)(e,4),o=t[0],n=(t[1],t[2]),i=t[3];if(z&&o!==We){var l={mark:b,prepend:!P&&"queue",attachTo:S,priority:f},c="function"==typeof p?p():p;c&&(l.csp={nonce:c});var u=[],d=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?u.push(e):d.push(e)})),u.forEach((function(e){(0,s.BD)(Ue(i[e]),"_layer-".concat(e),(0,a.A)((0,a.A)({},l),{},{prepend:!0}))}));var h=(0,s.BD)(o,n,l);h[v]=I.instanceId,h.setAttribute(g,O),d.forEach((function(e){(0,s.BD)(Ue(i[e]),"_effect-".concat(e),l)}))}})),L=(0,r.A)(D,3),F=L[0],N=L[1],H=L[2];return function(e){var t,o;return t=k&&!z&&A?c.createElement("style",(0,J.A)({},(o={},(0,n.A)(o,g,N),(0,n.A)(o,b,H),o),{dangerouslySetInnerHTML:{__html:F}})):c.createElement(Ye,null),c.createElement(c.Fragment,null,t,e)}}var Ze="cssVar";const et=function(e,t){var o=e.key,n=e.prefix,a=e.unitless,l=e.ignore,u=e.token,d=e.scope,p=void 0===d?"":d,h=(0,c.useContext)(y),m=h.cache.instanceId,f=h.container,w=u._tokenKey,C=[].concat((0,i.A)(e.path),[o,p,w]);return W(Ze,C,(function(){var e=t(),i=N(e,o,{prefix:n,unitless:a,ignore:l,scope:p}),s=(0,r.A)(i,2),c=s[0],u=s[1];return[c,u,Xe(C,u),o]}),(function(e){var t=(0,r.A)(e,3)[2];$&&(0,s.m6)(t,{mark:b})}),(function(e){var t=(0,r.A)(e,3),n=t[1],i=t[2];if(n){var a=(0,s.BD)(n,i,{mark:b,prepend:"queue",attachTo:f,priority:-999});a[v]=m,a.setAttribute(g,o)}}))};var tt;tt={},(0,n.A)(tt,Qe,(function(e,t,o){var n=(0,r.A)(e,6),i=n[0],a=n[1],l=n[2],s=n[3],c=n[4],u=n[5],d=(o||{}).plain;if(c)return null;var p=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=D(i,a,l,h,d),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var o=D(Ue(s[e]),a,"_effect-".concat(e),h,d);e.startsWith("@layer")?p=o+p:p+=o}})),[u,l,p]})),(0,n.A)(tt,Y,(function(e,t,o){var n=(0,r.A)(e,5),i=n[2],a=n[3],l=n[4],s=(o||{}).plain;if(!a)return null;var c=i._tokenKey;return[-999,c,D(a,l,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),(0,n.A)(tt,Ze,(function(e,t,o){var n=(0,r.A)(e,4),i=n[1],a=n[2],l=n[3],s=(o||{}).plain;return i?[-999,a,D(i,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));const ot=function(){function e(t,o){(0,d.A)(this,e),(0,n.A)(this,"name",void 0),(0,n.A)(this,"style",void 0),(0,n.A)(this,"_keyframe",!0),this.name=t,this.style=o}return(0,p.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function nt(e){return e.notSplit=!0,e}nt(["borderTop","borderBottom"]),nt(["borderTop"]),nt(["borderBottom"]),nt(["borderLeft","borderRight"]),nt(["borderLeft"]),nt(["borderRight"])},77147:(e,t,o)=>{"use strict";o.d(t,{y:()=>n});const n=o(96540).createContext(void 0)},77722:(e,t,o)=>{"use strict";o.d(t,{A:()=>C});var n=o(96540),r=o(34164),i=o(21362),a=o(26739),l=o(39241),s=o(20439),c=o(42030),u=o(49565),d=o(90729),p=o(1152),h=o(85078),m=o(96148),f=o(1908);function g(e){return(0,f.Ay)("MuiAccordion",e)}const b=(0,m.A)("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]);var v=o(74848);const y=(0,a.Ay)(u.A,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${b.region}`]:t.region},t.root,!o.square&&t.rounded,!o.disableGutters&&t.gutters]}})((0,l.A)((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${b.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${b.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}})),(0,l.A)((({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${b.expanded}`]:{margin:"16px 0"}}}]})))),w=(0,a.Ay)("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),C=n.forwardRef((function(e,t){const o=(0,s.b)({props:e,name:"MuiAccordion"}),{children:a,className:l,defaultExpanded:u=!1,disabled:m=!1,disableGutters:f=!1,expanded:b,onChange:C,square:x=!1,slots:A={},slotProps:E={},TransitionComponent:S,TransitionProps:k,...R}=o,[M,I]=(0,p.A)({controlled:b,default:u,name:"Accordion",state:"expanded"}),P=n.useCallback((e=>{I(!M),C&&C(e,!M)}),[M,C,I]),[O,...T]=n.Children.toArray(a),$=n.useMemo((()=>({expanded:M,disabled:m,disableGutters:f,toggle:P})),[M,m,f,P]),z={...o,square:x,disabled:m,disableGutters:f,expanded:M},D=(e=>{const{classes:t,square:o,expanded:n,disabled:r,disableGutters:a}=e,l={root:["root",!o&&"rounded",n&&"expanded",r&&"disabled",!a&&"gutters"],heading:["heading"],region:["region"]};return(0,i.A)(l,g,t)})(z),L={slots:{transition:S,...A},slotProps:{transition:k,...E}},[F,N]=(0,h.A)("root",{elementType:y,externalForwardedProps:{...L,...R},className:(0,r.A)(D.root,l),shouldForwardComponentProp:!0,ownerState:z,ref:t,additionalProps:{square:x}}),[H,j]=(0,h.A)("heading",{elementType:w,externalForwardedProps:L,className:D.heading,ownerState:z}),[B,_]=(0,h.A)("transition",{elementType:c.A,externalForwardedProps:L,ownerState:z});return(0,v.jsxs)(F,{...N,children:[(0,v.jsx)(H,{...j,children:(0,v.jsx)(d.A.Provider,{value:$,children:O})}),(0,v.jsx)(B,{in:M,timeout:"auto",..._,children:(0,v.jsx)("div",{"aria-labelledby":O.props.id,id:O.props["aria-controls"],role:"region",className:D.region,children:T})})]})}))},77736:(e,t,o)=>{var n=o(73738).default,r=o(89045);e.exports=function(e){var t=r(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},77866:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(96540),r=o(77147);const i=()=>{const e=n.useContext(r.y);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e}},78418:(e,t,o)=>{"use strict";e.exports=o(85160)},80045:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(98587);function r(e,t){if(null==e)return{};var o,r,i=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r{"use strict";o.d(t,{A:()=>u});var n=o(96069),r=o(89379);const i=(0,r.A)((0,r.A)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),a={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},l={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},i),timePickerLocale:Object.assign({},a)},s=l,c="${label} is not a valid ${type}",u={locale:"en",Pagination:n.A,DatePicker:l,TimePicker:a,Calendar:s,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:c,method:c,array:c,object:c,number:c,date:c,boolean:c,integer:c,float:c,regexp:c,email:c,url:c,hex:c},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}}},80886:(e,t,o)=>{"use strict";o.d(t,{Q:()=>i,Y:()=>r});let n=0;const r=()=>(n+=1,`mui-tree-view-${n}`),i=({id:e,treeId:t="",itemId:o})=>null!=e?e:`${t}-${o}`},81326:(e,t,o)=>{"use strict";o.d(t,{XG:()=>l,pF:()=>a});var n=o(31216),r=o(10786);const i=e=>e.label,a=(0,n.M)([i,(e,t)=>(0,r.EJ)(e,t)],((e,t)=>!(!t||!e)&&("boolean"==typeof e.isItemEditable?e.isItemEditable:e.isItemEditable(t)))),l=(0,n.M)([i,(e,t)=>t],((e,t)=>!!t&&e?.editedItemId===t));(0,n.M)(i,(e=>!!e?.editedItemId))},81470:(e,t,o)=>{"use strict";o.d(t,{_q:()=>n.A});var n=o(26956);o(12533),o(8719),o(20488),o(68210)},82284:(e,t,o)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}o.d(t,{A:()=>n})},82345:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>G});var n=o(96540),r=o.t(n,2),i=o(77132),a=o(61053),l=o(28104),s=o(20488),c=o(18877);const u=(0,n.createContext)(void 0);var d=o(80436);let p=Object.assign({},d.A.Modal),h=[];const m=()=>h.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),d.A.Modal);var f=o(60685);const g=e=>{const{locale:t={},children:o,_ANT_MARK__:r}=e;n.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return h.push(t),p=m(),()=>{h=h.filter((e=>e!==t)),p=m()}}p=Object.assign({},d.A.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=n.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return n.createElement(f.A.Provider,{value:i},o)};var b=o(15265),v=o(49806),y=o(50723),w=o(62279),C=o(45748),x=o(2616),A=o(20998),E=o(34552);const S=`-ant-${Date.now()}-${Math.random()}`;var k=o(98119),R=o(48224);var M=o(43210);const I=Object.assign({},r),{useId:P}=I,O=void 0===P?()=>"":P;var T=o(90754),$=o(39319);const z=n.createContext(!0);function D(e){const t=n.useContext(z),{children:o}=e,[,r]=(0,$.Ay)(),{motion:i}=r,a=n.useRef(!1);return a.current||(a.current=t!==i),a.current?n.createElement(z.Provider,{value:i},n.createElement(T.Kq,{motion:i},o)):o}const L=()=>null;var F=o(25905);const N=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let H,j,B,_;const V=e=>{const{children:t,csp:o,autoInsertSpaceInButton:r,alert:p,anchor:h,form:m,locale:f,componentSize:C,direction:x,space:A,splitter:E,virtual:S,dropdownMatchSelectWidth:I,popupMatchSelectWidth:P,popupOverflow:T,legacyLocale:z,parentContext:H,iconPrefixCls:j,theme:B,componentDisabled:_,segmented:V,statistic:W,spin:G,calendar:K,carousel:U,cascader:q,collapse:X,typography:Y,checkbox:Q,descriptions:J,divider:Z,drawer:ee,skeleton:te,steps:oe,image:ne,layout:re,list:ie,mentions:ae,modal:le,progress:se,result:ce,slider:ue,breadcrumb:de,menu:pe,pagination:he,input:me,textArea:fe,empty:ge,badge:be,radio:ve,rate:ye,switch:we,transfer:Ce,avatar:xe,message:Ae,tag:Ee,table:Se,card:ke,tabs:Re,timeline:Me,timePicker:Ie,upload:Pe,notification:Oe,tree:Te,colorPicker:$e,datePicker:ze,rangePicker:De,flex:Le,wave:Fe,dropdown:Ne,warning:He,tour:je,tooltip:Be,popover:_e,popconfirm:Ve,floatButtonGroup:We,variant:Ge,inputNumber:Ke,treeSelect:Ue}=e,qe=n.useCallback(((t,o)=>{const{prefixCls:n}=e;if(o)return o;const r=n||H.getPrefixCls("");return t?`${r}-${t}`:r}),[H.getPrefixCls,e.prefixCls]),Xe=j||H.iconPrefixCls||w.pM,Ye=o||H.csp;((e,t)=>{const[o,n]=(0,$.Ay)();(0,i.IV)({theme:o,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[(0,F.jz)(e)]))})(Xe,Ye);const Qe=function(e,t,o){var n;(0,c.rJ)("ConfigProvider");const r=e||{},i=!1!==r.inherit&&t?t:Object.assign(Object.assign({},v.sb),{hashed:null!==(n=null==t?void 0:t.hashed)&&void 0!==n?n:v.sb.hashed,cssVar:null==t?void 0:t.cssVar}),a=O();return(0,l.A)((()=>{var n,l;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])}));const c=`css-var-${a.replace(/:/g,"")}`,u=(null!==(n=r.cssVar)&&void 0!==n?n:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==o?void 0:o.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof r.cssVar?r.cssVar:{}),{key:"object"==typeof r.cssVar&&(null===(l=r.cssVar)||void 0===l?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),r),{token:Object.assign(Object.assign({},i.token),r.token),components:s,cssVar:u})}),[r,i],((e,t)=>e.some(((e,o)=>{const n=t[o];return!(0,M.A)(e,n,!0)}))))}(B,H.theme,{prefixCls:qe("")}),Je={csp:Ye,autoInsertSpaceInButton:r,alert:p,anchor:h,locale:f||z,direction:x,space:A,splitter:E,virtual:S,popupMatchSelectWidth:null!=P?P:I,popupOverflow:T,getPrefixCls:qe,iconPrefixCls:Xe,theme:Qe,segmented:V,statistic:W,spin:G,calendar:K,carousel:U,cascader:q,collapse:X,typography:Y,checkbox:Q,descriptions:J,divider:Z,drawer:ee,skeleton:te,steps:oe,image:ne,input:me,textArea:fe,layout:re,list:ie,mentions:ae,modal:le,progress:se,result:ce,slider:ue,breadcrumb:de,menu:pe,pagination:he,empty:ge,badge:be,radio:ve,rate:ye,switch:we,transfer:Ce,avatar:xe,message:Ae,tag:Ee,table:Se,card:ke,tabs:Re,timeline:Me,timePicker:Ie,upload:Pe,notification:Oe,tree:Te,colorPicker:$e,datePicker:ze,rangePicker:De,flex:Le,wave:Fe,dropdown:Ne,warning:He,tour:je,tooltip:Be,popover:_e,popconfirm:Ve,floatButtonGroup:We,variant:Ge,inputNumber:Ke,treeSelect:Ue},Ze=Object.assign({},H);Object.keys(Je).forEach((e=>{void 0!==Je[e]&&(Ze[e]=Je[e])})),N.forEach((t=>{const o=e[t];o&&(Ze[t]=o)})),void 0!==r&&(Ze.button=Object.assign({autoInsertSpace:r},Ze.button));const et=(0,l.A)((()=>Ze),Ze,((e,t)=>{const o=Object.keys(e),n=Object.keys(t);return o.length!==n.length||o.some((o=>e[o]!==t[o]))})),{layer:tt}=n.useContext(i.J),ot=n.useMemo((()=>({prefixCls:Xe,csp:Ye,layer:tt?"antd":void 0})),[Xe,Ye,tt]);let nt=n.createElement(n.Fragment,null,n.createElement(L,{dropdownMatchSelectWidth:I}),t);const rt=n.useMemo((()=>{var e,t,o,n;return(0,s.h)((null===(e=d.A.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(o=null===(t=et.locale)||void 0===t?void 0:t.Form)||void 0===o?void 0:o.defaultValidateMessages)||{},(null===(n=et.form)||void 0===n?void 0:n.validateMessages)||{},(null==m?void 0:m.validateMessages)||{})}),[et,null==m?void 0:m.validateMessages]);Object.keys(rt).length>0&&(nt=n.createElement(u.Provider,{value:rt},nt)),f&&(nt=n.createElement(g,{locale:f,_ANT_MARK__:"internalMark"},nt)),(Xe||Ye)&&(nt=n.createElement(a.A.Provider,{value:ot},nt)),C&&(nt=n.createElement(R.c,{size:C},nt)),nt=n.createElement(D,null,nt);const it=n.useMemo((()=>{const e=Qe||{},{algorithm:t,token:o,components:n,cssVar:r}=e,a=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r0)?(0,i.an)(t):b.A,s={};Object.entries(n||{}).forEach((([e,t])=>{const o=Object.assign({},t);"algorithm"in o&&(!0===o.algorithm?o.theme=l:(Array.isArray(o.algorithm)||"function"==typeof o.algorithm)&&(o.theme=(0,i.an)(o.algorithm)),delete o.algorithm),s[e]=o}));const c=Object.assign(Object.assign({},y.A),o);return Object.assign(Object.assign({},a),{theme:l,token:c,components:s,override:Object.assign({override:c},s),cssVar:r})}),[Qe]);return B&&(nt=n.createElement(v.vG.Provider,{value:it},nt)),et.warning&&(nt=n.createElement(c._n.Provider,{value:et.warning},nt)),void 0!==_&&(nt=n.createElement(k.X,{disabled:_},nt)),n.createElement(w.QO.Provider,{value:et},nt)},W=e=>{const t=n.useContext(w.QO),o=n.useContext(f.A);return n.createElement(V,Object.assign({parentContext:t,legacyLocale:o},e))};W.ConfigContext=w.QO,W.SizeContext=R.A,W.config=e=>{const{prefixCls:t,iconPrefixCls:o,theme:n,holderRender:r}=e;void 0!==t&&(H=t),void 0!==o&&(j=o),"holderRender"in e&&(_=r),n&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(n)?function(e,t){const o=function(e,t){const o={},n=(e,t)=>{let o=e.clone();return o=(null==t?void 0:t(o))||o,o.toRgbString()},r=(e,t)=>{const r=new x.Y(e),i=(0,C.cM)(r.toRgbString());o[`${t}-color`]=n(r),o[`${t}-color-disabled`]=i[1],o[`${t}-color-hover`]=i[4],o[`${t}-color-active`]=i[6],o[`${t}-color-outline`]=r.clone().setA(.2).toRgbString(),o[`${t}-color-deprecated-bg`]=i[0],o[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new x.Y(t.primaryColor),i=(0,C.cM)(e.toRgbString());i.forEach(((e,t)=>{o[`primary-${t+1}`]=e})),o["primary-color-deprecated-l-35"]=n(e,(e=>e.lighten(35))),o["primary-color-deprecated-l-20"]=n(e,(e=>e.lighten(20))),o["primary-color-deprecated-t-20"]=n(e,(e=>e.tint(20))),o["primary-color-deprecated-t-50"]=n(e,(e=>e.tint(50))),o["primary-color-deprecated-f-12"]=n(e,(e=>e.setA(.12*e.a)));const a=new x.Y(i[0]);o["primary-color-active-deprecated-f-30"]=n(a,(e=>e.setA(.3*e.a))),o["primary-color-active-deprecated-d-02"]=n(a,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(o).map((t=>`--${e}-${t}: ${o[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,A.A)()&&(0,E.BD)(o,`${S}-dynamic-theme`)}(H||w.yH,n):B=n)},W.useConfig=function(){return{componentDisabled:(0,n.useContext)(k.A),componentSize:(0,n.useContext)(R.A)}},Object.defineProperty(W,"SizeContext",{get:()=>R.A});const G=W},82348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},83009:(e,t,o)=>{"use strict";var n=o(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(57536)),i=n(o(82348));const a={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},r.default),timePickerLocale:Object.assign({},i.default)};a.lang.ok="确定",t.default=a},83753:(e,t,o)=>{"use strict";o.d(t,{h:()=>i});var n=o(96540),r=o(55174);function i(){const e=n.useContext(r.k);if(void 0===e)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join("\n"));return e}},84406:(e,t,o)=>{"use strict";o.d(t,{mu:()=>tt});class n{constructor(e){this.table=e}reloadData(e,t,o){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,o)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return void 0!==t&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,o){return this.table.deprecationAdvisor.check(e,t,o)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class r{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,o){var n,r=e?t.split(e):[t],i=r.length;for(let e=0;ee.subject===s)),a>-1?t[i]=o[a].copy:(l=Object.assign(Array.isArray(s)?[]:{},s),o.unshift({subject:s,copy:l}),t[i]=this.deepClone(s,l,o)))}return t}}let i=class e extends n{constructor(e,t,o){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=o,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return"string"==typeof e?(e=document.querySelector(e))||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)"):!0===e&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t||!!t.parentNode&&this._checkContainerIsParent(e,t.parentNode)}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),o=t?e.touches[0].pageX:e.pageX,n=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let e=r.elOffset(this.container);o-=e.left,n-=e.top}return{x:o,y:n}}elementPositionCoords(e,t="right"){var o,n,i,a=r.elOffset(e);switch(this.container!==document.body&&(o=r.elOffset(this.container),a.left-=o.left,a.top-=o.top),t){case"right":n=a.left+e.offsetWidth,i=a.top-1;break;case"bottom":n=a.left,i=a.top+e.offsetHeight;break;case"left":n=a.left,i=a.top-1;break;case"top":n=a.left,i=a.top;break;case"center":n=a.left+e.offsetWidth/2,i=a.top+e.offsetHeight/2}return{x:n,y:i,offset:a}}show(e,t){var o,n,r,i,a;return this.destroyed||this.table.destroyed||(e instanceof HTMLElement?(r=e,i=(a=this.elementPositionCoords(e,t)).offset,o=a.x,n=a.y):"number"==typeof e?(i={top:0,left:0},o=e,n=t):(o=(a=this.containerEventCoords(e)).x,n=a.y,this.reversedX=!1),this.element.style.top=n+"px",this.element.style.left=o+"px",this.container.appendChild(this.element),"function"==typeof this.renderedCallback&&this.renderedCallback(),this._fitToScreen(o,n,r,i,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",(e=>{e.stopPropagation()}))),this}_fitToScreen(e,t,o,n,r){var i=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",this.element.style.right=o?this.container.offsetWidth-n.left+"px":this.container.offsetWidth-e+"px",this.reversedX=!0);let a=Math.max(this.container.offsetHeight,i?this.container.scrollHeight:0);t+this.element.offsetHeight>a&&(o?this.element.style.top="bottom"===r?parseInt(this.element.style.top)-this.element.offsetHeight-o.offsetHeight-1+"px":parseInt(this.element.style.top)-this.element.offsetHeight+o.offsetHeight+1+"px":this.element.style.height=a+"px")}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout((()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)}),100),this.blurCallback=e),this}_escapeCheck(e){27==e.keyCode&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(t){return this.childPopup&&this.childPopup.hide(),this.childPopup=new e(this.table,t,this),this.childPopup}};class a extends n{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){void 0===this.table[e]?this.table[e]=(...o)=>(this.table.initGuard(e),t(...o)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,o){return this.table.componentFunctionBinder.bind(e,t,o)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t,o=this.table.rowManager.displayRows.length-1;if(this._handler&&(t=this.table.rowManager.displayPipeline.findIndex((e=>e.handler===this._handler)))>-1&&(o=t),e&&(o+=e),this._handler)return o>-1?this.table.rowManager.getDisplayRows(o):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new i(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var l={rownum:function(e,t,o,n,r,i){return i.getPosition()}};class s extends a{static moduleName="accessor";static accessors=l;constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,o={};this.allowedTypes.forEach((n=>{var r,i="accessor"+(n.charAt(0).toUpperCase()+n.slice(1));e.definition[i]&&(r=this.lookupAccessor(e.definition[i]))&&(t=!0,o[i]={accessor:r,params:e.definition[i+"Params"]||{}})})),t&&(e.modules.accessor=o)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":s.accessors[e]?t=s.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e}return t}transformRow(e,t){var o="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),n=e.getComponent(),i=r.deepClone(e.data||{});return this.table.columnManager.traverse((function(e){var r,a,l,s;e.modules.accessor&&(a=e.modules.accessor[o]||e.modules.accessor.accessor||!1)&&"undefined"!=(r=e.getFieldValue(i))&&(s=e.getComponent(),l="function"==typeof a.params?a.params(r,i,t,s,n):a.params,e.setFieldValue(i,a.accessor(r,i,t,l,s,n)))})),i}}var c={method:"GET"};function u(e,t){var o=[];if(t=t||"",Array.isArray(e))e.forEach(((e,n)=>{o=o.concat(u(e,t?t+"["+n+"]":n))}));else if("object"==typeof e)for(var n in e)o=o.concat(u(e[n],t?t+"["+n+"]":n));else o.push({key:t,value:e});return o}function d(e){var t=u(e),o=[];return t.forEach((function(e){o.push(encodeURIComponent(e.key)+"="+encodeURIComponent(e.value))})),o.join("&")}function p(e,t,o){return e&&o&&Object.keys(o).length&&(t.method&&"get"!=t.method.toLowerCase()||(t.method="get",e+=(e.includes("?")?"&":"?")+d(o))),e}function h(e,t,o){var n;return new Promise(((r,i)=>{if(e=this.urlGenerator.call(this.table,e,t,o),"GET"!=t.method.toUpperCase())if(n="object"==typeof this.table.options.ajaxContentType?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType]){for(var a in n.headers)t.headers||(t.headers={}),void 0===t.headers[a]&&(t.headers[a]=n.headers[a]);t.body=n.body.call(this,e,t,o)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);e?(void 0===t.headers&&(t.headers={}),void 0===t.headers.Accept&&(t.headers.Accept="application/json"),void 0===t.headers["X-Requested-With"]&&(t.headers["X-Requested-With"]="XMLHttpRequest"),void 0===t.mode&&(t.mode="cors"),"cors"==t.mode?(void 0===t.headers.Origin&&(t.headers.Origin=window.location.origin),void 0===t.credentials&&(t.credentials="same-origin")):void 0===t.credentials&&(t.credentials="include"),fetch(e,t).then((e=>{e.ok?e.json().then((e=>{r(e)})).catch((e=>{i(e),console.warn("Ajax Load Error - Invalid JSON returned",e)})):(console.error("Ajax Load Error - Connection Error: "+e.status,e.statusText),i(e))})).catch((e=>{console.error("Ajax Load Error - Connection Error: ",e),i(e)}))):(console.warn("Ajax Load Error - No URL Set"),r([]))}))}function m(e,t){var o=[];if(t=t||"",Array.isArray(e))e.forEach(((e,n)=>{o=o.concat(m(e,t?t+"["+n+"]":n))}));else if("object"==typeof e)for(var n in e)o=o.concat(m(e[n],t?t+"["+n+"]":n));else o.push({key:t,value:e});return o}var f={json:{headers:{"Content-Type":"application/json"},body:function(e,t,o){return JSON.stringify(o)}},form:{headers:{},body:function(e,t,o){var n=m(o),r=new FormData;return n.forEach((function(e){r.append(e.key,e.value)})),r}}};class g extends a{static moduleName="ajax";static defaultConfig=c;static defaultURLGenerator=p;static defaultLoaderPromise=h;static contentTypeFormatters=f;constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",(function(){})),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=g.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||g.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||g.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,o,n){var r=this.table.options.ajaxParams;return r&&("function"==typeof r&&(r=r.call(this.table)),n=Object.assign(Object.assign({},r),n)),n}requestDataCheck(e,t,o,n){return!((e||!this.url)&&"string"!=typeof e)}requestData(e,t,o,n,r){var i;return!r&&this.requestDataCheck(e)?(e&&this.setUrl(e),i=this.generateConfig(o),this.sendRequest(this.url,t,i)):r}setDefaultConfig(e={}){this.config=Object.assign({},g.defaultConfig),"string"==typeof e?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return"string"==typeof e?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,o){return!1!==this.table.options.ajaxRequesting.call(this.table,e,t)?this.loaderPromise(e,o,t).then((o=>(this.table.options.ajaxResponse&&(o=this.table.options.ajaxResponse.call(this.table,e,t,o)),o))):Promise.reject()}}var b={replace:function(e){return this.table.setData(e)},update:function(e){return this.table.updateOrAddData(e)},insert:function(e){return this.table.addData(e)}},v={table:function(e){var t=[],o=!0,n=this.table.columnManager.columns,r=[],i=[];return(e=e.split("\n")).forEach((function(e){t.push(e.split("\t"))})),!(!t.length||1===t.length&&t[0].length<2)&&(t[0].forEach((function(e){var t=n.find((function(t){return e&&t.definition.title&&e.trim()&&t.definition.title.trim()===e.trim()}));t?r.push(t):o=!1})),o||(o=!0,r=[],t[0].forEach((function(e){var t=n.find((function(t){return e&&t.field&&e.trim()&&t.field.trim()===e.trim()}));t?r.push(t):o=!1})),o||(r=this.table.columnManager.columnsByIndex)),o&&t.shift(),t.forEach((function(e){var t={};e.forEach((function(e,o){r[o]&&(t[r[o].field]=e)})),i.push(t)})),i)}},y={keybindings:{bindings:{copyToClipboard:["ctrl + 67","meta + 67"]},actions:{copyToClipboard:function(e){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}}}};class w extends a{static moduleName="clipboard";static moduleExtensions=y;static pasteActions=b;static pasteParsers=v;constructor(e){super(e),this.mode=!0,this.pasteParser=function(){},this.pasteAction=function(){},this.customSelection=!1,this.rowRange=!1,this.blocked=!0,this.registerTableOption("clipboard",!1),this.registerTableOption("clipboardCopyStyled",!0),this.registerTableOption("clipboardCopyConfig",!1),this.registerTableOption("clipboardCopyFormatter",!1),this.registerTableOption("clipboardCopyRowRange","active"),this.registerTableOption("clipboardPasteParser","table"),this.registerTableOption("clipboardPasteAction","insert"),this.registerColumnOption("clipboard"),this.registerColumnOption("titleClipboard")}initialize(){this.mode=this.table.options.clipboard,this.rowRange=this.table.options.clipboardCopyRowRange,!0!==this.mode&&"copy"!==this.mode||this.table.element.addEventListener("copy",(e=>{var t,o,n;this.blocked||(e.preventDefault(),this.customSelection?(t=this.customSelection,this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t))):(n=this.table.modules.export.generateExportList(this.table.options.clipboardCopyConfig,this.table.options.clipboardCopyStyled,this.rowRange,"clipboard"),t=(o=this.table.modules.export.generateHTMLTable(n))?this.generatePlainContent(n):"",this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t),o=this.table.options.clipboardCopyFormatter("html",o))),window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",t):e.clipboardData&&e.clipboardData.setData?(e.clipboardData.setData("text/plain",t),o&&e.clipboardData.setData("text/html",o)):e.originalEvent&&e.originalEvent.clipboardData.setData&&(e.originalEvent.clipboardData.setData("text/plain",t),o&&e.originalEvent.clipboardData.setData("text/html",o)),this.dispatchExternal("clipboardCopied",t,o),this.reset())})),!0!==this.mode&&"paste"!==this.mode||this.table.element.addEventListener("paste",(e=>{this.paste(e)})),this.setPasteParser(this.table.options.clipboardPasteParser),this.setPasteAction(this.table.options.clipboardPasteAction),this.registerTableFunction("copyToClipboard",this.copy.bind(this))}reset(){this.blocked=!0,this.customSelection=!1}generatePlainContent(e){var t=[];return e.forEach((e=>{var o=[];e.columns.forEach((t=>{var n="";if(t)if("group"===e.type&&(t.value=t.component.getKey()),null===t.value)n="";else switch(typeof t.value){case"object":n=JSON.stringify(t.value);break;case"undefined":n="";break;default:n=t.value}o.push(n)})),t.push(o.join("\t"))})),t.join("\n")}copy(e,t){var o,n;this.blocked=!1,this.customSelection=!1,!0!==this.mode&&"copy"!==this.mode||(this.rowRange=e||this.table.options.clipboardCopyRowRange,void 0!==window.getSelection&&void 0!==document.createRange?((e=document.createRange()).selectNodeContents(this.table.element),(o=window.getSelection()).toString()&&t&&(this.customSelection=o.toString()),o.removeAllRanges(),o.addRange(e)):void 0!==document.selection&&void 0!==document.body.createTextRange&&((n=document.body.createTextRange()).moveToElementText(this.table.element),n.select()),document.execCommand("copy"),o&&o.removeAllRanges())}setPasteAction(e){switch(typeof e){case"string":this.pasteAction=w.pasteActions[e],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",e);break;case"function":this.pasteAction=e}}setPasteParser(e){switch(typeof e){case"string":this.pasteParser=w.pasteParsers[e],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",e);break;case"function":this.pasteParser=e}}paste(e){var t,o,n;this.checkPasteOrigin(e)&&(t=this.getPasteData(e),(o=this.pasteParser.call(this,t))?(e.preventDefault(),this.table.modExists("mutator")&&(o=this.mutateData(o)),n=this.pasteAction.call(this,o),this.dispatchExternal("clipboardPasted",t,o,n)):this.dispatchExternal("clipboardPasteError",t))}mutateData(e){var t=[];return Array.isArray(e)?e.forEach((e=>{t.push(this.table.modules.mutator.transformRow(e,"clipboard"))})):t=e,t}checkPasteOrigin(e){var t=!0;return!this.confirm("clipboard-paste",[e])&&["DIV","SPAN"].includes(e.target.tagName)||(t=!1),t}getPasteData(e){var t;return window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),t}}class C{constructor(e){return this._row=e,new Proxy(this,{get:function(e,t,o){return void 0!==e[t]?e[t]:e._row.table.componentFunctionBinder.handle("row",e._row,t)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getTable(){return this._row.table}getCells(){var e=[];return this._row.getCells().forEach((function(t){e.push(t.getComponent())})),e}getCell(e){var t=this._row.getCell(e);return!!t&&t.getComponent()}_getSelf(){return this._row}}class x{constructor(e){return this._cell=e,new Proxy(this,{get:function(e,t,o){return void 0!==e[t]?e[t]:e._cell.table.componentFunctionBinder.handle("cell",e._cell,t)}})}getValue(){return this._cell.getValue()}getOldValue(){return this._cell.getOldValue()}getInitialValue(){return this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return this._cell.row.getComponent()}getData(e){return this._cell.row.getData(e)}getType(){return"cell"}getField(){return this._cell.column.getField()}getColumn(){return this._cell.column.getComponent()}setValue(e,t){void 0===t&&(t=!0),this._cell.setValue(e,t)}restoreOldValue(){this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue(){this._cell.setValueActual(this._cell.initialValue)}checkHeight(){this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return this._cell}}class A extends n{constructor(e,t){super(e.table),this.table=e.table,this.column=e,this.row=t,this.element=null,this.value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()}build(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateElement(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.column.isRowHeader&&this.element.classList.add("tabulator-row-header")}_configureCell(){var e=this.element,t=this.column.getField();e.style.textAlign=this.column.hozAlign,this.column.vertAlign&&(e.style.display="inline-flex",e.style.alignItems={top:"flex-start",bottom:"flex-end",middle:"center"}[this.column.vertAlign]||"",this.column.hozAlign&&(e.style.justifyContent={left:"flex-start",right:"flex-end",center:"center"}[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-field",t),this.column.definition.cssClass&&this.column.definition.cssClass.split(" ").forEach((t=>{e.classList.add(t)})),this.dispatch("cell-init",this),this.column.visible||this.hide()}_generateContents(){var e;switch(typeof(e=this.chain("cell-format",this,null,(()=>this.element.innerHTML=this.value)))){case"object":if(e instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(e)}else this.element.innerHTML="",null!=e&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",e);break;case"undefined":this.element.innerHTML="";break;default:this.element.innerHTML=e}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(e){return this.loaded||(this.loaded=!0,e||this.layoutElement()),this.element}getValue(){return this.value}getOldValue(){return this.oldValue}setValue(e,t,o){this.setValueProcessData(e,t,o)&&(this.dispatch("cell-value-updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.definition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("cellEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(e,t,o){var n=!1;return(this.value!==e||o)&&(n=!0,t&&(e=this.chain("cell-value-changing",[this,e],null,e))),this.setValueActual(e),n&&this.dispatch("cell-value-changed",this),n}setValueActual(e){this.oldValue=this.value,this.value=e,this.dispatch("cell-value-save-before",this),this.column.setFieldValue(this.row.data,e),this.dispatch("cell-value-save-after",this),this.loaded&&this.layoutElement()}layoutElement(){this._generateContents(),this.dispatch("cell-layout",this)}setWidth(){this.width=this.column.width,this.element.style.width=this.column.widthStyled}clearWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||this.element.offsetWidth}setMinWidth(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled}setMaxWidth(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight(){this.element.style.height="",this.height=null,this.dispatch("cell-height",this,"")}setHeight(){this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.dispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||this.element.offsetHeight}show(){this.element.style.display=this.column.vertAlign?"inline-flex":""}hide(){this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex(){return this.row.getCellIndex(this)}getComponent(){return this.component||(this.component=new x(this)),this.component}}class E{constructor(e){return this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(e,t,o){return void 0!==e[t]?e[t]:e._column.table.componentFunctionBinder.handle("column",e._column,t)}})}getElement(){return this._column.getElement()}getDefinition(){return this._column.getDefinition()}getField(){return this._column.getField()}getTitleDownload(){return this._column.getTitleDownload()}getCells(){var e=[];return this._column.cells.forEach((function(t){e.push(t.getComponent())})),e}isVisible(){return this._column.visible}show(){this._column.isGroup?this._column.columns.forEach((function(e){e.show()})):this._column.show()}hide(){this._column.isGroup?this._column.columns.forEach((function(e){e.hide()})):this._column.hide()}toggle(){this._column.visible?this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var e=[];return this._column.columns.length&&this._column.columns.forEach((function(t){e.push(t.getComponent())})),e}getParentColumn(){return this._column.getParentComponent()}_getSelf(){return this._column}scrollTo(e,t){return this._column.table.columnManager.scrollToColumn(this._column,e,t)}getTable(){return this._column.table}move(e,t){var o=this._column.table.columnManager.findColumn(e);o?this._column.table.columnManager.moveColumn(this._column,o,t):console.warn("Move Error - No matching column found:",o)}getNextColumn(){var e=this._column.nextColumn();return!!e&&e.getComponent()}getPrevColumn(){var e=this._column.prevColumn();return!!e&&e.getComponent()}updateDefinition(e){return this._column.updateDefinition(e)}getWidth(){return this._column.getWidth()}setWidth(e){var t;return t=!0===e?this._column.reinitializeWidth(!0):this._column.setWidth(e),this._column.table.columnManager.rerenderColumns(!0),t}}var S={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void 0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void 0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void 0,headerWordWrap:!1,editableTitle:void 0};class k extends n{static defaultOptionList=S;constructor(e,t,o){super(t.table),this.definition=e,this.parent=t,this.type="column",this.columns=[],this.cells=[],this.isGroup=!1,this.isRowHeader=o,this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRendered=!1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxInitialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!0,this.definition.columns.forEach(((e,t)=>{var o=new k(e,this);this.attachColumn(o)})),this.checkColumnVisibility()):t.registerColumnField(this),this._initialize()}createElement(){var e=document.createElement("div");switch(e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),this.isRowHeader&&e.classList.add("tabulator-row-header"),this.table.options.columnHeaderVertAlign){case"middle":e.style.justifyContent="center";break;case"bottom":e.style.justifyContent="flex-end"}return e}createGroupElement(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e}mapDefinitions(){var e=this.table.options.columnDefaults;if(e)for(let t in e)void 0===this.definition[t]&&(this.definition[t]=e[t]);this.definition=this.table.columnManager.optionsList.generate(k.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach((e=>{-1===k.defaultOptionList.indexOf(e)&&console.warn("Invalid column definition option in '"+(this.field||this.definition.title)+"' column:",e)}))}setField(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData}registerColumnPosition(e){this.parent.registerColumnPosition(e)}registerColumnField(e){this.parent.registerColumnField(e)}reRegisterPosition(){this.isGroup?this.columns.forEach((function(e){e.reRegisterPosition()})):this.registerColumnPosition(this)}_initialize(){for(var e=this.definition;this.element.firstChild;)this.element.removeChild(this.element.firstChild);e.headerVertical&&(this.element.classList.add("tabulator-col-vertical"),"flip"===e.headerVertical&&this.element.classList.add("tabulator-col-vertical-flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChild(this.contentElement),this.isGroup?this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-init",this)}_buildColumnHeader(){var e=this.definition;this.dispatch("column-layout",this),void 0!==e.visible&&(e.visible?this.show(!0):this.hide(!0)),e.cssClass&&e.cssClass.split(" ").forEach((e=>{this.element.classList.add(e)})),e.field&&this.element.setAttribute("tabulator-field",e.field),this.setMinWidth(parseInt(e.minWidth)),e.maxInitialWidth&&(this.maxInitialWidth=parseInt(e.maxInitialWidth)),e.maxWidth&&this.setMaxWidth(parseInt(e.maxWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vertAlign=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign}_buildColumnHeaderContent(){var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e}_buildColumnHeaderTitle(){var e=this.definition,t=document.createElement("div");if(t.classList.add("tabulator-col-title"),e.headerWordWrap&&t.classList.add("tabulator-col-title-wrap"),e.editableTitle){var o=document.createElement("input");o.classList.add("tabulator-title-editor"),o.addEventListener("click",(e=>{e.stopPropagation(),o.focus()})),o.addEventListener("mousedown",(e=>{e.stopPropagation()})),o.addEventListener("change",(()=>{e.title=o.value,this.dispatchExternal("columnTitleChanged",this.getComponent())})),t.appendChild(o),e.field?this.langBind("columns|"+e.field,(t=>{o.value=t||e.title||" "})):o.value=e.title||" "}else e.field?this.langBind("columns|"+e.field,(o=>{this._formatColumnHeaderTitle(t,o||e.title||" ")})):this._formatColumnHeaderTitle(t,e.title||" ");return t}_formatColumnHeaderTitle(e,t){var o=this.chain("column-format",[this,t,e],null,(()=>t));switch(typeof o){case"object":o instanceof Node?e.appendChild(o):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",o));break;case"undefined":e.innerHTML="";break;default:e.innerHTML=o}}_buildGroupHeader(){this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass&&this.definition.cssClass.split(" ").forEach((e=>{this.element.classList.add(e)})),this.titleElement.style.textAlign=this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlatData(e){return e[this.field]}_getNestedData(e){var t,o=e,n=this.fieldStructure,r=n.length;for(let e=0;e{t.push(e),t=t.concat(e.getColumns(!0))})):t=this.columns,t}getCells(){return this.cells}getTopColumn(){return this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(e){var t=[];return this.isGroup&&e&&(this.columns.forEach((function(e){t.push(e.getDefinition(!0))})),this.definition.columns=t),this.definition}checkColumnVisibility(){var e=!1;this.columns.forEach((function(t){t.visible&&(e=!0)})),e?(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1)):this.hide()}show(e,t){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach((function(e){e.show()})),this.isGroup||null!==this.width||this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispatch("column-show",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}hide(e,t){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach((function(e){e.hide()})),this.dispatch("column-hide",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}matchChildWidths(){var e=0;this.contentElement&&this.columns.length&&(this.columns.forEach((function(t){t.visible&&(e+=t.getWidth())})),this.contentElement.style.maxWidth=e-1+"px",this.table.initialized&&(this.element.style.width=e+"px"),this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(e){var t=this.columns.indexOf(e);t>-1&&this.columns.splice(t,1),this.columns.length||this.delete()}setWidth(e){this.widthFixed=!0,this.setWidthActual(e)}setWidthActual(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach((function(e){e.setWidth()})),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch("column-width",this),this.subscribedExternal("columnWidth")&&this.dispatchExternal("columnWidth",this.getComponent())}checkCellHeights(){var e=[];this.cells.forEach((function(t){t.row.heightInitialized&&(null!==t.row.getElement().offsetParent?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)})),e.forEach((function(e){e.calcHeight()})),e.forEach((function(e){e.setCellHeight()}))}getWidth(){var e=0;return this.isGroup?this.columns.forEach((function(t){t.visible&&(e+=t.getWidth())})):e=this.width,e}getLeftOffset(){var e=this.element.offsetLeft;return this.parent.isGroup&&(e+=this.parent.getLeftOffset()),e}getHeight(){return Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(e){this.maxWidth&&e>this.maxWidth&&(e=this.maxWidth,console.warn("the minWidth ("+e+"px) for column '"+this.field+"' cannot be bigger that its maxWidth ("+this.maxWidthStyled+")")),this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach((function(e){e.setMinWidth()}))}setMaxWidth(e){this.minWidth&&e{this.isGroup&&this.columns.forEach((function(e){e.delete()})),this.dispatch("column-delete",this);var o=this.cells.length;for(let e=0;e-1&&this._nextVisibleColumn(e+1)}_nextVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)}prevColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1&&this._prevVisibleColumn(e-1)}_prevVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)}reinitializeWidth(e){this.widthFixed=!1,void 0===this.definition.width||e||this.setWidth(this.definition.width),this.dispatch("column-width-fit-before",this),this.fitToData(e),this.dispatch("column-width-fit-after",this)}fitToData(e){if(!this.isGroup){this.widthFixed||(this.element.style.width="",this.cells.forEach((e=>{e.clearWidth()})));var t=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach((e=>{var o=e.getWidth();o>t&&(t=o)})),t)){var o=t+1;e?this.setWidth(o):(this.maxInitialWidth&&!e&&(o=Math.min(o,this.maxInitialWidth)),this.setWidthActual(o))}}}updateDefinition(e){var t;return this.isGroup||this.parent.isGroup?(console.error("Column Update Error - The updateDefinition function is only available on ungrouped columns"),Promise.reject("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(t=Object.assign({},this.getDefinition()),t=Object.assign(t,e),this.table.columnManager.addColumn(t,!1,this).then((e=>(t.field==this.field&&(this.field=!1),this.delete().then((()=>e.getComponent()))))))}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}getComponent(){return this.component||(this.component=new E(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof k&&this.parent.getComponent()}}class R{constructor(e){return this._row=e,new Proxy(this,{get:function(e,t,o){return void 0!==e[t]?e[t]:e._row.table.componentFunctionBinder.handle("row",e._row,t)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getCells(){var e=[];return this._row.getCells().forEach((function(t){e.push(t.getComponent())})),e}getCell(e){var t=this._row.getCell(e);return!!t&&t.getComponent()}getIndex(){return this._row.getData("data")[this._row.table.options.index]}getPosition(){return this._row.getPosition()}watchPosition(e){return this._row.watchPosition(e)}delete(){return this._row.delete()}scrollTo(e,t){return this._row.table.rowManager.scrollToRow(this._row,e,t)}move(e,t){this._row.moveToRow(e,t)}update(e){return this._row.updateData(e)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf(){return this._row}reformat(){return this._row.reinitialize()}getTable(){return this._row.table}getNextRow(){var e=this._row.nextRow();return e?e.getComponent():e}getPrevRow(){var e=this._row.prevRow();return e?e.getComponent():e}}class M extends n{constructor(e,t,o="row"){super(t.table),this.parent=t,this.data={},this.type=o,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!1,this.setData(e)}create(){this.created||(this.created=!0,this.generateElement())}createElement(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e}getElement(){return this.create(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}generateElement(){this.createElement(),this.dispatch("row-init",this)}generateCells(){this.cells=this.table.columnManager.generateCells(this)}initialize(e,t){if(this.create(),!this.initialized||e){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.dispatch("row-layout-before",this),this.generateCells(),this.initialized=!0,this.table.columnManager.renderer.renderRowCells(this,t),e&&this.normalizeHeight(),this.dispatch("row-layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.dispatch("row-layout-after",this)}else this.table.columnManager.renderer.rerenderRowCells(this,t)}rendered(){this.cells.forEach((e=>{e.cellRendered()}))}reinitializeHeight(){this.heightInitialized=!1,this.element&&null!==this.element.offsetParent&&this.normalizeHeight(!0)}deinitialize(){this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&null!==this.element.offsetParent&&this.initialize(!0),this.dispatch("row-relayout",this)}calcHeight(e){var t=0,o=0;this.table.options.rowHeight?this.height=this.table.options.rowHeight:(o=this.calcMinHeight(),t=this.calcMaxHeight(),this.height=e?Math.max(t,o):this.manualHeight?this.height:Math.max(t,o)),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight}calcMinHeight(){return this.table.options.resizableRows?this.element.clientHeight:0}calcMaxHeight(){var e=0;return this.cells.forEach((function(t){var o=t.getHeight();o>e&&(e=o)})),e}setCellHeight(){this.cells.forEach((function(e){e.setHeight()})),this.heightInitialized=!0}clearCellHeight(){this.cells.forEach((function(e){e.clearHeight()}))}normalizeHeight(e){e&&!this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()}setHeight(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight,this.subscribedExternal("rowHeight")&&this.dispatchExternal("rowHeight",this.getComponent()))}getHeight(){return this.outerHeight}getWidth(){return this.element.offsetWidth}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}setData(e){this.data=this.chain("row-data-init-before",[this,e],void 0,e),this.dispatch("row-data-init-after",this)}updateData(e){var t,o=this.element&&r.elVisible(this.element),n={};return new Promise(((r,i)=>{"string"==typeof e&&(e=JSON.parse(e)),this.dispatch("row-data-save-before",this),this.subscribed("row-data-changing")&&(n=Object.assign(n,this.data),n=Object.assign(n,e)),t=this.chain("row-data-changing",[this,n,e],null,e);for(let e in t)this.data[e]=t[e];this.dispatch("row-data-save-after",this);for(let n in e)this.table.columnManager.getColumnsByFieldRoot(n).forEach((e=>{let n=this.getCell(e.getField());if(n){let r=e.getFieldValue(t);n.getValue()!==r&&(n.setValueProcessData(r),o&&n.cellRendered())}}));o?(this.normalizeHeight(!0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-data-changed",this,o,e),this.dispatchExternal("rowUpdated",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),r()}))}getData(e){return e?this.chain("row-data-retrieve",[this,e],null,this.data):this.data}getCell(e){return e=this.table.columnManager.findColumn(e),this.initialized||0!==this.cells.length||this.generateCells(),this.cells.find((function(t){return t.column===e}))}getCellIndex(e){return this.cells.findIndex((function(t){return t===e}))}findCell(e){return this.cells.find((t=>t.element===e))}getCells(){return this.initialized||0!==this.cells.length||this.generateCells(),this.cells}nextRow(){return this.table.rowManager.nextDisplayRow(this,!0)||!1}prevRow(){return this.table.rowManager.prevDisplayRow(this,!0)||!1}moveToRow(e,t){var o=this.table.rowManager.findRow(e);o?(this.table.rowManager.moveRowActual(this,o,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)}delete(){return this.dispatch("row-delete",this),this.deleteActual(),Promise.resolve()}deleteActual(e){this.detachModules(),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var e=this.cells.length;for(let t=0;t{e(this.position)})))}watchPosition(e){this.positionWatchers.push(e),e(this.position)}getGroup(){return this.modules.group||!1}getComponent(){return this.component||(this.component=new R(this)),this.component}}var I={avg:function(e,t,o){var n=0,r=void 0!==o.precision?o.precision:2;return e.length&&(n=e.reduce((function(e,t){return Number(e)+Number(t)})),n/=e.length,n=!1!==r?n.toFixed(r):n),parseFloat(n).toString()},max:function(e,t,o){var n=null,r=void 0!==o.precision&&o.precision;return e.forEach((function(e){((e=Number(e))>n||null===n)&&(n=e)})),null!==n?!1!==r?n.toFixed(r):n:""},min:function(e,t,o){var n=null,r=void 0!==o.precision&&o.precision;return e.forEach((function(e){((e=Number(e))(e||0===t)&&e.indexOf(t)===o)).length}};class P extends a{static moduleName="columnCalcs";static calculations=I;constructor(e){super(e),this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFormatterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("bottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerColumnOption("bottomCalcFormatterParams")}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-calcs-holder"),e}initialize(){this.genColumn=new k({field:"value"},this),this.subscribe("cell-value-changed",this.cellValueChanged.bind(this)),this.subscribe("column-init",this.initializeColumnCheck.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("column-moved",this.recalcActiveRows.bind(this)),this.subscribe("column-add",this.recalcActiveRows.bind(this)),this.subscribe("data-refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-restored",this.restoreRedraw.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.bind(this)),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}tableRedraw(e){this.recalc(this.table.rowManager.activeRows),e&&this.redraw()}blockRedraw(){this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!1,this.recalcAfterBlock&&(this.recalcAfterBlock=!1,this.recalcActiveRowsRefresh())}userRecalc(){this.recalc(this.table.rowManager.activeRows)}blockCheck(){return this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(e,t){return this.topRow&&t.unshift(this.topRow),this.botRow&&t.push(this.botRow),t}rowsUpdated(e){this.table.options.groupBy?this.recalcRowGroup(e):this.recalcActiveRows()}recalcActiveRowsRefresh(){this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.options.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows(){this.recalc(this.table.rowManager.activeRows)}cellValueChanged(e){(e.column.definition.topCalc||e.column.definition.bottomCalc)&&(this.table.options.groupBy?("table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs||this.recalcActiveRows(),"table"!=this.table.options.columnCalcs&&this.recalcRowGroup(e.row)):this.recalcActiveRows())}initializeColumnCheck(e){(e.definition.topCalc||e.definition.bottomCalc)&&this.initializeColumn(e)}initializeColumn(e){var t=e.definition,o={topCalcParams:t.topCalcParams||{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(typeof t.topCalc){case"string":P.calculations[t.topCalc]?o.topCalc=P.calculations[t.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.topCalc);break;case"function":o.topCalc=t.topCalc}o.topCalc&&(e.modules.columnCalcs=o,this.topCalcs.push(e),"group"!=this.table.options.columnCalcs&&this.initializeTopRow())}if(t.bottomCalc){switch(typeof t.bottomCalc){case"string":P.calculations[t.bottomCalc]?o.botCalc=P.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.bottomCalc);break;case"function":o.botCalc=t.bottomCalc}o.botCalc&&(e.modules.columnCalcs=o,this.botCalcs.push(e),"group"!=this.table.options.columnCalcs&&this.initializeBottomRow())}}registerColumnField(){}removeCalcs(){var e=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),e=!0),this.botInitialized&&(this.botInitialized=!1,this.footerRemove(this.botElement),e=!0),e&&this.table.rowManager.adjustTableSize()}reinitializeCalcs(){this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializeBottomRow()}initializeTopRow(){var e=document.createDocumentFragment();this.topInitialized||(e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)}initializeBottomRow(){this.botInitialized||(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(e){this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=e)}recalc(e){var t,o;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized)){if(t=this.rowsToData(e),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),o=this.generateRow("top",t),this.topRow=o;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(o.getElement()),o.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),o=this.generateRow("bottom",t),this.botRow=o;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(o.getElement()),o.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}}recalcRowGroup(e){this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))}recalcAll(){(this.topCalcs.length||this.botCalcs.length)&&("group"!==this.table.options.columnCalcs&&this.recalcActiveRows(),this.table.options.groupBy&&"table"!==this.table.options.columnCalcs&&this.table.modules.groupRows.getChildGroups().forEach((e=>{this.recalcGroup(e)})))}recalcGroup(e){var t,o;this.blockCheck()||e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),o=this.generateRowData("bottom",t),e.calcs.bottom.updateData(o),e.calcs.bottom.reinitialize()),e.calcs.top&&(t=this.rowsToData(e.rows),o=this.generateRowData("top",t),e.calcs.top.updateData(o),e.calcs.top.reinitialize()))}generateTopRow(e){return this.generateRow("top",this.rowsToData(e))}generateBottomRow(e){return this.generateRow("bottom",this.rowsToData(e))}rowsToData(e){var t=[],o=this.table.options.dataTree&&this.table.options.dataTreeChildColumnCalcs,n=this.table.modules.dataTree;return e.forEach((e=>{t.push(e.getData()),o&&e.modules.dataTree?.open&&this.rowsToData(n.getFilteredTreeChildren(e)).forEach((o=>{t.push(e)}))})),t}generateRow(e,t){var o,n=this.generateRowData(e,t);return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),o=new M(n,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),o.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),o.component=!1,o.getComponent=()=>(o.component||(o.component=new C(o)),o.component),o.generateCells=()=>{var t=[];this.table.columnManager.columnsByIndex.forEach((n=>{this.genColumn.setField(n.getField()),this.genColumn.hozAlign=n.hozAlign,n.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(n.definition[e+"CalcFormatter"]),params:n.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=n.definition.cssClass;var r=new A(this.genColumn,o);r.getElement(),r.column=n,r.setWidth(),n.cells.push(r),t.push(r),n.visible||r.hide()})),o.cells=t},o}generateRowData(e,t){var o,n,r={},i="top"==e?this.topCalcs:this.botCalcs,a="top"==e?"topCalc":"botCalc";return i.forEach((function(e){var i=[];e.modules.columnCalcs&&e.modules.columnCalcs[a]&&(t.forEach((function(t){i.push(e.getFieldValue(t))})),n=a+"Params",o="function"==typeof e.modules.columnCalcs[n]?e.modules.columnCalcs[n](i,t):e.modules.columnCalcs[n],e.setFieldValue(r,e.modules.columnCalcs[a](i,t,o)))})),r}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var e={};return this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.getGroups(!0).forEach((t=>{e[t.getKey()]=this.getGroupResults(t)})):e={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},e}getGroupResults(e){var t=e._getSelf(),o=e.getSubGroups(),n={};return o.forEach((e=>{n[e.getKey()]=this.getGroupResults(e)})),{top:t.calcs.top?t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():{},groups:n}}adjustForScrollbar(e){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")}}var O={csv:function(e,t={},o){var n=t.delimiter?t.delimiter:",",r=[],i=[];e.forEach((e=>{var t=[];switch(e.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":e.columns.forEach(((e,t)=>{e&&1===e.depth&&(i[t]=void 0===e.value||null===e.value?"":'"'+String(e.value).split('"').join('""')+'"')}));break;case"row":e.columns.forEach((e=>{if(e){switch(typeof e.value){case"object":e.value=null!==e.value?JSON.stringify(e.value):"";break;case"undefined":e.value=""}t.push('"'+String(e.value).split('"').join('""')+'"')}})),r.push(t.join(n))}})),i.length&&r.unshift(i.join(n)),r=r.join("\n"),t.bom&&(r="\ufeff"+r),o(r,"text/csv")},json:function(e,t,o){var n=[];e.forEach((e=>{var t={};switch(e.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":e.columns.forEach((e=>{e&&(t[e.component.getTitleDownload()||e.component.getField()]=e.value)})),n.push(t)}})),o(n=JSON.stringify(n,null,"\t"),"application/json")},jsonLines:function(e,t,o){const n=[];e.forEach((e=>{const t={};switch(e.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":e.columns.forEach((e=>{e&&(t[e.component.getTitleDownload()||e.component.getField()]=e.value)})),n.push(JSON.stringify(t))}})),o(n.join("\n"),"application/x-ndjson")},pdf:function(e,t={},o){var n,r,i=[],a=[],l={},s=t.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},c=t.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},u=t.jsPDF||{},d=t.title?t.title:"";function p(e,t){var o=[];return e.columns.forEach((e=>{var n;if(e){switch(typeof e.value){case"object":e.value=null!==e.value?JSON.stringify(e.value):"";break;case"undefined":e.value=""}n={content:e.value,colSpan:e.width,rowSpan:e.height},t&&(n.styles=t),o.push(n)}})),o}u.orientation||(u.orientation=t.orientation||"landscape"),u.unit||(u.unit="pt"),e.forEach((e=>{switch(e.type){case"header":i.push(p(e));break;case"group":a.push(p(e,s));break;case"calc":a.push(p(e,c));break;case"row":a.push(p(e))}})),n=this.dependencyRegistry.lookup("jspdf","jsPDF"),r=new n(u),t.autoTable&&(l="function"==typeof t.autoTable?t.autoTable(r)||{}:t.autoTable),d&&(l.didDrawPage=function(e){r.text(d,40,30)}),l.head=i,l.body=a,r.autoTable(l),t.documentProcessing&&t.documentProcessing(r),o(r.output("arraybuffer"),"application/pdf")},xlsx:function(e,t,o){var r=t.sheetName||"Sheet1",i=this.dependencyRegistry.lookup("XLSX"),a=i.utils.book_new(),l=new n(this),s=!("compress"in t)||t.compress,c=t.writeOptions||{bookType:"xlsx",bookSST:!0,compression:s};function u(){var t=[],o=[],n={},r={s:{c:0,r:0},e:{c:e[0]?e[0].columns.reduce(((e,t)=>e+(t&&t.width?t.width:1)),0):0,r:e.length}};return e.forEach(((e,n)=>{var r=[];e.columns.forEach((function(e,t){e?(r.push(e.value instanceof Date||"object"!=typeof e.value?e.value:JSON.stringify(e.value)),(e.width>1||e.height>-1)&&(e.height>1||e.width>1)&&o.push({s:{r:n,c:t},e:{r:n+e.height-1,c:t+e.width-1}})):r.push("")})),t.push(r)})),i.utils.sheet_add_aoa(n,t),n["!ref"]=i.utils.encode_range(r),o.length&&(n["!merges"]=o),n}if(c.type="binary",a.SheetNames=[],a.Sheets={},t.sheetOnly)o(u());else{if(t.sheets)for(var d in t.sheets)!0===t.sheets[d]?(a.SheetNames.push(d),a.Sheets[d]=u()):(a.SheetNames.push(d),l.commsSend(t.sheets[d],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:this.active,intercept:function(e){a.Sheets[d]=e}}));else a.SheetNames.push(r),a.Sheets[r]=u();t.documentProcessing&&(a=t.documentProcessing(a)),o(function(e){for(var t=new ArrayBuffer(e.length),o=new Uint8Array(t),n=0;n!=e.length;++n)o[n]=255&e.charCodeAt(n);return t}(i.write(a,c)),"application/octet-stream")}},html:function(e,t,o){this.modExists("export",!0)&&o(this.modules.export.generateHTMLTable(e),"text/html")}};class T extends a{static moduleName="download";static downloaders=O;constructor(e){super(e),this.registerTableOption("downloadEncoder",(function(e,t){return new Blob([e],{type:t})})),this.registerTableOption("downloadConfig",{}),this.registerTableOption("downloadRowRange","active"),this.registerColumnOption("download"),this.registerColumnOption("titleDownload")}initialize(){this.deprecatedOptionsCheck(),this.registerTableFunction("download",this.download.bind(this)),this.registerTableFunction("downloadToTab",this.downloadToTab.bind(this))}deprecatedOptionsCheck(){}downloadToTab(e,t,o,n){this.download(e,t,o,n,!0)}download(e,t,o,n,r){var i=!1;if("function"==typeof e?i=e:T.downloaders[e]?i=T.downloaders[e]:console.warn("Download Error - No such download type found: ",e),i){var a=this.generateExportList(n);i.call(this.table,a,o||{},function(o,n){r?!0===r?this.triggerDownload(o,n,e,t,!0):r(o):this.triggerDownload(o,n,e,t)}.bind(this))}}generateExportList(e){var t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,e||this.table.options.downloadRowRange,"download"),o=this.table.options.groupHeaderDownload;return o&&!Array.isArray(o)&&(o=[o]),t.forEach((e=>{var t;"group"===e.type&&(t=e.columns[0],o&&o[e.indent]&&(t.value=o[e.indent](t.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)))})),t}triggerDownload(e,t,o,n,r){var i=document.createElement("a"),a=this.table.options.downloadEncoder(e,t);a&&(r?window.open(window.URL.createObjectURL(a)):(n=n||"Tabulator."+("function"==typeof o?"txt":o),navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(a,n):(i.setAttribute("href",window.URL.createObjectURL(a)),i.setAttribute("download",n),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i))),this.dispatchExternal("downloadComplete"))}commsReceived(e,t,o){"intercept"===t&&this.download(o.type,"",o.options,o.active,o.intercept)}}function $(e,t){var o=t.mask,n=void 0!==t.maskLetterChar?t.maskLetterChar:"A",r=void 0!==t.maskNumberChar?t.maskNumberChar:"9",i=void 0!==t.maskWildcardChar?t.maskWildcardChar:"*";function a(t){var l=o[t];void 0!==l&&l!==i&&l!==n&&l!==r&&(e.value=e.value+""+l,a(t+1))}e.addEventListener("keydown",(t=>{var a=e.value.length,l=t.key;if(t.keyCode>46&&!t.ctrlKey&&!t.metaKey){if(a>=o.length)return t.preventDefault(),t.stopPropagation(),!1;switch(o[a]){case n:if(l.toUpperCase()==l.toLowerCase())return t.preventDefault(),t.stopPropagation(),!1;break;case r:if(isNaN(l))return t.preventDefault(),t.stopPropagation(),!1;break;case i:break;default:if(l!==o[a])return t.preventDefault(),t.stopPropagation(),!1}}})),e.addEventListener("keyup",(o=>{o.keyCode>46&&t.maskAutoFill&&a(e.value.length)})),e.placeholder||(e.placeholder=o),t.maskAutoFill&&a(e.value.length)}let z=class{constructor(e,t,o,n,r,i){this.edit=e,this.table=e.table,this.cell=t,this.params=this._initializeParams(i),this.data=[],this.displayItems=[],this.currentItems=[],this.focusedItem=null,this.input=this._createInputElement(),this.listEl=this._createListElement(),this.initialValues=null,this.isFilter="header"===t.getType(),this.filterTimeout=null,this.filtered=!1,this.typing=!1,this.values=[],this.popup=null,this.listIteration=0,this.lastAction="",this.filterTerm="",this.blurable=!0,this.actions={success:n,cancel:r},this._deprecatedOptionsCheck(),this._initializeValue(),o(this._onRendered.bind(this))}_deprecatedOptionsCheck(){}_initializeValue(){var e=this.cell.getValue();void 0===e&&void 0!==this.params.defaultValue&&(e=this.params.defaultValue),this.initialValues=this.params.multiselect?e:[e],this.isFilter&&(this.input.value=this.initialValues?this.initialValues.join(","):"",this.headerFilterInitialListGen())}_onRendered(){var e=this.cell.getElement();function t(e){e.stopPropagation()}this.isFilter||(this.input.style.height="100%",this.input.focus({preventScroll:!0})),e.addEventListener("click",t),setTimeout((()=>{e.removeEventListener("click",t)}),1e3),this.input.addEventListener("mousedown",this._preventPopupBlur.bind(this))}_createListElement(){var e=document.createElement("div");return e.classList.add("tabulator-edit-list"),e.addEventListener("mousedown",this._preventBlur.bind(this)),e.addEventListener("keydown",this._inputKeyDown.bind(this)),e}_setListWidth(){var e=this.isFilter?this.input:this.cell.getElement();this.listEl.style.minWidth=e.offsetWidth+"px",this.params.maxWidth&&(!0===this.params.maxWidth?this.listEl.style.maxWidth=e.offsetWidth+"px":"number"==typeof this.params.maxWidth?this.listEl.style.maxWidth=this.params.maxWidth+"px":this.listEl.style.maxWidth=this.params.maxWidth)}_createInputElement(){var e=this.params.elementAttributes,t=document.createElement("input");if(t.setAttribute("type",this.params.clearable?"search":"text"),t.style.padding="4px",t.style.width="100%",t.style.boxSizing="border-box",this.params.autocomplete||(t.style.cursor="default",t.style.caretColor="transparent"),e&&"object"==typeof e)for(let o in e)"+"==o.charAt(0)?(o=o.slice(1),t.setAttribute(o,t.getAttribute(o)+e["+"+o])):t.setAttribute(o,e[o]);return this.params.mask&&$(t,this.params),this._bindInputEvents(t),t}_initializeParams(e){var t,o=["values","valuesURL","valuesLookup"];return(e=Object.assign({},e)).verticalNavigation=e.verticalNavigation||"editor",e.placeholderLoading=void 0===e.placeholderLoading?"Searching ...":e.placeholderLoading,e.placeholderEmpty=void 0===e.placeholderEmpty?"No Results Found":e.placeholderEmpty,e.filterDelay=void 0===e.filterDelay?300:e.filterDelay,e.emptyValue=Object.keys(e).includes("emptyValue")?e.emptyValue:"",(t=Object.keys(e).filter((e=>o.includes(e))).length)?t>1&&console.warn("list editor config error - only one of the values, valuesURL, or valuesLookup options can be set on the same editor"):console.warn("list editor config error - either the values, valuesURL, or valuesLookup option must be set"),e.autocomplete?e.multiselect&&(e.multiselect=!1,console.warn("list editor config error - multiselect option is not available when autocomplete is enabled")):(e.freetext&&(e.freetext=!1,console.warn("list editor config error - freetext option is only available when autocomplete is enabled")),e.filterFunc&&(e.filterFunc=!1,console.warn("list editor config error - filterFunc option is only available when autocomplete is enabled")),e.filterRemote&&(e.filterRemote=!1,console.warn("list editor config error - filterRemote option is only available when autocomplete is enabled")),e.mask&&(e.mask=!1,console.warn("list editor config error - mask option is only available when autocomplete is enabled")),e.allowEmpty&&(e.allowEmpty=!1,console.warn("list editor config error - allowEmpty option is only available when autocomplete is enabled")),e.listOnEmpty&&(e.listOnEmpty=!1,console.warn("list editor config error - listOnEmpty option is only available when autocomplete is enabled"))),e.filterRemote&&"function"!=typeof e.valuesLookup&&!e.valuesURL&&(e.filterRemote=!1,console.warn("list editor config error - filterRemote option should only be used when values list is populated from a remote source")),e}_bindInputEvents(e){e.addEventListener("focus",this._inputFocus.bind(this)),e.addEventListener("click",this._inputClick.bind(this)),e.addEventListener("blur",this._inputBlur.bind(this)),e.addEventListener("keydown",this._inputKeyDown.bind(this)),e.addEventListener("search",this._inputSearch.bind(this)),this.params.autocomplete&&e.addEventListener("keyup",this._inputKeyUp.bind(this))}_inputFocus(e){this.rebuildOptionsList()}_filter(){this.params.filterRemote?(clearTimeout(this.filterTimeout),this.filterTimeout=setTimeout((()=>{this.rebuildOptionsList()}),this.params.filterDelay)):this._filterList()}_inputClick(e){e.stopPropagation()}_inputBlur(e){this.blurable&&(this.popup?this.popup.hide():this._resolveValue(!0))}_inputSearch(){this._clearChoices()}_inputKeyDown(e){switch(e.keyCode){case 38:this._keyUp(e);break;case 40:this._keyDown(e);break;case 37:case 39:this._keySide(e);break;case 13:this._keyEnter();break;case 27:this._keyEsc();break;case 36:case 35:this._keyHomeEnd(e);break;case 9:this._keyTab(e);break;default:this._keySelectLetter(e)}}_inputKeyUp(e){switch(e.keyCode){case 38:case 37:case 39:case 40:case 13:case 27:break;default:this._keyAutoCompLetter(e)}}_preventPopupBlur(){this.popup&&this.popup.blockHide(),setTimeout((()=>{this.popup&&this.popup.restoreHide()}),10)}_preventBlur(){this.blurable=!1,setTimeout((()=>{this.blurable=!0}),10)}_keyTab(e){this.params.autocomplete&&"typing"===this.lastAction?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem,!0)}_keyUp(e){var t=this.displayItems.indexOf(this.focusedItem);("editor"==this.params.verticalNavigation||"hybrid"==this.params.verticalNavigation&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t>0&&this._focusItem(this.displayItems[t-1]))}_keyDown(e){var t=this.displayItems.indexOf(this.focusedItem);("editor"==this.params.verticalNavigation||"hybrid"==this.params.verticalNavigation&&t=38&&e.keyCode<=90&&this._scrollToValue(e.keyCode))}_keyAutoCompLetter(e){this._filter(),this.lastAction="typing",this.typing=!0}_scrollToValue(e){clearTimeout(this.filterTimeout);var t=String.fromCharCode(e).toLowerCase();this.filterTerm+=t.toLowerCase();var o=this.displayItems.find((e=>void 0!==e.label&&e.label.toLowerCase().startsWith(this.filterTerm)));o&&this._focusItem(o),this.filterTimeout=setTimeout((()=>{this.filterTerm=""}),800)}_focusItem(e){this.lastAction="focus",this.focusedItem&&this.focusedItem.element&&this.focusedItem.element.classList.remove("focused"),this.focusedItem=e,e&&e.element&&(e.element.classList.add("focused"),e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}))}headerFilterInitialListGen(){this._generateOptions(!0)}rebuildOptionsList(){this._generateOptions().then(this._sortOptions.bind(this)).then(this._buildList.bind(this)).then(this._showList.bind(this)).catch((e=>{Number.isInteger(e)||console.error("List generation error",e)}))}_filterList(){this._buildList(this._filterOptions()),this._showList()}_generateOptions(e){var t=[],o=++this.listIteration;return this.filtered=!1,this.params.values?t=this.params.values:this.params.valuesURL?t=this._ajaxRequest(this.params.valuesURL,this.input.value):"function"==typeof this.params.valuesLookup?t=this.params.valuesLookup(this.cell,this.input.value):this.params.valuesLookup&&(t=this._uniqueColumnValues(this.params.valuesLookupField)),t instanceof Promise?(e||this._addPlaceholder(this.params.placeholderLoading),t.then().then((e=>this.listIteration===o?this._parseList(e):Promise.reject(o)))):Promise.resolve(this._parseList(t))}_addPlaceholder(e){var t=document.createElement("div");"function"==typeof e&&(e=e(this.cell.getComponent(),this.listEl)),e&&(this._clearList(),e instanceof HTMLElement?t=e:(t.classList.add("tabulator-edit-list-placeholder"),t.innerHTML=e),this.listEl.appendChild(t),this._showList())}_ajaxRequest(e,t){return e=p(e,{},this.params.filterRemote?{term:t}:{}),fetch(e).then((e=>e.ok?e.json().catch((e=>(console.warn("List Ajax Load Error - Invalid JSON returned",e),Promise.reject(e)))):(console.error("List Ajax Load Error - Connection Error: "+e.status,e.statusText),Promise.reject(e)))).catch((e=>(console.error("List Ajax Load Error - Connection Error: ",e),Promise.reject(e))))}_uniqueColumnValues(e){var t,o={},n=this.table.getData(this.params.valuesLookup);return(t=e?this.table.columnManager.getColumnByField(e):this.cell.getColumn()._getSelf())?n.forEach((e=>{var n=t.getFieldValue(e);this._emptyValueCheck(n)||(this.params.multiselect&&Array.isArray(n)?n.forEach((e=>{this._emptyValueCheck(e)||(o[e]=!0)})):o[n]=!0)})):(console.warn("unable to find matching column to create select lookup list:",e),o=[]),Object.keys(o)}_emptyValueCheck(e){return null==e||""===e}_parseList(e){var t=[];return Array.isArray(e)||(e=Object.entries(e).map((([e,t])=>({label:t,value:e})))),e.forEach((e=>{"object"!=typeof e&&(e={label:e,value:e}),this._parseListItem(e,t,0)})),!this.currentItems.length&&this.params.freetext&&(this.input.value=this.initialValues,this.typing=!0,this.lastAction="typing"),this.data=t,t}_parseListItem(e,t,o){var n={};e.options?n=this._parseListGroup(e,o+1):(n={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1,selected:!1,visible:!0,level:o,original:e},this.initialValues&&this.initialValues.indexOf(e.value)>-1&&this._chooseItem(n,!0)),t.push(n)}_parseListGroup(e,t){var o={label:e.label,group:!0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1,visible:!0,level:t,options:[],original:e};return e.options.forEach((e=>{this._parseListItem(e,o.options,t)})),o}_sortOptions(e){var t;return this.params.sort&&(t="function"==typeof this.params.sort?this.params.sort:this._defaultSortFunction.bind(this),this._sortGroup(t,e)),e}_sortGroup(e,t){t.sort(((t,o)=>e(t.label,o.label,t.value,o.value,t.original,o.original))),t.forEach((t=>{t.group&&this._sortGroup(e,t.options)}))}_defaultSortFunction(e,t){var o,n,r,i,a,l=0,s=/(\d+)|(\D+)/g,c=/\d/,u=0;if("desc"===this.params.sort&&([e,t]=[t,e]),e||0===e){if(t||0===t){if(isFinite(e)&&isFinite(t))return e-t;if((o=String(e).toLowerCase())===(n=String(t).toLowerCase()))return 0;if(!c.test(o)||!c.test(n))return o>n?1:-1;for(o=o.match(s),n=n.match(s),a=o.length>n.length?n.length:o.length;li?1:-1;return o.length>n.length}u=1}else u=t||0===t?-1:0;return u}_filterOptions(){var e=this.params.filterFunc||this._defaultFilterFunc,t=this.input.value;return t?(this.filtered=!0,this.data.forEach((o=>{this._filterItem(e,t,o)}))):this.filtered=!1,this.data}_filterItem(e,t,o){var n=!1;return o.group?(o.options.forEach((o=>{this._filterItem(e,t,o)&&(n=!0)})),o.visible=n):o.visible=e(t,o.label,o.value,o.original),o.visible}_defaultFilterFunc(e,t,o,n){return e=String(e).toLowerCase(),null!=t&&(String(t).toLowerCase().indexOf(e)>-1||String(o).toLowerCase().indexOf(e)>-1)}_clearList(){for(;this.listEl.firstChild;)this.listEl.removeChild(this.listEl.firstChild);this.displayItems=[]}_buildList(e){this._clearList(),e.forEach((e=>{this._buildItem(e)})),this.displayItems.length||this._addPlaceholder(this.params.placeholderEmpty)}_buildItem(e){var t,o=e.element;if(!this.filtered||e.visible){if(!o){if((o=document.createElement("div")).tabIndex=0,(t=this.params.itemFormatter?this.params.itemFormatter(e.label,e.value,e.original,o):e.label)instanceof HTMLElement?o.appendChild(t):o.innerHTML=t,e.group?o.classList.add("tabulator-edit-list-group"):o.classList.add("tabulator-edit-list-item"),o.classList.add("tabulator-edit-list-group-level-"+e.level),e.elementAttributes&&"object"==typeof e.elementAttributes)for(let t in e.elementAttributes)"+"==t.charAt(0)?(t=t.slice(1),o.setAttribute(t,this.input.getAttribute(t)+e.elementAttributes["+"+t])):o.setAttribute(t,e.elementAttributes[t]);e.group?o.addEventListener("click",this._groupClick.bind(this,e)):o.addEventListener("click",this._itemClick.bind(this,e)),o.addEventListener("mousedown",this._preventBlur.bind(this)),e.element=o}this._styleItem(e),this.listEl.appendChild(o),e.group?e.options.forEach((e=>{this._buildItem(e)})):this.displayItems.push(e)}}_showList(){var e=this.popup&&this.popup.isVisible();if(this.input.parentNode){if(this.params.autocomplete&&""===this.input.value&&!this.params.listOnEmpty)return void(this.popup&&this.popup.hide(!0));this._setListWidth(),this.popup||(this.popup=this.edit.popup(this.listEl)),this.popup.show(this.cell.getElement(),"bottom"),e||setTimeout((()=>{this.popup.hideOnBlur(this._resolveValue.bind(this,!0))}),10)}}_styleItem(e){e&&e.element&&(e.selected?e.element.classList.add("active"):e.element.classList.remove("active"))}_itemClick(e,t){t.stopPropagation(),this._chooseItem(e)}_groupClick(e,t){t.stopPropagation()}_cancel(){this.popup.hide(!0),this.actions.cancel()}_clearChoices(){this.typing=!0,this.currentItems.forEach((e=>{e.selected=!1,this._styleItem(e)})),this.currentItems=[],this.focusedItem=null}_chooseItem(e,t){var o;this.typing=!1,this.params.multiselect?((o=this.currentItems.indexOf(e))>-1?(this.currentItems.splice(o,1),e.selected=!1):(this.currentItems.push(e),e.selected=!0),this.input.value=this.currentItems.map((e=>e.label)).join(","),this._styleItem(e)):(this.currentItems=[e],e.selected=!0,this.input.value=e.label,this._styleItem(e),t||this._resolveValue()),this._focusItem(e)}_resolveValue(e){var t,o;if(this.popup&&this.popup.hide(!0),this.params.multiselect)t=this.currentItems.map((e=>e.value));else if(e&&this.params.autocomplete&&this.typing){if(!(this.params.freetext||this.params.allowEmpty&&""===this.input.value))return void this.actions.cancel();t=this.input.value}else t=this.currentItems[0]?this.currentItems[0].value:null==(o=Array.isArray(this.initialValues)?this.initialValues[0]:this.initialValues)||""===o?o:this.params.emptyValue;""===t&&(t=this.params.emptyValue),this.actions.success(t),this.isFilter&&(this.initialValues=t&&!Array.isArray(t)?[t]:t,this.currentItems=[])}};var D={input:function(e,t,o,n,r){var i=e.getValue(),a=document.createElement("input");if(a.setAttribute("type",r.search?"search":"text"),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",r.elementAttributes&&"object"==typeof r.elementAttributes)for(let e in r.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),a.setAttribute(e,a.getAttribute(e)+r.elementAttributes["+"+e])):a.setAttribute(e,r.elementAttributes[e]);function l(e){null==i&&""!==a.value||a.value!==i?o(a.value)&&(i=a.value):n()}return a.value=void 0!==i?i:"",t((function(){"cell"===e.getType()&&(a.focus({preventScroll:!0}),a.style.height="100%",r.selectContents&&a.select())})),a.addEventListener("change",l),a.addEventListener("blur",l),a.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:l();break;case 27:n();break;case 35:case 36:e.stopPropagation()}})),r.mask&&$(a,r),a},textarea:function(e,t,o,n,r){var i=e.getValue(),a=r.verticalNavigation||"hybrid",l=String(null!=i?i:""),s=document.createElement("textarea"),c=0;if(s.style.display="block",s.style.padding="2px",s.style.height="100%",s.style.width="100%",s.style.boxSizing="border-box",s.style.whiteSpace="pre-wrap",s.style.resize="none",r.elementAttributes&&"object"==typeof r.elementAttributes)for(let e in r.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),s.setAttribute(e,s.getAttribute(e)+r.elementAttributes["+"+e])):s.setAttribute(e,r.elementAttributes[e]);function u(t){null==i&&""!==s.value||s.value!==i?(o(s.value)&&(i=s.value),setTimeout((function(){e.getRow().normalizeHeight()}),300)):n()}return s.value=l,t((function(){"cell"===e.getType()&&(s.focus({preventScroll:!0}),s.style.height="100%",s.scrollHeight,s.style.height=s.scrollHeight+"px",e.getRow().normalizeHeight(),r.selectContents&&s.select())})),s.addEventListener("change",u),s.addEventListener("blur",u),s.addEventListener("keyup",(function(){s.style.height="";var t=s.scrollHeight;s.style.height=t+"px",t!=c&&(c=t,e.getRow().normalizeHeight())})),s.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:e.shiftKey&&r.shiftEnterSubmit&&u();break;case 27:n();break;case 38:("editor"==a||"hybrid"==a&&s.selectionStart)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 40:("editor"==a||"hybrid"==a&&s.selectionStart!==s.value.length)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation()}})),r.mask&&$(s,r),s},number:function(e,t,o,n,r){var i=e.getValue(),a=r.verticalNavigation||"editor",l=document.createElement("input");if(l.setAttribute("type","number"),void 0!==r.max&&l.setAttribute("max",r.max),void 0!==r.min&&l.setAttribute("min",r.min),void 0!==r.step&&l.setAttribute("step",r.step),l.style.padding="4px",l.style.width="100%",l.style.boxSizing="border-box",r.elementAttributes&&"object"==typeof r.elementAttributes)for(let e in r.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),l.setAttribute(e,l.getAttribute(e)+r.elementAttributes["+"+e])):l.setAttribute(e,r.elementAttributes[e]);l.value=i;var s=function(e){c()};function c(){var e=l.value;isNaN(e)||""===e||(e=Number(e)),e!==i?o(e)&&(i=e):n()}return t((function(){"cell"===e.getType()&&(l.removeEventListener("blur",s),l.focus({preventScroll:!0}),l.style.height="100%",l.addEventListener("blur",s),r.selectContents&&l.select())})),l.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:c();break;case 27:n();break;case 38:case 40:"editor"==a&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation()}})),r.mask&&$(l,r),l},range:function(e,t,o,n,r){var i=e.getValue(),a=document.createElement("input");if(a.setAttribute("type","range"),void 0!==r.max&&a.setAttribute("max",r.max),void 0!==r.min&&a.setAttribute("min",r.min),void 0!==r.step&&a.setAttribute("step",r.step),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",r.elementAttributes&&"object"==typeof r.elementAttributes)for(let e in r.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),a.setAttribute(e,a.getAttribute(e)+r.elementAttributes["+"+e])):a.setAttribute(e,r.elementAttributes[e]);function l(){var e=a.value;isNaN(e)||""===e||(e=Number(e)),e!=i?o(e)&&(i=e):n()}return a.value=i,t((function(){"cell"===e.getType()&&(a.focus({preventScroll:!0}),a.style.height="100%")})),a.addEventListener("blur",(function(e){l()})),a.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:l();break;case 27:n()}})),a},date:function(e,t,o,n,r){var i=r.format,a=r.verticalNavigation||"editor",l=i?window.DateTime||luxon.DateTime:null,s=e.getValue(),c=document.createElement("input");function u(e){return(l.isDateTime(e)?e:"iso"===i?l.fromISO(String(e)):l.fromFormat(String(e),i)).toFormat("yyyy-MM-dd")}if(c.type="date",c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",r.max&&c.setAttribute("max",i?u(r.max):r.max),r.min&&c.setAttribute("min",i?u(r.min):r.min),r.elementAttributes&&"object"==typeof r.elementAttributes)for(let e in r.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),c.setAttribute(e,c.getAttribute(e)+r.elementAttributes["+"+e])):c.setAttribute(e,r.elementAttributes[e]);function d(){var e,t=c.value;if(null==s&&""!==t||t!==s){if(t&&i)switch(e=l.fromFormat(String(t),"yyyy-MM-dd"),i){case!0:t=e;break;case"iso":t=e.toISO();break;default:t=e.toFormat(i)}o(t)&&(s=c.value)}else n()}return s=void 0!==s?s:"",i&&(l?s=u(s):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),c.value=s,t((function(){"cell"===e.getType()&&(c.focus({preventScroll:!0}),c.style.height="100%",r.selectContents&&c.select())})),c.addEventListener("blur",(function(e){(e.relatedTarget||e.rangeParent||e.explicitOriginalTarget!==c)&&d()})),c.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:d();break;case 27:n();break;case 35:case 36:e.stopPropagation();break;case 38:case 40:"editor"==a&&(e.stopImmediatePropagation(),e.stopPropagation())}})),c},time:function(e,t,o,n,r){var i,a=r.format,l=r.verticalNavigation||"editor",s=a?window.DateTime||luxon.DateTime:null,c=e.getValue(),u=document.createElement("input");if(u.type="time",u.style.padding="4px",u.style.width="100%",u.style.boxSizing="border-box",r.elementAttributes&&"object"==typeof r.elementAttributes)for(let e in r.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),u.setAttribute(e,u.getAttribute(e)+r.elementAttributes["+"+e])):u.setAttribute(e,r.elementAttributes[e]);function d(){var e,t=u.value;if(null==c&&""!==t||t!==c){if(t&&a)switch(e=s.fromFormat(String(t),"hh:mm"),a){case!0:t=e;break;case"iso":t=e.toISO();break;default:t=e.toFormat(a)}o(t)&&(c=u.value)}else n()}return c=void 0!==c?c:"",a&&(s?(i=s.isDateTime(c)?c:"iso"===a?s.fromISO(String(c)):s.fromFormat(String(c),a),c=i.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),u.value=c,t((function(){"cell"==e.getType()&&(u.focus({preventScroll:!0}),u.style.height="100%",r.selectContents&&u.select())})),u.addEventListener("blur",(function(e){(e.relatedTarget||e.rangeParent||e.explicitOriginalTarget!==u)&&d()})),u.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:d();break;case 27:n();break;case 35:case 36:e.stopPropagation();break;case 38:case 40:"editor"==l&&(e.stopImmediatePropagation(),e.stopPropagation())}})),u},datetime:function(e,t,o,n,r){var i,a=r.format,l=r.verticalNavigation||"editor",s=a?this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"):null,c=e.getValue(),u=document.createElement("input");if(u.type="datetime-local",u.style.padding="4px",u.style.width="100%",u.style.boxSizing="border-box",r.elementAttributes&&"object"==typeof r.elementAttributes)for(let e in r.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),u.setAttribute(e,u.getAttribute(e)+r.elementAttributes["+"+e])):u.setAttribute(e,r.elementAttributes[e]);function d(){var e,t=u.value;if(null==c&&""!==t||t!==c){if(t&&a)switch(e=s.fromISO(String(t)),a){case!0:t=e;break;case"iso":t=e.toISO();break;default:t=e.toFormat(a)}o(t)&&(c=u.value)}else n()}return c=void 0!==c?c:"",a&&(s?(i=s.isDateTime(c)?c:"iso"===a?s.fromISO(String(c)):s.fromFormat(String(c),a),c=i.toFormat("yyyy-MM-dd")+"T"+i.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),u.value=c,t((function(){"cell"===e.getType()&&(u.focus({preventScroll:!0}),u.style.height="100%",r.selectContents&&u.select())})),u.addEventListener("blur",(function(e){(e.relatedTarget||e.rangeParent||e.explicitOriginalTarget!==u)&&d()})),u.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:d();break;case 27:n();break;case 35:case 36:e.stopPropagation();break;case 38:case 40:"editor"==l&&(e.stopImmediatePropagation(),e.stopPropagation())}})),u},list:function(e,t,o,n,r){return new z(this,e,t,o,n,r).input},star:function(e,t,o,n,r){var i=this,a=e.getElement(),l=e.getValue(),s=a.getElementsByTagName("svg").length||5,c=a.getElementsByTagName("svg")[0]?a.getElementsByTagName("svg")[0].getAttribute("width"):14,u=[],d=document.createElement("div"),p=document.createElementNS("http://www.w3.org/2000/svg","svg");function h(e){u.forEach((function(t,o){o'):("ie"==i.table.browser?t.setAttribute("class","tabulator-star-inactive"):t.classList.replace("tabulator-star-active","tabulator-star-inactive"),t.innerHTML='')}))}function m(e){var t=document.createElement("span"),n=p.cloneNode(!0);u.push(n),t.addEventListener("mouseenter",(function(t){t.stopPropagation(),t.stopImmediatePropagation(),h(e)})),t.addEventListener("mousemove",(function(e){e.stopPropagation(),e.stopImmediatePropagation()})),t.addEventListener("click",(function(t){t.stopPropagation(),t.stopImmediatePropagation(),o(e),a.blur()})),t.appendChild(n),d.appendChild(t)}function f(e){l=e,h(e)}if(a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",d.style.verticalAlign="middle",d.style.display="inline-block",d.style.padding="4px",p.setAttribute("width",c),p.setAttribute("height",c),p.setAttribute("viewBox","0 0 512 512"),p.setAttribute("xml:space","preserve"),p.style.padding="0 1px",r.elementAttributes&&"object"==typeof r.elementAttributes)for(let e in r.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),d.setAttribute(e,d.getAttribute(e)+r.elementAttributes["+"+e])):d.setAttribute(e,r.elementAttributes[e]);for(var g=1;g<=s;g++)m(g);return h(l=Math.min(parseInt(l),s)),d.addEventListener("mousemove",(function(e){h(0)})),d.addEventListener("click",(function(e){o(0)})),a.addEventListener("blur",(function(e){n()})),a.addEventListener("keydown",(function(e){switch(e.keyCode){case 39:f(l+1);break;case 37:f(l-1);break;case 13:o(l);break;case 27:n()}})),d},progress:function(e,t,o,n,r){var i,a,l=e.getElement(),s=void 0===r.max?l.getElementsByTagName("div")[0]&&l.getElementsByTagName("div")[0].getAttribute("max")||100:r.max,c=void 0===r.min?l.getElementsByTagName("div")[0]&&l.getElementsByTagName("div")[0].getAttribute("min")||0:r.min,u=(s-c)/100,d=e.getValue()||0,p=document.createElement("div"),h=document.createElement("div");function m(){var e=window.getComputedStyle(l,null),t=u*Math.round(h.offsetWidth/((l.clientWidth-parseInt(e.getPropertyValue("padding-left"))-parseInt(e.getPropertyValue("padding-right")))/100))+c;o(t),l.setAttribute("aria-valuenow",t),l.setAttribute("aria-label",d)}if(p.style.position="absolute",p.style.right="0",p.style.top="0",p.style.bottom="0",p.style.width="5px",p.classList.add("tabulator-progress-handle"),h.style.display="inline-block",h.style.position="relative",h.style.height="100%",h.style.backgroundColor="#488CE9",h.style.maxWidth="100%",h.style.minWidth="0%",r.elementAttributes&&"object"==typeof r.elementAttributes)for(let e in r.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),h.setAttribute(e,h.getAttribute(e)+r.elementAttributes["+"+e])):h.setAttribute(e,r.elementAttributes[e]);return l.style.padding="4px 4px",d=Math.min(parseFloat(d),s),d=Math.max(parseFloat(d),c),d=Math.round((d-c)/u),h.style.width=d+"%",l.setAttribute("aria-valuemin",c),l.setAttribute("aria-valuemax",s),h.appendChild(p),p.addEventListener("mousedown",(function(e){i=e.screenX,a=h.offsetWidth})),p.addEventListener("mouseover",(function(){p.style.cursor="ew-resize"})),l.addEventListener("mousemove",(function(e){i&&(h.style.width=a+e.screenX-i+"px")})),l.addEventListener("mouseup",(function(e){i&&(e.stopPropagation(),e.stopImmediatePropagation(),i=!1,a=!1,m())})),l.addEventListener("keydown",(function(e){switch(e.keyCode){case 39:e.preventDefault(),h.style.width=h.clientWidth+l.clientWidth/100+"px";break;case 37:e.preventDefault(),h.style.width=h.clientWidth-l.clientWidth/100+"px";break;case 9:case 13:m();break;case 27:n()}})),l.addEventListener("blur",(function(){n()})),h},tickCross:function(e,t,o,n,r){var i=e.getValue(),a=document.createElement("input"),l=r.tristate,s=void 0===r.indeterminateValue?null:r.indeterminateValue,c=!1,u=Object.keys(r).includes("trueValue"),d=Object.keys(r).includes("falseValue");if(a.setAttribute("type","checkbox"),a.style.marginTop="5px",a.style.boxSizing="border-box",r.elementAttributes&&"object"==typeof r.elementAttributes)for(let e in r.elementAttributes)"+"==e.charAt(0)?(e=e.slice(1),a.setAttribute(e,a.getAttribute(e)+r.elementAttributes["+"+e])):a.setAttribute(e,r.elementAttributes[e]);function p(e){var t=a.checked;return u&&t?t=r.trueValue:d&&!t&&(t=r.falseValue),l?e?c?s:t:a.checked&&!c?(a.checked=!1,a.indeterminate=!0,c=!0,s):(c=!1,t):t}return a.value=i,!l||void 0!==i&&i!==s&&""!==i||(c=!0,a.indeterminate=!0),"firefox"!=this.table.browser&&"safari"!=this.table.browser&&t((function(){"cell"===e.getType()&&a.focus({preventScroll:!0})})),a.checked=u?i===r.trueValue:!0===i||"true"===i||"True"===i||1===i,a.addEventListener("change",(function(e){o(p())})),a.addEventListener("blur",(function(e){o(p(!0))})),a.addEventListener("keydown",(function(e){13==e.keyCode&&o(p()),27==e.keyCode&&n()})),a},adaptable:function(e,t,o,n,r){var i,a,l=e._getSelf().column;return i=r.editorLookup?r.editorLookup(e):function(e){var t=e.getValue(),o="input";switch(typeof t){case"number":o="number";break;case"boolean":o="tickCross";break;case"string":t.includes("\n")&&(o="textarea")}return o}(e),r.paramsLookup&&(a="function"==typeof r.paramsLookup?r.paramsLookup(i,e):r.paramsLookup[i]),this.table.modules.edit.lookupEditor(i,l).call(this,e,t,o,n,a||{})}};class L extends a{static moduleName="edit";static editors=D;constructor(e){super(e),this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[],this.convertEmptyValues=!1,this.editors=L.editors,this.registerTableOption("editTriggerEvent","focus"),this.registerTableOption("editorEmptyValue"),this.registerTableOption("editorEmptyValueFunc",this.emptyValueCheck.bind(this)),this.registerColumnOption("editable"),this.registerColumnOption("editor"),this.registerColumnOption("editorParams"),this.registerColumnOption("editorEmptyValue"),this.registerColumnOption("editorEmptyValueFunc"),this.registerColumnOption("cellEditing"),this.registerColumnOption("cellEdited"),this.registerColumnOption("cellEditCancelled"),this.registerTableFunction("getEditedCells",this.getEditedCells.bind(this)),this.registerTableFunction("clearCellEdited",this.clearCellEdited.bind(this)),this.registerTableFunction("navigatePrev",this.navigatePrev.bind(this)),this.registerTableFunction("navigateNext",this.navigateNext.bind(this)),this.registerTableFunction("navigateLeft",this.navigateLeft.bind(this)),this.registerTableFunction("navigateRight",this.navigateRight.bind(this)),this.registerTableFunction("navigateUp",this.navigateUp.bind(this)),this.registerTableFunction("navigateDown",this.navigateDown.bind(this)),this.registerComponentFunction("cell","isEdited",this.cellIsEdited.bind(this)),this.registerComponentFunction("cell","clearEdited",this.clearEdited.bind(this)),this.registerComponentFunction("cell","edit",this.editCell.bind(this)),this.registerComponentFunction("cell","cancelEdit",this.cellCancelEdit.bind(this)),this.registerComponentFunction("cell","navigatePrev",this.navigatePrev.bind(this)),this.registerComponentFunction("cell","navigateNext",this.navigateNext.bind(this)),this.registerComponentFunction("cell","navigateLeft",this.navigateLeft.bind(this)),this.registerComponentFunction("cell","navigateRight",this.navigateRight.bind(this)),this.registerComponentFunction("cell","navigateUp",this.navigateUp.bind(this)),this.registerComponentFunction("cell","navigateDown",this.navigateDown.bind(this))}initialize(){this.subscribe("cell-init",this.bindEditor.bind(this)),this.subscribe("cell-delete",this.clearEdited.bind(this)),this.subscribe("cell-value-changed",this.updateCellClass.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("column-delete",this.columnDeleteCheck.bind(this)),this.subscribe("row-deleting",this.rowDeleteCheck.bind(this)),this.subscribe("row-layout",this.rowEditableCheck.bind(this)),this.subscribe("data-refreshing",this.cancelEdit.bind(this)),this.subscribe("clipboard-paste",this.pasteBlocker.bind(this)),this.subscribe("keybinding-nav-prev",this.navigatePrev.bind(this,void 0)),this.subscribe("keybinding-nav-next",this.keybindingNavigateNext.bind(this)),this.subscribe("keybinding-nav-up",this.navigateUp.bind(this,void 0)),this.subscribe("keybinding-nav-down",this.navigateDown.bind(this,void 0)),Object.keys(this.table.options).includes("editorEmptyValue")&&(this.convertEmptyValues=!0)}pasteBlocker(e){if(this.currentCell)return!0}keybindingNavigateNext(e){var t=this.currentCell,o=this.options("tabEndNewRow");t&&(this.navigateNext(t,e)||o&&(t.getElement().firstChild.blur(),this.invalidEdit||(o=!0===o?this.table.addRow({}):"function"==typeof o?this.table.addRow(o(t.row.getComponent())):this.table.addRow(Object.assign({},o))).then((()=>{setTimeout((()=>{t.getComponent().navigateNext()}))}))))}cellIsEdited(e){return!!e.modules.edit&&e.modules.edit.edited}cellCancelEdit(e){e===this.currentCell?this.table.modules.edit.cancelEdit():console.warn("Cancel Editor Error - This cell is not currently being edited ")}updateCellClass(e){this.allowEdit(e)?e.getElement().classList.add("tabulator-editable"):e.getElement().classList.remove("tabulator-editable")}clearCellEdited(e){e||(e=this.table.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach((e=>{this.table.modules.edit.clearEdited(e._getSelf())}))}navigatePrev(e=this.currentCell,t){var o,n;if(e){if(t&&t.preventDefault(),o=this.navigateLeft())return!0;if((n=this.table.rowManager.prevDisplayRow(e.row,!0))&&(o=this.findPrevEditableCell(n,n.cells.length)))return o.getComponent().edit(),!0}return!1}navigateNext(e=this.currentCell,t){var o,n;if(e){if(t&&t.preventDefault(),o=this.navigateRight())return!0;if((n=this.table.rowManager.nextDisplayRow(e.row,!0))&&(o=this.findNextEditableCell(n,-1)))return o.getComponent().edit(),!0}return!1}navigateLeft(e=this.currentCell,t){var o,n;return!!(e&&(t&&t.preventDefault(),o=e.getIndex(),n=this.findPrevEditableCell(e.row,o)))&&(n.getComponent().edit(),!0)}navigateRight(e=this.currentCell,t){var o,n;return!!(e&&(t&&t.preventDefault(),o=e.getIndex(),n=this.findNextEditableCell(e.row,o)))&&(n.getComponent().edit(),!0)}navigateUp(e=this.currentCell,t){var o,n;return!!(e&&(t&&t.preventDefault(),o=e.getIndex(),n=this.table.rowManager.prevDisplayRow(e.row,!0)))&&(n.cells[o].getComponent().edit(),!0)}navigateDown(e=this.currentCell,t){var o,n;return!!(e&&(t&&t.preventDefault(),o=e.getIndex(),n=this.table.rowManager.nextDisplayRow(e.row,!0)))&&(n.cells[o].getComponent().edit(),!0)}findNextEditableCell(e,t){var o=!1;if(t0)for(var n=t-1;n>=0;n--){let t=e.cells[n];if(t.column.modules.edit&&r.elVisible(t.getElement())&&this.allowEdit(t)){o=t;break}}return o}initializeColumnCheck(e){void 0!==e.definition.editor&&this.initializeColumn(e)}columnDeleteCheck(e){this.currentCell&&this.currentCell.column===e&&this.cancelEdit()}rowDeleteCheck(e){this.currentCell&&this.currentCell.row===e&&this.cancelEdit()}rowEditableCheck(e){e.getCells().forEach((e=>{e.column.modules.edit&&"function"==typeof e.column.modules.edit.check&&this.updateCellClass(e)}))}initializeColumn(e){var t=Object.keys(e.definition).includes("editorEmptyValue"),o={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{},convertEmptyValues:t,editorEmptyValue:e.definition.editorEmptyValue,editorEmptyValueFunc:e.definition.editorEmptyValueFunc};o.editor=this.lookupEditor(e.definition.editor,e),o.editor&&(e.modules.edit=o)}lookupEditor(e,t){var o;switch(typeof e){case"string":this.editors[e]?o=this.editors[e]:console.warn("Editor Error - No such editor found: ",e);break;case"function":o=e;break;case"boolean":!0===e&&("function"!=typeof t.definition.formatter?o=this.editors[t.definition.formatter]?this.editors[t.definition.formatter]:this.editors.input:console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",t.definition.formatter))}return o}getCurrentCell(){return!!this.currentCell&&this.currentCell.getComponent()}clearEditor(e){var t,o=this.currentCell;if(this.invalidEdit=!1,o){for(this.currentCell=!1,t=o.getElement(),this.dispatch("edit-editor-clear",o,e),t.classList.remove("tabulator-editing");t.firstChild;)t.removeChild(t.firstChild);o.row.getElement().classList.remove("tabulator-editing"),o.table.element.classList.remove("tabulator-editing")}}cancelEdit(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),("textarea"==e.column.definition.editor||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.definition.cellEditCancelled&&e.column.definition.cellEditCancelled.call(this.table,t),this.dispatch("edit-cancelled",e),this.dispatchExternal("cellEditCancelled",t)}}bindEditor(e){if(e.column.modules.edit){var t=this,o=e.getElement(!0);this.updateCellClass(e),o.setAttribute("tabindex",0),o.addEventListener("mousedown",(function(e){2===e.button?e.preventDefault():t.mouseClick=!0})),"dblclick"===this.options("editTriggerEvent")&&o.addEventListener("dblclick",(function(n){o.classList.contains("tabulator-editing")||(o.focus({preventScroll:!0}),t.edit(e,n,!1))})),"focus"!==this.options("editTriggerEvent")&&"click"!==this.options("editTriggerEvent")||o.addEventListener("click",(function(n){o.classList.contains("tabulator-editing")||(o.focus({preventScroll:!0}),t.edit(e,n,!1))})),"focus"===this.options("editTriggerEvent")&&o.addEventListener("focus",(function(o){t.recursionBlock||t.edit(e,o,!1)}))}}focusCellNoEvent(e,t){this.recursionBlock=!0,t&&"ie"===this.table.browser||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1}editCell(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)}focusScrollAdjust(e){if("virtual"==this.table.rowManager.getRenderMode()){var t=this.table.rowManager.element.scrollTop,o=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,n=e.row.getElement();n.offsetTopo&&(this.table.rowManager.element.scrollTop+=n.offsetTop+n.offsetHeight-o);var r=this.table.rowManager.element.scrollLeft,i=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,a=e.getElement();this.table.modExists("frozenColumns")&&(r+=parseInt(this.table.modules.frozenColumns.leftMargin||0),i-=parseInt(this.table.modules.frozenColumns.rightMargin||0)),"virtual"===this.table.options.renderHorizontal&&(r-=parseInt(this.table.columnManager.renderer.vDomPadLeft),i-=parseInt(this.table.columnManager.renderer.vDomPadLeft)),a.offsetLefti&&(this.table.rowManager.element.scrollLeft+=a.offsetLeft+a.offsetWidth-i)}}allowEdit(e){var t=!!e.column.modules.edit;if(e.column.modules.edit)switch(typeof e.column.modules.edit.check){case"function":e.row.initialized&&(t=e.column.modules.edit.check(e.getComponent()));break;case"string":t=!!e.row.data[e.column.modules.edit.check];break;case"boolean":t=e.column.modules.edit.check}return t}edit(e,t,o){var n,r,i,a=this,l=function(){},s=e.getElement(),c=!1;if(!this.currentCell){if(e.column.modules.edit.blocked)return this.mouseClick=!1,this.blur(s),!1;if(t&&t.stopPropagation(),this.allowEdit(e)||o){if(a.cancelEdit(),a.currentCell=e,this.focusScrollAdjust(e),r=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.definition.cellClick&&e.column.definition.cellClick.call(this.table,t,r)),e.column.definition.cellEditing&&e.column.definition.cellEditing.call(this.table,r),this.dispatch("cell-editing",e),this.dispatchExternal("cellEditing",r),i="function"==typeof e.column.modules.edit.params?e.column.modules.edit.params(r):e.column.modules.edit.params,n=e.column.modules.edit.editor.call(a,r,(function(e){l=e}),(function(t){if(a.currentCell===e&&!c){var o=a.chain("edit-success",[e,t],!0,!0);return!0===o||"highlight"===a.table.options.validationMode?(c=!0,a.clearEditor(),e.modules.edit||(e.modules.edit={}),e.modules.edit.edited=!0,-1==a.editedCells.indexOf(e)&&a.editedCells.push(e),t=a.transformEmptyValues(t,e),e.setValue(t,!0),!0===o):(c=!0,a.invalidEdit=!0,a.focusCellNoEvent(e,!0),l(),setTimeout((()=>{c=!1}),10),!1)}}),(function(){a.currentCell!==e||c||a.cancelEdit()}),i),!this.currentCell||!1===n)return this.blur(s),!1;if(!(n instanceof Node))return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",n),this.blur(s),!1;for(s.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-editing"),e.table.element.classList.add("tabulator-editing");s.firstChild;)s.removeChild(s.firstChild);s.appendChild(n),l();for(var u=s.children,d=0;d{e.push(t.getComponent())})),e}clearEdited(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,this.dispatch("edit-edited-clear",e)),(t=this.editedCells.indexOf(e))>-1&&this.editedCells.splice(t,1)}}class F{constructor(e,t,o,n){this.type=e,this.columns=t,this.component=o||!1,this.indent=n||0}}class N{constructor(e,t,o,n,r){this.value=e,this.component=t||!1,this.width=o,this.height=n,this.depth=r}}var H={},j={visible:function(){return this.rowManager.getVisibleRows(!1,!0)},all:function(){return this.rowManager.rows},selected:function(){return this.modules.selectRow.selectedRows},active:function(){return this.options.pagination?this.rowManager.getDisplayRows(this.rowManager.displayRows.length-2):this.rowManager.getDisplayRows()}};class B extends a{static moduleName="export";static columnLookups=H;static rowLookups=j;constructor(e){super(e),this.config={},this.cloneTableStyle=!0,this.colVisProp="",this.colVisPropAttach="",this.registerTableOption("htmlOutputConfig",!1),this.registerColumnOption("htmlOutput"),this.registerColumnOption("titleHtmlOutput")}initialize(){this.registerTableFunction("getHtml",this.getHtml.bind(this))}generateExportList(e,t,o,n){var r,i,a,l;return this.cloneTableStyle=t,this.config=e||{},this.colVisProp=n,this.colVisPropAttach=this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1),(l=B.columnLookups[o])&&(a=(a=l.call(this.table)).filter((e=>this.columnVisCheck(e)))),r=!1!==this.config.columnHeaders?this.headersToExportRows(this.generateColumnGroupHeaders(a)):[],a&&(a=a.map((e=>e.getComponent()))),i=this.bodyToExportRows(this.rowLookup(o),a),r.concat(i)}generateTable(e,t,o,n){var r=this.generateExportList(e,t,o,n);return this.generateTableElement(r)}rowLookup(e){var t,o=[];return"function"==typeof e?e.call(this.table).forEach((e=>{(e=this.table.rowManager.findRow(e))&&o.push(e)})):(t=B.rowLookups[e]||B.rowLookups.active,o=t.call(this.table)),Object.assign([],o)}generateColumnGroupHeaders(e){var t=[];return e||(e=!1!==this.config.columnGroups?this.table.columnManager.columns:this.table.columnManager.columnsByIndex),e.forEach((e=>{var o=this.processColumnGroup(e);o&&t.push(o)})),t}processColumnGroup(e){var t=e.columns,o=0,n={title:e.definition["title"+this.colVisPropAttach]||e.definition.title,column:e,depth:1};if(t.length){if(n.subGroups=[],n.width=0,t.forEach((e=>{var t=this.processColumnGroup(e);t&&(n.width+=t.width,n.subGroups.push(t),t.depth>o&&(o=t.depth))})),n.depth+=o,!n.width)return!1}else{if(!this.columnVisCheck(e))return!1;n.width=1}return n}columnVisCheck(e){var t=e.definition[this.colVisProp];return(!1!==this.config.rowHeaders||!e.isRowHeader)&&("function"==typeof t&&(t=t.call(this.table,e.getComponent())),!1===t||!0===t?t:e.visible&&e.field)}headersToExportRows(e){var t=[],o=0,n=[];function r(e,n){var i=o-n;if(void 0===t[n]&&(t[n]=[]),e.height=e.subGroups?1:i-e.depth+1,t[n].push(e),e.height>1)for(let o=1;o1)for(let o=1;oo&&(o=e.depth)})),e.forEach((function(e){r(e,0)})),t.forEach((e=>{var t=[];e.forEach((e=>{if(e){let o=void 0===e.title?"":e.title;t.push(new N(o,e.column.getComponent(),e.width,e.height,e.depth))}else t.push(null)})),n.push(new F("header",t))})),n}bodyToExportRows(e,t=[]){var o=[];return 0===t.length&&this.table.columnManager.columnsByIndex.forEach((e=>{this.columnVisCheck(e)&&t.push(e.getComponent())})),!1!==this.config.columnCalcs&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),(e=e.filter((e=>{switch(e.type){case"group":return!1!==this.config.rowGroups;case"calc":return!1!==this.config.columnCalcs;case"row":return!(this.table.options.dataTree&&!1===this.config.dataTree&&e.modules.dataTree.parent)}return!0}))).forEach(((e,n)=>{var r=e.getData(this.colVisProp),i=[],a=0;switch(e.type){case"group":a=e.level,i.push(new N(e.key,e.getComponent(),t.length,1));break;case"calc":case"row":t.forEach((e=>{i.push(new N(e._column.getFieldValue(r),e,1,1))})),this.table.options.dataTree&&!1!==this.config.dataTree&&(a=e.modules.dataTree.index)}o.push(new F(e.type,i,e.getComponent(),a))})),o}generateTableElement(e){var t=document.createElement("table"),o=document.createElement("thead"),n=document.createElement("tbody"),r=this.lookupTableStyles(),i=this.table.options["rowFormatter"+this.colVisPropAttach],a={};return a.rowFormatter=null!==i?i:this.table.options.rowFormatter,this.table.options.dataTree&&!1!==this.config.dataTree&&this.table.modExists("columnCalcs")&&(a.treeElementField=this.table.modules.dataTree.elementField),a.groupHeader=this.table.options["groupHeader"+this.colVisPropAttach],a.groupHeader&&!Array.isArray(a.groupHeader)&&(a.groupHeader=[a.groupHeader]),t.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),o,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach(((e,t)=>{let i;switch(e.type){case"header":o.appendChild(this.generateHeaderElement(e,a,r));break;case"group":n.appendChild(this.generateGroupElement(e,a,r));break;case"calc":n.appendChild(this.generateCalcElement(e,a,r));break;case"row":i=this.generateRowElement(e,a,r),this.mapElementStyles(t%2&&r.evenRow?r.evenRow:r.oddRow,i,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),n.appendChild(i)}})),o.innerHTML&&t.appendChild(o),t.appendChild(n),this.mapElementStyles(this.table.element,t,["border-top","border-left","border-right","border-bottom"]),t}lookupTableStyles(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.styleRowHeader=e.firstRow.getElementsByClassName("tabulator-row-header")[0],e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e}generateHeaderElement(e,t,o){var n=document.createElement("tr");return e.columns.forEach((e=>{if(e){var t=document.createElement("th"),o=e.component._column.definition.cssClass?e.component._column.definition.cssClass.split(" "):[];t.colSpan=e.width,t.rowSpan=e.height,t.innerHTML=e.value,this.cloneTableStyle&&(t.style.boxSizing="border-box"),o.forEach((function(e){t.classList.add(e)})),this.mapElementStyles(e.component.getElement(),t,["text-align","border-left","border-right","background-color","color","font-weight","font-family","font-size"]),this.mapElementStyles(e.component._column.contentElement,t,["padding-top","padding-left","padding-right","padding-bottom"]),e.component._column.visible?this.mapElementStyles(e.component.getElement(),t,["width"]):e.component._column.definition.width&&(t.style.width=e.component._column.definition.width+"px"),e.component._column.parent&&e.component._column.parent.isGroup?this.mapElementStyles(e.component._column.parent.groupElement,t,["border-top"]):this.mapElementStyles(e.component.getElement(),t,["border-top"]),e.component._column.isGroup?this.mapElementStyles(e.component.getElement(),t,["border-bottom"]):this.mapElementStyles(this.table.columnManager.getElement(),t,["border-bottom"]),n.appendChild(t)}})),n}generateGroupElement(e,t,o){var n=document.createElement("tr"),r=document.createElement("td"),i=e.columns[0];return n.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?i.value=t.groupHeader[e.indent](i.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):!1!==t.groupHeader&&(i.value=e.component._group.generator(i.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)),r.colSpan=i.width,r.innerHTML=i.value,n.classList.add("tabulator-print-table-group"),n.classList.add("tabulator-group-level-"+e.indent),i.component.isVisible()&&n.classList.add("tabulator-group-visible"),this.mapElementStyles(o.firstGroup,n,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(o.firstGroup,r,["padding-top","padding-left","padding-right","padding-bottom"]),n.appendChild(r),n}generateCalcElement(e,t,o){var n=this.generateRowElement(e,t,o);return n.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(o.calcRow,n,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),n}generateRowElement(e,t,o){var n=document.createElement("tr");return n.classList.add("tabulator-print-table-row"),e.columns.forEach(((r,i)=>{if(r){var a,l,s=document.createElement("td"),c=r.component._column,u=this.table,d=u.columnManager.findColumnIndex(c),p=r.value,h={modules:{},getValue:function(){return p},getField:function(){return c.definition.field},getElement:function(){return s},getType:function(){return"cell"},getColumn:function(){return c.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getTable:function(){return u},getComponent:function(){return h},column:c};if((c.definition.cssClass?c.definition.cssClass.split(" "):[]).forEach((function(e){s.classList.add(e)})),this.table.modExists("format")&&!1!==this.config.formatCells)p=this.table.modules.format.formatExportValue(h,this.colVisProp);else switch(typeof p){case"object":p=null!==p?JSON.stringify(p):"";break;case"undefined":p=""}p instanceof Node?s.appendChild(p):s.innerHTML=p,l=["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","text-align"],c.isRowHeader?(a=o.styleRowHeader,l.push("background-color")):a=o.styleCells&&o.styleCells[d]?o.styleCells[d]:o.firstCell,a&&(this.mapElementStyles(a,s,l),c.definition.align&&(s.style.textAlign=c.definition.align)),this.table.options.dataTree&&!1!==this.config.dataTree&&(t.treeElementField&&t.treeElementField==c.field||!t.treeElementField&&0==i)&&(e.component._row.modules.dataTree.controlEl&&s.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),s.firstChild),e.component._row.modules.dataTree.branchEl&&s.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),s.firstChild)),n.appendChild(s),h.modules.format&&h.modules.format.renderedCallback&&h.modules.format.renderedCallback()}})),t.rowFormatter&&"row"===e.type&&!1!==this.config.formatCells&&(Object.assign(e.component).getElement=function(){return n},t.rowFormatter(e.component)),n}generateHTMLTable(e){var t=document.createElement("div");return t.appendChild(this.generateTableElement(e)),t.innerHTML}getHtml(e,t,o,n){var r=this.generateExportList(o||this.table.options.htmlOutputConfig,t,e,n||"htmlOutput");return this.generateHTMLTable(r)}mapElementStyles(e,t,o){if(this.cloneTableStyle&&e&&t){var n={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var r=window.getComputedStyle(e);o.forEach((function(e){t.style[n[e]]||(t.style[n[e]]=r.getPropertyValue(e))}))}}}}var _={"=":function(e,t,o,n){return t==e},"<":function(e,t,o,n){return t":function(e,t,o,n){return t>e},">=":function(e,t,o,n){return t>=e},"!=":function(e,t,o,n){return t!=e},regex:function(e,t,o,n){return"string"==typeof e&&(e=new RegExp(e)),e.test(t)},like:function(e,t,o,n){return null==e?t===e:null!=t&&String(t).toLowerCase().indexOf(e.toLowerCase())>-1},keywords:function(e,t,o,n){var r=e.toLowerCase().split(void 0===n.separator?" ":n.separator),i=String(null==t?"":t).toLowerCase(),a=[];return r.forEach((e=>{i.includes(e)&&a.push(!0)})),n.matchAll?a.length===r.length:!!a.length},starts:function(e,t,o,n){return null==e?t===e:null!=t&&String(t).toLowerCase().startsWith(e.toLowerCase())},ends:function(e,t,o,n){return null==e?t===e:null!=t&&String(t).toLowerCase().endsWith(e.toLowerCase())},in:function(e,t,o,n){return Array.isArray(e)?!e.length||e.indexOf(t)>-1:(console.warn("Filter Error - filter value is not an array:",e),!1)}};class V extends a{static moduleName="filter";static filters=_;constructor(e){super(e),this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1,this.tableInitialized=!1,this.registerTableOption("filterMode","local"),this.registerTableOption("initialFilter",!1),this.registerTableOption("initialHeaderFilter",!1),this.registerTableOption("headerFilterLiveFilterDelay",300),this.registerTableOption("placeholderHeaderFilter",!1),this.registerColumnOption("headerFilter"),this.registerColumnOption("headerFilterPlaceholder"),this.registerColumnOption("headerFilterParams"),this.registerColumnOption("headerFilterEmptyCheck"),this.registerColumnOption("headerFilterFunc"),this.registerColumnOption("headerFilterFuncParams"),this.registerColumnOption("headerFilterLiveFilter"),this.registerTableFunction("searchRows",this.searchRows.bind(this)),this.registerTableFunction("searchData",this.searchData.bind(this)),this.registerTableFunction("setFilter",this.userSetFilter.bind(this)),this.registerTableFunction("refreshFilter",this.userRefreshFilter.bind(this)),this.registerTableFunction("addFilter",this.userAddFilter.bind(this)),this.registerTableFunction("getFilters",this.getFilters.bind(this)),this.registerTableFunction("setHeaderFilterFocus",this.userSetHeaderFilterFocus.bind(this)),this.registerTableFunction("getHeaderFilterValue",this.userGetHeaderFilterValue.bind(this)),this.registerTableFunction("setHeaderFilterValue",this.userSetHeaderFilterValue.bind(this)),this.registerTableFunction("getHeaderFilters",this.getHeaderFilters.bind(this)),this.registerTableFunction("removeFilter",this.userRemoveFilter.bind(this)),this.registerTableFunction("clearFilter",this.userClearFilter.bind(this)),this.registerTableFunction("clearHeaderFilter",this.userClearHeaderFilter.bind(this)),this.registerComponentFunction("column","headerFilterFocus",this.setHeaderFilterFocus.bind(this)),this.registerComponentFunction("column","reloadHeaderFilter",this.reloadHeaderFilter.bind(this)),this.registerComponentFunction("column","getHeaderFilterValue",this.getHeaderFilterValue.bind(this)),this.registerComponentFunction("column","setHeaderFilterValue",this.setHeaderFilterValue.bind(this))}initialize(){this.subscribe("column-init",this.initializeColumnHeaderFilter.bind(this)),this.subscribe("column-width-fit-before",this.hideHeaderFilterElements.bind(this)),this.subscribe("column-width-fit-after",this.showHeaderFilterElements.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.subscribe("placeholder",this.generatePlaceholder.bind(this)),"remote"===this.table.options.filterMode&&this.subscribe("data-params",this.remoteFilterParams.bind(this)),this.registerDataHandler(this.filter.bind(this),10)}tableBuilt(){this.table.options.initialFilter&&this.setFilter(this.table.options.initialFilter),this.table.options.initialHeaderFilter&&this.table.options.initialHeaderFilter.forEach((e=>{var t=this.table.columnManager.findColumn(e.field);if(!t)return console.warn("Column Filter Error - No matching column found:",e.field),!1;this.setHeaderFilterValue(t,e.value)})),this.tableInitialized=!0}remoteFilterParams(e,t,o,n){return n.filter=this.getFilters(!0,!0),n}generatePlaceholder(e){if(this.table.options.placeholderHeaderFilter&&Object.keys(this.headerFilters).length)return this.table.options.placeholderHeaderFilter}userSetFilter(e,t,o,n){this.setFilter(e,t,o,n),this.refreshFilter()}userRefreshFilter(){this.refreshFilter()}userAddFilter(e,t,o,n){this.addFilter(e,t,o,n),this.refreshFilter()}userSetHeaderFilterFocus(e){var t=this.table.columnManager.findColumn(e);if(!t)return console.warn("Column Filter Focus Error - No matching column found:",e),!1;this.setHeaderFilterFocus(t)}userGetHeaderFilterValue(e){var t=this.table.columnManager.findColumn(e);if(t)return this.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}userSetHeaderFilterValue(e,t){var o=this.table.columnManager.findColumn(e);if(!o)return console.warn("Column Filter Error - No matching column found:",e),!1;this.setHeaderFilterValue(o,t)}userRemoveFilter(e,t,o){this.removeFilter(e,t,o),this.refreshFilter()}userClearFilter(e){this.clearFilter(e),this.refreshFilter()}userClearHeaderFilter(){this.clearHeaderFilter(),this.refreshFilter()}searchRows(e,t,o){return this.search("rows",e,t,o)}searchData(e,t,o){return this.search("data",e,t,o)}initializeColumnHeaderFilter(e){e.definition.headerFilter&&this.initializeColumn(e)}initializeColumn(e,t){var o=this,n=e.getField();e.modules.filter={success:function(t){var r,i="input"==e.modules.filter.tagType&&"text"==e.modules.filter.attrType||"textarea"==e.modules.filter.tagType?"partial":"match",a="",l="";if(void 0===e.modules.filter.prevSuccess||e.modules.filter.prevSuccess!==t){if(e.modules.filter.prevSuccess=t,e.modules.filter.emptyFunc(t))delete o.headerFilters[n];else{switch(e.modules.filter.value=t,typeof e.definition.headerFilterFunc){case"string":V.filters[e.definition.headerFilterFunc]?(a=e.definition.headerFilterFunc,r=function(o){var n=e.definition.headerFilterFuncParams||{},r=e.getFieldValue(o);return n="function"==typeof n?n(t,r,o):n,V.filters[e.definition.headerFilterFunc](t,r,o,n)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":a=r=function(o){var n=e.definition.headerFilterFuncParams||{},r=e.getFieldValue(o);return n="function"==typeof n?n(t,r,o):n,e.definition.headerFilterFunc(t,r,o,n)}}r||("partial"===i?(r=function(o){var n=e.getFieldValue(o);return null!=n&&String(n).toLowerCase().indexOf(String(t).toLowerCase())>-1},a="like"):(r=function(o){return e.getFieldValue(o)==t},a="=")),o.headerFilters[n]={value:t,func:r,type:a}}e.modules.filter.value=t,l=JSON.stringify(o.headerFilters),o.prevHeaderFilterChangeCheck!==l&&(o.prevHeaderFilterChangeCheck=l,o.trackChanges(),o.refreshFilter())}return!0},attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)}generateHeaderFilterElement(e,t,o){var n,r,i,a,l,s,c,u,d=this,p=e.modules.filter.success,h=e.getField();if(e.modules.filter.value=t,e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),h){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(e){return!e&&0!==e},(n=document.createElement("div")).classList.add("tabulator-header-filter"),typeof e.definition.headerFilter){case"string":d.table.modules.edit.editors[e.definition.headerFilter]?(r=d.table.modules.edit.editors[e.definition.headerFilter],"tick"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":r=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?r=e.modules.edit.editor:e.definition.formatter&&d.table.modules.edit.editors[e.definition.formatter]?(r=d.table.modules.edit.editors[e.definition.formatter],"tick"!==e.definition.formatter&&"tickCross"!==e.definition.formatter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):r=d.table.modules.edit.editors.input}if(r){if(a={getValue:function(){return void 0!==t?t:""},getField:function(){return e.definition.field},getElement:function(){return n},getColumn:function(){return e.getComponent()},getTable:()=>this.table,getType:()=>"header",getRow:function(){return{normalizeHeight:function(){}}}},c="function"==typeof(c=e.definition.headerFilterParams||{})?c.call(d.table,a):c,!(i=r.call(this.table.modules.edit,a,(function(e){u=e}),p,(function(){}),c)))return void console.warn("Filter Error - Cannot add filter to "+h+" column, editor returned a value of false");if(!(i instanceof Node))return void console.warn("Filter Error - Cannot add filter to "+h+" column, editor should return an instance of Node, the editor returned:",i);d.langBind("headerFilters|columns|"+e.definition.field,(function(t){i.setAttribute("placeholder",void 0!==t&&t?t:e.definition.headerFilterPlaceholder||d.langText("headerFilters|default"))})),i.addEventListener("click",(function(e){e.stopPropagation(),i.focus()})),i.addEventListener("focus",(e=>{var t=this.table.columnManager.contentsElement.scrollLeft;t!==this.table.rowManager.element.scrollLeft&&(this.table.rowManager.scrollHorizontal(t),this.table.columnManager.scrollHorizontal(t))})),l=!1,s=function(e){l&&clearTimeout(l),l=setTimeout((function(){p(i.value)}),d.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=i,e.modules.filter.attrType=i.hasAttribute("type")?i.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=i.tagName.toLowerCase(),!1!==e.definition.headerFilterLiveFilter&&("autocomplete"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter&&("autocomplete"!==e.definition.editor&&"tickCross"!==e.definition.editor||!0!==e.definition.headerFilter)&&(i.addEventListener("keyup",s),i.addEventListener("search",s),"number"==e.modules.filter.attrType&&i.addEventListener("change",(function(e){p(i.value)})),"text"==e.modules.filter.attrType&&"ie"!==this.table.browser&&i.setAttribute("type","search")),"input"!=e.modules.filter.tagType&&"select"!=e.modules.filter.tagType&&"textarea"!=e.modules.filter.tagType||i.addEventListener("mousedown",(function(e){e.stopPropagation()}))),n.appendChild(i),e.contentElement.appendChild(n),o||d.headerFilterColumns.push(e),u&&u()}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)}hideHeaderFilterElements(){this.headerFilterColumns.forEach((function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")}))}showHeaderFilterElements(){this.headerFilterColumns.forEach((function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")}))}setHeaderFilterFocus(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())}getHeaderFilterValue(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())}setHeaderFilterValue(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}reloadHeaderFilter(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}refreshFilter(){this.tableInitialized&&("remote"===this.table.options.filterMode?this.reloadData(null,!1,!1):this.refreshData(!0))}trackChanges(){this.changed=!0,this.dispatch("filter-changed")}hasChanged(){var e=this.changed;return this.changed=!1,e}setFilter(e,t,o,n){this.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:o,params:n}]),this.addFilter(e)}addFilter(e,t,o,n){var r=!1;Array.isArray(e)||(e=[{field:e,type:t,value:o,params:n}]),e.forEach((e=>{(e=this.findFilter(e))&&(this.filterList.push(e),r=!0)})),r&&this.trackChanges()}findFilter(e){var t;if(Array.isArray(e))return this.findSubFilters(e);var o=!1;return"function"==typeof e.field?o=function(t){return e.field(t,e.type||{})}:V.filters[e.type]?o=(t=this.table.columnManager.getColumnByField(e.field))?function(o){return V.filters[e.type](e.value,t.getFieldValue(o),o,e.params||{})}:function(t){return V.filters[e.type](e.value,t[e.field],t,e.params||{})}:console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=o,!!e.func&&e}findSubFilters(e){var t=[];return e.forEach((e=>{(e=this.findFilter(e))&&t.push(e)})),!!t.length&&t}getFilters(e,t){var o=[];return e&&(o=this.getHeaderFilters()),t&&o.forEach((function(e){"function"==typeof e.type&&(e.type="function")})),o.concat(this.filtersToArray(this.filterList,t))}filtersToArray(e,t){var o=[];return e.forEach((e=>{var n;Array.isArray(e)?o.push(this.filtersToArray(e,t)):(n={field:e.field,type:e.type,value:e.value},t&&"function"==typeof n.type&&(n.type="function"),o.push(n))})),o}getHeaderFilters(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e}removeFilter(e,t,o){Array.isArray(e)||(e=[{field:e,type:t,value:o}]),e.forEach((e=>{var t;(t="object"==typeof e.field?this.filterList.findIndex((t=>e===t)):this.filterList.findIndex((t=>e.field===t.field&&e.type===t.type&&e.value===t.value)))>-1?this.filterList.splice(t,1):console.warn("Filter Error - No matching filter type found, ignoring: ",e.type)})),this.trackChanges()}clearFilter(e){this.filterList=[],e&&this.clearHeaderFilter(),this.trackChanges()}clearHeaderFilter(){this.headerFilters={},this.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach((e=>{void 0!==e.modules.filter.value&&delete e.modules.filter.value,e.modules.filter.prevSuccess=void 0,this.reloadHeaderFilter(e)})),this.trackChanges()}search(e,t,o,n){var r=[],i=[];return Array.isArray(t)||(t=[{field:t,type:o,value:n}]),t.forEach((e=>{(e=this.findFilter(e))&&i.push(e)})),this.table.rowManager.rows.forEach((t=>{var o=!0;i.forEach((e=>{this.filterRecurse(e,t.getData())||(o=!1)})),o&&r.push("data"===e?t.getData("data"):t.getComponent())})),r}filter(e,t){var o=[],n=[];return this.subscribedExternal("dataFiltering")&&this.dispatchExternal("dataFiltering",this.getFilters(!0)),"remote"!==this.table.options.filterMode&&(this.filterList.length||Object.keys(this.headerFilters).length)?e.forEach((e=>{this.filterRow(e)&&o.push(e)})):o=e.slice(0),this.subscribedExternal("dataFiltered")&&(o.forEach((e=>{n.push(e.getComponent())})),this.dispatchExternal("dataFiltered",this.getFilters(!0),n)),o}filterRow(e,t){var o=!0,n=e.getData();for(var r in this.filterList.forEach((e=>{this.filterRecurse(e,n)||(o=!1)})),this.headerFilters)this.headerFilters[r].func(n)||(o=!1);return o}filterRecurse(e,t){var o=!1;return Array.isArray(e)?e.forEach((e=>{this.filterRecurse(e,t)&&(o=!0)})):o=e.func(t),o}}var W={plaintext:function(e,t,o){return this.emptyToSpace(this.sanitizeHTML(e.getValue()))},html:function(e,t,o){return e.getValue()},textarea:function(e,t,o){return e.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(e.getValue()))},money:function(e,t,o){var n,r,i,a,l,s=parseFloat(e.getValue()),c="",u=t.decimal||".",d=t.thousand||",",p=t.negativeSign||"-",h=t.symbol||"",m=!!t.symbolAfter,f=void 0!==t.precision?t.precision:2;if(isNaN(s))return this.emptyToSpace(this.sanitizeHTML(e.getValue()));if(s<0&&(s=Math.abs(s),c=p),n=!1!==f?s.toFixed(f):s,r=(n=String(n).split("."))[0],i=n.length>1?u+n[1]:"",!1!==t.thousand)for(a=/(\d+)(\d{3})/;a.test(r);)r=r.replace(a,"$1"+d+"$2");return l=r+i,!0===c?(l="("+l+")",m?l+h:h+l):m?c+l+h:c+h+l},link:function(e,t,o){var n,i=e.getValue(),a=t.urlPrefix||"",l=t.download,s=i,c=document.createElement("a");if(t.labelField&&(n=e.getData(),s=function e(t,o){var n=o[t.shift()];return t.length&&"object"==typeof n?e(t,n):n}(t.labelField.split(this.table.options.nestedFieldSeparator),n)),t.label)switch(typeof t.label){case"string":s=t.label;break;case"function":s=t.label(e)}if(s){if(t.urlField&&(n=e.getData(),i=r.retrieveNestedData(this.table.options.nestedFieldSeparator,t.urlField,n)),t.url)switch(typeof t.url){case"string":i=t.url;break;case"function":i=t.url(e)}return c.setAttribute("href",a+i),t.target&&c.setAttribute("target",t.target),t.download&&(l="function"==typeof l?l(e):!0===l?"":l,c.setAttribute("download",l)),c.innerHTML=this.emptyToSpace(this.sanitizeHTML(s)),c}return" "},image:function(e,t,o){var n=document.createElement("img"),r=e.getValue();switch(t.urlPrefix&&(r=t.urlPrefix+e.getValue()),t.urlSuffix&&(r+=t.urlSuffix),n.setAttribute("src",r),typeof t.height){case"number":n.style.height=t.height+"px";break;case"string":n.style.height=t.height}switch(typeof t.width){case"number":n.style.width=t.width+"px";break;case"string":n.style.width=t.width}return n.addEventListener("load",(function(){e.getRow().normalizeHeight()})),n},tickCross:function(e,t,o){var n=e.getValue(),r=e.getElement(),i=t.allowEmpty,a=t.allowTruthy,l=Object.keys(t).includes("trueValue"),s=void 0!==t.tickElement?t.tickElement:'',c=void 0!==t.crossElement?t.crossElement:'';return l&&n===t.trueValue||!l&&(a&&n||!0===n||"true"===n||"True"===n||1===n||"1"===n)?(r.setAttribute("aria-checked",!0),s||""):!i||"null"!==n&&""!==n&&null!=n?(r.setAttribute("aria-checked",!1),c||""):(r.setAttribute("aria-checked","mixed"),"")},datetime:function(e,t,o){var n,r=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),i=t.inputFormat||"yyyy-MM-dd HH:mm:ss",a=t.outputFormat||"dd/MM/yyyy HH:mm:ss",l=void 0!==t.invalidPlaceholder?t.invalidPlaceholder:"",s=e.getValue();if(void 0!==r)return(n=r.isDateTime(s)?s:"iso"===i?r.fromISO(String(s)):r.fromFormat(String(s),i)).isValid?(t.timezone&&(n=n.setZone(t.timezone)),n.toFormat(a)):!0!==l&&s?"function"==typeof l?l(s):l:s;console.error("Format Error - 'datetime' formatter is dependant on luxon.js")},datetimediff:function(e,t,o){var n,r=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),i=t.inputFormat||"yyyy-MM-dd HH:mm:ss",a=void 0!==t.invalidPlaceholder?t.invalidPlaceholder:"",l=void 0!==t.suffix&&t.suffix,s=void 0!==t.unit?t.unit:"days",c=void 0!==t.humanize&&t.humanize,u=void 0!==t.date?t.date:r.now(),d=e.getValue();if(void 0!==r)return(n=r.isDateTime(d)?d:"iso"===i?r.fromISO(String(d)):r.fromFormat(String(d),i)).isValid?c?n.diff(u,s).toHuman()+(l?" "+l:""):parseInt(n.diff(u,s)[s])+(l?" "+l:""):!0===a?d:"function"==typeof a?a(d):a;console.error("Format Error - 'datetimediff' formatter is dependant on luxon.js")},lookup:function(e,t,o){var n=e.getValue();return void 0===t[n]?(console.warn("Missing display value for "+n),n):t[n]},star:function(e,t,o){var n=e.getValue(),r=e.getElement(),i=t&&t.stars?t.stars:5,a=document.createElement("span"),l=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.verticalAlign="middle",l.setAttribute("width","14"),l.setAttribute("height","14"),l.setAttribute("viewBox","0 0 512 512"),l.setAttribute("xml:space","preserve"),l.style.padding="0 1px",n=n&&!isNaN(n)?parseInt(n):0,n=Math.max(0,Math.min(n,i));for(var s=1;s<=i;s++){var c=l.cloneNode(!0);c.innerHTML=s<=n?'':'',a.appendChild(c)}return r.style.whiteSpace="nowrap",r.style.overflow="hidden",r.style.textOverflow="ellipsis",r.setAttribute("aria-label",n),a},traffic:function(e,t,o){var n,r,i=this.sanitizeHTML(e.getValue())||0,a=document.createElement("span"),l=t&&t.max?t.max:100,s=t&&t.min?t.min:0,c=t&&void 0!==t.color?t.color:["red","orange","green"],u="#666666";if(!isNaN(i)&&void 0!==e.getValue()){switch(a.classList.add("tabulator-traffic-light"),r=parseFloat(i)<=l?parseFloat(i):l,r=parseFloat(r)>=s?parseFloat(r):s,n=(l-s)/100,r=Math.round((r-s)/n),typeof c){case"string":u=c;break;case"function":u=c(i);break;case"object":if(Array.isArray(c)){var d=100/c.length,p=Math.floor(r/d);p=Math.min(p,c.length-1),u=c[p=Math.max(p,0)];break}}return a.style.backgroundColor=u,a}},progress:function(e,t={},o){var n,r,i,a,l,s=this.sanitizeHTML(e.getValue())||0,c=e.getElement(),u=t.max?t.max:100,d=t.min?t.min:0,p=t.legendAlign?t.legendAlign:"center";switch(r=parseFloat(s)<=u?parseFloat(s):u,r=parseFloat(r)>=d?parseFloat(r):d,n=(u-d)/100,r=Math.round((r-d)/n),typeof t.color){case"string":i=t.color;break;case"function":i=t.color(s);break;case"object":if(Array.isArray(t.color)){let e=100/t.color.length,o=Math.floor(r/e);o=Math.min(o,t.color.length-1),o=Math.max(o,0),i=t.color[o];break}default:i="#2DC214"}switch(typeof t.legend){case"string":a=t.legend;break;case"function":a=t.legend(s);break;case"boolean":a=s;break;default:a=!1}switch(typeof t.legendColor){case"string":l=t.legendColor;break;case"function":l=t.legendColor(s);break;case"object":if(Array.isArray(t.legendColor)){let e=100/t.legendColor.length,o=Math.floor(r/e);o=Math.min(o,t.legendColor.length-1),o=Math.max(o,0),l=t.legendColor[o]}break;default:l="#000"}c.style.minWidth="30px",c.style.position="relative",c.setAttribute("aria-label",r);var h=document.createElement("div");h.style.display="inline-block",h.style.width=r+"%",h.style.backgroundColor=i,h.style.height="100%",h.setAttribute("data-max",u),h.setAttribute("data-min",d);var m=document.createElement("div");if(m.style.position="relative",m.style.width="100%",m.style.height="100%",a){var f=document.createElement("div");f.style.position="absolute",f.style.top=0,f.style.left=0,f.style.textAlign=p,f.style.width="100%",f.style.color=l,f.innerHTML=a}return o((function(){if(!(e instanceof x)){var t=document.createElement("div");t.style.position="absolute",t.style.top="4px",t.style.bottom="4px",t.style.left="4px",t.style.right="4px",c.appendChild(t),c=t}c.appendChild(m),m.appendChild(h),a&&m.appendChild(f)})),""},color:function(e,t,o){return e.getElement().style.backgroundColor=this.sanitizeHTML(e.getValue()),""},buttonTick:function(e,t,o){return''},buttonCross:function(e,t,o){return''},toggle:function(e,t,o){var n,r,i=e.getValue(),a=t.size||15,l=a+"px",s=!t.hasOwnProperty("onValue")||t.onValue,c=!!t.hasOwnProperty("offValue")&&t.offValue,u=t.onTruthy?i:i===s;return(n=document.createElement("div")).classList.add("tabulator-toggle"),u?(n.classList.add("tabulator-toggle-on"),n.style.flexDirection="row-reverse",t.onColor&&(n.style.background=t.onColor)):t.offColor&&(n.style.background=t.offColor),n.style.width=2.5*a+"px",n.style.borderRadius=l,t.clickable&&n.addEventListener("click",(t=>{e.setValue(u?c:s)})),(r=document.createElement("div")).classList.add("tabulator-toggle-switch"),r.style.height=l,r.style.width=l,r.style.borderRadius=l,n.appendChild(r),n},rownum:function(e,t,o){var n=document.createElement("span"),r=e.getRow(),i=e.getTable();return r.watchPosition((e=>{t.relativeToPage&&(e+=i.modules.page.getPageSize()*(i.modules.page.getPage()-1)),n.innerText=e})),n},handle:function(e,t,o){return e.getElement().classList.add("tabulator-row-handle"),"
"},adaptable:function(e,t,o){var n,r;return n=t.formatterLookup?t.formatterLookup(e):function(e){var t=e.getValue(),o="plaintext";switch(typeof t){case"boolean":o="tickCross";break;case"string":t.includes("\n")&&(o="textarea")}return o}(e),t.paramsLookup&&(r="function"==typeof t.paramsLookup?t.paramsLookup(n,e):t.paramsLookup[n]),this.table.modules.format.lookupFormatter(n).call(this,e,r||{},o)},array:function(e,t,o){var n,i=t.delimiter||",",a=e.getValue(),l=this.table;return t.valueMap&&(n="string"==typeof t.valueMap?function(e){return e.map((e=>r.retrieveNestedData(l.options.nestedFieldSeparator,t.valueMap,e)))}:t.valueMap),Array.isArray(a)?(n&&(a=n(a)),a.join(i)):a},json:function(e,t,o){var n=t.indent||"\t",r=void 0===t.multiline||t.multiline,i=t.replacer||null,a=e.getValue();return r&&(e.getElement().style.whiteSpace="pre-wrap"),JSON.stringify(a,i,n)}};class G extends a{static moduleName="format";static formatters=W;constructor(e){super(e),this.registerColumnOption("formatter"),this.registerColumnOption("formatterParams"),this.registerColumnOption("formatterPrint"),this.registerColumnOption("formatterPrintParams"),this.registerColumnOption("formatterClipboard"),this.registerColumnOption("formatterClipboardParams"),this.registerColumnOption("formatterHtmlOutput"),this.registerColumnOption("formatterHtmlOutputParams"),this.registerColumnOption("titleFormatter"),this.registerColumnOption("titleFormatterParams")}initialize(){this.subscribe("cell-format",this.formatValue.bind(this)),this.subscribe("cell-rendered",this.cellRendered.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-format",this.formatHeader.bind(this))}initializeColumn(e){e.modules.format=this.lookupTypeFormatter(e,""),void 0!==e.definition.formatterPrint&&(e.modules.format.print=this.lookupTypeFormatter(e,"Print")),void 0!==e.definition.formatterClipboard&&(e.modules.format.clipboard=this.lookupTypeFormatter(e,"Clipboard")),void 0!==e.definition.formatterHtmlOutput&&(e.modules.format.htmlOutput=this.lookupTypeFormatter(e,"HtmlOutput"))}lookupTypeFormatter(e,t){var o={params:e.definition["formatter"+t+"Params"]||{}},n=e.definition["formatter"+t];return o.formatter=this.lookupFormatter(n),o}lookupFormatter(e){var t;switch(typeof e){case"string":G.formatters[e]?t=G.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),t=G.formatters.plaintext);break;case"function":t=e;break;default:t=G.formatters.plaintext}return t}cellRendered(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)}formatHeader(e,t,o){var n,r,i,a;return e.definition.titleFormatter?(n=this.lookupFormatter(e.definition.titleFormatter),i=t=>{e.titleFormatterRendered=t},a={getValue:function(){return t},getElement:function(){return o},getType:function(){return"header"},getColumn:function(){return e.getComponent()},getTable:()=>this.table},r="function"==typeof(r=e.definition.titleFormatterParams||{})?r():r,n.call(this,a,r,i)):t}formatValue(e){var t=e.getComponent(),o="function"==typeof e.column.modules.format.params?e.column.modules.format.params(t):e.column.modules.format.params;return e.column.modules.format.formatter.call(this,t,o,(function(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1}))}formatExportValue(e,t){var o,n=e.column.modules.format[t];if(n){function r(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1}return o="function"==typeof n.params?n.params(e.getComponent()):n.params,n.formatter.call(this,e.getComponent(),o,r)}return this.formatValue(e)}sanitizeHTML(e){if(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=/]/g,(function(e){return t[e]}))}return e}emptyToSpace(e){return null==e||""===e?" ":e}}class K{constructor(e){return this._group=e,this.type="GroupComponent",new Proxy(this,{get:function(e,t,o){return void 0!==e[t]?e[t]:e._group.groupManager.table.componentFunctionBinder.handle("group",e._group,t)}})}getKey(){return this._group.key}getField(){return this._group.field}getElement(){return this._group.element}getRows(){return this._group.getRows(!0)}getSubGroups(){return this._group.getSubGroups(!0)}getParentGroup(){return!!this._group.parent&&this._group.parent.getComponent()}isVisible(){return this._group.visible}show(){this._group.show()}hide(){this._group.hide()}toggle(){this._group.toggleVisibility()}scrollTo(e,t){return this._group.groupManager.table.rowManager.scrollToRow(this._group,e,t)}_getSelf(){return this._group}getTable(){return this._group.groupManager.table}}class U{constructor(e,t,o,n,r,i,a){this.groupManager=e,this.parent=t,this.key=n,this.level=o,this.field=r,this.hasSubGroups=o{e.modules&&delete e.modules.group}))),this.element=!1,this.arrowElement=!1,this.elementContents=!1}createElements(){var e=document.createElement("div");e.classList.add("tabulator-arrow"),this.element=document.createElement("div"),this.element.classList.add("tabulator-row"),this.element.classList.add("tabulator-group"),this.element.classList.add("tabulator-group-level-"+this.level),this.element.setAttribute("role","rowgroup"),this.arrowElement=document.createElement("div"),this.arrowElement.classList.add("tabulator-group-toggle"),this.arrowElement.appendChild(e),!1!==this.groupManager.table.options.movableRows&&this.groupManager.table.modExists("moveRow")&&this.groupManager.table.modules.moveRow.initializeGroupHeader(this)}createValueGroups(){var e=this.level+1;this.groupManager.allowedValues&&this.groupManager.allowedValues[e]&&this.groupManager.allowedValues[e].forEach((t=>{this._createGroup(t,e)}))}addBindings(){this.groupManager.table.options.groupToggleElement&&("arrow"==this.groupManager.table.options.groupToggleElement?this.arrowElement:this.element).addEventListener("click",(e=>{"arrow"===this.groupManager.table.options.groupToggleElement&&(e.stopPropagation(),e.stopImmediatePropagation()),setTimeout((()=>{this.toggleVisibility()}))}))}_createGroup(e,t){var o=t+"_"+e,n=new U(this.groupManager,this,t,e,this.groupManager.groupIDLookups[t].field,this.groupManager.headerGenerator[t]||this.groupManager.headerGenerator[0],!!this.old&&this.old.groups[o]);this.groups[o]=n,this.groupList.push(n)}_addRowToGroup(e){var t=this.level+1;if(this.hasSubGroups){var o=this.groupManager.groupIDLookups[t].func(e.getData()),n=t+"_"+o;this.groupManager.allowedValues&&this.groupManager.allowedValues[t]?this.groups[n]&&this.groups[n].addRow(e):(this.groups[n]||this._createGroup(o,t),this.groups[n].addRow(e))}}_addRow(e){this.rows.push(e),e.modules.group=this}insertRow(e,t,o){var n=this.conformRowData({});e.updateData(n);var r=this.rows.indexOf(t);r>-1?o?this.rows.splice(r+1,0,e):this.rows.splice(r,0,e):o?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)}scrollHeader(e){this.arrowElement&&(this.arrowElement.style.marginLeft=e,this.groupList.forEach((function(t){t.scrollHeader(e)})))}getRowIndex(e){}conformRowData(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e}removeRow(e){var t=this.rows.indexOf(e),o=e.getElement();t>-1&&this.rows.splice(t,1),this.groupManager.table.options.groupValues||this.rows.length?(o.parentNode&&o.parentNode.removeChild(o),this.groupManager.blockRedraw||(this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this))):(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0))}removeGroup(e){var t,o=e.level+"_"+e.key;this.groups[o]&&(delete this.groups[o],(t=this.groupList.indexOf(e))>-1&&this.groupList.splice(t,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))}getHeadersAndRows(){var e=[];return e.push(this),this._visSet(),this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.visible?this.groupList.length?this.groupList.forEach((function(t){e=e.concat(t.getHeadersAndRows())})):("table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),e=e.concat(this.rows),"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.table.options.columnCalcs||this.groupManager.table.modExists("columnCalcs")&&(this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))),e}getData(e,t){var o=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach((e=>{o.push(e.getData(t||"data"))})),o}getRowCount(){var e=0;return this.groupList.length?this.groupList.forEach((t=>{e+=t.getRowCount()})):e=this.rows.length,e}toggleVisibility(){this.visible?this.hide():this.show()}hide(){this.visible=!1,"basic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination||(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach((e=>{e.getHeadersAndRows().forEach((e=>{e.detachElement()}))})):this.rows.forEach((e=>{var t=e.getElement();t.parentNode.removeChild(t)}))),this.groupManager.updateGroupRows(!0),this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!1)}show(){if(this.visible=!0,"basic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!0);else{this.element.classList.add("tabulator-group-visible");var e=this.generateElement();this.groupList.length?this.groupList.forEach((t=>{t.getHeadersAndRows().forEach((t=>{var o=t.getElement();e.parentNode.insertBefore(o,e.nextSibling),t.initialize(),e=o}))})):this.rows.forEach((t=>{var o=t.getElement();e.parentNode.insertBefore(o,e.nextSibling),t.initialize(),e=o})),this.groupManager.updateGroupRows(!0)}this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!0)}_visSet(){var e=[];"function"==typeof this.visible&&(this.rows.forEach((function(t){e.push(t.getData())})),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))}getRowGroup(e){var t=!1;return this.groupList.length?this.groupList.forEach((function(o){var n=o.getRowGroup(e);n&&(t=n)})):this.rows.find((function(t){return t===e}))&&(t=this),t}getSubGroups(e){var t=[];return this.groupList.forEach((function(o){t.push(e?o.getComponent():o)})),t}getRows(e,t){var o=[];return t&&this.groupList.length?this.groupList.forEach((n=>{o=o.concat(n.getRows(e,t))})):this.rows.forEach((function(t){o.push(e?t.getComponent():t)})),o}generateGroupHeaderContents(){var e=[];for(this.getRows(!1,!0).forEach((function(t){e.push(t.getData())})),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());this.element.firstChild;)this.element.removeChild(this.element.firstChild);"string"==typeof this.elementContents?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)}getPath(e=[]){return e.unshift(this.key),this.parent&&this.parent.getPath(e),e}getElement(){return this.elementContents?this.element:this.generateElement()}generateElement(){this.addBindings=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;e0;this.table.rowManager.moveRowActual(e.component,this.table.rowManager.getRowFromPosition(e.data.posFrom),t),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},X={cellEdit:function(e){e.component.setValueProcessData(e.data.newValue),e.component.cellRendered()},rowAdd:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t),this.table.rowManager.checkPlaceholder()},rowDelete:function(e){e.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.getRowFromPosition(e.data.posTo),e.data.after),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},Y={keybindings:{bindings:{undo:["ctrl + 90","meta + 90"],redo:["ctrl + 89","meta + 89"]},actions:{undo:function(e){this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(this.table.modules.edit.currentCell||(e.preventDefault(),this.table.modules.history.undo()))},redo:function(e){this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(this.table.modules.edit.currentCell||(e.preventDefault(),this.table.modules.history.redo()))}}}};class Q extends a{static moduleName="history";static moduleExtensions=Y;static undoers=q;static redoers=X;constructor(e){super(e),this.history=[],this.index=-1,this.registerTableOption("history",!1)}initialize(){this.table.options.history&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("cell-delete",this.clearComponentHistory.bind(this)),this.subscribe("row-delete",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clear.bind(this)),this.subscribe("row-added",this.rowAdded.bind(this)),this.subscribe("row-move",this.rowMoved.bind(this))),this.registerTableFunction("undo",this.undo.bind(this)),this.registerTableFunction("redo",this.redo.bind(this)),this.registerTableFunction("getHistoryUndoSize",this.getHistoryUndoSize.bind(this)),this.registerTableFunction("getHistoryRedoSize",this.getHistoryRedoSize.bind(this)),this.registerTableFunction("clearHistory",this.clear.bind(this))}rowMoved(e,t,o){this.action("rowMove",e,{posFrom:e.getPosition(),posTo:t.getPosition(),to:t,after:o})}rowAdded(e,t,o,n){this.action("rowAdd",e,{data:t,pos:o,index:n})}rowDeleted(e){var t,o;this.table.options.groupBy?(t=(o=e.getComponent().getGroup()._getSelf().rows).indexOf(e))&&(t=o[t-1]):(t=e.table.rowManager.getRowIndex(e))&&(t=e.table.rowManager.rows[t-1]),this.action("rowDelete",e,{data:e.getData(),pos:!t,index:t})}cellUpdated(e){this.action("cellEdit",e,{oldValue:e.oldValue,newValue:e.value})}clear(){this.history=[],this.index=-1}action(e,t,o){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:o}),this.index++}getHistoryUndoSize(){return this.index+1}getHistoryRedoSize(){return this.history.length-(this.index+1)}clearComponentHistory(e){var t=this.history.findIndex((function(t){return t.component===e}));t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))}undo(){if(this.index>-1){let e=this.history[this.index];return Q.undoers[e.type].call(this,e),this.index--,this.dispatchExternal("historyUndo",e.type,e.component.getComponent(),e.data),!0}return console.warn(this.options("history")?"History Undo Error - No more history to undo":"History module not enabled"),!1}redo(){if(this.history.length-1>this.index){this.index++;let e=this.history[this.index];return Q.redoers[e.type].call(this,e),this.dispatchExternal("historyRedo",e.type,e.component.getComponent(),e.data),!0}return console.warn(this.options("history")?"History Redo Error - No more history to redo":"History module not enabled"),!1}_rebindRow(e,t){this.history.forEach((function(o){if(o.component instanceof M)o.component===e&&(o.component=t);else if(o.component instanceof A&&o.component.row===e){var n=o.component.column.getField();n&&(o.component=t.getCell(n))}}))}}var J={csv:function(e){var t=[],o=0,n=0,r=!1;for(let i=0;i(console.error("Import Error:",e||"Unable to import data"),Promise.reject(e))))}lookupImporter(e){var t;return e||(e=this.table.options.importFormat),(t="string"==typeof e?Z.importers[e]:e)||console.error("Import Error - Importer not found:",e),t}importFromFile(e,t,o){var n=this.lookupImporter(e);if(n)return this.pickFile(t,o).then(this.importData.bind(this,n)).then(this.structureData.bind(this)).then(this.mutateData.bind(this)).then(this.validateData.bind(this)).then(this.setData.bind(this)).catch((e=>(this.dispatch("import-error",e),this.dispatchExternal("importError",e),console.error("Import Error:",e||"Unable to import file"),this.table.dataLoader.alertError(),setTimeout((()=>{this.table.dataLoader.clearAlert()}),3e3),Promise.reject(e))))}pickFile(e,t){return new Promise(((o,n)=>{var r=document.createElement("input");r.type="file",r.accept=e,r.addEventListener("change",(e=>{var i=r.files[0],a=new FileReader,l=this.validateFile(i);if(!0===l){switch(this.dispatch("import-importing",r.files),this.dispatchExternal("importImporting",r.files),t||this.table.options.importReader){case"buffer":a.readAsArrayBuffer(i);break;case"binary":a.readAsBinaryString(i);break;case"url":a.readAsDataURL(i);break;default:a.readAsText(i)}a.onload=e=>{o(a.result)},a.onerror=e=>{console.warn("File Load Error - Unable to read file"),n(e)}}else n(l)})),this.dispatch("import-choose"),this.dispatchExternal("importChoose"),r.click()}))}importData(e,t){var o;return this.table.dataLoader.alertLoader(),new Promise(((n,r)=>{setTimeout((()=>{(o=e.call(this.table,t))instanceof Promise||o?n(o):r()}),10)}))}structureData(e){return Array.isArray(e)&&e.length&&Array.isArray(e[0])?this.table.options.autoColumns?this.structureArrayToObject(e):this.structureArrayToColumns(e):e}mutateData(e){var t=[];return Array.isArray(e)?e.forEach((e=>{t.push(this.table.modules.mutator.transformRow(e,"import"))})):t=e,t}transformHeader(e){var t=[];return this.table.options.importHeaderTransform?(e.forEach((o=>{t.push(this.table.options.importHeaderTransform.call(this.table,o,e))})),t):e}transformData(e){var t=[];return this.table.options.importValueTransform?(e.forEach((o=>{t.push(this.table.options.importValueTransform.call(this.table,o,e))})),t):e}structureArrayToObject(e){var t=this.transformHeader(e.shift());return e.map((e=>{var o={};return e=this.transformData(e),t.forEach(((t,n)=>{o[t]=e[n]})),o}))}structureArrayToColumns(e){var t=[],o=this.transformHeader(e[0]),n=this.table.getColumns();return n[0]&&o[0]&&n[0].getDefinition().title===o[0]&&e.shift(),e.forEach((e=>{var o={};(e=this.transformData(e)).forEach(((e,t)=>{var r=n[t];r&&(o[r.getField()]=e)})),t.push(o)})),t}validateFile(e){return!this.table.options.importFileValidator||this.table.options.importFileValidator.call(this.table,e)}validateData(e){var t;return this.table.options.importDataValidator?!0===(t=this.table.options.importDataValidator.call(this.table,e))?e:Promise.reject(t):e}setData(e){return this.dispatch("import-imported",e),this.dispatchExternal("importImported",e),this.table.dataLoader.clearAlert(),this.table.setData(e)}}var ee={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,navLeft:37,navRight:39,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35},te={keyBlock:function(e){e.stopPropagation(),e.preventDefault()},scrollPageUp:function(e){var t=this.table.rowManager,o=t.scrollTop-t.element.clientHeight;e.preventDefault(),t.displayRowsCount&&(o>=0?t.element.scrollTop=o:t.scrollToRow(t.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(e){var t=this.table.rowManager,o=t.scrollTop+t.element.clientHeight,n=t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(o<=n?t.element.scrollTop=o:t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1]),this.table.element.focus()},navPrev:function(e){this.dispatch("keybinding-nav-prev",e)},navNext:function(e){this.dispatch("keybinding-nav-next",e)},navLeft:function(e){this.dispatch("keybinding-nav-left",e)},navRight:function(e){this.dispatch("keybinding-nav-right",e)},navUp:function(e){this.dispatch("keybinding-nav-up",e)},navDown:function(e){this.dispatch("keybinding-nav-down",e)}};class oe extends a{static moduleName="keybindings";static bindings=ee;static actions=te;constructor(e){super(e),this.watchKeys=null,this.pressedKeys=null,this.keyupBinding=!1,this.keydownBinding=!1,this.registerTableOption("keybindings",{}),this.registerTableOption("tabEndNewRow",!1)}initialize(){var e=this.table.options.keybindings,t={};this.watchKeys={},this.pressedKeys=[],!1!==e&&(Object.assign(t,oe.bindings),Object.assign(t,e),this.mapBindings(t),this.bindEvents()),this.subscribe("table-destroy",this.clearBindings.bind(this))}mapBindings(e){for(let t in e)oe.actions[t]?e[t]&&("object"!=typeof e[t]&&(e[t]=[e[t]]),e[t].forEach((e=>{(Array.isArray(e)?e:[e]).forEach((e=>{this.mapBinding(t,e)}))}))):console.warn("Key Binding Error - no such action:",t)}mapBinding(e,t){var o={action:oe.actions[e],keys:[],ctrl:!1,shift:!1,meta:!1};t.toString().toLowerCase().split(" ").join("").split("+").forEach((e=>{switch(e){case"ctrl":o.ctrl=!0;break;case"shift":o.shift=!0;break;case"meta":o.meta=!0;break;default:e=isNaN(e)?e.toUpperCase().charCodeAt(0):parseInt(e),o.keys.push(e),this.watchKeys[e]||(this.watchKeys[e]=[]),this.watchKeys[e].push(o)}}))}bindEvents(){var e=this;this.keyupBinding=function(t){var o=t.keyCode,n=e.watchKeys[o];n&&(e.pressedKeys.push(o),n.forEach((function(o){e.checkBinding(t,o)})))},this.keydownBinding=function(t){var o=t.keyCode;if(e.watchKeys[o]){var n=e.pressedKeys.indexOf(o);n>-1&&e.pressedKeys.splice(n,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)}clearBindings(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)}checkBinding(e,t){var o=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta&&(t.keys.forEach((e=>{-1==this.pressedKeys.indexOf(e)&&(o=!1)})),o&&t.action.call(this,e),!0)}}var ne={delete:function(e,t,o){e.delete()}},re={insert:function(e,t,o){return this.table.addRow(e.getData(),void 0,t),!0},add:function(e,t,o){return this.table.addRow(e.getData()),!0},update:function(e,t,o){return!!t&&(t.update(e.getData()),!0)},replace:function(e,t,o){return!!t&&(this.table.addRow(e.getData(),void 0,t),t.delete(),!0)}};class ie extends a{static moduleName="moveRow";static senders=ne;static receivers=re;constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=150,this.moving=!1,this.toRow=!1,this.toRowAfter=!1,this.hasHandle=!1,this.startY=0,this.startX=0,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.tableRowDropEvent=!1,this.touchMove=!1,this.connection=!1,this.connectionSelectorsTables=!1,this.connectionSelectorsElements=!1,this.connectionElements=[],this.connections=[],this.connectedTable=!1,this.connectedRow=!1,this.registerTableOption("movableRows",!1),this.registerTableOption("movableRowsConnectedTables",!1),this.registerTableOption("movableRowsConnectedElements",!1),this.registerTableOption("movableRowsSender",!1),this.registerTableOption("movableRowsReceiver","insert"),this.registerColumnOption("rowHandle")}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-row"),e.classList.add("tabulator-row-placeholder"),e}initialize(){this.table.options.movableRows&&(this.connectionSelectorsTables=this.table.options.movableRowsConnectedTables,this.connectionSelectorsElements=this.table.options.movableRowsConnectedElements,this.connection=this.connectionSelectorsTables||this.connectionSelectorsElements,this.subscribe("cell-init",this.initializeCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)))}initializeGroupHeader(e){var t=this,o={};o.mouseup=function(o){t.tableRowDrop(o,e)}.bind(t),o.mousemove=function(o){var n;o.pageY-r.elOffset(e.element).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?t.toRow===e&&t.toRowAfter||((n=e.getElement()).parentNode.insertBefore(t.placeholderElement,n.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(n=e.getElement()).previousSibling&&(n.parentNode.insertBefore(t.placeholderElement,n),t.moveRow(e,!1))}.bind(t),e.modules.moveRow=o}initializeRow(e){var t,o=this,n={};n.mouseup=function(t){o.tableRowDrop(t,e)}.bind(o),n.mousemove=function(t){var n=e.getElement();t.pageY-r.elOffset(n).top+o.table.rowManager.element.scrollTop>e.getHeight()/2?o.toRow===e&&o.toRowAfter||(n.parentNode.insertBefore(o.placeholderElement,n.nextSibling),o.moveRow(e,!0)):(o.toRow!==e||o.toRowAfter)&&(n.parentNode.insertBefore(o.placeholderElement,n),o.moveRow(e,!1))}.bind(o),this.hasHandle||((t=e.getElement()).addEventListener("mousedown",(function(t){1===t.which&&(o.checkTimeout=setTimeout((function(){o.startMove(t,e)}),o.checkPeriod))})),t.addEventListener("mouseup",(function(e){1===e.which&&o.checkTimeout&&clearTimeout(o.checkTimeout)})),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=n}initializeColumn(e){e.definition.rowHandle&&!1!==this.table.options.movableRows&&(this.hasHandle=!0)}initializeCell(e){if(e.column.definition.rowHandle&&!1!==this.table.options.movableRows){var t=this,o=e.getElement(!0);o.addEventListener("mousedown",(function(o){1===o.which&&(t.checkTimeout=setTimeout((function(){t.startMove(o,e.row)}),t.checkPeriod))})),o.addEventListener("mouseup",(function(e){1===e.which&&t.checkTimeout&&clearTimeout(t.checkTimeout)})),this.bindTouchEvents(e.row,o)}}bindTouchEvents(e,t){var o,n,r,i,a,l,s=!1;t.addEventListener("touchstart",(t=>{this.checkTimeout=setTimeout((()=>{this.touchMove=!0,o=e.nextRow(),r=o?o.getHeight()/2:0,n=e.prevRow(),i=n?n.getHeight()/2:0,a=0,l=0,s=!1,this.startMove(t,e)}),this.checkPeriod)}),{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",(t=>{var c,u;this.moving&&(t.preventDefault(),this.moveHover(t),s||(s=t.touches[0].pageY),(c=t.touches[0].pageY-s)>0?o&&c-a>r&&(u=o)!==e&&(s=t.touches[0].pageY,u.getElement().parentNode.insertBefore(this.placeholderElement,u.getElement().nextSibling),this.moveRow(u,!0)):n&&-c-l>i&&(u=n)!==e&&(s=t.touches[0].pageY,u.getElement().parentNode.insertBefore(this.placeholderElement,u.getElement()),this.moveRow(u,!1)),u&&(o=u.nextRow(),a=r,r=o?o.getHeight()/2:0,n=u.prevRow(),l=i,i=n?n.getHeight()/2:0))})),t.addEventListener("touchend",(e=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&(this.endMove(e),this.touchMove=!1)}))}_bindMouseMove(){this.table.rowManager.getDisplayRows().forEach((e=>{("row"===e.type||"group"===e.type)&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)}))}_unbindMouseMove(){this.table.rowManager.getDisplayRows().forEach((e=>{("row"===e.type||"group"===e.type)&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)}))}startMove(e,t){var o=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(o.parentNode.insertBefore(this.placeholderElement,o),o.parentNode.removeChild(o)),this.hoverElement=o.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.dispatchExternal("rowMoving",t.getComponent()),this.moveHover(e)}setStartPosition(e,t){var o,n,r=this.touchMove?e.touches[0].pageX:e.pageX,i=this.touchMove?e.touches[0].pageY:e.pageY;o=t.getElement(),this.connection?(n=o.getBoundingClientRect(),this.startX=n.left-r+window.pageXOffset,this.startY=n.top-i+window.pageYOffset):this.startY=i-o.getBoundingClientRect().top}endMove(e){e&&1!==e.which&&!this.touchMove||(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow?this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter):this.dispatchExternal("rowMoveCancelled",this.moving.getComponent()),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))}moveRow(e,t){this.toRow=e,this.toRowAfter=t}moveHover(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)}moveHoverTable(e){var t=this.table.rowManager.getElement(),o=t.scrollTop,n=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+o;this.hoverElement.style.top=Math.min(n-this.startY,this.table.rowManager.element.scrollHeight-this.hoverElement.offsetHeight)+"px"}moveHoverConnections(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"}elementRowDrop(e,t,o){this.dispatchExternal("movableRowsElementDrop",e,t,!!o&&o.getComponent())}connectToTables(e){var t;this.connectionSelectorsTables&&(t=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStart",t),this.commsSend(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach((e=>{"string"==typeof e?this.connectionElements=this.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(e))):this.connectionElements.push(e)})),this.connectionElements.forEach((e=>{var t=t=>{this.elementRowDrop(t,e,this.moving)};e.addEventListener("mouseup",t),e.tabulatorElementDropEvent=t,e.classList.add("tabulator-movingrow-receiving")})))}disconnectFromTables(){var e;this.connectionSelectorsTables&&(e=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStop",e),this.commsSend(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach((e=>{e.classList.remove("tabulator-movingrow-receiving"),e.removeEventListener("mouseup",e.tabulatorElementDropEvent),delete e.tabulatorElementDropEvent}))}connect(e,t){return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach((e=>{"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().addEventListener("mouseup",e.modules.moveRow.mouseup)})),this.tableRowDropEvent=this.tableRowDrop.bind(this),this.table.element.addEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStart",t,e),!0)}disconnect(e){e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach((e=>{"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().removeEventListener("mouseup",e.modules.moveRow.mouseup)})),this.table.element.removeEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStop",e)):console.warn("Move Row Error - trying to disconnect from non connected table")}dropComplete(e,t,o){var n=!1;if(o){switch(typeof this.table.options.movableRowsSender){case"string":n=ie.senders[this.table.options.movableRowsSender];break;case"function":n=this.table.options.movableRowsSender}n?n.call(this,this.moving?this.moving.getComponent():void 0,t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.dispatchExternal("movableRowsSent",this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.dispatchExternal("movableRowsSentFailed",this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()}tableRowDrop(e,t){var o=!1,n=!1;switch(e.stopImmediatePropagation(),typeof this.table.options.movableRowsReceiver){case"string":o=ie.receivers[this.table.options.movableRowsReceiver];break;case"function":o=this.table.options.movableRowsReceiver}o?n=o.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),n?this.dispatchExternal("movableRowsReceived",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.dispatchExternal("movableRowsReceivedFailed",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.commsSend(this.connectedTable,"moveRow","dropcomplete",{row:t,success:n})}commsReceived(e,t,o){switch(t){case"connect":return this.connect(e,o.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,o.row,o.success)}}}var ae={};class le extends a{static moduleName="mutator";static mutators=ae;constructor(e){super(e),this.allowedTypes=["","data","edit","clipboard","import"],this.enabled=!0,this.registerColumnOption("mutator"),this.registerColumnOption("mutatorParams"),this.registerColumnOption("mutatorData"),this.registerColumnOption("mutatorDataParams"),this.registerColumnOption("mutatorEdit"),this.registerColumnOption("mutatorEditParams"),this.registerColumnOption("mutatorClipboard"),this.registerColumnOption("mutatorClipboardParams"),this.registerColumnOption("mutatorImport"),this.registerColumnOption("mutatorImportParams"),this.registerColumnOption("mutateLink")}initialize(){this.subscribe("cell-value-changing",this.transformCell.bind(this)),this.subscribe("cell-value-changed",this.mutateLink.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-init-before",this.rowDataChanged.bind(this)),this.subscribe("row-data-changing",this.rowDataChanged.bind(this))}rowDataChanged(e,t,o){return this.transformRow(t,"data",o)}initializeColumn(e){var t=!1,o={};this.allowedTypes.forEach((n=>{var r,i="mutator"+(n.charAt(0).toUpperCase()+n.slice(1));e.definition[i]&&(r=this.lookupMutator(e.definition[i]))&&(t=!0,o[i]={mutator:r,params:e.definition[i+"Params"]||{}})})),t&&(e.modules.mutate=o)}lookupMutator(e){var t=!1;switch(typeof e){case"string":le.mutators[e]?t=le.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e}return t}transformRow(e,t,o){var n,r="mutator"+(t.charAt(0).toUpperCase()+t.slice(1));return this.enabled&&this.table.columnManager.traverse((i=>{var a,l,s;i.modules.mutate&&(a=i.modules.mutate[r]||i.modules.mutate.mutator||!1)&&(n=i.getFieldValue(void 0!==o?o:e),("data"==t&&!o||void 0!==n)&&(s=i.getComponent(),l="function"==typeof a.params?a.params(n,e,t,s):a.params,i.setFieldValue(e,a.mutator(n,e,t,l,s))))})),e}transformCell(e,t){if(e.column.modules.mutate){var o=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,n={};if(o)return n=Object.assign(n,e.row.getData()),e.column.setFieldValue(n,t),o.mutator(t,n,"edit",o.params,e.getComponent())}return t}mutateLink(e){var t=e.column.definition.mutateLink;t&&(Array.isArray(t)||(t=[t]),t.forEach((t=>{var o=e.row.getCell(t);o&&o.setValue(o.getValue(),!0,!0)})))}enable(){this.enabled=!0}disable(){this.enabled=!1}}var se={rows:function(e,t,o,n,r){var i=document.createElement("span"),a=document.createElement("span"),l=document.createElement("span"),s=document.createElement("span"),c=document.createElement("span"),u=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",(e=>{a.innerHTML=e})),this.table.modules.localize.langBind("pagination|counter|of",(e=>{s.innerHTML=e})),this.table.modules.localize.langBind("pagination|counter|rows",(e=>{u.innerHTML=e})),n?(l.innerHTML=" "+t+"-"+Math.min(t+e-1,n)+" ",c.innerHTML=" "+n+" ",i.appendChild(a),i.appendChild(l),i.appendChild(s),i.appendChild(c),i.appendChild(u)):(l.innerHTML=" 0 ",i.appendChild(a),i.appendChild(l),i.appendChild(u)),i},pages:function(e,t,o,n,r){var i=document.createElement("span"),a=document.createElement("span"),l=document.createElement("span"),s=document.createElement("span"),c=document.createElement("span"),u=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",(e=>{a.innerHTML=e})),l.innerHTML=" "+o+" ",this.table.modules.localize.langBind("pagination|counter|of",(e=>{s.innerHTML=e})),c.innerHTML=" "+r+" ",this.table.modules.localize.langBind("pagination|counter|pages",(e=>{u.innerHTML=e})),i.appendChild(a),i.appendChild(l),i.appendChild(s),i.appendChild(c),i.appendChild(u),i}};class ce extends a{static moduleName="page";static pageCounters=se;constructor(e){super(e),this.mode="local",this.progressiveLoad=!1,this.element=null,this.pageCounterElement=null,this.pageCounter=null,this.size=0,this.page=1,this.count=5,this.max=1,this.remoteRowCountEstimate=null,this.initialLoad=!0,this.dataChanging=!1,this.pageSizes=[],this.registerTableOption("pagination",!1),this.registerTableOption("paginationMode","local"),this.registerTableOption("paginationSize",!1),this.registerTableOption("paginationInitialPage",1),this.registerTableOption("paginationCounter",!1),this.registerTableOption("paginationCounterElement",!1),this.registerTableOption("paginationButtonCount",5),this.registerTableOption("paginationSizeSelector",!1),this.registerTableOption("paginationElement",!1),this.registerTableOption("paginationAddRow","page"),this.registerTableOption("paginationOutOfRange",!1),this.registerTableOption("progressiveLoad",!1),this.registerTableOption("progressiveLoadDelay",0),this.registerTableOption("progressiveLoadScrollMargin",0),this.registerTableFunction("setMaxPage",this.setMaxPage.bind(this)),this.registerTableFunction("setPage",this.setPage.bind(this)),this.registerTableFunction("setPageToRow",this.userSetPageToRow.bind(this)),this.registerTableFunction("setPageSize",this.userSetPageSize.bind(this)),this.registerTableFunction("getPageSize",this.getPageSize.bind(this)),this.registerTableFunction("previousPage",this.previousPage.bind(this)),this.registerTableFunction("nextPage",this.nextPage.bind(this)),this.registerTableFunction("getPage",this.getPage.bind(this)),this.registerTableFunction("getPageMax",this.getPageMax.bind(this)),this.registerComponentFunction("row","pageTo",this.setPageToRow.bind(this))}initialize(){this.table.options.pagination?(this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("footer-redraw",this.footerRedraw.bind(this)),"page"==this.table.options.paginationAddRow&&this.subscribe("row-adding-position",this.rowAddingPosition.bind(this)),"remote"===this.table.options.paginationMode&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this))),this.table.options.progressiveLoad&&console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time"),this.registerDisplayHandler(this.restOnRenderBefore.bind(this),40),this.registerDisplayHandler(this.getRows.bind(this),50),this.createElements(),this.initializePageCounter(),this.initializePaginator()):this.table.options.progressiveLoad&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.initializeProgressive(this.table.options.progressiveLoad),"scroll"===this.table.options.progressiveLoad&&this.subscribe("scroll-vertical",this.scrollVertical.bind(this)))}rowAddingPosition(e,t){var o,n=this.table.rowManager,r=n.getDisplayRows();return t?r.length?o=r[0]:n.activeRows.length&&(o=n.activeRows[n.activeRows.length-1],t=!1):r.length&&(o=r[r.length-1],t=!(r.length{}))}restOnRenderBefore(e,t){return t||"local"===this.mode&&this.reset(),e}rowsUpdated(){this.refreshData(!0,"all")}createElements(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),(e=document.createElement("button")).classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))}generatePageSizeSelectList(){var e=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))e=this.table.options.paginationSizeSelector,this.pageSizes=e,-1==this.pageSizes.indexOf(this.size)&&e.unshift(this.size);else if(-1==this.pageSizes.indexOf(this.size)){e=[];for(let t=1;t<5;t++)e.push(this.size*t);this.pageSizes=e}else e=this.pageSizes;for(;this.pageSizeSelect.firstChild;)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);e.forEach((e=>{var t=document.createElement("option");t.value=e,!0===e?this.langBind("pagination|all",(function(e){t.innerHTML=e})):t.innerHTML=e,this.pageSizeSelect.appendChild(t)})),this.pageSizeSelect.value=this.size}}initializePageCounter(){var e=this.table.options.paginationCounter,t=null;e&&((t="function"==typeof e?e:ce.pageCounters[e])?(this.pageCounter=t,this.pageCounterElement=document.createElement("span"),this.pageCounterElement.classList.add("tabulator-page-counter")):console.warn("Pagination Error - No such page counter found: ",e))}initializePaginator(e){var t,o;e||(this.langBind("pagination|first",(e=>{this.firstBut.innerHTML=e})),this.langBind("pagination|first_title",(e=>{this.firstBut.setAttribute("aria-label",e),this.firstBut.setAttribute("title",e)})),this.langBind("pagination|prev",(e=>{this.prevBut.innerHTML=e})),this.langBind("pagination|prev_title",(e=>{this.prevBut.setAttribute("aria-label",e),this.prevBut.setAttribute("title",e)})),this.langBind("pagination|next",(e=>{this.nextBut.innerHTML=e})),this.langBind("pagination|next_title",(e=>{this.nextBut.setAttribute("aria-label",e),this.nextBut.setAttribute("title",e)})),this.langBind("pagination|last",(e=>{this.lastBut.innerHTML=e})),this.langBind("pagination|last_title",(e=>{this.lastBut.setAttribute("aria-label",e),this.lastBut.setAttribute("title",e)})),this.firstBut.addEventListener("click",(()=>{this.setPage(1)})),this.prevBut.addEventListener("click",(()=>{this.previousPage()})),this.nextBut.addEventListener("click",(()=>{this.nextPage()})),this.lastBut.addEventListener("click",(()=>{this.setPage(this.max)})),this.table.options.paginationElement&&(this.element=this.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),this.langBind("pagination|page_size",(e=>{this.pageSizeSelect.setAttribute("aria-label",e),this.pageSizeSelect.setAttribute("title",e),t.innerHTML=e})),this.element.appendChild(t),this.element.appendChild(this.pageSizeSelect),this.pageSizeSelect.addEventListener("change",(e=>{this.setPageSize("true"==this.pageSizeSelect.value||this.pageSizeSelect.value),this.setPage(1)}))),this.element.appendChild(this.firstBut),this.element.appendChild(this.prevBut),this.element.appendChild(this.pagesElement),this.element.appendChild(this.nextBut),this.element.appendChild(this.lastBut),this.table.options.paginationElement||(this.table.options.paginationCounter&&(this.table.options.paginationCounterElement?this.table.options.paginationCounterElement instanceof HTMLElement?this.table.options.paginationCounterElement.appendChild(this.pageCounterElement):"string"==typeof this.table.options.paginationCounterElement&&((o=document.querySelector(this.table.options.paginationCounterElement))?o.appendChild(this.pageCounterElement):console.warn("Pagination Error - Unable to find element matching paginationCounterElement selector:",this.table.options.paginationCounterElement)):this.footerAppend(this.pageCounterElement)),this.footerAppend(this.element)),this.page=this.table.options.paginationInitialPage,this.count=this.table.options.paginationButtonCount),this.mode=this.table.options.paginationMode}initializeProgressive(e){this.initializePaginator(!0),this.mode="progressive_"+e,this.progressiveLoad=!0}trackChanges(){this.dispatch("page-changed")}setMaxRows(e){this.max=e?!0===this.size?1:Math.ceil(e/this.size):1,this.page>this.max&&(this.page=this.max)}reset(e){this.initialLoad||("local"==this.mode||e)&&(this.page=1,this.trackChanges())}setMaxPage(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())}setPage(e){switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return(e=parseInt(e))>0&&e<=this.max||"local"!==this.mode?(this.page=e,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Requested page is out of range of 1 - "+this.max+":",e),Promise.reject())}setPageToRow(e){var t=this.displayRows(-1).indexOf(e);if(t>-1){var o=!0===this.size?1:Math.ceil((t+1)/this.size);return this.setPage(o)}return console.warn("Pagination Error - Requested row is not visible"),Promise.reject()}setPageSize(e){!0!==e&&(e=parseInt(e)),e>0&&(this.size=e,this.dispatchExternal("pageSizeChanged",e)),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.trackChanges()}_setPageCounter(e,t,o){var n;if(this.pageCounter)switch("remote"===this.mode&&(t=this.size,o=(this.page-1)*this.size+1,e=this.remoteRowCountEstimate),typeof(n=this.pageCounter.call(this,t,o,this.page,e,this.max))){case"object":if(n instanceof Node){for(;this.pageCounterElement.firstChild;)this.pageCounterElement.removeChild(this.pageCounterElement.firstChild);this.pageCounterElement.appendChild(n)}else this.pageCounterElement.innerHTML="",null!=n&&console.warn("Page Counter Error - Page Counter has returned a type of object, the only valid page counter object return is an instance of Node, the page counter returned:",n);break;case"undefined":this.pageCounterElement.innerHTML="";break;default:this.pageCounterElement.innerHTML=n}}_setPageButtons(){let e=Math.floor((this.count-1)/2),t=Math.ceil((this.count-1)/2),o=this.max-this.page+e+10&&e<=this.max&&this.pagesElement.appendChild(this._generatePageButton(e));this.footerRedraw()}_generatePageButton(e){var t=document.createElement("button");return t.classList.add("tabulator-page"),e==this.page&&t.classList.add("active"),t.setAttribute("type","button"),t.setAttribute("role","button"),this.langBind("pagination|page_title",(o=>{t.setAttribute("aria-label",o+" "+e),t.setAttribute("title",o+" "+e)})),t.setAttribute("data-page",e),t.textContent=e,t.addEventListener("click",(t=>{this.setPage(e)})),t}previousPage(){return this.page>1?(this.page--,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Previous page would be less than page 1:",0),Promise.reject())}nextPage(){return this.page"row"===e.type));if("local"==this.mode){t=[],this.setMaxRows(e.length),!0===this.size?(o=0,n=e.length):n=(o=this.size*(this.page-1))+parseInt(this.size),this._setPageButtons();for(let a=o;a{this.dataChanging=!1}));case"progressive_load":case"progressive_scroll":return this.reloadData(null,!0);default:return console.warn("Pagination Error - no such pagination mode:",this.mode),Promise.reject()}}_parseRemoteData(e){var t,o;if(void 0===e.last_page&&console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").last_page||"last_page")+"' property"),e.data){if(this.max=parseInt(e.last_page)||1,this.remoteRowCountEstimate=void 0!==e.last_row?e.last_row:e.last_page*this.size-(this.page==e.last_page?this.size-e.data.length:0),this.progressiveLoad){switch(this.mode){case"progressive_load":1==this.page?this.table.rowManager.setData(e.data,!1,1==this.page):this.table.rowManager.addRows(e.data),this.page{this.nextPage()}),this.table.options.progressiveLoadDelay);break;case"progressive_scroll":e=1===this.page?e.data:this.table.rowManager.getData().concat(e.data),this.table.rowManager.setData(e,1!==this.page,1==this.page),t=this.table.options.progressiveLoadScrollMargin||2*this.table.rowManager.element.clientHeight,this.table.rowManager.element.scrollHeight<=this.table.rowManager.element.clientHeight+t&&this.page{this.nextPage()}))}return!1}if(this.page>this.max&&(console.warn("Remote Pagination Error - Server returned last page value lower than the current page"),o=this.options("paginationOutOfRange")))return this.setPage("function"==typeof o?o.call(this,this.page,this.max):o);this.dispatchExternal("pageLoaded",this.getPage())}else console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").data||"data")+"' property");return e.data}footerRedraw(){var e=this.table.footerManager.containerElement;Math.ceil(e.clientWidth)-e.scrollWidth<0?this.pagesElement.style.display="none":(this.pagesElement.style.display="",Math.ceil(e.clientWidth)-e.scrollWidth<0&&(this.pagesElement.style.display="none"))}}var ue={local:function(e,t){var o=localStorage.getItem(e+"-"+t);return!!o&&JSON.parse(o)},cookie:function(e,t){var o,n,r=document.cookie,i=e+"-"+t,a=r.indexOf(i+"=");return a>-1&&((o=(r=r.slice(a)).indexOf(";"))>-1&&(r=r.slice(0,o)),n=r.replace(i+"=","")),!!n&&JSON.parse(n)}},de={local:function(e,t,o){localStorage.setItem(e+"-"+t,JSON.stringify(o))},cookie:function(e,t,o){var n=new Date;n.setDate(n.getDate()+1e4),document.cookie=e+"-"+t+"="+JSON.stringify(o)+"; expires="+n.toUTCString()}};class pe extends a{static moduleName="persistence";static moduleInitOrder=-10;static readers=ue;static writers=de;constructor(e){super(e),this.mode="",this.id="",this.defWatcherBlock=!1,this.config={},this.readFunc=!1,this.writeFunc=!1,this.registerTableOption("persistence",!1),this.registerTableOption("persistenceID",""),this.registerTableOption("persistenceMode",!0),this.registerTableOption("persistenceReaderFunc",!1),this.registerTableOption("persistenceWriterFunc",!1)}localStorageTest(){var e="_tabulator_test";try{return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}initialize(){if(this.table.options.persistence){var e,t=this.table.options.persistenceMode,o=this.table.options.persistenceID;this.mode=!0!==t?t:this.localStorageTest()?"local":"cookie",this.table.options.persistenceReaderFunc?"function"==typeof this.table.options.persistenceReaderFunc?this.readFunc=this.table.options.persistenceReaderFunc:pe.readers[this.table.options.persistenceReaderFunc]?this.readFunc=pe.readers[this.table.options.persistenceReaderFunc]:console.warn("Persistence Read Error - invalid reader set",this.table.options.persistenceReaderFunc):pe.readers[this.mode]?this.readFunc=pe.readers[this.mode]:console.warn("Persistence Read Error - invalid reader set",this.mode),this.table.options.persistenceWriterFunc?"function"==typeof this.table.options.persistenceWriterFunc?this.writeFunc=this.table.options.persistenceWriterFunc:pe.writers[this.table.options.persistenceWriterFunc]?this.writeFunc=pe.writers[this.table.options.persistenceWriterFunc]:console.warn("Persistence Write Error - invalid reader set",this.table.options.persistenceWriterFunc):pe.writers[this.mode]?this.writeFunc=pe.writers[this.mode]:console.warn("Persistence Write Error - invalid writer set",this.mode),this.id="tabulator-"+(o||this.table.element.getAttribute("id")||""),this.config={sort:!0===this.table.options.persistence||this.table.options.persistence.sort,filter:!0===this.table.options.persistence||this.table.options.persistence.filter,headerFilter:!0===this.table.options.persistence||this.table.options.persistence.headerFilter,group:!0===this.table.options.persistence||this.table.options.persistence.group,page:!0===this.table.options.persistence||this.table.options.persistence.page,columns:!0===this.table.options.persistence?["title","width","visible"]:this.table.options.persistence.columns},this.config.page&&(e=this.retrieveData("page"))&&(void 0===e.paginationSize||!0!==this.config.page&&!this.config.page.size||(this.table.options.paginationSize=e.paginationSize),void 0===e.paginationInitialPage||!0!==this.config.page&&!this.config.page.page||(this.table.options.paginationInitialPage=e.paginationInitialPage)),this.config.group&&(e=this.retrieveData("group"))&&(void 0===e.groupBy||!0!==this.config.group&&!this.config.group.groupBy||(this.table.options.groupBy=e.groupBy),void 0===e.groupStartOpen||!0!==this.config.group&&!this.config.group.groupStartOpen||(this.table.options.groupStartOpen=e.groupStartOpen),void 0===e.groupHeader||!0!==this.config.group&&!this.config.group.groupHeader||(this.table.options.groupHeader=e.groupHeader)),this.config.columns&&(this.table.options.columns=this.load("columns",this.table.options.columns),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-show",this.save.bind(this,"columns")),this.subscribe("column-hide",this.save.bind(this,"columns")),this.subscribe("column-moved",this.save.bind(this,"columns"))),this.subscribe("table-built",this.tableBuilt.bind(this),0),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("filter-changed",this.eventSave.bind(this,"filter")),this.subscribe("filter-changed",this.eventSave.bind(this,"headerFilter")),this.subscribe("sort-changed",this.eventSave.bind(this,"sort")),this.subscribe("group-changed",this.eventSave.bind(this,"group")),this.subscribe("page-changed",this.eventSave.bind(this,"page")),this.subscribe("column-resized",this.eventSave.bind(this,"columns")),this.subscribe("column-width",this.eventSave.bind(this,"columns")),this.subscribe("layout-refreshed",this.eventSave.bind(this,"columns"))}this.registerTableFunction("getColumnLayout",this.getColumnLayout.bind(this)),this.registerTableFunction("setColumnLayout",this.setColumnLayout.bind(this))}eventSave(e){this.config[e]&&this.save(e)}tableBuilt(){var e,t,o;this.config.sort&&0==!(e=this.load("sort"))&&(this.table.options.initialSort=e),this.config.filter&&0==!(t=this.load("filter"))&&(this.table.options.initialFilter=t),this.config.headerFilter&&0==!(o=this.load("headerFilter"))&&(this.table.options.initialHeaderFilter=o)}tableRedraw(e){e&&this.config.columns&&this.save("columns")}getColumnLayout(){return this.parseColumns(this.table.columnManager.getColumns())}setColumnLayout(e){return this.table.columnManager.setColumns(this.mergeDefinition(this.table.options.columns,e,!0)),!0}initializeColumn(e){var t;this.config.columns&&(this.defWatcherBlock=!0,t=e.getDefinition(),(!0===this.config.columns?Object.keys(t):this.config.columns).forEach((e=>{var o=Object.getOwnPropertyDescriptor(t,e),n=t[e];o&&Object.defineProperty(t,e,{set:e=>{n=e,this.defWatcherBlock||this.save("columns"),o.set&&o.set(e)},get:()=>(o.get&&o.get(),n)})})),this.defWatcherBlock=!1)}load(e,t){var o=this.retrieveData(e);return t&&(o=o?this.mergeDefinition(t,o):t),o}retrieveData(e){return!!this.readFunc&&this.readFunc(this.id,e)}mergeDefinition(e,t,o){var n=[];return(t=t||[]).forEach(((t,r)=>{var i,a=this._findColumn(e,t);a&&(o?i=Object.keys(t):!0===this.config.columns||null==this.config.columns?(i=Object.keys(a)).push("width"):i=this.config.columns,i.forEach((e=>{"columns"!==e&&void 0!==t[e]&&(a[e]=t[e])})),a.columns&&(a.columns=this.mergeDefinition(a.columns,t.columns)),n.push(a))})),e.forEach(((e,o)=>{this._findColumn(t,e)||(n.length>o?n.splice(o,0,e):n.push(e))})),n}_findColumn(e,t){var o=t.columns?"group":t.field?"field":"object";return e.find((function(e){switch(o){case"group":return e.title===t.title&&e.columns.length===t.columns.length;case"field":return e.field===t.field;case"object":return e===t}}))}save(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"headerFilter":t=this.table.modules.filter.getHeaderFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig()}this.writeFunc&&this.writeFunc(this.id,e,t)}validateSorters(e){return e.forEach((function(e){e.column=e.field,delete e.field})),e}getGroupConfig(){var e={};return this.config.group&&((!0===this.config.group||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(!0===this.config.group||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(!0===this.config.group||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e}getPageConfig(){var e={};return this.config.page&&((!0===this.config.page||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(!0===this.config.page||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e}parseColumns(e){var t=[],o=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach((e=>{var n,r={},i=e.getDefinition();e.isGroup?(r.title=i.title,r.columns=this.parseColumns(e.getColumns())):(r.field=e.getField(),!0===this.config.columns||null==this.config.columns?((n=Object.keys(i)).push("width"),n.push("visible")):n=this.config.columns,n.forEach((t=>{switch(t){case"width":r.width=e.getWidth();break;case"visible":r.visible=e.visible;break;default:"function"!=typeof i[t]&&-1===o.indexOf(t)&&(r[t]=i[t])}}))),t.push(r)})),t}}var he={format:{formatters:{responsiveCollapse:function(e,t,o){var n=document.createElement("div"),r=e.getRow()._row.modules.responsiveLayout;function i(e){var t=r.element;r.open=e,t&&(r.open?(n.classList.add("open"),t.style.display=""):(n.classList.remove("open"),t.style.display="none"))}return n.classList.add("tabulator-responsive-collapse-toggle"),n.innerHTML='\n \n \n\n\n\n \n',e.getElement().classList.add("tabulator-row-handle"),n.addEventListener("click",(function(t){t.stopImmediatePropagation(),i(!r.open),e.getTable().rowManager.adjustTableSize()})),i(r.open),n}}}},me={format:{formatters:{rowSelection:function(e,t,o){var n=document.createElement("input"),r=!1;if(n.type="checkbox",n.setAttribute("aria-label","Select Row"),this.table.modExists("selectRow",!0))if(n.addEventListener("click",(e=>{e.stopPropagation()})),"function"==typeof e.getRow){var i=e.getRow();i instanceof R?(n.addEventListener("change",(e=>{"click"===this.table.options.selectableRowsRangeMode&&r?r=!1:i.toggleSelect()})),"click"===this.table.options.selectableRowsRangeMode&&n.addEventListener("click",(e=>{r=!0,this.table.modules.selectRow.handleComplexRowClick(i._row,e)})),n.checked=i.isSelected&&i.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(i,n)):n=""}else n.addEventListener("change",(e=>{this.table.modules.selectRow.selectedRows.length?this.table.deselectRow():this.table.selectRow(t.rowRange)})),this.table.modules.selectRow.registerHeaderSelectCheckbox(n);return n}}}};class fe{constructor(e){return this._range=e,new Proxy(this,{get:function(e,t,o){return void 0!==e[t]?e[t]:e._range.table.componentFunctionBinder.handle("range",e._range,t)}})}getElement(){return this._range.element}getData(){return this._range.getData()}getCells(){return this._range.getCells(!0,!0)}getStructuredCells(){return this._range.getStructuredCells()}getRows(){return this._range.getRows().map((e=>e.getComponent()))}getColumns(){return this._range.getColumns().map((e=>e.getComponent()))}getBounds(){return this._range.getBounds()}getTopEdge(){return this._range.top}getBottomEdge(){return this._range.bottom}getLeftEdge(){return this._range.left}getRightEdge(){return this._range.right}setBounds(e,t){this._range.destroyedGuard("setBounds")&&this._range.setBounds(e?e._cell:e,t?t._cell:t)}setStartBound(e){this._range.destroyedGuard("setStartBound")&&(this._range.setEndBound(e?e._cell:e),this._range.rangeManager.layoutElement())}setEndBound(e){this._range.destroyedGuard("setEndBound")&&(this._range.setEndBound(e?e._cell:e),this._range.rangeManager.layoutElement())}clearValues(){this._range.destroyedGuard("clearValues")&&this._range.clearValues()}remove(){this._range.destroyedGuard("remove")&&this._range.destroy(!0)}}class ge extends n{constructor(e,t,o,n){super(e),this.rangeManager=t,this.element=null,this.initialized=!1,this.initializing={start:!1,end:!1},this.destroyed=!1,this.top=0,this.bottom=0,this.left=0,this.right=0,this.table=e,this.start={row:0,col:0},this.end={row:0,col:0},this.rangeManager.rowHeader&&(this.left=1,this.right=1,this.start.col=1,this.end.col=1),this.initElement(),setTimeout((()=>{this.initBounds(o,n)}))}initElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-range")}initBounds(e,t){this._updateMinMax(),e&&this.setBounds(e,t||e)}setStart(e,t){this.start.row===e&&this.start.col===t||(this.start.row=e,this.start.col=t,this.initializing.start=!0,this._updateMinMax())}setEnd(e,t){this.end.row===e&&this.end.col===t||(this.end.row=e,this.end.col=t,this.initializing.end=!0,this._updateMinMax())}setBounds(e,t,o){e&&this.setStartBound(e),this.setEndBound(t||e),this.rangeManager.layoutElement(o)}setStartBound(e){var t,o;"column"===e.type?this.rangeManager.columnSelection&&this.setStart(0,e.getPosition()-1):(t=e.row.position-1,o=e.column.getPosition()-1,e.column===this.rangeManager.rowHeader?this.setStart(t,1):this.setStart(t,o))}setEndBound(e){var t,o,n,r=this._getTableRows().length;"column"===e.type?this.rangeManager.columnSelection&&("column"===this.rangeManager.selecting?this.setEnd(r-1,e.getPosition()-1):"cell"===this.rangeManager.selecting&&this.setEnd(0,e.getPosition()-1)):(t=e.row.position-1,o=e.column.getPosition()-1,n=e.column===this.rangeManager.rowHeader,"row"===this.rangeManager.selecting?this.setEnd(t,this._getTableColumns().length-1):"row"!==this.rangeManager.selecting&&n?this.setEnd(t,0):"column"===this.rangeManager.selecting?this.setEnd(r-1,o):this.setEnd(t,o))}_updateMinMax(){this.top=Math.min(this.start.row,this.end.row),this.bottom=Math.max(this.start.row,this.end.row),this.left=Math.min(this.start.col,this.end.col),this.right=Math.max(this.start.col,this.end.col),this.initialized?this.dispatchExternal("rangeChanged",this.getComponent()):this.initializing.start&&this.initializing.end&&(this.initialized=!0,this.dispatchExternal("rangeAdded",this.getComponent()))}_getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}_getTableRows(){return this.table.rowManager.getDisplayRows().filter((e=>"row"===e.type))}layout(){var e,t,o,n,r,i,a,l,s,c,u=this.table.rowManager.renderer.vDomTop,d=this.table.rowManager.renderer.vDomBottom,p=this.table.columnManager.renderer.leftCol,h=this.table.columnManager.renderer.rightCol;"virtual"===this.table.options.renderHorizontal&&this.rangeManager.rowHeader&&(h+=1),null==u&&(u=0),null==d&&(d=1/0),null==p&&(p=0),null==h&&(h=1/0),this.overlaps(p,u,h,d)&&(e=Math.max(this.top,u),t=Math.min(this.bottom,d),o=Math.max(this.left,p),n=Math.min(this.right,h),r=this.rangeManager.getCell(e,o),i=this.rangeManager.getCell(t,n),a=r.getElement(),l=i.getElement(),s=r.row.getElement(),c=i.row.getElement(),this.element.classList.add("tabulator-range-active"),this.table.rtl?(this.element.style.right=s.offsetWidth-a.offsetLeft-a.offsetWidth+"px",this.element.style.width=a.offsetLeft+a.offsetWidth-l.offsetLeft+"px"):(this.element.style.left=s.offsetLeft+a.offsetLeft+"px",this.element.style.width=l.offsetLeft+l.offsetWidth-a.offsetLeft+"px"),this.element.style.top=s.offsetTop+"px",this.element.style.height=c.offsetTop+c.offsetHeight-s.offsetTop+"px")}atTopLeft(e){return e.row.position-1===this.top&&e.column.getPosition()-1===this.left}atBottomRight(e){return e.row.position-1===this.bottom&&e.column.getPosition()-1===this.right}occupies(e){return this.occupiesRow(e.row)&&this.occupiesColumn(e.column)}occupiesRow(e){return this.top<=e.position-1&&e.position-1<=this.bottom}occupiesColumn(e){return this.left<=e.getPosition()-1&&e.getPosition()-1<=this.right}overlaps(e,t,o,n){return!(this.left>o||e>this.right||this.top>n||t>this.bottom)}getData(){var e=[],t=this.getRows(),o=this.getColumns();return t.forEach((t=>{var n=t.getData(),r={};o.forEach((e=>{r[e.field]=n[e.field]})),e.push(r)})),e}getCells(e,t){var o=[],n=this.getRows(),r=this.getColumns();return e?o=n.map((e=>{var o=[];return e.getCells().forEach((e=>{r.includes(e.column)&&o.push(t?e.getComponent():e)})),o})):n.forEach((e=>{e.getCells().forEach((e=>{r.includes(e.column)&&o.push(t?e.getComponent():e)}))})),o}getStructuredCells(){return this.getCells(!0,!0)}getRows(){return this._getTableRows().slice(this.top,this.bottom+1)}getColumns(){return this._getTableColumns().slice(this.left,this.right+1)}clearValues(){var e=this.getCells(),t=this.table.options.selectableRangeClearCellsValue;this.table.blockRedraw(),e.forEach((e=>{e.setValue(t)})),this.table.restoreRedraw()}getBounds(e){var t=this.getCells(!1,e),o={start:null,end:null};return t.length?(o.start=t[0],o.end=t[t.length-1]):console.warn("No bounds defined on range"),o}getComponent(){return this.component||(this.component=new fe(this)),this.component}destroy(e){this.destroyed=!0,this.element.remove(),e&&this.rangeManager.rangeRemoved(this),this.initialized&&this.dispatchExternal("rangeRemoved",this.getComponent())}destroyedGuard(e){return this.destroyed&&console.warn("You cannot call the "+e+" function on a destroyed range"),!this.destroyed}}var be={keybindings:{bindings:{rangeJumpUp:["ctrl + 38","meta + 38"],rangeJumpDown:["ctrl + 40","meta + 40"],rangeJumpLeft:["ctrl + 37","meta + 37"],rangeJumpRight:["ctrl + 39","meta + 39"],rangeExpandUp:"shift + 38",rangeExpandDown:"shift + 40",rangeExpandLeft:"shift + 37",rangeExpandRight:"shift + 39",rangeExpandJumpUp:["ctrl + shift + 38","meta + shift + 38"],rangeExpandJumpDown:["ctrl + shift + 40","meta + shift + 40"],rangeExpandJumpLeft:["ctrl + shift + 37","meta + shift + 37"],rangeExpandJumpRight:["ctrl + shift + 39","meta + shift + 39"]},actions:{rangeJumpLeft:function(e){this.dispatch("keybinding-nav-range",e,"left",!0,!1)},rangeJumpRight:function(e){this.dispatch("keybinding-nav-range",e,"right",!0,!1)},rangeJumpUp:function(e){this.dispatch("keybinding-nav-range",e,"up",!0,!1)},rangeJumpDown:function(e){this.dispatch("keybinding-nav-range",e,"down",!0,!1)},rangeExpandLeft:function(e){this.dispatch("keybinding-nav-range",e,"left",!1,!0)},rangeExpandRight:function(e){this.dispatch("keybinding-nav-range",e,"right",!1,!0)},rangeExpandUp:function(e){this.dispatch("keybinding-nav-range",e,"up",!1,!0)},rangeExpandDown:function(e){this.dispatch("keybinding-nav-range",e,"down",!1,!0)},rangeExpandJumpLeft:function(e){this.dispatch("keybinding-nav-range",e,"left",!0,!0)},rangeExpandJumpRight:function(e){this.dispatch("keybinding-nav-range",e,"right",!0,!0)},rangeExpandJumpUp:function(e){this.dispatch("keybinding-nav-range",e,"up",!0,!0)},rangeExpandJumpDown:function(e){this.dispatch("keybinding-nav-range",e,"down",!0,!0)}}},clipboard:{pasteActions:{range:function(e){var t,o,n,r,i,a=[],l=this.table.modules.selectRange.activeRange,s=!1;return i=e.length,l&&(o=(t=l.getBounds()).start,t.start===t.end&&(s=!0),o&&(n=(a=this.table.rowManager.activeRows.slice()).indexOf(o.row),r=s?e.length:a.indexOf(t.end.row)-n+1,n>-1&&(this.table.blockRedraw(),(a=a.slice(n,n+r)).forEach(((t,o)=>{t.updateData(e[o%i])})),this.table.restoreRedraw()))),a}},pasteParsers:{range:function(e){var t,o,n,r,i,a=[],l=[],s=this.table.modules.selectRange.activeRange,c=!1;return!!(s&&(o=(t=s.getBounds()).start,t.start===t.end&&(c=!0),o&&((e=e.split("\n")).forEach((function(e){a.push(e.split("\t"))})),a.length&&(i=(r=this.table.columnManager.getVisibleColumnsByIndex()).indexOf(o.column))>-1)))&&(n=c?a[0].length:r.indexOf(t.end.column)-i+1,r=r.slice(i,i+n),a.forEach((e=>{var t={},o=e.length;r.forEach((function(n,r){t[n.field]=e[r%o]})),l.push(t)})),l)}}},export:{columnLookups:{range:function(){var e=this.modules.selectRange.selectedColumns();return this.columnManager.rowHeader&&e.unshift(this.columnManager.rowHeader),e}},rowLookups:{range:function(){return this.modules.selectRange.selectedRows()}}}};function ve(e,t,o,n,r,i,a){var l=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),s=a.format||"dd/MM/yyyy HH:mm:ss",c=a.alignEmptyValues,u=0;if(void 0!==l){if(l.isDateTime(e)||(e="iso"===s?l.fromISO(String(e)):l.fromFormat(String(e),s)),l.isDateTime(t)||(t="iso"===s?l.fromISO(String(t)):l.fromFormat(String(t),s)),e.isValid){if(t.isValid)return e-t;u=1}else u=t.isValid?-1:0;return("top"===c&&"desc"===i||"bottom"===c&&"asc"===i)&&(u*=-1),u}console.error("Sort Error - 'datetime' sorter is dependant on luxon.js")}var ye={number:function(e,t,o,n,r,i,a){var l=a.alignEmptyValues,s=a.decimalSeparator,c=a.thousandSeparator,u=0;if(e=String(e),t=String(t),c&&(e=e.split(c).join(""),t=t.split(c).join("")),s&&(e=e.split(s).join("."),t=t.split(s).join(".")),e=parseFloat(e),t=parseFloat(t),isNaN(e))u=isNaN(t)?0:-1;else{if(!isNaN(t))return e-t;u=1}return("top"===l&&"desc"===i||"bottom"===l&&"asc"===i)&&(u*=-1),u},string:function(e,t,o,n,r,i,a){var l,s=a.alignEmptyValues,c=0;if(e){if(t){switch(typeof a.locale){case"boolean":a.locale&&(l=this.langLocale());break;case"string":l=a.locale}return String(e).toLowerCase().localeCompare(String(t).toLowerCase(),l)}c=1}else c=t?-1:0;return("top"===s&&"desc"===i||"bottom"===s&&"asc"===i)&&(c*=-1),c},date:function(e,t,o,n,r,i,a){return a.format||(a.format="dd/MM/yyyy"),ve.call(this,e,t,o,n,r,i,a)},time:function(e,t,o,n,r,i,a){return a.format||(a.format="HH:mm"),ve.call(this,e,t,o,n,r,i,a)},datetime:ve,boolean:function(e,t,o,n,r,i,a){return(!0===e||"true"===e||"True"===e||1===e?1:0)-(!0===t||"true"===t||"True"===t||1===t?1:0)},array:function(e,t,o,n,i,a,l){var s,c=l.type||"length",u=l.alignEmptyValues,d=0,p=this.table;function h(e){var t;switch(s&&(e=s(e)),c){case"length":t=e.length;break;case"sum":t=e.reduce((function(e,t){return e+t}));break;case"max":t=Math.max.apply(null,e);break;case"min":t=Math.min.apply(null,e);break;case"avg":t=e.reduce((function(e,t){return e+t}))/e.length;break;case"string":t=e.join("")}return t}if(l.valueMap&&(s="string"==typeof l.valueMap?function(e){return e.map((e=>r.retrieveNestedData(p.options.nestedFieldSeparator,l.valueMap,e)))}:l.valueMap),Array.isArray(e)){if(Array.isArray(t))return"string"===c?String(h(e)).toLowerCase().localeCompare(String(h(t)).toLowerCase()):h(t)-h(e);d=1}else d=Array.isArray(t)?-1:0;return("top"===u&&"desc"===a||"bottom"===u&&"asc"===a)&&(d*=-1),d},exists:function(e,t,o,n,r,i,a){return(void 0===e?0:1)-(void 0===t?0:1)},alphanum:function(e,t,o,n,r,i,a){var l,s,c,u,d,p=0,h=/(\d+)|(\D+)/g,m=/\d/,f=a.alignEmptyValues,g=0;if(e||0===e){if(t||0===t){if(isFinite(e)&&isFinite(t))return e-t;if((l=String(e).toLowerCase())===(s=String(t).toLowerCase()))return 0;if(!m.test(l)||!m.test(s))return l>s?1:-1;for(l=l.match(h),s=s.match(h),d=l.length>s.length?s.length:l.length;pu?1:-1;return l.length>s.length}g=1}else g=t||0===t?-1:0;return("top"===f&&"desc"===i||"bottom"===f&&"asc"===i)&&(g*=-1),g}};class we extends a{static moduleName="sort";static sorters=ye;constructor(e){super(e),this.sortList=[],this.changed=!1,this.registerTableOption("sortMode","local"),this.registerTableOption("initialSort",!1),this.registerTableOption("columnHeaderSortMulti",!0),this.registerTableOption("sortOrderReverse",!1),this.registerTableOption("headerSortElement","
"),this.registerTableOption("headerSortClickElement","header"),this.registerColumnOption("sorter"),this.registerColumnOption("sorterParams"),this.registerColumnOption("headerSort",!0),this.registerColumnOption("headerSortStartingDir"),this.registerColumnOption("headerSortTristate")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.registerDataHandler(this.sort.bind(this),20),this.registerTableFunction("setSort",this.userSetSort.bind(this)),this.registerTableFunction("getSorters",this.getSort.bind(this)),this.registerTableFunction("clearSort",this.clearSort.bind(this)),"remote"===this.table.options.sortMode&&this.subscribe("data-params",this.remoteSortParams.bind(this))}tableBuilt(){this.table.options.initialSort&&this.setSort(this.table.options.initialSort)}remoteSortParams(e,t,o,n){var r=this.getSort();return r.forEach((e=>{delete e.column})),n.sort=r,n}userSetSort(e,t){this.setSort(e,t),this.refreshSort()}clearSort(){this.clear(),this.refreshSort()}initializeColumn(e){var t,o,n=!1;switch(typeof e.definition.sorter){case"string":we.sorters[e.definition.sorter]?n=we.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":n=e.definition.sorter}if(e.modules.sort={sorter:n,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:e.definition.headerSortTristate},!1!==e.definition.headerSort){switch((t=e.getElement()).classList.add("tabulator-sortable"),(o=document.createElement("div")).classList.add("tabulator-col-sorter"),"icon"===this.table.options.headerSortClickElement?o.classList.add("tabulator-col-sorter-element"):t.classList.add("tabulator-col-sorter-element"),this.table.options.headerSortElement){case"function":break;case"object":o.appendChild(this.table.options.headerSortElement);break;default:o.innerHTML=this.table.options.headerSortElement}e.titleHolderElement.appendChild(o),e.modules.sort.element=o,this.setColumnHeaderSortIcon(e,"none"),"icon"===this.table.options.headerSortClickElement&&o.addEventListener("mousedown",(e=>{e.stopPropagation()})),("icon"===this.table.options.headerSortClickElement?o:t).addEventListener("click",(t=>{var o="",n=[],r=!1;if(e.modules.sort){if(e.modules.sort.tristate)o="none"==e.modules.sort.dir?e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?"asc"==e.modules.sort.dir?"desc":"asc":"none";else switch(e.modules.sort.dir){case"asc":o="desc";break;case"desc":o="asc";break;default:o=e.modules.sort.startingDir}this.table.options.columnHeaderSortMulti&&(t.shiftKey||t.ctrlKey)?(r=(n=this.getSort()).findIndex((t=>t.field===e.getField())),r>-1?(n[r].dir=o,r=n.splice(r,1)[0],"none"!=o&&n.push(r)):"none"!=o&&n.push({column:e,dir:o}),this.setSort(n)):"none"==o?this.clear():this.setSort(e,o),this.refreshSort()}}))}}refreshSort(){"remote"===this.table.options.sortMode?this.reloadData(null,!1,!1):this.refreshData(!0)}hasChanged(){var e=this.changed;return this.changed=!1,e}getSort(){var e=[];return this.sortList.forEach((function(t){t.column&&e.push({column:t.column.getComponent(),field:t.column.getField(),dir:t.dir})})),e}setSort(e,t){var o=this,n=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach((function(e){var t;(t=o.table.columnManager.findColumn(e.column))?(e.column=t,n.push(e),o.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",e.column)})),o.sortList=n,this.dispatch("sort-changed")}clear(){this.setSort([])}findSorter(e){var t,o=this.table.rowManager.activeRows[0],n="string";if(o&&(o=o.getData(),e.getField()))switch(typeof(t=e.getFieldValue(o))){case"undefined":n="string";break;case"boolean":n="boolean";break;default:isNaN(t)||""===t?t.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(n="alphanum"):n="number"}return we.sorters[n]}sort(e,t){var o=this,n=this.table.options.sortOrderReverse?o.sortList.slice().reverse():o.sortList,r=[],i=[];return this.subscribedExternal("dataSorting")&&this.dispatchExternal("dataSorting",o.getSort()),t||o.clearColumnHeaders(),"remote"!==this.table.options.sortMode?(n.forEach((function(e,n){var i;e.column&&((i=e.column.modules.sort)&&(i.sorter||(i.sorter=o.findSorter(e.column)),e.params="function"==typeof i.params?i.params(e.column.getComponent(),e.dir):i.params,r.push(e)),t||o.setColumnHeader(e.column,e.dir))})),r.length&&o._sortItems(e,r)):t||n.forEach((function(e,t){o.setColumnHeader(e.column,e.dir)})),this.subscribedExternal("dataSorted")&&(e.forEach((e=>{i.push(e.getComponent())})),this.dispatchExternal("dataSorted",o.getSort(),i)),e}clearColumnHeaders(){this.table.columnManager.getRealColumns().forEach((e=>{e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"),this.setColumnHeaderSortIcon(e,"none"))}))}setColumnHeader(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort","asc"===t?"ascending":"descending"),this.setColumnHeaderSortIcon(e,t)}setColumnHeaderSortIcon(e,t){var o,n=e.modules.sort.element;if(e.definition.headerSort&&"function"==typeof this.table.options.headerSortElement){for(;n.firstChild;)n.removeChild(n.firstChild);"object"==typeof(o=this.table.options.headerSortElement.call(this.table,e.getComponent(),t))?n.appendChild(o):n.innerHTML=o}}_sortItems(e,t){var o=t.length-1;e.sort(((e,n)=>{for(var r,i=o;i>=0;i--){let o=t[i];if(0!==(r=this._sortRow(e,n,o.column,o.dir,o.params)))break}return r}))}_sortRow(e,t,o,n,r){var i,a,l="asc"==n?e:t,s="asc"==n?t:e;return e=void 0!==(e=o.getFieldValue(l.getData()))?e:"",t=void 0!==(t=o.getFieldValue(s.getData()))?t:"",i=l.getComponent(),a=s.getComponent(),o.modules.sort.sorter.call(this,e,t,i,a,o.getComponent(),n,r)}}class Ce{constructor(e,t){this.columnCount=e,this.rowCount=t,this.columnString=[],this.columns=[],this.rows=[]}genColumns(e){var t=Math.max(this.columnCount,Math.max(...e.map((e=>e.length))));this.columnString=[],this.columns=[];for(let e=1;e<=t;e++)this.incrementChar(this.columnString.length-1),this.columns.push(this.columnString.join(""));return this.columns}genRows(e){var t=Math.max(this.rowCount,e.length);this.rows=[];for(let e=1;e<=t;e++)this.rows.push(e);return this.rows}incrementChar(e){let t=this.columnString[e];t?"Z"!==t?this.columnString[e]=String.fromCharCode(this.columnString[e].charCodeAt(0)+1):(this.columnString[e]="A",e?this.incrementChar(e-1):this.columnString.push("A")):this.columnString.push("A")}setRowCount(e){this.rowCount=e}setColumnCount(e){this.columnCount=e}}class xe{constructor(e){return this._sheet=e,new Proxy(this,{get:function(e,t,o){return void 0!==e[t]?e[t]:e._sheet.table.componentFunctionBinder.handle("sheet",e._sheet,t)}})}getTitle(){return this._sheet.title}getKey(){return this._sheet.key}getDefinition(){return this._sheet.getDefinition()}getData(){return this._sheet.getData()}setData(e){return this._sheet.setData(e)}clear(){return this._sheet.clear()}remove(){return this._sheet.remove()}active(){return this._sheet.active()}setTitle(e){return this._sheet.setTitle(e)}setRows(e){return this._sheet.setRows(e)}setColumns(e){return this._sheet.setColumns(e)}}class Ae extends n{constructor(e,t){super(e.table),this.spreadsheetManager=e,this.definition=t,this.title=this.definition.title||"",this.key=this.definition.key||this.definition.title,this.rowCount=this.definition.rows,this.columnCount=this.definition.columns,this.data=this.definition.data||[],this.element=null,this.isActive=!1,this.grid=new Ce(this.columnCount,this.rowCount),this.defaultColumnDefinition={width:100,headerHozAlign:"center",headerSort:!1},this.columnDefinition=Object.assign(this.defaultColumnDefinition,this.options("spreadsheetColumnDefinition")),this.columnDefs=[],this.rowDefs=[],this.columnFields=[],this.columns=[],this.rows=[],this.scrollTop=null,this.scrollLeft=null,this.initialize(),this.dispatchExternal("sheetAdded",this.getComponent())}initialize(){this.initializeElement(),this.initializeColumns(),this.initializeRows()}reinitialize(){this.initializeColumns(),this.initializeRows()}initializeElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tab"),this.element.innerText=this.title,this.element.addEventListener("click",(()=>{this.spreadsheetManager.loadSheet(this)}))}initializeColumns(){this.grid.setColumnCount(this.columnCount),this.columnFields=this.grid.genColumns(this.data),this.columnDefs=[],this.columnFields.forEach((e=>{var t=Object.assign({},this.columnDefinition);t.field=e,t.title=e,this.columnDefs.push(t)}))}initializeRows(){var e;this.grid.setRowCount(this.rowCount),e=this.grid.genRows(this.data),this.rowDefs=[],e.forEach(((e,t)=>{var o={_id:e},n=this.data[t];n&&n.forEach(((e,t)=>{var n=this.columnFields[t];n&&(o[n]=e)})),this.rowDefs.push(o)}))}unload(){this.isActive=!1,this.scrollTop=this.table.rowManager.scrollTop,this.scrollLeft=this.table.rowManager.scrollLeft,this.data=this.getData(!0),this.element.classList.remove("tabulator-spreadsheet-tab-active")}load(){var e=!this.isActive;this.isActive=!0,this.table.blockRedraw(),this.table.setData([]),this.table.setColumns(this.columnDefs),this.table.setData(this.rowDefs),this.table.restoreRedraw(),e&&null!==this.scrollTop&&(this.table.rowManager.element.scrollLeft=this.scrollLeft,this.table.rowManager.element.scrollTop=this.scrollTop),this.element.classList.add("tabulator-spreadsheet-tab-active"),this.dispatchExternal("sheetLoaded",this.getComponent())}getComponent(){return new xe(this)}getDefinition(){return{title:this.title,key:this.key,rows:this.rowCount,columns:this.columnCount,data:this.getData()}}getData(e){var t,o,n,r=[];return this.rowDefs.forEach((e=>{var t=[];this.columnFields.forEach((o=>{t.push(e[o])})),r.push(t)})),e||this.options("spreadsheetOutputFull")||(t=r.map((e=>e.findLastIndex((e=>void 0!==e))+1)),o=Math.max(...t),n=t.findLastIndex((e=>e>0))+1,r=(r=r.slice(0,n)).map((e=>e.slice(0,o)))),r}setData(e){this.data=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}clear(){this.setData([])}setTitle(e){this.title=e,this.element.innerText=e,this.dispatchExternal("sheetUpdated",this.getComponent())}setRows(e){this.rowCount=e,this.initializeRows(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}setColumns(e){this.columnCount=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}remove(){this.spreadsheetManager.removeSheet(this)}destroy(){this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispatchExternal("sheetRemoved",this.getComponent())}active(){this.spreadsheetManager.loadSheet(this)}}var Ee={integer:function(e,t,o){return""===t||null==t||(t=Number(t),!isNaN(t)&&isFinite(t)&&Math.floor(t)===t)},float:function(e,t,o){return""===t||null==t||(t=Number(t),!isNaN(t)&&isFinite(t)&&t%1!=0)},numeric:function(e,t,o){return""===t||null==t||!isNaN(t)},string:function(e,t,o){return""===t||null==t||isNaN(t)},alphanumeric:function(e,t,o){return""===t||null==t||new RegExp(/^[a-z0-9]+$/i).test(t)},max:function(e,t,o){return""===t||null==t||parseFloat(t)<=o},min:function(e,t,o){return""===t||null==t||parseFloat(t)>=o},starts:function(e,t,o){return""===t||null==t||String(t).toLowerCase().startsWith(String(o).toLowerCase())},ends:function(e,t,o){return""===t||null==t||String(t).toLowerCase().endsWith(String(o).toLowerCase())},minLength:function(e,t,o){return""===t||null==t||String(t).length>=o},maxLength:function(e,t,o){return""===t||null==t||String(t).length<=o},in:function(e,t,o){return""===t||null==t||("string"==typeof o&&(o=o.split("|")),o.indexOf(t)>-1)},regex:function(e,t,o){return""===t||null==t||new RegExp(o).test(t)},unique:function(e,t,o){if(""===t||null==t)return!0;var n=!0,r=e.getData(),i=e.getColumn()._getSelf();return this.table.rowManager.rows.forEach((function(e){var o=e.getData();o!==r&&t==i.getFieldValue(o)&&(n=!1)})),n},required:function(e,t,o){return""!==t&&null!=t}};class Se extends a{static moduleName="validate";static validators=Ee;constructor(e){super(e),this.invalidCells=[],this.registerTableOption("validationMode","blocking"),this.registerColumnOption("validator"),this.registerTableFunction("getInvalidCells",this.getInvalidCells.bind(this)),this.registerTableFunction("clearCellValidation",this.userClearCellValidation.bind(this)),this.registerTableFunction("validate",this.userValidate.bind(this)),this.registerComponentFunction("cell","isValid",this.cellIsValid.bind(this)),this.registerComponentFunction("cell","clearValidation",this.clearValidation.bind(this)),this.registerComponentFunction("cell","validate",this.cellValidate.bind(this)),this.registerComponentFunction("column","validate",this.columnValidate.bind(this)),this.registerComponentFunction("row","validate",this.rowValidate.bind(this))}initialize(){this.subscribe("cell-delete",this.clearValidation.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("edit-success",this.editValidate.bind(this)),this.subscribe("edit-editor-clear",this.editorClear.bind(this)),this.subscribe("edit-edited-clear",this.editedClear.bind(this))}editValidate(e,t,o){var n="manual"===this.table.options.validationMode||this.validate(e.column.modules.validate,e,t);return!0!==n&&setTimeout((()=>{e.getElement().classList.add("tabulator-validation-fail"),this.dispatchExternal("validationFailed",e.getComponent(),t,n)})),n}editorClear(e,t){t&&e.column.modules.validate&&this.cellValidate(e),e.getElement().classList.remove("tabulator-validation-fail")}editedClear(e){e.modules.validate&&(e.modules.validate.invalid=!1)}cellIsValid(e){return e.modules.validate&&e.modules.validate.invalid||!0}cellValidate(e){return this.validate(e.column.modules.validate,e,e.getValue())}columnValidate(e){var t=[];return e.cells.forEach((e=>{!0!==this.cellValidate(e)&&t.push(e.getComponent())})),!t.length||t}rowValidate(e){var t=[];return e.cells.forEach((e=>{!0!==this.cellValidate(e)&&t.push(e.getComponent())})),!t.length||t}userClearCellValidation(e){e||(e=this.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach((e=>{this.clearValidation(e._getSelf())}))}userValidate(e){var t=[];return this.table.rowManager.rows.forEach((e=>{var o=(e=e.getComponent()).validate();!0!==o&&(t=t.concat(o))})),!t.length||t}initializeColumnCheck(e){void 0!==e.definition.validator&&this.initializeColumn(e)}initializeColumn(e){var t,o=this,n=[];e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach((e=>{(t=o._extractValidator(e))&&n.push(t)})):(t=this._extractValidator(e.definition.validator))&&n.push(t),e.modules.validate=!!n.length&&n)}_extractValidator(e){var t,o,n;switch(typeof e){case"string":return(n=e.indexOf(":"))>-1?(t=e.substring(0,n),o=e.substring(n+1)):t=e,this._buildValidator(t,o);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}}_buildValidator(e,t){var o="function"==typeof e?e:Se.validators[e];return o?{type:"function"==typeof e?"function":e,func:o,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)}validate(e,t,o){var n=this,r=[],i=this.invalidCells.indexOf(t);return e&&e.forEach((e=>{e.func.call(n,t.getComponent(),o,e.params)||r.push({type:e.type,parameters:e.params})})),t.modules.validate||(t.modules.validate={}),r.length?(t.modules.validate.invalid=r,"manual"!==this.table.options.validationMode&&t.getElement().classList.add("tabulator-validation-fail"),-1==i&&this.invalidCells.push(t)):(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),i>-1&&this.invalidCells.splice(i,1)),!r.length||r}getInvalidCells(){var e=[];return this.invalidCells.forEach((t=>{e.push(t.getComponent())})),e}clearValidation(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,(t=this.invalidCells.indexOf(e))>-1&&this.invalidCells.splice(t,1))}}var ke=Object.freeze({__proto__:null,AccessorModule:s,AjaxModule:g,ClipboardModule:w,ColumnCalcsModule:P,DataTreeModule:class extends a{static moduleName="dataTree";constructor(e){super(e),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.registerTableOption("dataTree",!1),this.registerTableOption("dataTreeFilter",!0),this.registerTableOption("dataTreeSort",!0),this.registerTableOption("dataTreeElementColumn",!1),this.registerTableOption("dataTreeBranchElement",!0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("dataTreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!1),this.registerTableOption("dataTreeExpandElement",!1),this.registerTableOption("dataTreeStartExpanded",!1),this.registerTableOption("dataTreeChildColumnCalcs",!1),this.registerTableOption("dataTreeSelectPropagate",!1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this)),this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.registerComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.registerComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.registerComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}initialize(){if(this.table.options.dataTree){var e=null,t=this.table.options;switch(this.field=t.dataTreeChildField,this.indent=t.dataTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"),t.dataTreeBranchElement?!0===t.dataTreeBranchElement?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):"string"==typeof t.dataTreeBranchElement?((e=document.createElement("div")).innerHTML=t.dataTreeBranchElement,this.branchEl=e.firstChild):this.branchEl=t.dataTreeBranchElement:(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch-empty")),t.dataTreeCollapseElement?"string"==typeof t.dataTreeCollapseElement?((e=document.createElement("div")).innerHTML=t.dataTreeCollapseElement,this.collapseEl=e.firstChild):this.collapseEl=t.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="
"),t.dataTreeExpandElement?"string"==typeof t.dataTreeExpandElement?((e=document.createElement("div")).innerHTML=t.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=t.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="
"),typeof t.dataTreeStartExpanded){case"boolean":this.startOpen=function(e,o){return t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpanded;break;default:this.startOpen=function(e,o){return t.dataTreeStartExpanded[o]}}this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-updated",this.cellValueChanged.bind(this)),this.subscribe("edit-cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-rows",this.columnMoving.bind(this)),this.subscribe("table-built",this.initializeElementField.bind(this)),this.subscribe("table-redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),30)}}tableRedrawing(e){e&&this.table.rowManager.getRows().forEach((e=>{this.reinitializeRowChildren(e)}))}initializeElementField(){var e=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.options.dataTreeElementColumn||!!e&&e.field}getRowChildren(e){return this.getTreeChildren(e,!0)}columnMoving(){var e=[];return this.table.rowManager.rows.forEach((t=>{e=e.concat(this.getTreeChildren(t,!1,!0))})),e}rowDataChanged(e,t,o){this.redrawNeeded(o)&&(this.initializeRow(e),t&&(this.layoutRow(e),this.refreshData(!0)))}cellValueChanged(e){e.column.getField()===this.elementField&&this.layoutRow(e.row)}initializeRow(e){var t=e.getData()[this.field],o=Array.isArray(t),n=o||!o&&"object"==typeof t&&null!==t;!n&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!n&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:!!n&&(e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0)),controlEl:!(!e.modules.dataTree||!n)&&e.modules.dataTree.controlEl,branchEl:!(!e.modules.dataTree||!n)&&e.modules.dataTree.branchEl,parent:!!e.modules.dataTree&&e.modules.dataTree.parent,children:n}}reinitializeRowChildren(e){this.getTreeChildren(e,!1,!0).forEach((function(e){e.reinitialize(!0)}))}layoutRow(e){var t=(this.elementField?e.getCell(this.elementField):e.getCells()[0]).getElement(),o=e.modules.dataTree;o.branchEl&&(o.branchEl.parentNode&&o.branchEl.parentNode.removeChild(o.branchEl),o.branchEl=!1),o.controlEl&&(o.controlEl.parentNode&&o.controlEl.parentNode.removeChild(o.controlEl),o.controlEl=!1),this.generateControlElement(e,t),e.getElement().classList.add("tabulator-tree-level-"+o.index),o.index&&(this.branchEl?(o.branchEl=this.branchEl.cloneNode(!0),t.insertBefore(o.branchEl,t.firstChild),this.table.rtl?o.branchEl.style.marginRight=(o.branchEl.offsetWidth+o.branchEl.style.marginLeft)*(o.index-1)+o.index*this.indent+"px":o.branchEl.style.marginLeft=(o.branchEl.offsetWidth+o.branchEl.style.marginRight)*(o.index-1)+o.index*this.indent+"px"):this.table.rtl?t.style.paddingRight=parseInt(window.getComputedStyle(t,null).getPropertyValue("padding-right"))+o.index*this.indent+"px":t.style.paddingLeft=parseInt(window.getComputedStyle(t,null).getPropertyValue("padding-left"))+o.index*this.indent+"px")}generateControlElement(e,t){var o=e.modules.dataTree,n=o.controlEl;t=t||e.getCells()[0].getElement(),!1!==o.children&&(o.open?(o.controlEl=this.collapseEl.cloneNode(!0),o.controlEl.addEventListener("click",(t=>{t.stopPropagation(),this.collapseRow(e)}))):(o.controlEl=this.expandEl.cloneNode(!0),o.controlEl.addEventListener("click",(t=>{t.stopPropagation(),this.expandRow(e)}))),o.controlEl.addEventListener("mousedown",(e=>{e.stopPropagation()})),n&&n.parentNode===t?n.parentNode.replaceChild(o.controlEl,n):t.insertBefore(o.controlEl,t.firstChild))}getRows(e){var t=[];return e.forEach(((e,o)=>{var n;t.push(e),e instanceof M&&(e.create(),(n=e.modules.dataTree).index||!1===n.children||this.getChildren(e,!1,!0).forEach((e=>{e.create(),t.push(e)})))})),t}getChildren(e,t,o){var n=e.modules.dataTree,r=[],i=[];return!1!==n.children&&(n.open||t)&&(Array.isArray(n.children)||(n.children=this.generateChildren(e)),r=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(n.children):n.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(r,o),r.forEach((e=>{i.push(e),this.getChildren(e,!1,!0).forEach((e=>{i.push(e)}))}))),i}generateChildren(e){var t=[],o=e.getData()[this.field];return Array.isArray(o)||(o=[o]),o.forEach((o=>{var n=new M(o||{},this.table.rowManager);n.create(),n.modules.dataTree.index=e.modules.dataTree.index+1,n.modules.dataTree.parent=e,n.modules.dataTree.children&&(n.modules.dataTree.open=this.startOpen(n.getComponent(),n.modules.dataTree.index)),t.push(n)})),t}expandRow(e,t){var o=e.modules.dataTree;!1!==o.children&&(o.open=!0,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowExpanded",e.getComponent(),e.modules.dataTree.index))}collapseRow(e){var t=e.modules.dataTree;!1!==t.children&&(t.open=!1,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowCollapsed",e.getComponent(),e.modules.dataTree.index))}toggleRow(e){var t=e.modules.dataTree;!1!==t.children&&(t.open?this.collapseRow(e):this.expandRow(e))}isRowExpanded(e){return e.modules.dataTree.open}getTreeParent(e){return!!e.modules.dataTree.parent&&e.modules.dataTree.parent.getComponent()}getTreeParentRoot(e){return e.modules.dataTree&&e.modules.dataTree.parent?this.getTreeParentRoot(e.modules.dataTree.parent):e}getFilteredTreeChildren(e){var t=e.modules.dataTree,o=[];return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),(this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(t.children):t.children).forEach((e=>{e instanceof M&&o.push(e)}))),o}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach((e=>{e instanceof M&&e.wipe()}))}rowDelete(e){var t,o=e.modules.dataTree.parent;o&&(!1!==(t=this.findChildIndex(e,o))&&o.data[this.field].splice(t,1),o.data[this.field].length||delete o.data[this.field],this.initializeRow(o),this.layoutRow(o)),this.refreshData(!0)}addTreeChildRow(e,t,o,n){var r=!1;"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),void 0!==n&&!1!==(r=this.findChildIndex(n,e))&&e.data[this.field].splice(o?r:r+1,0,t),!1===r&&(o?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.refreshData(!0)}findChildIndex(e,t){var o=!1;return"object"==typeof e?e instanceof M?o=e.data:e instanceof R?o=e._getSelf().data:"undefined"!=typeof HTMLElement&&e instanceof HTMLElement?t.modules.dataTree&&(o=t.modules.dataTree.children.find((t=>t instanceof M&&t.element===e)))&&(o=o.data):null===e&&(o=!1):o=void 0!==e&&t.data[this.field].find((t=>t.data[this.table.options.index]==e)),o&&(Array.isArray(t.data[this.field])&&(o=t.data[this.field].indexOf(o)),-1==o&&(o=!1)),o}getTreeChildren(e,t,o){var n=e.modules.dataTree,r=[];return n&&n.children&&(Array.isArray(n.children)||(n.children=this.generateChildren(e)),n.children.forEach((e=>{e instanceof M&&(r.push(t?e.getComponent():e),o&&this.getTreeChildren(e,t,o).forEach((e=>{r.push(e)})))}))),r}getChildField(){return this.field}redrawNeeded(e){return!!this.field&&void 0!==e[this.field]||!!this.elementField&&void 0!==e[this.elementField]}},DownloadModule:T,EditModule:L,ExportModule:B,FilterModule:V,FormatModule:G,FrozenColumnsModule:class extends a{static moduleName="frozenColumns";constructor(e){super(e),this.leftColumns=[],this.rightColumns=[],this.initializationMode="left",this.active=!1,this.blocked=!0,this.registerColumnOption("frozen")}reset(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.active=!1}initialize(){this.subscribe("cell-layout",this.layoutCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-width",this.layout.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("table-layout",this.layout.bind(this)),this.subscribe("columns-loading",this.reset.bind(this)),this.subscribe("column-add",this.reinitializeColumns.bind(this)),this.subscribe("column-deleted",this.reinitializeColumns.bind(this)),this.subscribe("column-hide",this.reinitializeColumns.bind(this)),this.subscribe("column-show",this.reinitializeColumns.bind(this)),this.subscribe("columns-loaded",this.reinitializeColumns.bind(this)),this.subscribe("table-redraw",this.layout.bind(this)),this.subscribe("layout-refreshing",this.blockLayout.bind(this)),this.subscribe("layout-refreshed",this.unblockLayout.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this))}blockLayout(){this.blocked=!0}unblockLayout(){this.blocked=!1}layoutCell(e){this.layoutElement(e.element,e.column)}reinitializeColumns(){this.reset(),this.table.columnManager.columnsByIndex.forEach((e=>{this.initializeColumn(e)})),this.layout()}initializeColumn(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,"left"==this.initializationMode?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")}frozenCheck(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen}layoutCalcRows(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow),this.table.modExists("groupRows")&&this.layoutGroupCalcs(this.table.modules.groupRows.getGroups()))}layoutGroupCalcs(e){e.forEach((e=>{e.calcs.top&&this.layoutRow(e.calcs.top),e.calcs.bottom&&this.layoutRow(e.calcs.bottom),e.groupList&&e.groupList.length&&this.layoutGroupCalcs(e.groupList)}))}layoutColumnPosition(e){var t=[],o=0,n=0;this.leftColumns.forEach(((n,r)=>{if(n.modules.frozen.marginValue=o,n.modules.frozen.margin=n.modules.frozen.marginValue+"px",n.visible&&(o+=n.getWidth()),r==this.leftColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup){var i=this.getColGroupParentElement(n);t.includes(i)||(this.layoutElement(i,n),t.push(i)),i.classList.toggle("tabulator-frozen-left",n.modules.frozen.edge&&"left"===n.modules.frozen.position),i.classList.toggle("tabulator-frozen-right",n.modules.frozen.edge&&"right"===n.modules.frozen.position)}else this.layoutElement(n.getElement(),n);e&&n.cells.forEach((e=>{this.layoutElement(e.getElement(!0),n)}))})),this.rightColumns.forEach(((t,o)=>{t.modules.frozen.marginValue=n,t.modules.frozen.margin=t.modules.frozen.marginValue+"px",t.visible&&(n+=t.getWidth()),o==this.rightColumns.length-1?t.modules.frozen.edge=!0:t.modules.frozen.edge=!1,t.parent.isGroup?this.layoutElement(this.getColGroupParentElement(t),t):this.layoutElement(t.getElement(),t),e&&t.cells.forEach((e=>{this.layoutElement(e.getElement(!0),t)}))}))}getColGroupParentElement(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()}layout(){this.active&&!this.blocked&&(this.layoutColumnPosition(),this.reinitializeRows(),this.layoutCalcRows())}reinitializeRows(){var e=this.table.rowManager.getVisibleRows(!0);this.table.rowManager.getRows().filter((t=>!e.includes(t))).forEach((e=>{e.deinitialize()})),e.forEach((e=>{"row"===e.type&&this.layoutRow(e)}))}layoutRow(e){"fitDataFill"===this.table.options.layout&&this.rightColumns.length&&(this.table.rowManager.getTableElement().style.minWidth="calc(100% - "+this.rightMargin+")"),this.leftColumns.forEach((t=>{var o=e.getCell(t);o&&this.layoutElement(o.getElement(!0),t)})),this.rightColumns.forEach((t=>{var o=e.getCell(t);o&&this.layoutElement(o.getElement(!0),t)}))}layoutElement(e,t){var o;t.modules.frozen&&e&&(e.style.position="sticky",o=this.table.rtl?"left"===t.modules.frozen.position?"right":"left":t.modules.frozen.position,e.style[o]=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),e.classList.toggle("tabulator-frozen-left",t.modules.frozen.edge&&"left"===t.modules.frozen.position),e.classList.toggle("tabulator-frozen-right",t.modules.frozen.edge&&"right"===t.modules.frozen.position))}adjustForScrollbar(e){this.rightColumns.length&&(this.table.columnManager.getContentsElement().style.width="calc(100% - "+e+"px)")}getFrozenColumns(){return this.leftColumns.concat(this.rightColumns)}_calcSpace(e,t){var o=0;for(let n=0;n{this.initializeRow(e)}))}initializeRow(e){var t=this.table.options.frozenRows,o=typeof t;"number"===o?e.getPosition()&&e.getPosition()+this.rows.length<=t&&this.freezeRow(e):"function"===o?t.call(this.table,e.getComponent())&&this.freezeRow(e):Array.isArray(t)&&t.includes(e.data[this.options("frozenRowsField")])&&this.freezeRow(e)}isRowFrozen(e){return this.rows.indexOf(e)>-1}isFrozen(){return!!this.rows.length}visibleRows(e,t){return this.rows.forEach((e=>{t.push(e)})),t}getRows(e){var t=e.slice(0);return this.rows.forEach((function(e){var o=t.indexOf(e);o>-1&&t.splice(o,1)})),t}freezeRow(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.rows.push(e),this.refreshData(!1,"display"),this.table.rowManager.adjustTableSize(),this.styleRows())}unfreezeRow(e){e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.refreshData(!1,"display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")}detachRow(e){var t=this.rows.indexOf(e);if(t>-1){var o=e.getElement();o.parentNode&&o.parentNode.removeChild(o),this.rows.splice(t,1)}}styleRows(e){this.rows.forEach(((e,t)=>{this.table.rowManager.styleRow(e,t)}))}},GroupRowsModule:class extends a{static moduleName="groupRows";constructor(e){super(e),this.groupIDLookups=!1,this.startOpen=[function(){return!1}],this.headerGenerator=[function(){return""}],this.groupList=[],this.allowedValues=!1,this.groups={},this.displayHandler=this.getRows.bind(this),this.blockRedraw=!1,this.registerTableOption("groupBy",!1),this.registerTableOption("groupStartOpen",!0),this.registerTableOption("groupValues",!1),this.registerTableOption("groupUpdateOnCellEdit",!1),this.registerTableOption("groupHeader",!1),this.registerTableOption("groupHeaderPrint",null),this.registerTableOption("groupHeaderClipboard",null),this.registerTableOption("groupHeaderHtmlOutput",null),this.registerTableOption("groupHeaderDownload",null),this.registerTableOption("groupToggleElement","arrow"),this.registerTableOption("groupClosedShowCalcs",!1),this.registerTableFunction("setGroupBy",this.setGroupBy.bind(this)),this.registerTableFunction("setGroupValues",this.setGroupValues.bind(this)),this.registerTableFunction("setGroupStartOpen",this.setGroupStartOpen.bind(this)),this.registerTableFunction("setGroupHeader",this.setGroupHeader.bind(this)),this.registerTableFunction("getGroups",this.userGetGroups.bind(this)),this.registerTableFunction("getGroupedData",this.userGetGroupedData.bind(this)),this.registerComponentFunction("row","getGroup",this.rowGetGroup.bind(this))}initialize(){this.subscribe("table-destroy",this._blockRedrawing.bind(this)),this.subscribe("rows-wipe",this._blockRedrawing.bind(this)),this.subscribe("rows-wiped",this._restore_redrawing.bind(this)),this.table.options.groupBy&&(this.table.options.groupUpdateOnCellEdit&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("row-data-changed",this.reassignRowToGroup.bind(this),0)),this.subscribe("table-built",this.configureGroupSetup.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHeaders.bind(this)),this.subscribe("rows-wipe",this.wipe.bind(this)),this.subscribe("rows-added",this.rowsUpdated.bind(this)),this.subscribe("row-moving",this.rowMoving.bind(this)),this.subscribe("row-adding-index",this.rowAddingIndex.bind(this)),this.subscribe("rows-sample",this.rowSample.bind(this)),this.subscribe("render-virtual-fill",this.virtualRenderFill.bind(this)),this.registerDisplayHandler(this.displayHandler,20),this.initialized=!0)}_blockRedrawing(){this.blockRedraw=!0}_restore_redrawing(){this.blockRedraw=!1}configureGroupSetup(){if(this.table.options.groupBy){var e=this.table.options.groupBy,t=this.table.options.groupStartOpen,o=this.table.options.groupHeader;this.allowedValues=this.table.options.groupValues,Array.isArray(e)&&Array.isArray(o)&&e.length>o.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),this.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],this.langBind("groups|item",((e,t)=>{this.headerGenerator[0]=(o,n,r)=>(void 0===o?"":o)+"("+n+" "+(1===n?e:t.groups.items)+")"})),this.groupIDLookups=[],e?this.table.modExists("columnCalcs")&&"table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs():this.table.modExists("columnCalcs")&&"group"!=this.table.options.columnCalcs&&this.table.columnManager.getRealColumns().forEach((e=>{e.definition.topCalc&&this.table.modules.columnCalcs.initializeTopRow(),e.definition.bottomCalc&&this.table.modules.columnCalcs.initializeBottomRow()})),Array.isArray(e)||(e=[e]),e.forEach(((e,t)=>{var o,n;o="function"==typeof e?e:(n=this.table.columnManager.getColumnByField(e))?function(e){return n.getFieldValue(e)}:function(t){return t[e]},this.groupIDLookups.push({field:"function"!=typeof e&&e,func:o,values:!!this.allowedValues&&this.allowedValues[t]})})),t&&(Array.isArray(t)||(t=[t]),t.forEach((e=>{})),this.startOpen=t),o&&(this.headerGenerator=Array.isArray(o)?o:[o])}else this.groupList=[],this.groups={}}rowSample(e,t){if(this.table.options.groupBy){var o=this.getGroups(!1)[0];t.push(o.getRows(!1)[0])}return t}virtualRenderFill(){var e=this.table.rowManager.tableElement,t=this.table.rowManager.getVisibleRows();if(!this.table.options.groupBy)return t;t=t.filter((e=>"group"!==e.type)),e.style.minWidth=t.length?"":this.table.columnManager.getWidth()+"px"}rowAddingIndex(e,t,o){if(this.table.options.groupBy){this.assignRowToGroup(e);var n=e.modules.group.rows;return n.length>1&&(!t||t&&-1==n.indexOf(t)?o?n[0]!==e&&(t=n[0],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!o)):n[n.length-1]!==e&&(t=n[n.length-1],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!o)):this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!o)),t}}trackChanges(){this.dispatch("group-changed")}setGroupBy(e){this.table.options.groupBy=e,this.initialized||this.initialize(),this.configureGroupSetup(),!e&&this.table.modExists("columnCalcs")&&!0===this.table.options.columnCalcs&&this.table.modules.columnCalcs.reinitializeCalcs(),this.refreshData(),this.trackChanges()}setGroupValues(e){this.table.options.groupValues=e,this.configureGroupSetup(),this.refreshData(),this.trackChanges()}setGroupStartOpen(e){this.table.options.groupStartOpen=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}setGroupHeader(e){this.table.options.groupHeader=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}userGetGroups(e){return this.getGroups(!0)}userGetGroupedData(){return this.table.options.groupBy?this.getGroupedData():this.getData()}rowGetGroup(e){return!!e.modules.group&&e.modules.group.getComponent()}rowMoving(e,t,o){if(this.table.options.groupBy){!o&&t instanceof U&&(t=this.table.rowManager.prevDisplayRow(e)||t);var n=t instanceof U?t:t.modules.group,r=e instanceof U?e:e.modules.group;n===r?this.table.rowManager.moveRowInArray(n.rows,e,t,o):(r&&r.removeRow(e),n.insertRow(e,t,o))}}rowDeleting(e){this.table.options.groupBy&&e.modules.group&&e.modules.group.removeRow(e)}rowsUpdated(e){this.table.options.groupBy&&this.updateGroupRows(!0)}cellUpdated(e){this.table.options.groupBy&&this.reassignRowToGroup(e.row)}getRows(e){return this.table.options.groupBy&&this.groupIDLookups.length?(this.dispatchExternal("dataGrouping"),this.generateGroups(e),this.subscribedExternal("dataGrouped")&&this.dispatchExternal("dataGrouped",this.getGroups(!0)),this.updateGroupRows()):e.slice(0)}getGroups(e){var t=[];return this.groupList.forEach((function(o){t.push(e?o.getComponent():o)})),t}getChildGroups(e){var t=[];return e||(e=this),e.groupList.forEach((e=>{e.groupList.length?t=t.concat(this.getChildGroups(e)):t.push(e)})),t}wipe(){this.table.options.groupBy&&(this.groupList.forEach((function(e){e.wipe()})),this.groupList=[],this.groups={})}pullGroupListData(e){var t=[];return e.forEach((e=>{var o={level:0,rowCount:0,headerContent:""},n=[];e.hasSubGroups?(n=this.pullGroupListData(e.groupList),o.level=e.level,o.rowCount=n.length-e.groupList.length,o.headerContent=e.generator(e.key,o.rowCount,e.rows,e),t.push(o),t=t.concat(n)):(o.level=e.level,o.headerContent=e.generator(e.key,e.rows.length,e.rows,e),o.rowCount=e.getRows().length,t.push(o),e.getRows().forEach((e=>{t.push(e.getData("data"))})))})),t}getGroupedData(){return this.pullGroupListData(this.groupList)}getRowGroup(e){var t=!1;return this.options("dataTree")&&(e=this.table.modules.dataTree.getTreeParentRoot(e)),this.groupList.forEach((o=>{var n=o.getRowGroup(e);n&&(t=n)})),t}countGroups(){return this.groupList.length}generateGroups(e){var t=this.groups;this.groups={},this.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach((e=>{this.createGroup(e,0,t)})),e.forEach((e=>{this.assignRowToExistingGroup(e,t)}))):e.forEach((e=>{this.assignRowToGroup(e,t)})),Object.values(t).forEach((e=>{e.wipe(!0)}))}createGroup(e,t,o){var n,r=t+"_"+e;o=o||[],n=new U(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],o[r]),this.groups[r]=n,this.groupList.push(n)}assignRowToExistingGroup(e,t){var o="0_"+this.groupIDLookups[0].func(e.getData());this.groups[o]&&this.groups[o].addRow(e)}assignRowToGroup(e,t){var o=this.groupIDLookups[0].func(e.getData()),n=!this.groups["0_"+o];return n&&this.createGroup(o,0,t),this.groups["0_"+o].addRow(e),!n}reassignRowToGroup(e){if("row"===e.type){var t=e.modules.group,o=t.getPath(),n=this.getExpectedPath(e);o.length==n.length&&o.every(((e,t)=>e===n[t]))||(t.removeRow(e),this.assignRowToGroup(e,this.groups),this.refreshData(!0))}}getExpectedPath(e){var t=[],o=e.getData();return this.groupIDLookups.forEach((e=>{t.push(e.func(o))})),t}updateGroupRows(e){var t=[];return this.blockRedraw||(this.groupList.forEach((e=>{t=t.concat(e.getHeadersAndRows())})),e&&this.refreshData(!0)),t}scrollHeaders(e){this.table.options.groupBy&&("virtual"===this.table.options.renderHorizontal&&(e-=this.table.columnManager.renderer.vDomPadLeft),e+="px",this.groupList.forEach((t=>{t.scrollHeader(e)})))}removeGroup(e){var t,o=e.level+"_"+e.key;this.groups[o]&&(delete this.groups[o],(t=this.groupList.indexOf(e))>-1&&this.groupList.splice(t,1))}checkBasicModeGroupHeaderWidth(){var e=this.table.rowManager.tableElement,t=!0;this.table.rowManager.getDisplayRows().forEach(((o,n)=>{this.table.rowManager.styleRow(o,n),e.appendChild(o.getElement()),o.initialize(!0),"group"!==o.type&&(t=!1)})),e.style.minWidth=t?this.table.columnManager.getWidth()+"px":""}},HistoryModule:Q,HtmlTableImportModule:class extends a{static moduleName="htmlTableImport";constructor(e){super(e),this.fieldIndex=[],this.hasIndex=!1}initialize(){this.tableElementCheck()}tableElementCheck(){this.table.originalElement&&"TABLE"===this.table.originalElement.tagName&&(this.table.originalElement.childNodes.length?this.parseTable():console.warn("Unable to parse data from empty table tag, Tabulator should be initialized on a div tag unless importing data from a table element."))}parseTable(){var e=this.table.originalElement,t=this.table.options,o=e.getElementsByTagName("th"),n=e.getElementsByTagName("tbody")[0],r=[];this.hasIndex=!1,this.dispatchExternal("htmlImporting"),n=n?n.getElementsByTagName("tr"):[],this._extractOptions(e,t),o.length?this._extractHeaders(o,n):this._generateBlankHeaders(o,n);for(var i=0;i{i[e.toLowerCase()]=e})),n){var l,s=n[a];s&&"object"==typeof s&&s.name&&0===s.name.indexOf("tabulator-")&&(l=s.name.replace("tabulator-",""),void 0!==i[l]&&(t[i[l]]=this._attribValue(s.value)))}}_attribValue(e){return"true"===e||"false"!==e&&e}_findCol(e){return this.table.options.columns.find((t=>t.title===e))||!1}_extractHeaders(e,t){for(var o=0;o{for(let t in e)e[t]=null}))}cellContentsSelectionFixer(e,t){var o;if(!this.table.modExists("edit")||this.table.modules.edit.currentCell!==t){e.preventDefault();try{document.selection?((o=document.body.createTextRange()).moveToElementText(t.getElement()),o.select()):window.getSelection&&((o=document.createRange()).selectNode(t.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(o))}catch(e){}}}initializeExternalEvents(){for(let e in this.eventMap)this.subscriptionChangeExternal(e,this.subscriptionChanged.bind(this,e))}subscriptionChanged(e,t){t?this.subscribers[e]||(this.eventMap[e].includes("-")?(this.subscribers[e]=this.handle.bind(this,e),this.subscribe(this.eventMap[e],this.subscribers[e])):this.subscribeTouchEvents(e)):this.eventMap[e].includes("-")?!this.subscribers[e]||this.columnSubscribers[e]||this.subscribedExternal(e)||(this.unsubscribe(this.eventMap[e],this.subscribers[e]),delete this.subscribers[e]):this.unsubscribeTouchEvents(e)}subscribeTouchEvents(e){var t=this.eventMap[e];this.touchSubscribers[t+"-touchstart"]||(this.touchSubscribers[t+"-touchstart"]=this.handleTouch.bind(this,t,"start"),this.touchSubscribers[t+"-touchend"]=this.handleTouch.bind(this,t,"end"),this.subscribe(t+"-touchstart",this.touchSubscribers[t+"-touchstart"]),this.subscribe(t+"-touchend",this.touchSubscribers[t+"-touchend"])),this.subscribers[e]=!0}unsubscribeTouchEvents(e){var t=!0,o=this.eventMap[e];if(this.subscribers[e]&&!this.subscribedExternal(e)){delete this.subscribers[e];for(let e in this.eventMap)this.eventMap[e]===o&&this.subscribers[e]&&(t=!1);t&&(this.unsubscribe(o+"-touchstart",this.touchSubscribers[o+"-touchstart"]),this.unsubscribe(o+"-touchend",this.touchSubscribers[o+"-touchend"]),delete this.touchSubscribers[o+"-touchstart"],delete this.touchSubscribers[o+"-touchend"])}}initializeColumn(e){var t=e.definition;for(let o in this.eventMap)t[o]&&(this.subscriptionChanged(o,!0),this.columnSubscribers[o]||(this.columnSubscribers[o]=[]),this.columnSubscribers[o].push(e))}handle(e,t,o){this.dispatchEvent(e,t,o)}handleTouch(e,t,o,n){var r=this.touchWatchers[e];switch("column"===e&&(e="header"),t){case"start":r.tap=!0,clearTimeout(r.tapHold),r.tapHold=setTimeout((()=>{clearTimeout(r.tapHold),r.tapHold=null,r.tap=null,clearTimeout(r.tapDbl),r.tapDbl=null,this.dispatchEvent(e+"TapHold",o,n)}),1e3);break;case"end":r.tap&&(r.tap=null,this.dispatchEvent(e+"Tap",o,n)),r.tapDbl?(clearTimeout(r.tapDbl),r.tapDbl=null,this.dispatchEvent(e+"DblTap",o,n)):r.tapDbl=setTimeout((()=>{clearTimeout(r.tapDbl),r.tapDbl=null}),300),clearTimeout(r.tapHold),r.tapHold=null}}dispatchEvent(e,t,o){var n,r=o.getComponent();this.columnSubscribers[e]&&(o instanceof A?n=o.column.definition[e]:o instanceof k&&(n=o.definition[e]),n&&n(t,r)),this.dispatchExternal(e,t,r)}},KeybindingsModule:oe,MenuModule:class extends a{static moduleName="menu";constructor(e){super(e),this.menuContainer=null,this.nestedMenuBlock=!1,this.currentComponent=null,this.rootPopup=null,this.columnSubscribers={},this.registerTableOption("rowContextMenu",!1),this.registerTableOption("rowClickMenu",!1),this.registerTableOption("rowDblClickMenu",!1),this.registerTableOption("groupContextMenu",!1),this.registerTableOption("groupClickMenu",!1),this.registerTableOption("groupDblClickMenu",!1),this.registerColumnOption("headerContextMenu"),this.registerColumnOption("headerClickMenu"),this.registerColumnOption("headerDblClickMenu"),this.registerColumnOption("headerMenu"),this.registerColumnOption("headerMenuIcon"),this.registerColumnOption("contextMenu"),this.registerColumnOption("clickMenu"),this.registerColumnOption("dblClickMenu")}initialize(){this.deprecatedOptionsCheck(),this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeRowWatchers(){this.table.options.rowContextMenu&&(this.subscribe("row-contextmenu",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu)),this.table.on("rowTapHold",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu))),this.table.options.rowClickMenu&&this.subscribe("row-click",this.loadMenuEvent.bind(this,this.table.options.rowClickMenu)),this.table.options.rowDblClickMenu&&this.subscribe("row-dblclick",this.loadMenuEvent.bind(this,this.table.options.rowDblClickMenu))}initializeGroupWatchers(){this.table.options.groupContextMenu&&(this.subscribe("group-contextmenu",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu)),this.table.on("groupTapHold",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu))),this.table.options.groupClickMenu&&this.subscribe("group-click",this.loadMenuEvent.bind(this,this.table.options.groupClickMenu)),this.table.options.groupDblClickMenu&&this.subscribe("group-dblclick",this.loadMenuEvent.bind(this,this.table.options.groupDblClickMenu))}initializeColumn(e){var t=e.definition;t.headerContextMenu&&!this.columnSubscribers.headerContextMenu&&(this.columnSubscribers.headerContextMenu=this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextMenu),this.table.on("headerTapHold",this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"))),t.headerClickMenu&&!this.columnSubscribers.headerClickMenu&&(this.columnSubscribers.headerClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerClickMenu"),this.subscribe("column-click",this.columnSubscribers.headerClickMenu)),t.headerDblClickMenu&&!this.columnSubscribers.headerDblClickMenu&&(this.columnSubscribers.headerDblClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerDblClickMenu"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickMenu)),t.headerMenu&&this.initializeColumnHeaderMenu(e),t.contextMenu&&!this.columnSubscribers.contextMenu&&(this.columnSubscribers.contextMenu=this.loadMenuTableCellEvent.bind(this,"contextMenu"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextMenu),this.table.on("cellTapHold",this.loadMenuTableCellEvent.bind(this,"contextMenu"))),t.clickMenu&&!this.columnSubscribers.clickMenu&&(this.columnSubscribers.clickMenu=this.loadMenuTableCellEvent.bind(this,"clickMenu"),this.subscribe("cell-click",this.columnSubscribers.clickMenu)),t.dblClickMenu&&!this.columnSubscribers.dblClickMenu&&(this.columnSubscribers.dblClickMenu=this.loadMenuTableCellEvent.bind(this,"dblClickMenu"),this.subscribe("cell-dblclick",this.columnSubscribers.dblClickMenu))}initializeColumnHeaderMenu(e){var t,o=e.definition.headerMenuIcon;(t=document.createElement("span")).classList.add("tabulator-header-popup-button"),o?("function"==typeof o&&(o=o(e.getComponent())),o instanceof HTMLElement?t.appendChild(o):t.innerHTML=o):t.innerHTML="⋮",t.addEventListener("click",(t=>{t.stopPropagation(),t.preventDefault(),this.loadMenuEvent(e.definition.headerMenu,t,e)})),e.titleElement.insertBefore(t,e.titleElement.firstChild)}loadMenuTableCellEvent(e,t,o){o._cell&&(o=o._cell),o.column.definition[e]&&this.loadMenuEvent(o.column.definition[e],t,o)}loadMenuTableColumnEvent(e,t,o){o._column&&(o=o._column),o.definition[e]&&this.loadMenuEvent(o.definition[e],t,o)}loadMenuEvent(e,t,o){o._group?o=o._group:o._row&&(o=o._row),e="function"==typeof e?e.call(this.table,t,o.getComponent()):e,this.loadMenu(t,o,e)}loadMenu(e,t,o,n,r){var i,a=!(e instanceof MouseEvent),l=document.createElement("div");if(l.classList.add("tabulator-menu"),a||e.preventDefault(),o&&o.length){if(n)i=r.child(l);else{if(this.nestedMenuBlock){if(this.rootPopup)return}else this.nestedMenuBlock=setTimeout((()=>{this.nestedMenuBlock=!1}),100);this.rootPopup&&this.rootPopup.hide(),this.rootPopup=i=this.popup(l)}o.forEach((e=>{var o=document.createElement("div"),n=e.label,r=e.disabled;e.separator?o.classList.add("tabulator-menu-separator"):(o.classList.add("tabulator-menu-item"),"function"==typeof n&&(n=n.call(this.table,t.getComponent())),n instanceof Node?o.appendChild(n):o.innerHTML=n,"function"==typeof r&&(r=r.call(this.table,t.getComponent())),r?(o.classList.add("tabulator-menu-item-disabled"),o.addEventListener("click",(e=>{e.stopPropagation()}))):e.menu&&e.menu.length?o.addEventListener("click",(n=>{n.stopPropagation(),this.loadMenu(n,t,e.menu,o,i)})):e.action&&o.addEventListener("click",(o=>{e.action(o,t.getComponent())})),e.menu&&e.menu.length&&o.classList.add("tabulator-menu-item-submenu")),l.appendChild(o)})),l.addEventListener("click",(e=>{this.rootPopup&&this.rootPopup.hide()})),i.show(n||e),i===this.rootPopup&&(this.rootPopup.hideOnBlur((()=>{this.rootPopup=null,this.currentComponent&&(this.dispatch("menu-closed",o,i),this.dispatchExternal("menuClosed",this.currentComponent.getComponent()),this.currentComponent=null)})),this.currentComponent=t,this.dispatch("menu-opened",o,i),this.dispatchExternal("menuOpened",t.getComponent()))}}},MoveColumnsModule:class extends a{static moduleName="moveColumn";constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.registerTableOption("movableColumns",!1)}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e}initialize(){this.table.options.movableColumns&&(this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("alert-show",this.abortMove.bind(this)))}abortMove(){clearTimeout(this.checkTimeout)}initializeColumn(e){var t,o=this,n={};e.modules.frozen||e.isGroup||e.isRowHeader||(t=e.getElement(),n.mousemove=function(n){e.parent===o.moving.parent&&((o.touchMove?n.touches[0].pageX:n.pageX)-r.elOffset(t).left+o.table.columnManager.contentsElement.scrollLeft>e.getWidth()/2?o.toCol===e&&o.toColAfter||(t.parentNode.insertBefore(o.placeholderElement,t.nextSibling),o.moveColumn(e,!0)):(o.toCol!==e||o.toColAfter)&&(t.parentNode.insertBefore(o.placeholderElement,t),o.moveColumn(e,!1)))}.bind(o),t.addEventListener("mousedown",(function(t){o.touchMove=!1,1===t.which&&(o.checkTimeout=setTimeout((function(){o.startMove(t,e)}),o.checkPeriod))})),t.addEventListener("mouseup",(function(e){1===e.which&&o.checkTimeout&&clearTimeout(o.checkTimeout)})),o.bindTouchEvents(e)),e.modules.moveColumn=n}bindTouchEvents(e){var t,o,n,r,i,a,l=e.getElement(),s=!1;l.addEventListener("touchstart",(l=>{this.checkTimeout=setTimeout((()=>{this.touchMove=!0,t=e.nextColumn(),n=t?t.getWidth()/2:0,o=e.prevColumn(),r=o?o.getWidth()/2:0,i=0,a=0,s=!1,this.startMove(l,e)}),this.checkPeriod)}),{passive:!0}),l.addEventListener("touchmove",(l=>{var c,u;this.moving&&(this.moveHover(l),s||(s=l.touches[0].pageX),(c=l.touches[0].pageX-s)>0?t&&c-i>n&&(u=t)!==e&&(s=l.touches[0].pageX,u.getElement().parentNode.insertBefore(this.placeholderElement,u.getElement().nextSibling),this.moveColumn(u,!0)):o&&-c-a>r&&(u=o)!==e&&(s=l.touches[0].pageX,u.getElement().parentNode.insertBefore(this.placeholderElement,u.getElement()),this.moveColumn(u,!1)),u&&(t=u.nextColumn(),i=n,n=t?t.getWidth()/2:0,o=u.prevColumn(),a=r,r=o?o.getWidth()/2:0))}),{passive:!0}),l.addEventListener("touchend",(e=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&this.endMove(e)}))}startMove(e,t){var o=t.getElement(),n=this.table.columnManager.getContentsElement(),i=this.table.columnManager.getHeadersElement();this.table.modules.selectRange&&this.table.modules.selectRange.columnSelection&&this.table.modules.selectRange.mousedown&&"column"===this.table.modules.selectRange.selecting||(this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-r.elOffset(o).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",o.parentNode.insertBefore(this.placeholderElement,o),o.parentNode.removeChild(o),this.hoverElement=o.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),n.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom=n.clientHeight-i.offsetHeight+"px",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e),this.dispatch("column-moving",e,this.moving))}_bindMouseMove(){this.table.columnManager.columnsByIndex.forEach((function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)}))}_unbindMouseMove(){this.table.columnManager.columnsByIndex.forEach((function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)}))}moveColumn(e,t){var o=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach((function(e,t){var n=e.getElement(!0);n.parentNode&&o[t]&&n.parentNode.insertBefore(o[t].getElement(),n.nextSibling)})):e.getCells().forEach((function(e,t){var n=e.getElement(!0);n.parentNode&&o[t]&&n.parentNode.insertBefore(o[t].getElement(),n)}))}endMove(e){(1===e.which||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))}moveHover(e){var t,o=this.table.columnManager.getContentsElement(),n=o.scrollLeft,i=(this.touchMove?e.touches[0].pageX:e.pageX)-r.elOffset(o).left+n;this.hoverElement.style.left=i-this.startX+"px",i-n{t=Math.max(0,n-5),this.table.rowManager.getElement().scrollLeft=t,this.autoScrollTimeout=!1}),1))),n+o.clientWidth-i{t=Math.min(o.clientWidth,n+5),this.table.rowManager.getElement().scrollLeft=t,this.autoScrollTimeout=!1}),1)))}},MoveRowsModule:ie,MutatorModule:le,PageModule:ce,PersistenceModule:pe,PopupModule:class extends a{static moduleName="popup";constructor(e){super(e),this.columnSubscribers={},this.registerTableOption("rowContextPopup",!1),this.registerTableOption("rowClickPopup",!1),this.registerTableOption("rowDblClickPopup",!1),this.registerTableOption("groupContextPopup",!1),this.registerTableOption("groupClickPopup",!1),this.registerTableOption("groupDblClickPopup",!1),this.registerColumnOption("headerContextPopup"),this.registerColumnOption("headerClickPopup"),this.registerColumnOption("headerDblClickPopup"),this.registerColumnOption("headerPopup"),this.registerColumnOption("headerPopupIcon"),this.registerColumnOption("contextPopup"),this.registerColumnOption("clickPopup"),this.registerColumnOption("dblClickPopup"),this.registerComponentFunction("cell","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("column","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("row","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("group","popup",this._componentPopupCall.bind(this))}initialize(){this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}_componentPopupCall(e,t,o){this.loadPopupEvent(t,null,e,o)}initializeRowWatchers(){this.table.options.rowContextPopup&&(this.subscribe("row-contextmenu",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup)),this.table.on("rowTapHold",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup))),this.table.options.rowClickPopup&&this.subscribe("row-click",this.loadPopupEvent.bind(this,this.table.options.rowClickPopup)),this.table.options.rowDblClickPopup&&this.subscribe("row-dblclick",this.loadPopupEvent.bind(this,this.table.options.rowDblClickPopup))}initializeGroupWatchers(){this.table.options.groupContextPopup&&(this.subscribe("group-contextmenu",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup)),this.table.on("groupTapHold",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup))),this.table.options.groupClickPopup&&this.subscribe("group-click",this.loadPopupEvent.bind(this,this.table.options.groupClickPopup)),this.table.options.groupDblClickPopup&&this.subscribe("group-dblclick",this.loadPopupEvent.bind(this,this.table.options.groupDblClickPopup))}initializeColumn(e){var t=e.definition;t.headerContextPopup&&!this.columnSubscribers.headerContextPopup&&(this.columnSubscribers.headerContextPopup=this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextPopup),this.table.on("headerTapHold",this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"))),t.headerClickPopup&&!this.columnSubscribers.headerClickPopup&&(this.columnSubscribers.headerClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerClickPopup"),this.subscribe("column-click",this.columnSubscribers.headerClickPopup)),t.headerDblClickPopup&&!this.columnSubscribers.headerDblClickPopup&&(this.columnSubscribers.headerDblClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerDblClickPopup"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickPopup)),t.headerPopup&&this.initializeColumnHeaderPopup(e),t.contextPopup&&!this.columnSubscribers.contextPopup&&(this.columnSubscribers.contextPopup=this.loadPopupTableCellEvent.bind(this,"contextPopup"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextPopup),this.table.on("cellTapHold",this.loadPopupTableCellEvent.bind(this,"contextPopup"))),t.clickPopup&&!this.columnSubscribers.clickPopup&&(this.columnSubscribers.clickPopup=this.loadPopupTableCellEvent.bind(this,"clickPopup"),this.subscribe("cell-click",this.columnSubscribers.clickPopup)),t.dblClickPopup&&!this.columnSubscribers.dblClickPopup&&(this.columnSubscribers.dblClickPopup=this.loadPopupTableCellEvent.bind(this,"dblClickPopup"),this.subscribe("cell-click",this.columnSubscribers.dblClickPopup))}initializeColumnHeaderPopup(e){var t,o=e.definition.headerPopupIcon;(t=document.createElement("span")).classList.add("tabulator-header-popup-button"),o?("function"==typeof o&&(o=o(e.getComponent())),o instanceof HTMLElement?t.appendChild(o):t.innerHTML=o):t.innerHTML="⋮",t.addEventListener("click",(t=>{t.stopPropagation(),t.preventDefault(),this.loadPopupEvent(e.definition.headerPopup,t,e)})),e.titleElement.insertBefore(t,e.titleElement.firstChild)}loadPopupTableCellEvent(e,t,o){o._cell&&(o=o._cell),o.column.definition[e]&&this.loadPopupEvent(o.column.definition[e],t,o)}loadPopupTableColumnEvent(e,t,o){o._column&&(o=o._column),o.definition[e]&&this.loadPopupEvent(o.definition[e],t,o)}loadPopupEvent(e,t,o,n){var r;o._group?o=o._group:o._row&&(o=o._row),e="function"==typeof e?e.call(this.table,t,o.getComponent(),(function(e){r=e})):e,this.loadPopup(t,o,e,r,n)}loadPopup(e,t,o,n,r){var i,a,l=!(e instanceof MouseEvent);o instanceof HTMLElement?i=o:(i=document.createElement("div")).innerHTML=o,i.classList.add("tabulator-popup"),i.addEventListener("click",(e=>{e.stopPropagation()})),l||e.preventDefault(),a=this.popup(i),"function"==typeof n&&a.renderCallback(n),e?a.show(e):a.show(t.getElement(),r||"center"),a.hideOnBlur((()=>{this.dispatchExternal("popupClosed",t.getComponent())})),this.dispatchExternal("popupOpened",t.getComponent())}},PrintModule:class extends a{static moduleName="print";constructor(e){super(e),this.element=!1,this.manualBlock=!1,this.beforeprintEventHandler=null,this.afterprintEventHandler=null,this.registerTableOption("printAsHtml",!1),this.registerTableOption("printFormatter",!1),this.registerTableOption("printHeader",!1),this.registerTableOption("printFooter",!1),this.registerTableOption("printStyled",!0),this.registerTableOption("printRowRange","visible"),this.registerTableOption("printConfig",{}),this.registerColumnOption("print"),this.registerColumnOption("titlePrint")}initialize(){this.table.options.printAsHtml&&(this.beforeprintEventHandler=this.replaceTable.bind(this),this.afterprintEventHandler=this.cleanup.bind(this),window.addEventListener("beforeprint",this.beforeprintEventHandler),window.addEventListener("afterprint",this.afterprintEventHandler),this.subscribe("table-destroy",this.destroy.bind(this))),this.registerTableFunction("print",this.printFullscreen.bind(this))}destroy(){this.table.options.printAsHtml&&(window.removeEventListener("beforeprint",this.beforeprintEventHandler),window.removeEventListener("afterprint",this.afterprintEventHandler))}replaceTable(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.generateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))}cleanup(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")}printFullscreen(e,t,o){var n,r,i=window.scrollX,a=window.scrollY,l=document.createElement("div"),s=document.createElement("div"),c=this.table.modules.export.generateTable(void 0!==o?o:this.table.options.printConfig,void 0!==t?t:this.table.options.printStyled,e||this.table.options.printRowRange,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(l.classList.add("tabulator-print-header"),"string"==typeof(n="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader)?l.innerHTML=n:l.appendChild(n),this.element.appendChild(l)),this.element.appendChild(c),this.table.options.printFooter&&(s.classList.add("tabulator-print-footer"),"string"==typeof(r="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter)?s.innerHTML=r:s.appendChild(r),this.element.appendChild(s)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,c),window.print(),this.cleanup(),window.scrollTo(i,a),this.manualBlock=!1}},ReactiveDataModule:class extends a{static moduleName="reactiveData";constructor(e){super(e),this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0,this.registerTableOption("reactiveData",!1)}initialize(){this.table.options.reactiveData&&(this.subscribe("cell-value-save-before",this.block.bind(this,"cellsave")),this.subscribe("cell-value-save-after",this.unblock.bind(this,"cellsave")),this.subscribe("row-data-save-before",this.block.bind(this,"rowsave")),this.subscribe("row-data-save-after",this.unblock.bind(this,"rowsave")),this.subscribe("row-data-init-after",this.watchRow.bind(this)),this.subscribe("data-processing",this.watchData.bind(this)),this.subscribe("table-destroy",this.unwatchData.bind(this)))}watchData(e){var t,o=this;this.currentVersion++,t=this.currentVersion,this.unwatchData(),this.data=e,this.origFuncs.push=e.push,Object.defineProperty(this.data,"push",{enumerable:!1,configurable:!0,value:function(){var n,r=Array.from(arguments);return o.blocked||t!==o.currentVersion||(o.block("data-push"),r.forEach((e=>{o.table.rowManager.addRowActual(e,!1)})),n=o.origFuncs.push.apply(e,arguments),o.unblock("data-push")),n}}),this.origFuncs.unshift=e.unshift,Object.defineProperty(this.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var n,r=Array.from(arguments);return o.blocked||t!==o.currentVersion||(o.block("data-unshift"),r.forEach((e=>{o.table.rowManager.addRowActual(e,!0)})),n=o.origFuncs.unshift.apply(e,arguments),o.unblock("data-unshift")),n}}),this.origFuncs.shift=e.shift,Object.defineProperty(this.data,"shift",{enumerable:!1,configurable:!0,value:function(){var n,r;return o.blocked||t!==o.currentVersion||(o.block("data-shift"),o.data.length&&(n=o.table.rowManager.getRowFromDataObject(o.data[0]))&&n.deleteActual(),r=o.origFuncs.shift.call(e),o.unblock("data-shift")),r}}),this.origFuncs.pop=e.pop,Object.defineProperty(this.data,"pop",{enumerable:!1,configurable:!0,value:function(){var n,r;return o.blocked||t!==o.currentVersion||(o.block("data-pop"),o.data.length&&(n=o.table.rowManager.getRowFromDataObject(o.data[o.data.length-1]))&&n.deleteActual(),r=o.origFuncs.pop.call(e),o.unblock("data-pop")),r}}),this.origFuncs.splice=e.splice,Object.defineProperty(this.data,"splice",{enumerable:!1,configurable:!0,value:function(){var n,r,i=Array.from(arguments),a=i[0]<0?e.length+i[0]:i[0],l=i[1],s=!!i[2]&&i.slice(2);if(!o.blocked&&t===o.currentVersion){if(o.block("data-splice"),s&&((n=!!e[a]&&o.table.rowManager.getRowFromDataObject(e[a]))?s.forEach((e=>{o.table.rowManager.addRowActual(e,!0,n,!0)})):(s=s.slice().reverse()).forEach((e=>{o.table.rowManager.addRowActual(e,!0,!1,!0)}))),0!==l){var c=e.slice(a,void 0===i[1]?i[1]:a+l);c.forEach(((e,t)=>{var n=o.table.rowManager.getRowFromDataObject(e);n&&n.deleteActual(t!==c.length-1)}))}(s||0!==l)&&o.table.rowManager.reRenderInPosition(),r=o.origFuncs.splice.apply(e,arguments),o.unblock("data-splice")}return r}})}unwatchData(){if(!1!==this.data)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})}watchRow(e){var t=e.getData();for(var o in t)this.watchKey(e,t,o);this.table.options.dataTree&&this.watchTreeChildren(e)}watchTreeChildren(e){var t=this,o=e.getData()[this.table.options.dataTreeChildField],n={};o&&(n.push=o.push,Object.defineProperty(o,"push",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-push");var r=n.push.apply(o,arguments);this.rebuildTree(e),t.unblock("tree-push")}return r}}),n.unshift=o.unshift,Object.defineProperty(o,"unshift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-unshift");var r=n.unshift.apply(o,arguments);this.rebuildTree(e),t.unblock("tree-unshift")}return r}}),n.shift=o.shift,Object.defineProperty(o,"shift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-shift");var r=n.shift.call(o);this.rebuildTree(e),t.unblock("tree-shift")}return r}}),n.pop=o.pop,Object.defineProperty(o,"pop",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-pop");var r=n.pop.call(o);this.rebuildTree(e),t.unblock("tree-pop")}return r}}),n.splice=o.splice,Object.defineProperty(o,"splice",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-splice");var r=n.splice.apply(o,arguments);this.rebuildTree(e),t.unblock("tree-splice")}return r}}))}rebuildTree(e){this.table.modules.dataTree.initializeRow(e),this.table.modules.dataTree.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)}watchKey(e,t,o){var n=this,r=Object.getOwnPropertyDescriptor(t,o),i=t[o],a=this.currentVersion;Object.defineProperty(t,o,{set:t=>{if(i=t,!n.blocked&&a===n.currentVersion){n.block("key");var l={};l[o]=t,e.updateData(l),n.unblock("key")}r.set&&r.set(t)},get:()=>(r.get&&r.get(),i)})}unwatchRow(e){var t=e.getData();for(var o in t)Object.defineProperty(t,o,{value:t[o]})}block(e){this.blocked||(this.blocked=e)}unblock(e){this.blocked===e&&(this.blocked=!1)}},ResizeColumnsModule:class extends a{static moduleName="resizeColumns";constructor(e){super(e),this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.latestX=!1,this.handle=null,this.initialNextColumn=null,this.nextColumn=null,this.initialized=!1,this.registerColumnOption("resizable",!0),this.registerTableOption("resizableColumnFit",!1),this.registerTableOption("resizableColumnGuide",!1)}initialize(){this.subscribe("column-rendered",this.layoutColumnHeader.bind(this))}initializeEventWatchers(){this.initialized||(this.subscribe("cell-rendered",this.layoutCellHandles.bind(this)),this.subscribe("cell-delete",this.deInitializeComponent.bind(this)),this.subscribe("cell-height",this.resizeHandle.bind(this)),this.subscribe("column-moved",this.columnLayoutUpdated.bind(this)),this.subscribe("column-hide",this.deInitializeColumn.bind(this)),this.subscribe("column-show",this.columnLayoutUpdated.bind(this)),this.subscribe("column-width",this.columnWidthUpdated.bind(this)),this.subscribe("column-delete",this.deInitializeComponent.bind(this)),this.subscribe("column-height",this.resizeHandle.bind(this)),this.initialized=!0)}layoutCellHandles(e){"row"===e.row.type&&(this.deInitializeComponent(e),this.initializeColumn("cell",e,e.column,e.element))}layoutColumnHeader(e){e.definition.resizable&&(this.initializeEventWatchers(),this.deInitializeComponent(e),this.initializeColumn("header",e,e,e.element))}columnLayoutUpdated(e){var t=e.prevColumn();this.reinitializeColumn(e),t&&this.reinitializeColumn(t)}columnWidthUpdated(e){e.modules.frozen&&(this.table.modules.frozenColumns.leftColumns.includes(e)?this.table.modules.frozenColumns.leftColumns.forEach((e=>{this.reinitializeColumn(e)})):this.table.modules.frozenColumns.rightColumns.includes(e)&&this.table.modules.frozenColumns.rightColumns.forEach((e=>{this.reinitializeColumn(e)})))}frozenColumnOffset(e){var t=!1;return e.modules.frozen&&(t=e.modules.frozen.marginValue,"left"===e.modules.frozen.position?t+=e.getWidth()-3:t&&(t-=3)),!1!==t&&t+"px"}reinitializeColumn(e){var t=this.frozenColumnOffset(e);e.cells.forEach((o=>{o.modules.resize&&o.modules.resize.handleEl&&(t&&(o.modules.resize.handleEl.style[e.modules.frozen.position]=t,o.modules.resize.handleEl.style["z-index"]=11),o.element.after(o.modules.resize.handleEl))})),e.modules.resize&&e.modules.resize.handleEl&&(t&&(e.modules.resize.handleEl.style[e.modules.frozen.position]=t),e.element.after(e.modules.resize.handleEl))}initializeColumn(e,t,o,n){var r=this,i=o.definition.resizable,a={},l=o.getLastColumn();if("header"===e&&(a={variableHeight:"textarea"==o.definition.formatter||o.definition.variableHeight}),(!0===i||i==e)&&this._checkResizability(l)){var s=document.createElement("span");s.className="tabulator-col-resize-handle",s.addEventListener("click",(function(e){e.stopPropagation()}));var c=function(e){r.startColumn=o,r.initialNextColumn=r.nextColumn=l.nextColumn(),r._mouseDown(e,l,s)};s.addEventListener("mousedown",c),s.addEventListener("touchstart",c,{passive:!0}),s.addEventListener("dblclick",(e=>{var t=l.getWidth();e.stopPropagation(),l.reinitializeWidth(!0),t!==l.getWidth()&&(r.dispatch("column-resized",l),r.dispatchExternal("columnResized",l.getComponent()))})),o.modules.frozen&&(s.style.position="sticky",s.style[o.modules.frozen.position]=this.frozenColumnOffset(o)),a.handleEl=s,n.parentNode&&o.visible&&n.after(s)}t.modules.resize=a}deInitializeColumn(e){this.deInitializeComponent(e),e.cells.forEach((e=>{this.deInitializeComponent(e)}))}deInitializeComponent(e){var t;e.modules.resize&&(t=e.modules.resize.handleEl)&&t.parentElement&&t.parentElement.removeChild(t)}resizeHandle(e,t){e.modules.resize&&e.modules.resize.handleEl&&(e.modules.resize.handleEl.style.height=t)}resize(e,t){var o,n,r=void 0===e.clientX?e.touches[0].clientX:e.clientX,i=r-this.startX,a=r-this.latestX;if(this.latestX=r,this.table.rtl&&(i=-i,a=-a),o=t.width==t.minWidth||t.width==t.maxWidth,t.setWidth(this.startWidth+i),n=t.width==t.minWidth||t.width==t.maxWidth,a<0&&(this.nextColumn=this.initialNextColumn),this.table.options.resizableColumnFit&&this.nextColumn&&(!o||!n)){let e=this.nextColumn.getWidth();a>0&&e<=this.nextColumn.minWidth&&(this.nextColumn=this.nextColumn.nextColumn()),this.nextColumn&&this.nextColumn.setWidth(this.nextColumn.getWidth()-a)}this.table.columnManager.rerenderColumns(!0),!this.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}calcGuidePosition(e,t,o){var n=void 0===e.clientX?e.touches[0].clientX:e.clientX,r=o.getBoundingClientRect().x-this.table.element.getBoundingClientRect().x,i=this.table.element.getBoundingClientRect().x,a=t.element.getBoundingClientRect().left-i,l=n-this.startX,s=Math.max(r+l,a+t.minWidth);return t.maxWidth&&(s=Math.min(s,a+t.maxWidth)),s}_checkResizability(e){return e.definition.resizable}_mouseDown(e,t,o){var n,r=this;function i(e){r.table.options.resizableColumnGuide?n.style.left=r.calcGuidePosition(e,t,o)+"px":r.resize(e,t)}function a(e){r.table.options.resizableColumnGuide&&(r.resize(e,t),n.remove()),r.startColumn.modules.edit&&(r.startColumn.modules.edit.blocked=!1),r.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",a),document.body.removeEventListener("mousemove",i),o.removeEventListener("touchmove",i),o.removeEventListener("touchend",a),r.table.element.classList.remove("tabulator-block-select"),r.startWidth!==t.getWidth()&&(r.table.columnManager.verticalAlignHeaders(),r.dispatch("column-resized",t),r.dispatchExternal("columnResized",t.getComponent()))}this.dispatchExternal("columnResizing",t.getComponent()),r.table.options.resizableColumnGuide&&((n=document.createElement("span")).classList.add("tabulator-col-resize-guide"),r.table.element.appendChild(n),setTimeout((()=>{n.style.left=r.calcGuidePosition(e,t,o)+"px"}))),r.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),r.startColumn.modules.edit&&(r.startColumn.modules.edit.blocked=!0),r.startX=void 0===e.clientX?e.touches[0].clientX:e.clientX,r.latestX=r.startX,r.startWidth=t.getWidth(),document.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",a),o.addEventListener("touchmove",i,{passive:!0}),o.addEventListener("touchend",a)}},ResizeRowsModule:class extends a{static moduleName="resizeRows";constructor(e){super(e),this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null,this.registerTableOption("resizableRows",!1),this.registerTableOption("resizableRowGuide",!1)}initialize(){this.table.options.resizableRows&&this.subscribe("row-layout-after",this.initializeRow.bind(this))}initializeRow(e){var t=this,o=e.getElement(),n=document.createElement("div");n.className="tabulator-row-resize-handle";var r=document.createElement("div");r.className="tabulator-row-resize-handle prev",n.addEventListener("click",(function(e){e.stopPropagation()}));var i=function(o){t.startRow=e,t._mouseDown(o,e,n)};n.addEventListener("mousedown",i),n.addEventListener("touchstart",i,{passive:!0}),r.addEventListener("click",(function(e){e.stopPropagation()}));var a=function(o){var n=t.table.rowManager.prevDisplayRow(e);n&&(t.startRow=n,t._mouseDown(o,n,r))};r.addEventListener("mousedown",a),r.addEventListener("touchstart",a,{passive:!0}),o.appendChild(n),o.appendChild(r)}resize(e,t){t.setHeight(this.startHeight+((void 0===e.screenY?e.touches[0].screenY:e.screenY)-this.startY))}calcGuidePosition(e,t,o){var n=void 0===e.screenY?e.touches[0].screenY:e.screenY,r=o.getBoundingClientRect().y-this.table.element.getBoundingClientRect().y,i=this.table.element.getBoundingClientRect().y,a=t.element.getBoundingClientRect().top-i,l=n-this.startY;return Math.max(r+l,a)}_mouseDown(e,t,o){var n,r=this;function i(e){r.table.options.resizableRowGuide?n.style.top=r.calcGuidePosition(e,t,o)+"px":r.resize(e,t)}function a(e){r.table.options.resizableRowGuide&&(r.resize(e,t),n.remove()),document.body.removeEventListener("mouseup",i),document.body.removeEventListener("mousemove",i),o.removeEventListener("touchmove",i),o.removeEventListener("touchend",a),r.table.element.classList.remove("tabulator-block-select"),r.dispatchExternal("rowResized",t.getComponent())}r.dispatchExternal("rowResizing",t.getComponent()),r.table.options.resizableRowGuide&&((n=document.createElement("span")).classList.add("tabulator-row-resize-guide"),r.table.element.appendChild(n),setTimeout((()=>{n.style.top=r.calcGuidePosition(e,t,o)+"px"}))),r.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),r.startY=void 0===e.screenY?e.touches[0].screenY:e.screenY,r.startHeight=t.getHeight(),document.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",a),o.addEventListener("touchmove",i,{passive:!0}),o.addEventListener("touchend",a)}},ResizeTableModule:class extends a{static moduleName="resizeTable";constructor(e){super(e),this.binding=!1,this.visibilityObserver=!1,this.resizeObserver=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1,this.visible=!1,this.initialized=!1,this.initialRedraw=!1,this.registerTableOption("autoResize",!0)}initialize(){if(this.table.options.autoResize){var e,t=this.table;this.tableHeight=t.element.clientHeight,this.tableWidth=t.element.clientWidth,t.element.parentNode&&(this.containerHeight=t.element.parentNode.clientHeight,this.containerWidth=t.element.parentNode.clientWidth),"undefined"!=typeof IntersectionObserver&&"undefined"!=typeof ResizeObserver&&"virtual"===t.rowManager.getRenderMode()?(this.initializeVisibilityObserver(),this.autoResize=!0,this.resizeObserver=new ResizeObserver((e=>{if(!t.browserMobile||t.browserMobile&&(!t.modules.edit||t.modules.edit&&!t.modules.edit.currentCell)){var o=Math.floor(e[0].contentRect.height),n=Math.floor(e[0].contentRect.width);this.tableHeight==o&&this.tableWidth==n||(this.tableHeight=o,this.tableWidth=n,t.element.parentNode&&(this.containerHeight=t.element.parentNode.clientHeight,this.containerWidth=t.element.parentNode.clientWidth),this.redrawTable())}})),this.resizeObserver.observe(t.element),e=window.getComputedStyle(t.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(e.getPropertyValue("max-height")||e.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver((e=>{if(!t.browserMobile||t.browserMobile&&(!t.modules.edit||t.modules.edit&&!t.modules.edit.currentCell)){var o=Math.floor(e[0].contentRect.height),n=Math.floor(e[0].contentRect.width);this.containerHeight==o&&this.containerWidth==n||(this.containerHeight=o,this.containerWidth=n,this.tableHeight=t.element.clientHeight,this.tableWidth=t.element.clientWidth),this.redrawTable()}})),this.containerObserver.observe(this.table.element.parentNode)),this.subscribe("table-resize",this.tableResized.bind(this))):(this.binding=function(){(!t.browserMobile||t.browserMobile&&(!t.modules.edit||t.modules.edit&&!t.modules.edit.currentCell))&&(t.columnManager.rerenderColumns(!0),t.redraw())},window.addEventListener("resize",this.binding)),this.subscribe("table-destroy",this.clearBindings.bind(this))}}initializeVisibilityObserver(){this.visibilityObserver=new IntersectionObserver((e=>{this.visible=e[0].isIntersecting,this.initialized?this.visible&&(this.redrawTable(this.initialRedraw),this.initialRedraw=!1):(this.initialized=!0,this.initialRedraw=!this.visible)})),this.visibilityObserver.observe(this.table.element)}redrawTable(e){this.initialized&&this.visible&&(this.table.columnManager.rerenderColumns(!0),this.table.redraw(e))}tableResized(){this.table.rowManager.redraw()}clearBindings(){this.binding&&window.removeEventListener("resize",this.binding),this.resizeObserver&&this.resizeObserver.unobserve(this.table.element),this.visibilityObserver&&this.visibilityObserver.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)}},ResponsiveLayoutModule:class extends a{static moduleName="responsiveLayout";static moduleExtensions=he;constructor(e){super(e),this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1,this.registerTableOption("responsiveLayout",!1),this.registerTableOption("responsiveLayoutCollapseStartOpen",!0),this.registerTableOption("responsiveLayoutCollapseUseFormatters",!0),this.registerTableOption("responsiveLayoutCollapseFormatter",!1),this.registerColumnOption("responsive")}initialize(){this.table.options.responsiveLayout&&(this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-show",this.updateColumnVisibility.bind(this)),this.subscribe("column-hide",this.updateColumnVisibility.bind(this)),this.subscribe("columns-loaded",this.initializeResponsivity.bind(this)),this.subscribe("column-moved",this.initializeResponsivity.bind(this)),this.subscribe("column-add",this.initializeResponsivity.bind(this)),this.subscribe("column-delete",this.initializeResponsivity.bind(this)),this.subscribe("table-redrawing",this.tableRedraw.bind(this)),"collapse"===this.table.options.responsiveLayout&&(this.subscribe("row-data-changed",this.generateCollapsedRowContent.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout",this.layoutRow.bind(this))))}tableRedraw(e){-1===["fitColumns","fitDataStretch"].indexOf(this.layoutMode())&&(e||this.update())}initializeResponsivity(){var e=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.collapseFormatter&&(this.collapseFormatter=this.collapseFormatter.bind(this.table)),this.table.columnManager.columnsByIndex.forEach(((t,o)=>{t.modules.responsive&&t.modules.responsive.order&&t.modules.responsive.visible&&(t.modules.responsive.index=o,e.push(t),t.visible||"collapse"!==this.mode||this.hiddenColumns.push(t))})),e=(e=e.reverse()).sort(((e,t)=>t.modules.responsive.order-e.modules.responsive.order||t.modules.responsive.index-e.modules.responsive.index)),this.columns=e,"collapse"===this.mode&&this.generateCollapsedContent();for(let e of this.table.columnManager.columnsByIndex)if("responsiveCollapse"==e.definition.formatter){this.collapseHandleColumn=e;break}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())}initializeColumn(e){var t=e.getDefinition();e.modules.responsive={order:void 0===t.responsive?1:t.responsive,visible:!1!==t.visible}}initializeRow(e){var t;"calc"!==e.type&&((t=document.createElement("div")).classList.add("tabulator-responsive-collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.collapseStartOpen||(t.style.display="none"))}layoutRow(e){var t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLayout.element),this.generateCollapsedRowContent(e))}updateColumnVisibility(e,t){!t&&e.modules.responsive&&(e.modules.responsive.visible=e.visible,this.initializeResponsivity())}hideColumn(e){var t=this.hiddenColumns.length;e.hide(!1,!0),"collapse"===this.mode&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent(),this.collapseHandleColumn&&!t&&this.collapseHandleColumn.show())}showColumn(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),"collapse"===this.mode&&((t=this.hiddenColumns.indexOf(e))>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())}update(){for(var e=!0;e;){let t="fitColumns"==this.table.modules.layout.getMode()?this.table.columnManager.getFlexBaseWidth():this.table.columnManager.getWidth(),o=(this.table.options.headerVisible?this.table.columnManager.element.clientWidth:this.table.element.clientWidth)-t;if(o<0){let t=this.columns[this.index];t?(this.hideColumn(t),this.index++):e=!1}else{let t=this.columns[this.index-1];t&&o>0&&o>=t.getWidth()?(this.showColumn(t),this.index--):e=!1}this.table.rowManager.activeRowsCount||this.table.rowManager.renderEmptyScroll()}}generateCollapsedContent(){this.table.rowManager.getDisplayRows().forEach((e=>{this.generateCollapsedRowContent(e)}))}generateCollapsedRowContent(e){var t,o;if(e.modules.responsiveLayout){for(t=e.modules.responsiveLayout.element;t.firstChild;)t.removeChild(t.firstChild);(o=this.collapseFormatter(this.generateCollapsedRowData(e)))&&t.appendChild(o),e.calcHeight(!0)}}generateCollapsedRowData(e){var t,o=e.getData(),n=[];return this.hiddenColumns.forEach((r=>{var i=r.getFieldValue(o);if(r.definition.title&&r.field)if(r.modules.format&&this.table.options.responsiveLayoutCollapseUseFormatters){function a(e){e()}t={value:!1,data:{},getValue:function(){return i},getData:function(){return o},getType:function(){return"cell"},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return r.getComponent()},getTable:()=>this.table},n.push({field:r.field,title:r.definition.title,value:r.modules.format.formatter.call(this.table.modules.format,t,r.modules.format.params,a)})}else n.push({field:r.field,title:r.definition.title,value:i})})),n}formatCollapsedData(e){var t=document.createElement("table");return e.forEach((e=>{var o,n=document.createElement("tr"),r=document.createElement("td"),i=document.createElement("td"),a=document.createElement("strong");r.appendChild(a),this.modules.localize.bind("columns|"+e.field,(function(t){a.innerHTML=t||e.title})),e.value instanceof Node?((o=document.createElement("div")).appendChild(e.value),i.appendChild(o)):i.innerHTML=e.value,n.appendChild(r),n.appendChild(i),t.appendChild(n)})),Object.keys(e).length?t:""}},SelectRangeModule:class extends a{static moduleName="selectRange";static moduleInitOrder=1;static moduleExtensions=be;constructor(e){super(e),this.selecting="cell",this.mousedown=!1,this.ranges=[],this.overlay=null,this.rowHeader=null,this.layoutChangeTimeout=null,this.columnSelection=!1,this.rowSelection=!1,this.maxRanges=0,this.activeRange=!1,this.blockKeydown=!1,this.keyDownEvent=this._handleKeyDown.bind(this),this.mouseUpEvent=this._handleMouseUp.bind(this),this.registerTableOption("selectableRange",!1),this.registerTableOption("selectableRangeColumns",!1),this.registerTableOption("selectableRangeRows",!1),this.registerTableOption("selectableRangeClearCells",!1),this.registerTableOption("selectableRangeClearCellsValue",void 0),this.registerTableOption("selectableRangeAutoFocus",!0),this.registerTableFunction("getRangesData",this.getRangesData.bind(this)),this.registerTableFunction("getRanges",this.getRanges.bind(this)),this.registerTableFunction("addRange",this.addRangeFromComponent.bind(this)),this.registerComponentFunction("cell","getRanges",this.cellGetRanges.bind(this)),this.registerComponentFunction("row","getRanges",this.rowGetRanges.bind(this)),this.registerComponentFunction("column","getRanges",this.colGetRanges.bind(this))}initialize(){this.options("selectableRange")&&(this.options("selectableRows")?console.warn("SelectRange functionality cannot be used in conjunction with row selection"):(this.maxRanges=this.options("selectableRange"),this.initializeTable(),this.initializeWatchers()),this.options("columns").findIndex((e=>e.frozen))>0&&console.warn("Having frozen column in arbitrary position with selectRange option may result in unpredictable behavior."),this.options("columns").filter((e=>e.frozen))>1&&console.warn("Having multiple frozen columns with selectRange option may result in unpredictable behavior."))}initializeTable(){this.overlay=document.createElement("div"),this.overlay.classList.add("tabulator-range-overlay"),this.rangeContainer=document.createElement("div"),this.rangeContainer.classList.add("tabulator-range-container"),this.activeRangeCellElement=document.createElement("div"),this.activeRangeCellElement.classList.add("tabulator-range-cell-active"),this.overlay.appendChild(this.rangeContainer),this.overlay.appendChild(this.activeRangeCellElement),this.table.rowManager.element.addEventListener("keydown",this.keyDownEvent),this.resetRanges(),this.table.rowManager.element.appendChild(this.overlay),this.table.columnManager.element.setAttribute("tabindex",0),this.table.element.classList.add("tabulator-ranges")}initializeWatchers(){this.columnSelection=this.options("selectableRangeColumns"),this.rowSelection=this.options("selectableRangeRows"),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-mousedown",this.handleColumnMouseDown.bind(this)),this.subscribe("column-mousemove",this.handleColumnMouseMove.bind(this)),this.subscribe("column-resized",this.handleColumnResized.bind(this)),this.subscribe("column-moving",this.handleColumnMoving.bind(this)),this.subscribe("column-moved",this.handleColumnMoved.bind(this)),this.subscribe("column-width",this.layoutChange.bind(this)),this.subscribe("column-height",this.layoutChange.bind(this)),this.subscribe("column-resized",this.layoutChange.bind(this)),this.subscribe("columns-loaded",this.updateHeaderColumn.bind(this)),this.subscribe("cell-height",this.layoutChange.bind(this)),this.subscribe("cell-rendered",this.renderCell.bind(this)),this.subscribe("cell-mousedown",this.handleCellMouseDown.bind(this)),this.subscribe("cell-mousemove",this.handleCellMouseMove.bind(this)),this.subscribe("cell-click",this.handleCellClick.bind(this)),this.subscribe("cell-editing",this.handleEditingCell.bind(this)),this.subscribe("page-changed",this.redraw.bind(this)),this.subscribe("scroll-vertical",this.layoutChange.bind(this)),this.subscribe("scroll-horizontal",this.layoutChange.bind(this)),this.subscribe("data-destroy",this.tableDestroyed.bind(this)),this.subscribe("data-processed",this.resetRanges.bind(this)),this.subscribe("table-layout",this.layoutElement.bind(this)),this.subscribe("table-redraw",this.redraw.bind(this)),this.subscribe("table-destroy",this.tableDestroyed.bind(this)),this.subscribe("edit-editor-clear",this.finishEditingCell.bind(this)),this.subscribe("edit-blur",this.restoreFocus.bind(this)),this.subscribe("keybinding-nav-prev",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-next",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-left",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-right",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-up",this.keyNavigate.bind(this,"up")),this.subscribe("keybinding-nav-down",this.keyNavigate.bind(this,"down")),this.subscribe("keybinding-nav-range",this.keyNavigateRange.bind(this))}initializeColumn(e){this.columnSelection&&e.definition.headerSort&&"icon"!==this.options("headerSortClickElement")&&console.warn("Using column headerSort with selectableRangeColumns option may result in unpredictable behavior. Consider using headerSortClickElement: 'icon'."),e.modules.edit}updateHeaderColumn(){var e;this.rowSelection&&(this.rowHeader=this.table.columnManager.getVisibleColumnsByIndex()[0],this.rowHeader&&(this.rowHeader.definition.cssClass=this.rowHeader.definition.cssClass+" tabulator-range-row-header",this.rowHeader.definition.headerSort&&console.warn("Using column headerSort with selectableRangeRows option may result in unpredictable behavior"),this.rowHeader.definition.editor&&console.warn("Using column editor with selectableRangeRows option may result in unpredictable behavior"))),this.table.modules.frozenColumns&&this.table.modules.frozenColumns.active&&((e=this.table.modules.frozenColumns.getFrozenColumns()).length>1||1===e.length&&e[0]!==this.rowHeader)&&console.warn("Using frozen columns that are not the range header in combination with the selectRange option may result in unpredictable behavior")}getRanges(){return this.ranges.map((e=>e.getComponent()))}getRangesData(){return this.ranges.map((e=>e.getData()))}addRangeFromComponent(e,t){return e=e?e._cell:null,t=t?t._cell:null,this.addRange(e,t)}cellGetRanges(e){return(e.column===this.rowHeader?this.ranges.filter((t=>t.occupiesRow(e.row))):this.ranges.filter((t=>t.occupies(e)))).map((e=>e.getComponent()))}rowGetRanges(e){return this.ranges.filter((t=>t.occupiesRow(e))).map((e=>e.getComponent()))}colGetRanges(e){return this.ranges.filter((t=>t.occupiesColumn(e))).map((e=>e.getComponent()))}_handleMouseUp(e){this.mousedown=!1,document.removeEventListener("mouseup",this.mouseUpEvent)}_handleKeyDown(e){if(!this.blockKeydown&&(!this.table.modules.edit||this.table.modules.edit&&!this.table.modules.edit.currentCell)){if("Enter"===e.key){if(this.table.modules.edit&&this.table.modules.edit.currentCell)return;this.table.modules.edit.editCell(this.getActiveCell()),e.preventDefault()}"Backspace"!==e.key&&"Delete"!==e.key||!this.options("selectableRangeClearCells")||this.activeRange&&this.activeRange.clearValues()}}initializeFocus(e){var t;this.restoreFocus();try{document.selection?((t=document.body.createTextRange()).moveToElementText(e.getElement()),t.select()):window.getSelection&&((t=document.createRange()).selectNode(e.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(t))}catch(e){}}restoreFocus(e){return this.table.rowManager.element.focus(),!0}handleColumnResized(e){"column"!==this.selecting&&"all"!==this.selecting||this.ranges.some((t=>t.occupiesColumn(e)))&&this.ranges.forEach((t=>{t.getColumns(!0).forEach((t=>{t!==e&&t.setWidth(e.width)}))}))}handleColumnMoving(e,t){this.resetRanges().setBounds(t),this.overlay.style.visibility="hidden"}handleColumnMoved(e,t,o){this.activeRange.setBounds(e),this.layoutElement()}handleColumnMouseDown(e,t){(2!==e.button||"column"!==this.selecting&&"all"!==this.selecting||!this.activeRange.occupiesColumn(t))&&(this.table.options.movableColumns&&"column"===this.selecting&&this.activeRange.occupiesColumn(t)||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t)))}handleColumnMouseMove(e,t){t!==this.rowHeader&&this.mousedown&&"all"!==this.selecting&&this.activeRange.setBounds(!1,t,!0)}renderCell(e){var t=e.getElement(),o=this.ranges.findIndex((t=>t.occupies(e)));t.classList.toggle("tabulator-range-selected",-1!==o),t.classList.toggle("tabulator-range-only-cell-selected",1===this.ranges.length&&this.ranges[0].atTopLeft(e)&&this.ranges[0].atBottomRight(e)),t.dataset.range=o}handleCellMouseDown(e,t){2===e.button&&(this.activeRange.occupies(t)||("row"===this.selecting||"all"===this.selecting)&&this.activeRange.occupiesRow(t.row))||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t))}handleCellMouseMove(e,t){this.mousedown&&"all"!==this.selecting&&this.activeRange.setBounds(!1,t,!0)}handleCellClick(e,t){this.initializeFocus(t)}handleEditingCell(e){this.activeRange&&this.activeRange.setBounds(e)}finishEditingCell(){this.blockKeydown=!0,this.table.rowManager.element.focus(),setTimeout((()=>{this.blockKeydown=!1}),10)}keyNavigate(e,t){this.navigate(!1,!1,e),t.preventDefault()}keyNavigateRange(e,t,o,n){this.navigate(o,n,t),e.preventDefault()}navigate(e,t,o){var n,r,i,a,l,s,c,u,d,p,h;if(this.table.modules.edit&&this.table.modules.edit.currentCell)return!1;if(this.ranges.length>1&&(this.ranges=this.ranges.filter((e=>e===this.activeRange?(e.setEnd(e.start.row,e.start.col),!0):(e.destroy(),!1)))),i={top:(n=this.activeRange).top,bottom:n.bottom,left:n.left,right:n.right},a=(r=t?n.end:n.start).row,l=r.col,e)switch(o){case"left":l=this.findJumpCellLeft(n.start.row,r.col);break;case"right":l=this.findJumpCellRight(n.start.row,r.col);break;case"up":a=this.findJumpCellUp(r.row,n.start.col);break;case"down":a=this.findJumpCellDown(r.row,n.start.col)}else{if(t&&("row"===this.selecting&&("left"===o||"right"===o)||"column"===this.selecting&&("up"===o||"down"===o)))return;switch(o){case"left":l=Math.max(l-1,0);break;case"right":l=Math.min(l+1,this.getTableColumns().length-1);break;case"up":a=Math.max(a-1,0);break;case"down":a=Math.min(a+1,this.getTableRows().length-1)}}return this.rowHeader&&0===l&&(l=1),t||n.setStart(a,l),n.setEnd(a,l),t||(this.selecting="cell"),i.top!==n.top||i.bottom!==n.bottom||i.left!==n.left||i.right!==n.right?(s=this.getRowByRangePos(n.end.row),c=this.getColumnByRangePos(n.end.col),u=s.getElement().getBoundingClientRect(),p=c.getElement().getBoundingClientRect(),d=this.table.rowManager.getElement().getBoundingClientRect(),h=this.table.columnManager.getElement().getBoundingClientRect(),u.top>=d.top&&u.bottom<=d.bottom||(s.getElement().parentNode&&c.getElement().parentNode?this.autoScroll(n,s.getElement(),c.getElement()):s.getComponent().scrollTo(void 0,!1)),p.left>=h.left+this.getRowHeaderWidth()&&p.right<=h.right||(s.getElement().parentNode&&c.getElement().parentNode?this.autoScroll(n,s.getElement(),c.getElement()):c.getComponent().scrollTo(void 0,!1)),this.layoutElement(),!0):void 0}rangeRemoved(e){this.ranges=this.ranges.filter((t=>t!==e)),this.activeRange===e&&(this.ranges.length?this.activeRange=this.ranges[this.ranges.length-1]:this.addRange()),this.layoutElement()}findJumpRow(e,t,o,n,r){return o&&(t=t.reverse()),this.findJumpItem(n,r,t,(function(t){return t.getData()[e.getField()]}))}findJumpCol(e,t,o,n,r){return o&&(t=t.reverse()),this.findJumpItem(n,r,t,(function(t){return e.getData()[t.getField()]}))}findJumpItem(e,t,o,n){var r;for(let i of o){let o=n(i);if(e){if(r=i,o)break}else if(t){if(r=i,o)break}else{if(!o)break;r=i}}return r}findJumpCellLeft(e,t){var o=this.getRowByRangePos(e),n=this.getTableColumns(),r=this.isEmpty(o.getData()[n[t].getField()]),i=!!n[t-1]&&this.isEmpty(o.getData()[n[t-1].getField()]),a=this.rowHeader?n.slice(1,t):n.slice(0,t),l=this.findJumpCol(o,a,!0,r,i);return l?l.getPosition()-1:t}findJumpCellRight(e,t){var o=this.getRowByRangePos(e),n=this.getTableColumns(),r=this.isEmpty(o.getData()[n[t].getField()]),i=!!n[t+1]&&this.isEmpty(o.getData()[n[t+1].getField()]),a=this.findJumpCol(o,n.slice(t+1,n.length),!1,r,i);return a?a.getPosition()-1:t}findJumpCellUp(e,t){var o=this.getColumnByRangePos(t),n=this.getTableRows(),r=this.isEmpty(n[e].getData()[o.getField()]),i=!!n[e-1]&&this.isEmpty(n[e-1].getData()[o.getField()]),a=this.findJumpRow(o,n.slice(0,e),!0,r,i);return a?a.position-1:e}findJumpCellDown(e,t){var o=this.getColumnByRangePos(t),n=this.getTableRows(),r=this.isEmpty(n[e].getData()[o.getField()]),i=!!n[e+1]&&this.isEmpty(n[e+1].getData()[o.getField()]),a=this.findJumpRow(o,n.slice(e+1,n.length),!1,r,i);return a?a.position-1:e}newSelection(e,t){var o;if("column"===t.type){if(!this.columnSelection)return;if(t===this.rowHeader){o=this.resetRanges(),this.selecting="all";var n,r=this.getCell(-1,-1);return n=this.rowHeader?this.getCell(0,1):this.getCell(0,0),void o.setBounds(n,r)}this.selecting="column"}else t.column===this.rowHeader?this.selecting="row":this.selecting="cell";e.shiftKey?this.activeRange.setBounds(!1,t):e.ctrlKey?this.addRange().setBounds(t):this.resetRanges().setBounds(t)}autoScroll(e,t,o){var n,r,i,a=this.table.rowManager.element;void 0===t&&(t=this.getRowByRangePos(e.end.row).getElement()),void 0===o&&(o=this.getColumnByRangePos(e.end.col).getElement()),n={left:o.offsetLeft,right:o.offsetLeft+o.offsetWidth,top:t.offsetTop,bottom:t.offsetTop+t.offsetHeight},i=(r={left:a.scrollLeft+this.getRowHeaderWidth(),right:Math.ceil(a.scrollLeft+a.clientWidth),top:a.scrollTop,bottom:a.scrollTop+a.offsetHeight-this.table.rowManager.scrollbarWidth}).topr.right&&(a.scrollLeft=Math.min(n.right-a.clientWidth,n.left-this.getRowHeaderWidth()))),i||(n.topr.bottom&&(a.scrollTop=n.bottom-a.clientHeight))}layoutChange(){this.overlay.style.visibility="hidden",clearTimeout(this.layoutChangeTimeout),this.layoutChangeTimeout=setTimeout(this.layoutRanges.bind(this),200)}redraw(e){e&&(this.selecting="cell",this.resetRanges(),this.layoutElement())}layoutElement(e){(e?this.table.rowManager.getVisibleRows(!0):this.table.rowManager.getRows()).forEach((e=>{"row"===e.type&&(this.layoutRow(e),e.cells.forEach((e=>this.renderCell(e))))})),this.getTableColumns().forEach((e=>{this.layoutColumn(e)})),this.layoutRanges()}layoutRow(e){var t=e.getElement(),o=!1,n=this.ranges.some((t=>t.occupiesRow(e)));"row"===this.selecting?o=n:"all"===this.selecting&&(o=!0),t.classList.toggle("tabulator-range-selected",o),t.classList.toggle("tabulator-range-highlight",n)}layoutColumn(e){var t=e.getElement(),o=!1,n=this.ranges.some((t=>t.occupiesColumn(e)));"column"===this.selecting?o=n:"all"===this.selecting&&(o=!0),t.classList.toggle("tabulator-range-selected",o),t.classList.toggle("tabulator-range-highlight",n)}layoutRanges(){var e,t,o;this.table.initialized&&(e=this.getActiveCell())&&(t=e.getElement(),o=e.row.getElement(),this.table.rtl?this.activeRangeCellElement.style.right=o.offsetWidth-t.offsetLeft-t.offsetWidth+"px":this.activeRangeCellElement.style.left=o.offsetLeft+t.offsetLeft+"px",this.activeRangeCellElement.style.top=o.offsetTop+"px",this.activeRangeCellElement.style.width=t.offsetWidth+"px",this.activeRangeCellElement.style.height=o.offsetHeight+"px",this.ranges.forEach((e=>e.layout())),this.overlay.style.visibility="visible")}getCell(e,t){var o;return t<0&&(t=this.getTableColumns().length+t)<0?null:(e<0&&(e=this.getTableRows().length+e),(o=this.table.rowManager.getRowFromPosition(e+1))?o.getCells(!1,!0).filter((e=>e.column.visible))[t]:null)}getActiveCell(){return this.getCell(this.activeRange.start.row,this.activeRange.start.col)}getRowByRangePos(e){return this.getTableRows()[e]}getColumnByRangePos(e){return this.getTableColumns()[e]}getTableRows(){return this.table.rowManager.getDisplayRows().filter((e=>"row"===e.type))}getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}addRange(e,t){var o;return!0!==this.maxRanges&&this.ranges.length>=this.maxRanges&&this.ranges.shift().destroy(),o=new ge(this.table,this,e,t),this.activeRange=o,this.ranges.push(o),this.rangeContainer.appendChild(o.element),o}resetRanges(){var e,t,o;return this.ranges.forEach((e=>e.destroy())),this.ranges=[],e=this.addRange(),this.table.rowManager.activeRows.length&&(o=this.table.rowManager.activeRows[0].cells.filter((e=>e.column.visible)),(t=o[this.rowHeader?1:0])&&(e.setBounds(t),this.options("selectableRangeAutoFocus")&&this.initializeFocus(t))),e}tableDestroyed(){document.removeEventListener("mouseup",this.mouseUpEvent),this.table.rowManager.element.removeEventListener("keydown",this.keyDownEvent)}selectedRows(e){return e?this.activeRange.getRows().map((e=>e.getComponent())):this.activeRange.getRows()}selectedColumns(e){return e?this.activeRange.getColumns().map((e=>e.getComponent())):this.activeRange.getColumns()}getRowHeaderWidth(){return this.rowHeader?this.rowHeader.getElement().offsetWidth:0}isEmpty(e){return null==e||""===e}},SelectRowModule:class extends a{static moduleName="selectRow";static moduleExtensions=me;constructor(e){super(e),this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null,this.registerTableOption("selectableRows","highlight"),this.registerTableOption("selectableRowsRangeMode","drag"),this.registerTableOption("selectableRowsRollingSelection",!0),this.registerTableOption("selectableRowsPersistence",!0),this.registerTableOption("selectableRowsCheck",(function(e,t){return!0})),this.registerTableFunction("selectRow",this.selectRows.bind(this)),this.registerTableFunction("deselectRow",this.deselectRows.bind(this)),this.registerTableFunction("toggleSelectRow",this.toggleRow.bind(this)),this.registerTableFunction("getSelectedRows",this.getSelectedRows.bind(this)),this.registerTableFunction("getSelectedData",this.getSelectedData.bind(this)),this.registerComponentFunction("row","select",this.selectRows.bind(this)),this.registerComponentFunction("row","deselect",this.deselectRows.bind(this)),this.registerComponentFunction("row","toggleSelect",this.toggleRow.bind(this)),this.registerComponentFunction("row","isSelected",this.isRowSelected.bind(this))}initialize(){this.deprecatedOptionsCheck(),"highlight"===this.table.options.selectableRows&&this.table.options.selectableRange&&(this.table.options.selectableRows=!1),!1!==this.table.options.selectableRows&&(this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-deleting",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clearSelectionData.bind(this)),this.subscribe("rows-retrieve",this.rowRetrieve.bind(this)),this.table.options.selectableRows&&!this.table.options.selectableRowsPersistence&&this.subscribe("data-refreshing",this.deselectRows.bind(this)))}deprecatedOptionsCheck(){}rowRetrieve(e,t){return"selected"===e?this.selectedRows:t}rowDeleted(e){this._deselectRow(e,!0)}clearSelectionData(e){var t=this.selectedRows.length;this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],t&&!0!==e&&this._rowSelectionChanged()}initializeRow(e){var t=this,o=t.checkRowSelectability(e),n=e.getElement(),r=function(){setTimeout((function(){t.selecting=!1}),50),document.body.removeEventListener("mouseup",r)};e.modules.select={selected:!1},n.classList.toggle("tabulator-selectable",o),n.classList.toggle("tabulator-unselectable",!o),t.checkRowSelectability(e)&&t.table.options.selectableRows&&"highlight"!=t.table.options.selectableRows&&("click"===t.table.options.selectableRowsRangeMode?n.addEventListener("click",this.handleComplexRowClick.bind(this,e)):(n.addEventListener("click",(function(o){t.table.modExists("edit")&&t.table.modules.edit.getCurrentCell()||t.table._clearSelection(),t.selecting||t.toggleRow(e)})),n.addEventListener("mousedown",(function(o){if(o.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",r),document.body.addEventListener("keyup",r),t.toggleRow(e),!1})),n.addEventListener("mouseenter",(function(o){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))})),n.addEventListener("mouseout",(function(o){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))}))))}handleComplexRowClick(e,t){if(t.shiftKey){this.table._clearSelection(),this.lastClickedRow=this.lastClickedRow||e;var o=this.table.rowManager.getDisplayRowIndex(this.lastClickedRow),n=this.table.rowManager.getDisplayRowIndex(e),r=o<=n?o:n,i=o>=n?o:n,a=this.table.rowManager.getDisplayRows().slice(0).splice(r,i-r+1);t.ctrlKey||t.metaKey?(a.forEach((t=>{t!==this.lastClickedRow&&(!0===this.table.options.selectableRows||this.isRowSelected(e)||this.selectedRows.lengththis.table.options.selectableRows&&(a=a.slice(0,this.table.options.selectableRows)),this.selectRows(a)),this.table._clearSelection()}else t.ctrlKey||t.metaKey?(this.toggleRow(e),this.lastClickedRow=e):(this.deselectRows(void 0,!0),this.selectRows(e),this.lastClickedRow=e)}checkRowSelectability(e){return!(!e||"row"!==e.type)&&this.table.options.selectableRowsCheck.call(this.table,e.getComponent())}toggleRow(e){this.checkRowSelectability(e)&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))}selectRows(e){var t,o,n=[];switch(typeof e){case"undefined":t=this.table.rowManager.rows;break;case"number":t=this.table.rowManager.findRow(e);break;case"string":(t=this.table.rowManager.findRow(e))||(t=this.table.rowManager.getRows(e));break;default:t=e}Array.isArray(t)?t.length&&(t.forEach((e=>{(o=this._selectRow(e,!0,!0))&&n.push(o)})),this._rowSelectionChanged(!1,n)):t&&this._selectRow(t,!1,!0)}_selectRow(e,t,o){if(!isNaN(this.table.options.selectableRows)&&!0!==this.table.options.selectableRows&&!o&&this.selectedRows.length>=this.table.options.selectableRows){if(!this.table.options.selectableRowsRollingSelection)return!1;this._deselectRow(this.selectedRows[0])}var n=this.table.rowManager.findRow(e);if(n){if(-1==this.selectedRows.indexOf(n))return n.getElement().classList.add("tabulator-selected"),n.modules.select||(n.modules.select={}),n.modules.select.selected=!0,n.modules.select.checkboxEl&&(n.modules.select.checkboxEl.checked=!0),this.selectedRows.push(n),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(n,!0),this.dispatchExternal("rowSelected",n.getComponent()),this._rowSelectionChanged(t,n),n}else t||console.warn("Selection Error - No such row found, ignoring selection:"+e)}isRowSelected(e){return-1!==this.selectedRows.indexOf(e)}deselectRows(e,t){var o,n,r=[];switch(typeof e){case"undefined":o=Object.assign([],this.selectedRows);break;case"number":o=this.table.rowManager.findRow(e);break;case"string":(o=this.table.rowManager.findRow(e))||(o=this.table.rowManager.getRows(e));break;default:o=e}Array.isArray(o)?o.length&&(o.forEach((e=>{(n=this._deselectRow(e,!0,!0))&&r.push(n)})),this._rowSelectionChanged(t,[],r)):o&&this._deselectRow(o,t,!0)}_deselectRow(e,t){var o,n,r=this,i=r.table.rowManager.findRow(e);if(i){if((o=r.selectedRows.findIndex((function(e){return e==i})))>-1)return(n=i.getElement())&&n.classList.remove("tabulator-selected"),i.modules.select||(i.modules.select={}),i.modules.select.selected=!1,i.modules.select.checkboxEl&&(i.modules.select.checkboxEl.checked=!1),r.selectedRows.splice(o,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(i,!1),this.dispatchExternal("rowDeselected",i.getComponent()),r._rowSelectionChanged(t,void 0,i),i}else t||console.warn("Deselection Error - No such row found, ignoring selection:"+e)}getSelectedData(){var e=[];return this.selectedRows.forEach((function(t){e.push(t.getData())})),e}getSelectedRows(){var e=[];return this.selectedRows.forEach((function(t){e.push(t.getComponent())})),e}_rowSelectionChanged(e,t=[],o=[]){this.headerCheckboxElement&&(0===this.selectedRows.length?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),e||(Array.isArray(t)||(t=[t]),t=t.map((e=>e.getComponent())),Array.isArray(o)||(o=[o]),o=o.map((e=>e.getComponent())),this.dispatchExternal("rowSelectionChanged",this.getSelectedData(),this.getSelectedRows(),t,o))}registerRowSelectCheckbox(e,t){e._row.modules.select||(e._row.modules.select={}),e._row.modules.select.checkboxEl=t}registerHeaderSelectCheckbox(e){this.headerCheckboxElement=e}childRowSelection(e,t){var o=this.table.modules.dataTree.getChildren(e,!0,!0);if(t)for(let e of o)this._selectRow(e,!0);else for(let e of o)this._deselectRow(e,!0)}},SortModule:we,SpreadsheetModule:class extends a{static moduleName="spreadsheet";constructor(e){super(e),this.sheets=[],this.element=null,this.registerTableOption("spreadsheet",!1),this.registerTableOption("spreadsheetRows",50),this.registerTableOption("spreadsheetColumns",50),this.registerTableOption("spreadsheetColumnDefinition",{}),this.registerTableOption("spreadsheetOutputFull",!1),this.registerTableOption("spreadsheetData",!1),this.registerTableOption("spreadsheetSheets",!1),this.registerTableOption("spreadsheetSheetTabs",!1),this.registerTableOption("spreadsheetSheetTabsElement",!1),this.registerTableFunction("setSheets",this.setSheets.bind(this)),this.registerTableFunction("addSheet",this.addSheet.bind(this)),this.registerTableFunction("getSheets",this.getSheets.bind(this)),this.registerTableFunction("getSheetDefinitions",this.getSheetDefinitions.bind(this)),this.registerTableFunction("setSheetData",this.setSheetData.bind(this)),this.registerTableFunction("getSheet",this.getSheet.bind(this)),this.registerTableFunction("getSheetData",this.getSheetData.bind(this)),this.registerTableFunction("clearSheet",this.clearSheet.bind(this)),this.registerTableFunction("removeSheet",this.removeSheetFunc.bind(this)),this.registerTableFunction("activeSheet",this.activeSheetFunc.bind(this))}initialize(){this.options("spreadsheet")&&(this.subscribe("table-initialized",this.tableInitialized.bind(this)),this.subscribe("data-loaded",this.loadRemoteData.bind(this)),this.table.options.index="_id",this.options("spreadsheetData")&&this.options("spreadsheetSheets")&&(console.warn("You cannot use spreadsheetData and spreadsheetSheets at the same time, ignoring spreadsheetData"),this.table.options.spreadsheetData=!1),this.compatibilityCheck(),this.options("spreadsheetSheetTabs")&&this.initializeTabset())}compatibilityCheck(){this.options("data")&&console.warn("Do not use the data option when working with spreadsheets, use either spreadsheetData or spreadsheetSheets to pass data into the table"),this.options("pagination")&&console.warn("The spreadsheet module is not compatible with the pagination module"),this.options("groupBy")&&console.warn("The spreadsheet module is not compatible with the row grouping module"),this.options("responsiveCollapse")&&console.warn("The spreadsheet module is not compatible with the responsive collapse module")}initializeTabset(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tabs");var e=this.options("spreadsheetSheetTabsElement");!e||e instanceof HTMLElement||(e=document.querySelector(e))||console.warn("Unable to find element matching spreadsheetSheetTabsElement selector:",this.options("spreadsheetSheetTabsElement")),e?e.appendChild(this.element):this.footerAppend(this.element)}tableInitialized(){this.sheets.length?this.loadSheet(this.sheets[0]):this.options("spreadsheetSheets")?this.loadSheets(this.options("spreadsheetSheets")):this.options("spreadsheetData")&&this.loadData(this.options("spreadsheetData"))}loadRemoteData(e,t,o){return console.log("data",e,t,o),Array.isArray(e)?(this.table.dataLoader.clearAlert(),this.dispatchExternal("dataLoaded",e),!e.length||Array.isArray(e[0])?this.loadData(e):this.loadSheets(e)):console.error("Spreadsheet Loading Error - Unable to process remote data due to invalid data type \nExpecting: array \nReceived: ",typeof e,"\nData: ",e),!1}loadData(e){var t={data:e};this.loadSheet(this.newSheet(t))}destroySheets(){this.sheets.forEach((e=>{e.destroy()})),this.sheets=[],this.activeSheet=null}loadSheets(e){Array.isArray(e)||(e=[]),this.destroySheets(),e.forEach((e=>{this.newSheet(e)})),this.loadSheet(this.sheets[0])}loadSheet(e){this.activeSheet!==e&&(this.activeSheet&&this.activeSheet.unload(),this.activeSheet=e,e.load())}newSheet(e={}){var t;return e.rows||(e.rows=this.options("spreadsheetRows")),e.columns||(e.columns=this.options("spreadsheetColumns")),t=new Ae(this,e),this.sheets.push(t),this.element&&this.element.appendChild(t.element),t}removeSheet(e){var t,o=this.sheets.indexOf(e);this.sheets.length>1?o>-1&&(this.sheets.splice(o,1),e.destroy(),this.activeSheet===e&&((t=this.sheets[o-1]||this.sheets[0])?this.loadSheet(t):this.activeSheet=null)):console.warn("Unable to remove sheet, at least one sheet must be active")}lookupSheet(e){return e?e instanceof Ae?e:e instanceof xe?e._sheet:this.sheets.find((t=>t.key===e))||!1:this.activeSheet}setSheets(e){return this.loadSheets(e),this.getSheets()}addSheet(e){return this.newSheet(e).getComponent()}getSheetDefinitions(){return this.sheets.map((e=>e.getDefinition()))}getSheets(){return this.sheets.map((e=>e.getComponent()))}getSheet(e){var t=this.lookupSheet(e);return!!t&&t.getComponent()}setSheetData(e,t){e&&!t&&(t=e,e=!1);var o=this.lookupSheet(e);return!!o&&o.setData(t)}getSheetData(e){var t=this.lookupSheet(e);return!!t&&t.getData()}clearSheet(e){var t=this.lookupSheet(e);return!!t&&t.clear()}removeSheetFunc(e){var t=this.lookupSheet(e);t&&this.removeSheet(t)}activeSheetFunc(e){var t=this.lookupSheet(e);return!!t&&this.loadSheet(t)}},TooltipModule:class extends a{static moduleName="tooltip";constructor(e){super(e),this.tooltipSubscriber=null,this.headerSubscriber=null,this.timeout=null,this.popupInstance=null,this.registerTableOption("tooltipDelay",300),this.registerColumnOption("tooltip"),this.registerColumnOption("headerTooltip")}initialize(){this.deprecatedOptionsCheck(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeColumn(e){e.definition.headerTooltip&&!this.headerSubscriber&&(this.headerSubscriber=!0,this.subscribe("column-mousemove",this.mousemoveCheck.bind(this,"headerTooltip")),this.subscribe("column-mouseout",this.mouseoutCheck.bind(this,"headerTooltip"))),e.definition.tooltip&&!this.tooltipSubscriber&&(this.tooltipSubscriber=!0,this.subscribe("cell-mousemove",this.mousemoveCheck.bind(this,"tooltip")),this.subscribe("cell-mouseout",this.mouseoutCheck.bind(this,"tooltip")))}mousemoveCheck(e,t,o){var n="tooltip"===e?o.column.definition.tooltip:o.definition.headerTooltip;n&&(this.clearPopup(),this.timeout=setTimeout(this.loadTooltip.bind(this,t,o,n),this.table.options.tooltipDelay))}mouseoutCheck(e,t,o){this.popupInstance||this.clearPopup()}clearPopup(e,t,o){clearTimeout(this.timeout),this.timeout=null,this.popupInstance&&this.popupInstance.hide()}loadTooltip(e,t,o){var n,r,i;"function"==typeof o&&(o=o(e,t.getComponent(),(function(e){r=e}))),o instanceof HTMLElement?n=o:(n=document.createElement("div"),!0===o&&(t instanceof A?o=t.value:t.definition.field?this.langBind("columns|"+t.definition.field,(e=>{n.innerHTML=o=e||t.definition.title})):o=t.definition.title),n.innerHTML=o),(o||0===o||!1===o)&&(n.classList.add("tabulator-tooltip"),n.addEventListener("mousemove",(e=>e.preventDefault())),this.popupInstance=this.popup(n),"function"==typeof r&&this.popupInstance.renderCallback(r),i=this.popupInstance.containerEventCoords(e),this.popupInstance.show(i.x+15,i.y+15).hideOnBlur((()=>{this.dispatchExternal("TooltipClosed",t.getComponent()),this.popupInstance=null})),this.dispatchExternal("TooltipOpened",t.getComponent()))}},ValidateModule:Se}),Re={debugEventsExternal:!1,debugEventsInternal:!1,debugInvalidOptions:!0,debugInvalidComponentFuncs:!0,debugInitialization:!0,debugDeprecation:!0,height:!1,minHeight:!1,maxHeight:!1,columnHeaderVertAlign:"top",popupContainer:!1,columns:[],columnDefaults:{},rowHeader:!1,data:!1,autoColumns:!1,autoColumnsDefinitions:!1,nestedFieldSeparator:".",footerElement:!1,index:"id",textDirection:"auto",addRowPos:"bottom",headerVisible:!0,renderVertical:"virtual",renderHorizontal:"basic",renderVerticalBuffer:0,scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,rowHeight:null,placeholder:!1,dataLoader:!0,dataLoaderLoading:!1,dataLoaderError:!1,dataLoaderErrorTimeout:3e3,dataSendParams:{},dataReceiveParams:{},dependencies:{}};class Me{constructor(e,t,o={}){this.table=e,this.msgType=t,this.registeredDefaults=Object.assign({},o)}register(e,t){this.registeredDefaults[e]=t}generate(e,t={}){var o=Object.assign({},this.registeredDefaults),n=this.table.options.debugInvalidOptions||!0===t.debugInvalidOptions;Object.assign(o,e);for(let e in t)o.hasOwnProperty(e)||(n&&console.warn("Invalid "+this.msgType+" option:",e),o[e]=t.key);for(let e in o)e in t?o[e]=t[e]:Array.isArray(o[e])?o[e]=Object.assign([],o[e]):"object"==typeof o[e]&&null!==o[e]?o[e]=Object.assign({},o[e]):void 0===o[e]&&delete o[e];return o}}class Ie extends n{constructor(e){super(e),this.elementVertical=e.rowManager.element,this.elementHorizontal=e.columnManager.element,this.tableElement=e.rowManager.tableElement,this.verticalFillMode="fit"}initialize(){}clearRows(){}clearColumns(){}reinitializeColumnWidths(e){}renderRows(){}renderColumns(){}rerenderRows(e){e&&e()}rerenderColumns(e,t){}renderRowCells(e){}rerenderRowCells(e,t){}scrollColumns(e,t){}scrollRows(e,t){}resize(){}scrollToRow(e){}scrollToRowNearestTop(e){}visibleRows(e){return[]}rows(){return this.table.rowManager.getDisplayRows()}styleRow(e,t){var o=e.getElement();t%2?(o.classList.add("tabulator-row-even"),o.classList.remove("tabulator-row-odd")):(o.classList.add("tabulator-row-odd"),o.classList.remove("tabulator-row-even"))}clear(){this.clearRows(),this.clearColumns()}render(){this.renderRows(),this.renderColumns()}rerender(e){this.rerenderRows(),this.rerenderColumns()}scrollToRowPosition(e,t,o){var n=this.rows().indexOf(e),i=e.getElement(),a=0;return new Promise(((l,s)=>{if(n>-1){if(void 0===o&&(o=this.table.options.scrollToRowIfVisible),!o&&r.elVisible(i)&&(a=r.elOffset(i).top-r.elOffset(this.elementVertical).top)>0&&a{o.appendChild(e.getElement())})),e.element.appendChild(o),t||e.cells.forEach((e=>{e.cellRendered()}))}reinitializeColumnWidths(e){e.forEach((function(e){e.reinitializeWidth()}))}}class Oe extends Ie{constructor(e){super(e),this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.windowBuffer=200,this.visibleRows=null,this.initialized=!1,this.isFitData=!1,this.columns=[]}initialize(){this.compatibilityCheck(),this.layoutCheck(),this.vertScrollListen()}compatibilityCheck(){"fitDataTable"==this.options("layout")&&console.warn("Horizontal Virtual DOM is not compatible with fitDataTable layout mode"),this.options("responsiveLayout")&&console.warn("Horizontal Virtual DOM is not compatible with responsive columns"),this.options("rtl")&&console.warn("Horizontal Virtual DOM is not currently compatible with RTL text direction")}layoutCheck(){this.isFitData=this.options("layout").startsWith("fitData")}vertScrollListen(){this.subscribe("scroll-vertical",this.clearVisRowCache.bind(this)),this.subscribe("data-refreshed",this.clearVisRowCache.bind(this))}clearVisRowCache(){this.visibleRows=null}renderColumns(e,t){this.dataChange()}scrollColumns(e,t){this.scrollLeft!=e&&(this.scrollLeft=e,this.scroll(e-(this.vDomScrollPosLeft+this.windowBuffer)))}calcWindowBuffer(){var e=this.elementVertical.clientWidth;this.table.columnManager.columnsByIndex.forEach((t=>{if(t.visible){var o=t.getWidth();o>e&&(e=o)}})),this.windowBuffer=2*e}rerenderColumns(e,t){var o={cols:this.columns,leftCol:this.leftCol,rightCol:this.rightCol},n=0;e&&!this.initialized||(this.clear(),this.calcWindowBuffer(),this.scrollLeft=this.elementVertical.scrollLeft,this.vDomScrollPosLeft=this.scrollLeft-this.windowBuffer,this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,this.table.columnManager.columnsByIndex.forEach((e=>{var t,o={};e.visible&&(e.modules.frozen||(t=e.getWidth(),o.leftPos=n,o.rightPos=n+t,o.width=t,this.isFitData&&(o.fitDataCheck=!e.modules.vdomHoz||e.modules.vdomHoz.fitDataCheck),n+t>this.vDomScrollPosLeft&&n{t.appendChild(e.getElement())})),e.element.appendChild(t),e.cells.forEach((e=>{e.cellRendered()}))}}rerenderRowCells(e,t){this.reinitializeRow(e,t)}reinitializeColumnWidths(e){for(let e=this.leftCol;e<=this.rightCol;e++){let t=this.columns[e];t&&t.reinitializeWidth()}}deinitialize(){this.initialized=!1}clear(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0}dataChange(){var e,t,o=!1;if(this.isFitData){if(this.table.columnManager.columnsByIndex.forEach((e=>{!e.definition.width&&e.visible&&(o=!0)})),o&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,e=this.chain("rows-sample",[1],[],(()=>this.table.rowManager.getDisplayRows()))[0])){t=e.getElement(),e.generateCells(),this.tableElement.appendChild(t);for(let o=0;o{e!==this.columns[o]&&(t=!1)})),!t)}reinitializeRows(){var e=this.getVisibleRows(),t=this.table.rowManager.getRows().filter((t=>!e.includes(t)));e.forEach((e=>{this.reinitializeRow(e,!0)})),t.forEach((e=>{e.deinitialize()}))}getVisibleRows(){return this.visibleRows||(this.visibleRows=this.table.rowManager.getVisibleRows()),this.visibleRows}scroll(e){this.vDomScrollPosLeft+=e,this.vDomScrollPosRight+=e,Math.abs(e)>this.windowBuffer/2?this.rerenderColumns():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())}colPositionAdjust(e,t,o){for(let n=e;n{if("group"!==e.type){var t=e.getCell(o);e.getElement().insertBefore(t.getElement(),e.getCell(this.columns[this.rightCol]).getElement().nextSibling),t.cellRendered()}})),this.fitDataColActualWidthCheck(o),this.rightCol++,this.getVisibleRows().forEach((e=>{"group"!==e.type&&(e.modules.vdomHoz.rightCol=this.rightCol)})),this.rightCol>=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=o.getWidth()):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}addColLeft(){for(var e=!1,t=!0;t;){let o=this.columns[this.leftCol-1];if(o)if(o.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){e=!0,this.getVisibleRows().forEach((e=>{if("group"!==e.type){var t=e.getCell(o);e.getElement().insertBefore(t.getElement(),e.getCell(this.columns[this.leftCol]).getElement()),t.cellRendered()}})),this.leftCol--,this.getVisibleRows().forEach((e=>{"group"!==e.type&&(e.modules.vdomHoz.leftCol=this.leftCol)})),this.leftCol<=0?this.vDomPadLeft=0:this.vDomPadLeft-=o.getWidth();let t=this.fitDataColActualWidthCheck(o);t&&(this.scrollLeft=this.elementVertical.scrollLeft=this.elementVertical.scrollLeft+t,this.vDomPadRight-=t)}else t=!1;else t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}removeColRight(){for(var e=!1,t=!0;t;){let o=this.columns[this.rightCol];o&&o.modules.vdomHoz.leftPos>this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach((e=>{if("group"!==e.type){var t=e.getCell(o);try{e.getElement().removeChild(t.getElement())}catch(e){console.warn("Could not removeColRight",e.message)}}})),this.vDomPadRight+=o.getWidth(),this.rightCol--,this.getVisibleRows().forEach((e=>{"group"!==e.type&&(e.modules.vdomHoz.rightCol=this.rightCol)}))):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}removeColLeft(){for(var e=!1,t=!0;t;){let o=this.columns[this.leftCol];o&&o.modules.vdomHoz.rightPos{if("group"!==e.type){var t=e.getCell(o);try{e.getElement().removeChild(t.getElement())}catch(e){console.warn("Could not removeColLeft",e.message)}}})),this.vDomPadLeft+=o.getWidth(),this.leftCol++,this.getVisibleRows().forEach((e=>{"group"!==e.type&&(e.modules.vdomHoz.leftCol=this.leftCol)}))):t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}fitDataColActualWidthCheck(e){var t,o;return e.modules.vdomHoz.fitDataCheck&&(e.reinitializeWidth(),(o=(t=e.getWidth())-e.modules.vdomHoz.width)&&(e.modules.vdomHoz.rightPos+=o,e.modules.vdomHoz.width=t,this.colPositionAdjust(this.columns.indexOf(e)+1,this.columns.length,o)),e.modules.vdomHoz.fitDataCheck=!1),o}initializeRow(e){if("group"!==e.type){e.modules.vdomHoz={leftCol:this.leftCol,rightCol:this.rightCol},this.table.modules.frozenColumns&&this.table.modules.frozenColumns.leftColumns.forEach((t=>{this.appendCell(e,t)}));for(let t=this.leftCol;t<=this.rightCol;t++)this.appendCell(e,this.columns[t]);this.table.modules.frozenColumns&&this.table.modules.frozenColumns.rightColumns.forEach((t=>{this.appendCell(e,t)}))}}appendCell(e,t){if(t&&t.visible){let o=e.getCell(t);e.getElement().appendChild(o.getElement()),o.cellRendered()}}reinitializeRow(e,t){if("group"!==e.type&&(t||!e.modules.vdomHoz||e.modules.vdomHoz.leftCol!==this.leftCol||e.modules.vdomHoz.rightCol!==this.rightCol)){for(var o=e.getElement();o.firstChild;)o.removeChild(o.firstChild);this.initializeRow(e)}}}class Te extends n{constructor(e){super(e),this.blockHozScrollEvent=!1,this.headersElement=null,this.contentsElement=null,this.rowHeader=null,this.element=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.optionsList=new Me(this.table,"column definition",S),this.redrawBlock=!1,this.redrawBlockUpdate=null,this.renderer=null}initialize(){this.initializeRenderer(),this.headersElement=this.createHeadersElement(),this.contentsElement=this.createHeaderContentsElement(),this.element=this.createHeaderElement(),this.contentsElement.insertBefore(this.headersElement,this.contentsElement.firstChild),this.element.insertBefore(this.contentsElement,this.element.firstChild),this.initializeScrollWheelWatcher(),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("scrollbar-vertical",this.padVerticalScrollbar.bind(this))}padVerticalScrollbar(e){this.table.rtl?this.headersElement.style.marginLeft=e+"px":this.headersElement.style.marginRight=e+"px"}initializeRenderer(){var e,t={virtual:Oe,basic:Pe};(e="string"==typeof this.table.options.renderHorizontal?t[this.table.options.renderHorizontal]:this.table.options.renderHorizontal)?(this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize()):console.error("Unable to find matching renderer:",this.table.options.renderHorizontal)}createHeadersElement(){var e=document.createElement("div");return e.classList.add("tabulator-headers"),e.setAttribute("role","row"),e}createHeaderContentsElement(){var e=document.createElement("div");return e.classList.add("tabulator-header-contents"),e.setAttribute("role","rowgroup"),e}createHeaderElement(){var e=document.createElement("div");return e.classList.add("tabulator-header"),e.setAttribute("role","rowgroup"),this.table.options.headerVisible||e.classList.add("tabulator-header-hidden"),e}getElement(){return this.element}getContentsElement(){return this.contentsElement}getHeadersElement(){return this.headersElement}scrollHorizontal(e){this.contentsElement.scrollLeft=e,this.scrollLeft=e,this.renderer.scrollColumns(e)}initializeScrollWheelWatcher(){this.contentsElement.addEventListener("wheel",(e=>{var t;e.deltaX&&(t=this.contentsElement.scrollLeft+e.deltaX,this.table.rowManager.scrollHorizontal(t),this.table.columnManager.scrollHorizontal(t))}))}generateColumnsFromRowData(e){var t=[],o={},n="full"===this.table.options.autoColumns?e:[e[0]],r=this.table.options.autoColumnsDefinitions;if(e&&e.length){if(n.forEach((e=>{Object.keys(e).forEach(((n,r)=>{let i,a=e[n];o[n]?!0!==o[n]&&void 0!==a&&(o[n].sorter=this.calculateSorterFromValue(a),o[n]=!0):(i={field:n,title:n,sorter:this.calculateSorterFromValue(a)},t.splice(r,0,i),o[n]=void 0!==a||i)}))})),r)switch(typeof r){case"function":this.table.options.columns=r.call(this.table,t);break;case"object":Array.isArray(r)?t.forEach((e=>{var t=r.find((t=>t.field===e.field));t&&Object.assign(e,t)})):t.forEach((e=>{r[e.field]&&Object.assign(e,r[e.field])})),this.table.options.columns=t}else this.table.options.columns=t;this.setColumns(this.table.options.columns)}}calculateSorterFromValue(e){var t;switch(typeof e){case"undefined":t="string";break;case"boolean":t="boolean";break;case"number":t="number";break;case"object":t=Array.isArray(e)?"array":"string";break;default:t=isNaN(e)||""===e?e.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?"alphanum":"string":"number"}return t}setColumns(e,t){for(;this.headersElement.firstChild;)this.headersElement.removeChild(this.headersElement.firstChild);this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.dispatch("columns-loading"),this.dispatchExternal("columnsLoading"),this.table.options.rowHeader&&(this.rowHeader=new k(!0===this.table.options.rowHeader?{}:this.table.options.rowHeader,this,!0),this.columns.push(this.rowHeader),this.headersElement.appendChild(this.rowHeader.getElement()),this.rowHeader.columnRendered()),e.forEach(((e,t)=>{this._addColumn(e)})),this._reIndexColumns(),this.dispatch("columns-loaded"),this.subscribedExternal("columnsLoaded")&&this.dispatchExternal("columnsLoaded",this.getComponents()),this.rerenderColumns(!1,!0),this.redraw(!0)}_addColumn(e,t,o){var n=new k(e,this),r=n.getElement(),i=o?this.findColumnIndex(o):o;if(!t||!this.rowHeader||o&&o!==this.rowHeader||(t=!1,o=this.rowHeader,i=0),o&&i>-1){var a=o.getTopColumn(),l=this.columns.indexOf(a),s=a.getElement();t?(this.columns.splice(l,0,n),s.parentNode.insertBefore(r,s)):(this.columns.splice(l+1,0,n),s.parentNode.insertBefore(r,s.nextSibling))}else t?(this.columns.unshift(n),this.headersElement.insertBefore(n.getElement(),this.headersElement.firstChild)):(this.columns.push(n),this.headersElement.appendChild(n.getElement()));return n.columnRendered(),n}registerColumnField(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)}registerColumnPosition(e){this.columnsByIndex.push(e)}_reIndexColumns(){this.columnsByIndex=[],this.columns.forEach((function(e){e.reRegisterPosition()}))}verticalAlignHeaders(){var e=0;this.redrawBlock||(this.headersElement.style.height="",this.columns.forEach((e=>{e.clearVerticalAlign()})),this.columns.forEach((t=>{var o=t.getHeight();o>e&&(e=o)})),this.headersElement.style.height=e+"px",this.columns.forEach((t=>{t.verticalAlign(this.table.options.columnHeaderVertAlign,e)})),this.table.rowManager.adjustTableSize())}findColumn(e){var t;return"object"!=typeof e?this.columnsByField[e]||!1:e instanceof k?e:e instanceof E?e._getSelf()||!1:"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&(t=[],this.columns.forEach((e=>{t.push(e),t=t.concat(e.getColumns(!0))})),t.find((t=>t.element===e))||!1)}getColumnByField(e){return this.columnsByField[e]}getColumnsByFieldRoot(e){var t=[];return Object.keys(this.columnsByField).forEach((o=>{(this.table.options.nestedFieldSeparator?o.split(this.table.options.nestedFieldSeparator)[0]:o)===e&&t.push(this.columnsByField[o])})),t}getColumnByIndex(e){return this.columnsByIndex[e]}getFirstVisibleColumn(){var e=this.columnsByIndex.findIndex((e=>e.visible));return e>-1&&this.columnsByIndex[e]}getVisibleColumnsByIndex(){return this.columnsByIndex.filter((e=>e.visible))}getColumns(){return this.columns}findColumnIndex(e){return this.columnsByIndex.findIndex((t=>e===t))}getRealColumns(){return this.columnsByIndex}traverse(e){this.columnsByIndex.forEach(((t,o)=>{e(t,o)}))}getDefinitions(e){var t=[];return this.columnsByIndex.forEach((o=>{(!e||e&&o.visible)&&t.push(o.getDefinition())})),t}getDefinitionTree(){var e=[];return this.columns.forEach((t=>{e.push(t.getDefinition(!0))})),e}getComponents(e){var t=[];return(e?this.columns:this.columnsByIndex).forEach((e=>{t.push(e.getComponent())})),t}getWidth(){var e=0;return this.columnsByIndex.forEach((t=>{t.visible&&(e+=t.getWidth())})),e}moveColumn(e,t,o){t.element.parentNode.insertBefore(e.element,t.element),o&&t.element.parentNode.insertBefore(t.element,e.element),this.moveColumnActual(e,t,o),this.verticalAlignHeaders(),this.table.rowManager.reinitialize()}moveColumnActual(e,t,o){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,o):this._moveColumnInArray(this.columns,e,t,o),this._moveColumnInArray(this.columnsByIndex,e,t,o,!0),this.rerenderColumns(!0),this.dispatch("column-moved",e,t,o),this.subscribedExternal("columnMoved")&&this.dispatchExternal("columnMoved",e.getComponent(),this.table.columnManager.getComponents())}_moveColumnInArray(e,t,o,n,r){var i,a=e.indexOf(t);a>-1&&(e.splice(a,1),(i=e.indexOf(o))>-1?n&&(i+=1):i=a,e.splice(i,0,t),r&&(this.chain("column-moving-rows",[t,o,n],null,[])||[]).concat(this.table.rowManager.rows).forEach((function(e){if(e.cells.length){var t=e.cells.splice(a,1)[0];e.cells.splice(i,0,t)}})))}scrollToColumn(e,t,o){var n=0,r=e.getLeftOffset(),i=0,a=e.getElement();return new Promise(((l,s)=>{if(void 0===t&&(t=this.table.options.scrollToColumnPosition),void 0===o&&(o=this.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":i=-this.element.clientWidth/2;break;case"right":i=a.clientWidth-this.headersElement.clientWidth}if(!o&&r>0&&r+a.offsetWidth{t.push(o.generateCell(e))})),t}getFlexBaseWidth(){var e=this.table.element.clientWidth,t=0;return this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(e-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),this.columnsByIndex.forEach((function(o){var n,r,i;o.visible&&(n=o.definition.width||0,r=parseInt(o.minWidth),i="string"==typeof n?n.indexOf("%")>-1?e/100*parseInt(n):parseInt(n):n,t+=i>r?i:r)})),t}addColumn(e,t,o){return new Promise(((n,r)=>{var i=this._addColumn(e,t,o);this._reIndexColumns(),this.dispatch("column-add",e,t,o),"fitColumns"!=this.layoutMode()&&i.reinitializeWidth(),this.redraw(!0),this.table.rowManager.reinitialize(),this.rerenderColumns(),n(i)}))}deregisterColumn(e){var t,o=e.getField();o&&delete this.columnsByField[o],(t=this.columnsByIndex.indexOf(e))>-1&&this.columnsByIndex.splice(t,1),(t=this.columns.indexOf(e))>-1&&this.columns.splice(t,1),this.verticalAlignHeaders(),this.redraw()}rerenderColumns(e,t){this.redrawBlock?(!1===e||!0===e&&null===this.redrawBlockUpdate)&&(this.redrawBlockUpdate=e):this.renderer.rerenderColumns(e,t)}blockRedraw(){this.redrawBlock=!0,this.redrawBlockUpdate=null}restoreRedraw(){this.redrawBlock=!1,this.verticalAlignHeaders(),this.renderer.rerenderColumns(this.redrawBlockUpdate)}redraw(e){r.elVisible(this.element)&&this.verticalAlignHeaders(),e&&(this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),this.confirm("table-redrawing",e)||this.layoutRefresh(e),this.dispatch("table-redraw",e),this.table.footerManager.redraw()}}class $e extends Ie{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.scrollTop=0,e.scrollLeft=0,e.style.minWidth="",e.style.minHeight="",e.style.display="",e.style.visibility=""}renderRows(){var e=this.tableElement,t=!0,o=document.createDocumentFragment(),n=this.rows();n.forEach(((e,n)=>{this.styleRow(e,n),e.initialize(!1,!0),"group"!==e.type&&(t=!1),o.appendChild(e.getElement())})),e.appendChild(o),n.forEach((e=>{e.rendered(),e.heightInitialized||e.calcHeight(!0)})),n.forEach((e=>{e.heightInitialized||e.setCellHeight()})),e.style.minWidth=t?this.table.columnManager.getWidth()+"px":""}rerenderRows(e){this.clearRows(),e&&e(),this.renderRows(),this.rows().length||this.table.rowManager.tableEmpty()}scrollToRowNearestTop(e){var t=r.elOffset(e.getElement()).top;return!(Math.abs(this.elementVertical.scrollTop-t)>Math.abs(this.elementVertical.scrollTop+this.elementVertical.clientHeight-t))}scrollToRow(e){var t=e.getElement();this.elementVertical.scrollTop=r.elOffset(t).top-r.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(e){return this.rows()}}class ze extends Ie{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[]}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.style.paddingTop="",e.style.paddingBottom="",e.style.minHeight="",e.style.display="",e.style.visibility="",this.elementVertical.scrollTop=0,this.elementVertical.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0}renderRows(){this._virtualRenderFill()}rerenderRows(e){for(var t=this.elementVertical.scrollTop,o=!1,n=!1,r=this.table.rowManager.scrollLeft,i=this.rows(),a=this.vDomTop;a<=this.vDomBottom;a++)if(i[a]){var l=t-i[a].getElement().offsetTop;if(!(!1===n||Math.abs(l){e.deinitializeHeight()})),e&&e(),this.rows().length?this._virtualRenderFill(!1===o?this.rows.length-1:o,!0,n||0):(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(r)}scrollColumns(e){this.table.rowManager.scrollHorizontal(e)}scrollRows(e,t){var o=e-this.vDomScrollPosTop,n=e-this.vDomScrollPosBottom,r=2*this.vDomWindowBuffer,i=this.rows();if(this.scrollTop=e,-o>r||n>r){var a=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementVertical.scrollTop/this.elementVertical.scrollHeight*i.length)),this.scrollColumns(a)}else t?(o<0&&this._addTopRow(i,-o),n<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(i,-n):this.vDomScrollPosBottom=this.scrollTop)):(n>=0&&this._addBottomRow(i,n),o>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(i,o):this.vDomScrollPosTop=this.scrollTop))}resize(){this.vDomWindowBuffer=this.table.options.renderVerticalBuffer||this.elementVertical.clientHeight}scrollToRowNearestTop(e){var t=this.rows().indexOf(e);return!(Math.abs(this.vDomTop-t)>Math.abs(this.vDomBottom-t))}scrollToRow(e){var t=this.rows().indexOf(e);t>-1&&this._virtualRenderFill(t,!0)}visibleRows(e){var t=this.elementVertical.scrollTop,o=this.elementVertical.clientHeight+t,n=!1,r=0,i=0,a=this.rows();if(e)r=this.vDomTop,i=this.vDomBottom;else for(var l=this.vDomTop;l<=this.vDomBottom;l++)if(a[l])if(n){if(!(o-a[l].getElement().offsetTop>=0))break;i=l}else if(t-a[l].getElement().offsetTop>=0)r=l;else{if(n=!0,!(o-a[l].getElement().offsetTop>=0))break;i=l}return a.slice(r,i+1)}_virtualRenderFill(e,t,o){var n,i,a=this.tableElement,l=this.elementVertical,s=0,c=0,u=0,d=0,p=0,h=0,m=this.rows(),f=m.length,g=0,b=[],v=0,y=0,w=this.table.rowManager.fixedHeight,C=this.elementVertical.clientHeight,x=this.table.options.rowHeight,A=!0;if(o=o||0,e=e||0){for(;a.firstChild;)a.removeChild(a.firstChild);(d=(f-e+1)*this.vDomRowHeight){e.rendered(),e.heightInitialized||e.calcHeight(!0)})),b.forEach((e=>{e.heightInitialized||e.setCellHeight()})),b.forEach((e=>{u=e.getHeight(),vthis.vDomWindowBuffer&&(this.vDomWindowBuffer=2*u),v++})),A=this.table.rowManager.adjustTableSize(),C=this.elementVertical.clientHeight,A&&(w||this.table.options.maxHeight)&&(x=c/v,y=Math.max(this.vDomWindowMinTotalRows,Math.ceil(C/x+this.vDomWindowBuffer/x)))}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+o:this.scrollTop-p,this.vDomBottomPad=this.vDomBottom==f-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-c-p,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((c+p)/v),this.vDomBottomPad=this.vDomRowHeight*(f-this.vDomBottom-1),this.vDomScrollHeight=p+c+this.vDomBottomPad-C),a.style.paddingTop=this.vDomTopPad+"px",a.style.paddingBottom=this.vDomBottomPad+"px",t&&(this.scrollTop=this.vDomTopPad+p+o-(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?this.elementVertical.offsetHeight-C:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-C),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&t&&(this.scrollTop+=this.elementVertical.offsetHeight-C),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,l.scrollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(e,t){for(var o=this.tableElement,n=[],r=0,i=this.vDomTop-1,a=0,l=!0;l;)if(this.vDomTop){let s,c,u=e[i];u&&a=s?(this.styleRow(u,i),o.insertBefore(u.getElement(),o.firstChild),u.initialized&&u.heightInitialized||n.push(u),u.initialize(),c||(s=u.getElement().offsetHeight,s>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*s)),t-=s,r+=s,this.vDomTop--,i--,a++):l=!1):l=!1}else l=!1;for(let e of n)e.clearCellHeight();this._quickNormalizeRowHeight(n),r&&(this.vDomTopPad-=r,this.vDomTopPad<0&&(this.vDomTopPad=i*this.vDomRowHeight),i<1&&(this.vDomTopPad=0),o.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=r)}_removeTopRow(e,t){for(var o=[],n=0,r=0,i=!0;i;){let a,l=e[this.vDomTop];l&&r=a?(this.vDomTop++,t-=a,n+=a,o.push(l),r++):i=!1):i=!1}for(let e of o){let t=e.getElement();t.parentNode&&t.parentNode.removeChild(t)}n&&(this.vDomTopPad+=n,this.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?n:n+this.vDomWindowBuffer)}_addBottomRow(e,t){for(var o=this.tableElement,n=[],r=0,i=this.vDomBottom+1,a=0,l=!0;l;){let s,c,u=e[i];u&&a=s?(this.styleRow(u,i),o.appendChild(u.getElement()),u.initialized&&u.heightInitialized||n.push(u),u.initialize(),c||(s=u.getElement().offsetHeight,s>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*s)),t-=s,r+=s,this.vDomBottom++,i++,a++):l=!1):l=!1}for(let e of n)e.clearCellHeight();this._quickNormalizeRowHeight(n),r&&(this.vDomBottomPad-=r,(this.vDomBottomPad<0||i==e.length-1)&&(this.vDomBottomPad=0),o.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=r)}_removeBottomRow(e,t){for(var o=[],n=0,r=0,i=!0;i;){let a,l=e[this.vDomBottom];l&&r=a?(this.vDomBottom--,t-=a,n+=a,o.push(l),r++):i=!1):i=!1}for(let e of o){let t=e.getElement();t.parentNode&&t.parentNode.removeChild(t)}n&&(this.vDomBottomPad+=n,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=n)}_quickNormalizeRowHeight(e){for(let t of e)t.calcHeight();for(let t of e)t.setCellHeight()}}class De extends n{constructor(e){super(e),this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.placeholder=null,this.placeholderContents=null,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRowsPipeline=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRenderInPosition=!1,this.dataPipeline=[],this.displayPipeline=[],this.scrollbarWidth=0,this.renderer=null}createHolderElement(){var e=document.createElement("div");return e.classList.add("tabulator-tableholder"),e.setAttribute("tabindex",0),e}createTableElement(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e.setAttribute("role","rowgroup"),e}initializePlaceholder(){var e=this.table.options.placeholder;if("function"==typeof e&&(e=e.call(this.table)),e=this.chain("placeholder",[e],e,e)||e){let t=document.createElement("div");if(t.classList.add("tabulator-placeholder"),"string"==typeof e){let o=document.createElement("div");o.classList.add("tabulator-placeholder-contents"),o.innerHTML=e,t.appendChild(o),this.placeholderContents=o}else"undefined"!=typeof HTMLElement&&e instanceof HTMLElement?(t.appendChild(e),this.placeholderContents=e):(console.warn("Invalid placeholder provided, must be string or HTML Element",e),this.el=null);this.placeholder=t}}getElement(){return this.element}getTableElement(){return this.tableElement}initialize(){this.initializePlaceholder(),this.initializeRenderer(),this.element.appendChild(this.tableElement),this.firstRender=!0,this.element.addEventListener("scroll",(()=>{var e=this.element.scrollLeft,t=this.scrollLeft>e,o=this.element.scrollTop,n=this.scrollTop>o;this.scrollLeft!=e&&(this.scrollLeft=e,this.dispatch("scroll-horizontal",e,t),this.dispatchExternal("scrollHorizontal",e,t),this._positionPlaceholder()),this.scrollTop!=o&&(this.scrollTop=o,this.renderer.scrollRows(o,n),this.dispatch("scroll-vertical",o,n),this.dispatchExternal("scrollVertical",o,n))}))}findRow(e){return"object"!=typeof e?void 0!==e&&(this.rows.find((t=>t.data[this.table.options.index]==e))||!1):e instanceof M?e:e instanceof R?e._getSelf()||!1:"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&this.rows.find((t=>t.getElement()===e))||!1}getRowFromDataObject(e){return this.rows.find((t=>t.data===e))||!1}getRowFromPosition(e){return this.getDisplayRows().find((t=>"row"===t.type&&t.getPosition()===e&&t.isDisplayed()))}scrollToRow(e,t,o){return this.renderer.scrollToRowPosition(e,t,o)}setData(e,t,o){return new Promise(((n,r)=>{t&&this.getDisplayRows().length?this.table.options.pagination?this._setDataActual(e,!0):this.reRenderInPosition((()=>{this._setDataActual(e)})):(this.table.options.autoColumns&&o&&this.table.initialized&&this.table.columnManager.generateColumnsFromRowData(e),this.resetScroll(),this._setDataActual(e)),n()}))}_setDataActual(e,t){this.dispatchExternal("dataProcessing",e),this._wipeElements(),Array.isArray(e)?(this.dispatch("data-processing",e),e.forEach(((e,t)=>{if(e&&"object"==typeof e){var o=new M(e,this);this.rows.push(o)}else console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",e)})),this.refreshActiveData(!1,!1,t),this.dispatch("data-processed",e),this.dispatchExternal("dataProcessed",e)):console.error("Data Loading Error - Unable to process data due to invalid data type \nExpecting: array \nReceived: ",typeof e,"\nData: ",e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach((e=>{e.wipe()})),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(e,t){var o=this.rows.indexOf(e),n=this.activeRows.indexOf(e);n>-1&&this.activeRows.splice(n,1),o>-1&&this.rows.splice(o,1),this.setActiveRows(this.activeRows),this.displayRowIterator((t=>{var o=t.indexOf(e);o>-1&&t.splice(o,1)})),t||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",e.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(e,t,o,n){return this.addRowActual(e,t,o,n)}addRows(e,t,o,n){var r=[];return new Promise(((i,a)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(void 0===o&&t||void 0!==o&&!t)&&e.reverse(),e.forEach(((e,n)=>{var i=this.addRow(e,t,o,!0);r.push(i),this.dispatch("row-added",i,e,t,o)})),this.refreshActiveData(!!n&&"displayPipeline",!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),i(r)}))}findAddRowPos(e){return void 0===e&&(e=this.table.options.addRowPos),"pos"===e&&(e=!0),"bottom"===e&&(e=!1),e}addRowActual(e,t,o,n){var r,i,a=e instanceof M?e:new M(e||{},this),l=this.findAddRowPos(t),s=-1;return o||(i=this.chain("row-adding-position",[a,l],null,{index:o,top:l}),o=i.index,l=i.top),void 0!==o&&(o=this.findRow(o)),(o=this.chain("row-adding-index",[a,o,l],null,o))&&(s=this.rows.indexOf(o)),o&&s>-1?(r=this.activeRows.indexOf(o),this.displayRowIterator((function(e){var t=e.indexOf(o);t>-1&&e.splice(l?t:t+1,0,a)})),r>-1&&this.activeRows.splice(l?r:r+1,0,a),this.rows.splice(l?s:s+1,0,a)):l?(this.displayRowIterator((function(e){e.unshift(a)})),this.activeRows.unshift(a),this.rows.unshift(a)):(this.displayRowIterator((function(e){e.push(a)})),this.activeRows.push(a),this.rows.push(a)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",a.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),n||this.reRenderInPosition(),a}moveRow(e,t,o){this.dispatch("row-move",e,t,o),this.moveRowActual(e,t,o),this.regenerateRowPositions(),this.dispatch("row-moved",e,t,o),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,o){this.moveRowInArray(this.rows,e,t,o),this.moveRowInArray(this.activeRows,e,t,o),this.displayRowIterator((n=>{this.moveRowInArray(n,e,t,o)})),this.dispatch("row-moving",e,t,o)}moveRowInArray(e,t,o,n){var r,i,a;if(t!==o&&((r=e.indexOf(t))>-1&&(e.splice(r,1),(i=e.indexOf(o))>-1?n?e.splice(i+1,0,t):e.splice(i,0,t):e.splice(r,0,t)),e===this.getDisplayRows())){a=i>r?i:r+1;for(let t=r-1&&t}nextDisplayRow(e,t){var o=this.getDisplayRowIndex(e),n=!1;return!1!==o&&o-1)&&o}getData(e,t){var o=[];return this.getRows(e).forEach((function(e){"row"==e.type&&o.push(e.getData(t||"data"))})),o}getComponents(e){var t=[];return this.getRows(e).forEach((function(e){t.push(e.getComponent())})),t}getDataCount(e){return this.getRows(e).length}scrollHorizontal(e){this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-horizontal",e)}registerDataPipelineHandler(e,t){void 0!==t?(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort(((e,t)=>e.priority-t.priority))):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(e,t){void 0!==t?(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort(((e,t)=>e.priority-t.priority))):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,o){var n=this.table,i="",a=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if("function"==typeof e)if((a=this.dataPipeline.findIndex((t=>t.handler===e)))>-1)i="dataPipeline",t&&(a==this.dataPipeline.length-1?i="display":a++);else{if(!((a=this.displayPipeline.findIndex((t=>t.handler===e)))>-1))return void console.error("Unable to refresh data, invalid handler provided",e);i="displayPipeline",t&&(a==this.displayPipeline.length-1?i="end":a++)}else i=e||"all",a=0;if(this.redrawBlock)return void((!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===i&&a{"row"===e.type&&(e.setPosition(t),t++)}))}setActiveRows(e){this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(e,t){this.displayRows[t]=e,t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(e){return void 0===e?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]}getVisibleRows(e,t){var o=Object.assign([],this.renderer.visibleRows(!t));return e&&(o=this.chain("rows-visible",[t],o,o)),o}displayRowIterator(e){this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!1,!0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidth-this.element.clientWidth),e!==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-vertical",e))}initializeRenderer(){var e,t={virtual:ze,basic:$e};(e="string"==typeof this.table.options.renderVertical?t[this.table.options.renderVertical]:this.table.options.renderVertical)?(this.renderMode=this.table.options.renderVertical,this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize(),!this.table.element.clientHeight&&!this.table.options.height||this.table.options.minHeight&&this.table.options.maxHeight?this.fixedHeight=!1:this.fixedHeight=!0):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t){var o=e.getElement();t%2?(o.classList.add("tabulator-row-even"),o.classList.remove("tabulator-row-odd")):(o.classList.add("tabulator-row-odd"),o.classList.remove("tabulator-row-even"))}normalizeHeight(e){this.activeRows.forEach((function(t){t.normalizeHeight(e)}))}adjustTableSize(){let e,t=this.element.clientHeight,o=!1;if("fill"===this.renderer.verticalFillMode){let n=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){e=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const t="calc(100% - "+n+"px)";this.element.style.minHeight=e||"calc(100% - "+n+"px)",this.element.style.height=t,this.element.style.maxHeight=t}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-n+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),this.fixedHeight||t==this.element.clientHeight||(o=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),o}reinitialize(){this.rows.forEach((function(e){e.reinitialize(!0)}))}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(e){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))}}class Le extends n{constructor(e){super(e),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e}createContainerElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer-contents"),this.element.appendChild(e),e}initializeElement(){this.table.options.footerElement&&("string"==typeof this.table.options.footerElement?"<"===this.table.options.footerElement[0]?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement)):this.element=this.table.options.footerElement)}getElement(){return this.element}append(e){this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustTableSize()}prepend(e){this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(e){e.parentNode.removeChild(e),this.deactivate()}deactivate(e){this.element.firstChild&&!e||(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class Fe extends n{constructor(e){super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var e={};this.listeners.forEach((t=>{e[t]={handler:null,components:[]}})),this.listeners=e}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach((e=>{this.pseudoTrackers[e].subscriber=this.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-mouseover",this.pseudoTrackers[e].subscriber)})),this.pseudoTracking=!0}pseudoMouseEnter(e,t,o){this.pseudoTrackers[e].target!==o&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudoTrackers[e].target=o,this.dispatch(e+"-mouseenter",t,o))}pseudoMouseLeave(e,t){var o=Object.keys(this.pseudoTrackers),n={row:["cell"],cell:["row"]};(o=o.filter((t=>{var o=n[e];return t!==e&&(!o||o&&!o.includes(t))}))).forEach((e=>{var o=this.pseudoTrackers[e].target;this.pseudoTrackers[e].target&&(this.dispatch(e+"-mouseleave",t,o),this.pseudoTrackers[e].target=null)}))}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let o of t)for(let t of e){let e=o+"-"+t;this.subscriptionChange(e,this.subscriptionChanged.bind(this,o,t))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,o){var n=this.listeners[t].components,r=n.indexOf(e),i=!1;o?-1===r&&(n.push(e),i=!0):this.subscribed(e+"-"+t)||r>-1&&(n.splice(r,1),i=!0),"mouseenter"!==t&&"mouseleave"!==t||this.pseudoTracking||this.bindPseudoEvents(),i&&this.updateEventListeners()}updateEventListeners(){for(let e in this.listeners){let t=this.listeners[e];t.components.length?t.handler||(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var o=t.composedPath&&t.composedPath()||t.path,n=this.findTargets(o);n=this.bindComponents(e,n),this.triggerEvents(e,t,n),!this.pseudoTracking||"mouseover"!=e&&"mouseleave"!=e||Object.keys(n).length||this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let o=Object.keys(this.componentMap);for(let n of e){let e=n.classList?[...n.classList]:[];if(e.filter((e=>this.abortClasses.includes(e))).length)break;let r=e.filter((e=>o.includes(e)));for(let e of r)t[this.componentMap[e]]||(t[this.componentMap[e]]=n)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var o=Object.keys(t).reverse(),n=this.listeners[e],r={},i={},a={};for(let e of o){let o,i=t[e],l=this.previousTargets[e];if(l&&l.target===i)o=l.component;else switch(e){case"row":case"group":(n.components.includes("row")||n.components.includes("cell")||n.components.includes("group"))&&(o=this.table.rowManager.getVisibleRows(!0).find((e=>e.getElement()===i)),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[e]=!1));break;case"column":n.components.includes("column")&&(o=this.table.columnManager.findColumn(i));break;case"cell":n.components.includes("cell")&&(r.row instanceof M?o=r.row.findCell(i):t.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"))}o&&(r[e]=o,a[e]={target:i,component:o})}return this.previousTargets=a,Object.keys(t).forEach((e=>{let t=r[e];i[e]=t})),i}triggerEvents(e,t,o){var n=this.listeners[e];for(let r in o)o[r]&&n.components.includes(r)&&this.dispatch(r+"-"+e,t,o[r])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class Ne{constructor(e){this.table=e,this.bindings={}}bind(e,t,o){this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable to bind component handler, a matching function name is already bound",e,t,o):this.bindings[e][t]=o}handle(e,t,o){if(this.bindings[e]&&this.bindings[e][o]&&"function"==typeof this.bindings[e][o].bind)return this.bindings[e][o].bind(null,t);"then"===o||"string"!=typeof o||o.startsWith("_")||this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component does not have a "+o+" function, have you checked that you have the correct Tabulator module installed?")}}class He extends n{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,o,n,r,i){var a=++this.requestOrder;return this.table.destroyed?Promise.resolve():(this.dispatchExternal("dataLoading",e),!e||0!=e.indexOf("{")&&0!=e.indexOf("[")||(e=JSON.parse(e)),this.confirm("data-loading",[e,t,o,r])?(this.loading=!0,r||this.alertLoader(),t=this.chain("data-params",[e,o,r],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams),this.chain("data-load",[e,t,o,r],!1,Promise.resolve([])).then((e=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{Array.isArray(e)||"object"!=typeof e||(e=this.mapParams(e,this.objectInvert(this.table.options.dataReceiveParams)));var t=this.chain("data-loaded",[e],null,e);a==this.requestOrder?(this.clearAlert(),!1!==t&&(this.dispatchExternal("dataLoaded",t),this.table.rowManager.setData(t,n,void 0===i?!n:i))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}})).catch((e=>{console.error("Data Load Error: ",e),this.dispatchExternal("dataLoadError",e),r||this.alertError(),setTimeout((()=>{this.clearAlert()}),this.table.options.dataLoaderErrorTimeout)})).finally((()=>{this.loading=!1}))):(this.dispatchExternal("dataLoaded",e),e||(e=[]),this.table.rowManager.setData(e,n,void 0===i?!n:i),Promise.resolve()))}mapParams(e,t){var o={};for(let n in e)o[t.hasOwnProperty(n)?t[n]:n]=e[n];return o}objectInvert(e){var t={};for(let o in e)t[e[o]]=o;return t}blockActiveLoad(){this.requestOrder++}alertLoader(){("function"==typeof this.table.options.dataLoader?this.table.options.dataLoader():this.table.options.dataLoader)&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class je{constructor(e,t,o){this.table=e,this.events={},this.optionsList=t||{},this.subscriptionNotifiers={},this.dispatch=o?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=o}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var o;if(this.events[e]){if(t){if(!((o=this.events[e].findIndex((e=>e===t)))>-1))return void console.warn("Cannot remove event, no matching event found:",e,t);this.events[e].splice(o,1)}else delete this.events[e];this._notifySubscriptionChange(e,!1)}else console.warn("Cannot remove event, no events set on:",e)}subscribed(e){return this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var o=this.subscriptionNotifiers[e];o&&o.forEach((e=>{e(t)}))}_dispatch(){var e,t=Array.from(arguments),o=t.shift();return this.events[o]&&this.events[o].forEach(((o,n)=>{let r=o.apply(this.table,t);n||(e=r)})),e}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="ExternalEvent:"+e[0],(!0===this.debug||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class Be{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,o=1e4){this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t,priority:o}),this.events[e].sort(((e,t)=>e.priority-t.priority)),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var o;if(this.events[e]){if(t){if(!((o=this.events[e].findIndex((e=>e.callback===t)))>-1))return void console.warn("Cannot remove event, no matching event found:",e,t);this.events[e].splice(o,1)}this._notifySubscriptionChange(e,!1)}else console.warn("Cannot remove event, no events set on:",e)}subscribed(e){return this.events[e]&&this.events[e].length}_chain(e,t,o,n){var r=o;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach(((e,o)=>{r=e.callback.apply(this,t.concat([r]))})),r):"function"==typeof n?n():n}_confirm(e,t){var o=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach(((e,n)=>{e.callback.apply(this,t)&&(o=!0)})),o}_notifySubscriptionChange(e,t){var o=this.subscriptionNotifiers[e];o&&o.forEach((e=>{e(t)}))}_dispatch(){var e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach((t=>{t.callback.apply(this,e)}))}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(!0===this.debug||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(!0===this.debug||this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(!0===this.debug||this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class _e extends n{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,o){var n="";return void 0===this.options(e)||(n="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(n=n+", Please use the %c"+t+"%c option instead",this._warnUser(n,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),o&&(this.table.options[t]=this.table.options[e])):this._warnUser(n,"font-weight: bold;","font-weight: normal;"),!1)}checkMsg(e,t){return void 0===this.options(e)||(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1)}msg(e){this._warnUser(e)}}class Ve extends n{constructor(e){super(e),this.deps={},this.props={}}initialize(){this.deps=Object.assign({},this.options("dependencies"))}lookup(e,t,o){if(!Array.isArray(e))return t?this.lookupProp(e,t,o):this.lookupKey(e,o);for(const o of e){var n=this.lookup(o,t,!0);if(n)break}if(n)return n;this.error(e)}lookupProp(e,t,o){var n;return this.props[e]&&this.props[e][t]?this.props[e][t]:(n=this.lookupKey(e,o))?(this.props[e]||(this.props[e]={}),this.props[e][t]=n[t]||n,this.props[e][t]):void 0}lookupKey(e,t){var o;return this.deps[e]?o=this.deps[e]:window[e]?(this.deps[e]=window[e],o=this.deps[e]):t||this.error(e),o}error(e){console.error("Unable to find dependency",e,"Please check documentation and ensure you have imported the required library into your project")}}function We(e,t){e.forEach((function(e){e.reinitializeWidth()})),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}var Ge={fitData:function(e,t){t&&this.table.columnManager.renderer.reinitializeColumnWidths(e),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitDataFill:We,fitDataTable:We,fitDataStretch:function(e,t){var o=0,n=this.table.rowManager.element.clientWidth,r=0,i=!1;e.forEach(((e,t)=>{e.widthFixed||e.reinitializeWidth(),(this.table.options.responsiveLayout?e.modules.responsive.visible:e.visible)&&(i=e),e.visible&&(o+=e.getWidth())})),i?(r=n-o+i.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(i.setWidth(0),this.table.modules.responsiveLayout.update()),r>0?i.setWidth(r):i.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(e,t){var o,n,r=this.table.rowManager.element.getBoundingClientRect().width,i=0,a=0,l=0,s=[],c=[],u=0,d=0;function p(e){return"string"==typeof e?e.indexOf("%")>-1?r/100*parseInt(e):parseInt(e):e}function h(e,t,o,n){var r=[],i=0,a=0,s=0,c=l,u=0,d=0,m=[];function f(e){return o*(e.column.definition.widthGrow||1)}function g(e){return p(e.width)-o*(e.column.definition.widthShrink||0)}return e.forEach((function(e,i){var a=n?g(e):f(e);e.column.minWidth>=a?r.push(e):e.column.maxWidth&&e.column.maxWidththis.table.rowManager.element.clientHeight&&(r-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),e.forEach((function(e){var t,o,n;e.visible&&(t=e.definition.width,o=parseInt(e.minWidth),t?(n=p(t),i+=n>o?n:o,e.definition.widthShrink&&(c.push({column:e,width:n>o?n:o}),u+=e.definition.widthShrink)):(s.push({column:e,width:0}),l+=e.definition.widthGrow||1))})),a=r-i,o=Math.floor(a/l),d=h(s,a,o,!1),s.length&&d>0&&(s[s.length-1].width+=d),s.forEach((function(e){a-=e.width})),(n=Math.abs(d)+a)>0&&u&&(d=h(c,n,Math.floor(n/u),!0)),d&&c.length&&(c[c.length-1].width-=d),s.forEach((function(e){e.column.setWidth(e.width)})),c.forEach((function(e){e.column.setWidth(e.width)}))}};class Ke extends a{static moduleName="layout";static modes=Ge;constructor(e){super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var e=this.table.options.layout;Ke.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(e){e.definition.widthGrow&&(e.definition.widthGrow=Number(e.definition.widthGrow)),e.definition.widthShrink&&(e.definition.widthShrink=Number(e.definition.widthShrink))}getMode(){return this.mode}layout(e){var t=this.table.columnManager.columnsByIndex.find((e=>e.definition.variableHeight||"textarea"===e.definition.formatter));this.dispatch("layout-refreshing"),Ke.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}}var Ue={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};class qe extends a{static moduleName="localize";static langs=Ue;constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=r.deepClone(qe.langs),!1!==this.table.options.columnDefaults.headerFilterPlaceholder&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(e){this.langList.default.headerFilters.default=e}installLang(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let o in t)e[o]&&"object"==typeof e[o]?this._setLangProp(e[o],t[o]):e[o]=t[o]}setLocale(e){if(!0===(e=e||"default")&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langList[e]){let t=e.split("-")[0];this.langList[t]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,t),e=t):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=r.deepClone(this.langList.default||{}),"default"!=e&&function e(t,o){for(var n in t)"object"==typeof t[n]?(o[n]||(o[n]={}),e(t[n],o[n])):o[n]=t[n]}(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?this.langList[e]:this.lang}getText(e,t){var o=(t?e+"|"+t:e).split("|");return this._getLangElement(o,this.locale)||""}_getLangElement(e,t){var o=this.lang;return e.forEach((function(e){var t;o&&(t=o[e],o=void 0!==t&&t)})),o}bind(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_executeBindings(){for(let e in this.bindings)this.bindings[e].forEach((t=>{t(this.getText(e),this.lang)}))}}var Xe=Object.freeze({__proto__:null,CommsModule:class extends a{static moduleName="comms";constructor(e){super(e)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e){var t=[];return this.table.constructor.registry.lookupTable(e).forEach((e=>{this.table!==e&&t.push(e)})),t}send(e,t,o,n){var r=this.getConnections(e);r.forEach((e=>{e.tableComms(this.table.element,t,o,n)})),!r.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,o,n){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,o,n);console.warn("Inter-table Comms Error - no such module:",t)}},LayoutModule:Ke,LocalizeModule:qe});class Ye{static registry={tables:[],register(e){Ye.registry.tables.push(e)},deregister(e){var t=Ye.registry.tables.indexOf(e);t>-1&&Ye.registry.tables.splice(t,1)},lookupTable(e,t){var o,n,r=[];if("string"==typeof e){if((o=document.querySelectorAll(e)).length)for(var i=0;iYe.registry.tables.find((function(t){return e instanceof Ye?t===e:t.element===e}))};static findTable(e){var t=Ye.registry.lookupTable(e,!0);return!(Array.isArray(t)&&!t.length)&&t}}class Qe extends Ye{static moduleBindings={};static moduleExtensions={};static modulesRegistered=!1;static defaultModules=!1;constructor(){super()}static initializeModuleBinder(e){Qe.modulesRegistered||(Qe.modulesRegistered=!0,Qe._registerModules(Xe,!0),e&&Qe._registerModules(e))}static _extendModule(e,t,o){if(Qe.moduleBindings[e]){var n=Qe.moduleBindings[e][t];if(n)if("object"==typeof o)for(let e in o)n[e]=o[e];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)}static _registerModules(e,t){var o=Object.values(e);t&&o.forEach((e=>{e.prototype.moduleCore=!0})),Qe._registerModule(o)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach((e=>{Qe._registerModuleBinding(e),Qe._registerModuleExtensions(e)}))}static _registerModuleBinding(e){e.moduleName?Qe.moduleBindings[e.moduleName]=e:console.error("Unable to bind module, no moduleName defined",e.moduleName)}static _registerModuleExtensions(e){var t=e.moduleExtensions;if(e.moduleExtensions)for(let e in t){let o=t[e];if(Qe.moduleBindings[e])for(let t in o)Qe._extendModule(e,t,o[t]);else{Qe.moduleExtensions[e]||(Qe.moduleExtensions[e]={});for(let t in o)Qe.moduleExtensions[e][t]||(Qe.moduleExtensions[e][t]={}),Object.assign(Qe.moduleExtensions[e][t],o[t])}}Qe._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=Qe.moduleExtensions[e.moduleName];if(t)for(let o in t)Qe._extendModule(e.moduleName,o,t[o])}_bindModules(){var e=[],t=[],o=[];for(var n in this.modules={},Qe.moduleBindings){let r=Qe.moduleBindings[n],i=new r(this);this.modules[n]=i,r.prototype.moduleCore?this.modulesCore.push(i):r.moduleInitOrder?r.moduleInitOrder<0?e.push(i):t.push(i):o.push(i)}e.sort(((e,t)=>e.moduleInitOrder>t.moduleInitOrder?1:-1)),t.sort(((e,t)=>e.moduleInitOrder>t.moduleInitOrder?1:-1)),this.modulesRegular=e.concat(o.concat(t))}}class Je extends n{constructor(e){super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert"),e}_createMsgElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert-msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-state-"+this.type}alert(e,t="msg"){if(e){for(this.clear(),this.dispatch("alert-show",t),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),"function"==typeof e&&(e=e()),e instanceof HTMLElement?this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}class Ze extends Qe{static defaultOptions=Re;static extendModule(){Ze.initializeModuleBinder(),Ze._extendModule(...arguments)}static registerModule(){Ze.initializeModuleBinder(),Ze._registerModule(...arguments)}constructor(e,t,o){super(),Ze.initializeModuleBinder(o),this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new Ne(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new _e(this),this.optionsList=new Me(this,"table constructor"),this.dependencyRegistry=new Ve(this),this.initialized=!1,this.destroyed=!1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout((()=>{this._create()}))),this.constructor.registry.register(this)}initializeElement(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement?(this.element=e,!0):"string"==typeof e?(this.element=document.querySelector(e),!!this.element||(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)}initializeCoreSystems(e){this.columnManager=new Te(this),this.rowManager=new De(this),this.footerManager=new Le(this),this.dataLoader=new He(this),this.alertManager=new Je(this),this._bindModules(),this.options=this.optionsList.generate(Ze.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new je(this,this.options,this.options.debugEventsExternal),this.eventBus=new Be(this.options.debugEventsInternal),this.interactionMonitor=new Fe(this),this.dataLoader.initialize(),this.footerManager.initialize(),this.dependencyRegistry.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this.initialized=!0,this._loadInitialData().finally((()=>{this.eventBus.dispatch("table-initialized"),this.externalEvents.dispatch("tableBuilt")}))}_rtlCheck(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if("rtl"!==e.direction)break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var e,t=this.element,o=this.options;if("TABLE"===t.tagName){this.originalElement=this.element,e=document.createElement("div");var n=t.attributes;for(var r in n)"object"==typeof n[r]&&e.setAttribute(n[r].name,n[r].value);t.parentNode.replaceChild(e,t),this.element=t=e}for(t.classList.add("tabulator"),t.setAttribute("role","grid");t.firstChild;)t.removeChild(t.firstChild);o.height&&(o.height=isNaN(o.height)?o.height:o.height+"px",t.style.height=o.height),!1!==o.minHeight&&(o.minHeight=isNaN(o.minHeight)?o.minHeight:o.minHeight+"px",t.style.minHeight=o.minHeight),!1!==o.maxHeight&&(o.maxHeight=isNaN(o.maxHeight)?o.maxHeight:o.maxHeight+"px",t.style.maxHeight=o.maxHeight)}_initializeTable(){var e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach((e=>{e.initialize()})),e.appendChild(this.columnManager.getElement()),e.appendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activate(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach((e=>{e.initialize()})),this.columnManager.setColumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){return this.dataLoader.load(this.options.data).finally((()=>{this.columnManager.verticalAlignHeaders()}))}destroy(){var e=this.element;for(this.destroyed=!0,this.constructor.registry.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var o,n;return this.options.debugInitialization&&!this.initialized&&(e||(e=" "==(n="Error"==(o=(new Error).stack.split("\n"))[0]?o[2]:o[1])[0]?n.trim().split(" ")[1].split(".")[1]:n.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+e+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(t?" "+t:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(e,t,o){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(e,t,o,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(e){return this.rowManager.getData(e)}getDataCount(e){return this.rowManager.getDataCount(e)}replaceData(e,t,o){return this.initGuard(),this.dataLoader.load(e,t,o,!0,!0)}updateData(e){var t=0;return this.initGuard(),new Promise(((o,n)=>{this.dataLoader.blockActiveLoad(),"string"==typeof e&&(e=JSON.parse(e)),e&&e.length>0?e.forEach((e=>{var r=this.rowManager.findRow(e[this.options.index]);r?(t++,r.updateData(e).then((()=>{--t||o()})).catch((t=>{n("Update Error - Unable to update row",e,t)}))):n("Update Error - Unable to find row",e)})):(console.warn("Update Error - No data provided"),n("Update Error - No data provided"))}))}addData(e,t,o){return this.initGuard(),new Promise(((n,r)=>{this.dataLoader.blockActiveLoad(),"string"==typeof e&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,o).then((e=>{var t=[];e.forEach((function(e){t.push(e.getComponent())})),n(t)})):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))}))}updateOrAddData(e){var t=[],o=0;return this.initGuard(),new Promise(((n,r)=>{this.dataLoader.blockActiveLoad(),"string"==typeof e&&(e=JSON.parse(e)),e&&e.length>0?e.forEach((e=>{var r=this.rowManager.findRow(e[this.options.index]);o++,r?r.updateData(e).then((()=>{o--,t.push(r.getComponent()),o||n(t)})):this.rowManager.addRows(e).then((e=>{o--,t.push(e[0].getComponent()),o||n(t)}))})):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))}))}getRow(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let o of e){let e=this.rowManager.findRow(o,!0);if(!e)return console.error("Delete Error - No matching row found:",o),Promise.reject("Delete Error - No matching row found");t.push(e)}return t.sort(((e,t)=>this.rowManager.rows.indexOf(e)>this.rowManager.rows.indexOf(t)?1:-1)),t.forEach((e=>{e.delete()})),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(e,t,o){return this.initGuard(),"string"==typeof e&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,o,!0).then((e=>e[0].getComponent()))}updateOrAddRow(e,t){var o=this.rowManager.findRow(e);return this.initGuard(),"string"==typeof t&&(t=JSON.parse(t)),o?o.updateData(t).then((()=>o.getComponent())):this.rowManager.addRows(t).then((e=>e[0].getComponent()))}updateRow(e,t){var o=this.rowManager.findRow(e);return this.initGuard(),"string"==typeof t&&(t=JSON.parse(t)),o?o.updateData(t).then((()=>Promise.resolve(o.getComponent()))):(console.warn("Update Error - No matching row found:",e),Promise.reject("Update Error - No matching row found"))}scrollToRow(e,t,o){var n=this.rowManager.findRow(e);return n?this.rowManager.scrollToRow(n,t,o):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,o){var n=this.rowManager.findRow(e);this.initGuard(),n?n.moveToRow(t,o):console.warn("Move Error - No matching row found:",e)}getRows(e){return this.rowManager.getComponents(e)}getRowPosition(e){var t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error - No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(e)}getColumns(e){return this.columnManager.getComponents(e)}getColumn(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),!t)return console.warn("Column Show Error - No matching column found:",e),!1;t.show()}hideColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),!t)return console.warn("Column Hide Error - No matching column found:",e),!1;t.hide()}toggleColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),!t)return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1;t.visible?t.hide():t.show()}addColumn(e,t,o){var n=this.columnManager.findColumn(o);return this.initGuard(),this.columnManager.addColumn(e,t,n).then((e=>e.getComponent()))}deleteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?t.delete():(console.warn("Column Delete Error - No matching column found:",e),Promise.reject())}updateColumnDefinition(e,t){var o=this.columnManager.findColumn(e);return this.initGuard(),o?o.updateDefinition(t):(console.warn("Column Update Error - No matching column found:",e),Promise.reject())}moveColumn(e,t,o){var n=this.columnManager.findColumn(e),r=this.columnManager.findColumn(t);this.initGuard(),n?r?this.columnManager.moveColumn(n,r,o):console.warn("Move Error - No matching column found:",r):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,o){return new Promise(((n,r)=>{var i=this.columnManager.findColumn(e);return i?this.columnManager.scrollToColumn(i,t,o):(console.warn("Scroll Error - No matching column found:",e),Promise.reject("Scroll Error - No matching column found"))}))}redraw(e){this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(e,t){this.externalEvents.subscribe(e,t)}off(e,t){this.externalEvents.unsubscribe(e,t)}dispatchEvent(){Array.from(arguments).shift(),this.externalEvents.dispatch(...arguments)}alert(e,t){this.initGuard(),this.alertManager.alert(e,t)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(e,t){return!!this.modules[e]||(t&&console.error("Tabulator Module Not Installed: "+e),!1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not installed: "+e),t}}var et=Ze,tt=class extends et{static extendModule(){et.initializeModuleBinder(ke),et._extendModule(...arguments)}static registerModule(){et.initializeModuleBinder(ke),et._registerModule(...arguments)}constructor(e,t,o){super(e,t,ke)}}},85045:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(2616);function r(e){return e>=0&&e<=255}const i=function(e,t){const{r:o,g:i,b:a,a:l}=new n.Y(e).toRgb();if(l<1)return e;const{r:s,g:c,b:u}=new n.Y(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((o-s*(1-e))/e),l=Math.round((i-c*(1-e))/e),d=Math.round((a-u*(1-e))/e);if(r(t)&&r(l)&&r(d))return new n.Y({r:t,g:l,b:d,a:Math.round(100*e)/100}).toRgbString()}return new n.Y({r:o,g:i,b:a,a:1}).toRgbString()}},85160:(e,t,o)=>{"use strict";var n=o(96540),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useSyncExternalStore,a=n.useRef,l=n.useEffect,s=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,o,n,u){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s((function(){function e(e){if(!l){if(l=!0,i=e,e=n(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return a=t}return a=e}if(t=a,r(i,e))return t;var o=n(e);return void 0!==u&&u(t,o)?(i=e,t):(i=e,a=o)}var i,a,l=!1,s=void 0===o?null:o;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,o,n,u]);var h=i(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),c(h),h}},85342:(e,t,o)=>{"use strict";o.d(t,{A:()=>L});var n=o(96540),r=o(34164),i=o(14292),a=o(1908),l=o(21362),s=o(14808),c=o(21124),u=o(14921),d=o(57514),p=o(65387);const h=(e,t,o)=>{const n=e.keys[0];var r,i;Array.isArray(t)?t.forEach(((t,n)=>{o(((t,o)=>{n<=e.keys.length-1&&(0===n?Object.assign(t,o):t[e.up(e.keys[n])]=o)}),t)})):t&&"object"==typeof t?(Object.keys(t).length>e.keys.length?e.keys:(r=e.keys,i=Object.keys(t),r.filter((e=>i.includes(e))))).forEach((r=>{if(e.keys.includes(r)){const i=t[r];void 0!==i&&o(((t,o)=>{n===r?Object.assign(t,o):t[e.up(r)]=o}),i)}})):"number"!=typeof t&&"string"!=typeof t||o(((e,t)=>{Object.assign(e,t)}),t)};function m(e){return`--Grid-${e}Spacing`}function f(e){return`--Grid-parent-${e}Spacing`}const g="--Grid-columns",b="--Grid-parent-columns",v=({theme:e,ownerState:t})=>{const o={};return h(e.breakpoints,t.size,((e,t)=>{let n={};"grow"===t&&(n={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(n={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(n={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${b}) - (var(${b}) - ${t}) * (var(${f("column")}) / var(${b})))`}),e(o,n)})),o},y=({theme:e,ownerState:t})=>{const o={};return h(e.breakpoints,t.offset,((e,t)=>{let n={};"auto"===t&&(n={marginLeft:"auto"}),"number"==typeof t&&(n={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${b}) + var(${f("column")}) * ${t} / var(${b}))`}),e(o,n)})),o},w=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={[g]:12};return h(e.breakpoints,t.columns,((e,t)=>{const n=t??12;e(o,{[g]:n,"> *":{[b]:n}})})),o},C=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={};return h(e.breakpoints,t.rowSpacing,((t,n)=>{const r="string"==typeof n?n:e.spacing?.(n);t(o,{[m("row")]:r,"> *":{[f("row")]:r}})})),o},x=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={};return h(e.breakpoints,t.columnSpacing,((t,n)=>{const r="string"==typeof n?n:e.spacing?.(n);t(o,{[m("column")]:r,"> *":{[f("column")]:r}})})),o},A=({theme:e,ownerState:t})=>{if(!t.container)return{};const o={};return h(e.breakpoints,t.direction,((e,t)=>{e(o,{flexDirection:t})})),o},E=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${m("row")}) var(${m("column")})`}}),S=e=>{const t=[];return Object.entries(e).forEach((([e,o])=>{!1!==o&&void 0!==o&&t.push(`grid-${e}-${String(o)}`)})),t},k=(e,t="xs")=>{function o(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(o(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,n])=>{o(n)&&t.push(`spacing-${e}-${String(n)}`)})),t}return[]},R=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map((([e,t])=>`direction-${e}-${t}`)):[`direction-xs-${String(e)}`];var M=o(74848);const I=(0,p.A)(),P=(0,s.A)("div",{name:"MuiGrid",slot:"Root"});function O(e){return(0,c.A)({props:e,name:"MuiGrid",defaultTheme:I})}var T=o(26739),$=o(20439),z=o(53356);const D=function(e={}){const{createStyledComponent:t=P,useThemeProps:o=O,useTheme:s=u.A,componentName:c="MuiGrid"}=e;function p(e,t,o=()=>!0){const n={};return null===e||(Array.isArray(e)?e.forEach(((e,r)=>{null!==e&&o(e)&&t.keys[r]&&(n[t.keys[r]]=e)})):"object"==typeof e?Object.keys(e).forEach((t=>{const r=e[t];null!=r&&o(r)&&(n[t]=r)})):n[t.keys[0]]=e),n}const h=t(w,x,C,v,A,E,y),m=n.forwardRef((function(e,t){const u=s(),m=o(e),f=(0,d.A)(m);!function(e,t){const o=[];void 0!==e.item&&(delete e.item,o.push("item")),void 0!==e.zeroMinWidth&&(delete e.zeroMinWidth,o.push("zeroMinWidth")),t.keys.forEach((t=>{void 0!==e[t]&&(o.push(t),delete e[t])}))}(f,u.breakpoints);const{className:g,children:b,columns:v=12,container:y=!1,component:w="div",direction:C="row",wrap:x="wrap",size:A={},offset:E={},spacing:I=0,rowSpacing:P=I,columnSpacing:O=I,unstable_level:T=0,...$}=f,z=p(A,u.breakpoints,(e=>!1!==e)),D=p(E,u.breakpoints),L=e.columns??(T?void 0:v),F=e.spacing??(T?void 0:I),N=e.rowSpacing??e.spacing??(T?void 0:P),H=e.columnSpacing??e.spacing??(T?void 0:O),j={...f,level:T,columns:L,container:y,direction:C,wrap:x,spacing:F,rowSpacing:N,columnSpacing:H,size:z,offset:D},B=((e,t)=>{const{container:o,direction:n,spacing:r,wrap:i,size:s}=e,u={root:["root",o&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...R(n),...S(s),...o?k(r,t.breakpoints.keys[0]):[]]};return(0,l.A)(u,(e=>(0,a.Ay)(c,e)),{})})(j,u);return(0,M.jsx)(h,{ref:t,as:w,ownerState:j,className:(0,r.A)(B.root,g),...$,children:n.Children.map(b,(e=>n.isValidElement(e)&&(0,i.A)(e,["Grid"])&&y&&e.props.container?n.cloneElement(e,{unstable_level:e.props?.unstable_level??T+1}):e))})}));return m.muiName="Grid",m}({createStyledComponent:(0,T.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>(0,$.b)({props:e,name:"MuiGrid"}),useTheme:z.A}),L=D},85486:(e,t,o)=>{"use strict";o.d(t,{B:()=>r,x:()=>i});var n=o(1908);function r(e){return(0,n.Ay)("MuiDataGrid",e)}const i=(0,o(96148).A)("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowReorderIcon","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"])},85501:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(63662);function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,n.A)(e,t)}},85916:(e,t,o)=>{"use strict";o.d(t,{A:()=>h});var n=o(96540),r=o(34164),i=o(21362),a=o(35124),l=o(26739),s=o(20439),c=o(21942),u=o(58503),d=o(74848);const p=(0,l.Ay)(a.A,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),h=n.forwardRef((function(e,t){const o=(0,s.b)({props:e,name:"MuiDialogTitle"}),{className:a,id:l,...h}=o,m=o,f=(e=>{const{classes:t}=e;return(0,i.A)({root:["root"]},c.t,t)})(m),{titleId:g=l}=n.useContext(u.A);return(0,d.jsx)(p,{component:"h2",className:(0,r.A)(f.root,a),ownerState:m,ref:t,variant:"h6",id:l??g,...h})}))},87695:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var n=o(96369),r=o(73893),i=o(27800),a=o(76562);function l(e){return(0,n.A)(e)||(0,r.A)(e)||(0,i.A)(e)||(0,a.A)()}},87960:(e,t,o)=>{"use strict";o.d(t,{v:()=>r});const n=Object.is;function r(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let o=0,r=0;for(const r in e){if(o+=1,!n(e[r],t[r]))return!1;if(!(r in t))return!1}for(const e in t)r+=1;return o===r}},88629:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(9792),r=o(74848);const i=(0,n.A)((0,r.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},89045:(e,t,o)=>{var n=o(73738).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},89379:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(64467);function r(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function i(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commonLocale=void 0,t.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},90729:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n=o(96540).createContext({})},90754:(e,t,o)=>{"use strict";o.d(t,{Kq:()=>f,Ay:()=>fe});var n=o(64467),r=o(89379),i=o(5544),a=o(82284),l=o(46942),s=o.n(l),c=o(66588),u=o(8719),d=o(96540),p=o(80045),h=["children"],m=d.createContext({});function f(e){var t=e.children,o=(0,p.A)(e,h);return d.createElement(m.Provider,{value:o},t)}var g=o(23029),b=o(92901),v=o(85501),y=o(49640);const w=function(e){(0,v.A)(o,e);var t=(0,y.A)(o);function o(){return(0,g.A)(this,o),t.apply(this,arguments)}return(0,b.A)(o,[{key:"render",value:function(){return this.props.children}}]),o}(d.Component);var C=o(81470),x=o(1233),A=o(26956),E="none",S="appear",k="enter",R="leave",M="none",I="prepare",P="start",O="active",T="end",$="prepared",z=o(20998);function D(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit".concat(e)]="webkit".concat(t),o["Moz".concat(e)]="moz".concat(t),o["ms".concat(e)]="MS".concat(t),o["O".concat(e)]="o".concat(t.toLowerCase()),o}var L,F,N,H=(L=(0,z.A)(),F="undefined"!=typeof window?window:{},N={animationend:D("Animation","AnimationEnd"),transitionend:D("Transition","TransitionEnd")},L&&("AnimationEvent"in F||delete N.animationend.animation,"TransitionEvent"in F||delete N.transitionend.transition),N),j={};if((0,z.A)()){var B=document.createElement("div");j=B.style}var _={};function V(e){if(_[e])return _[e];var t=H[e];if(t)for(var o=Object.keys(t),n=o.length,r=0;r1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,Q.A)((function(){r<=1?n({isCanceled:function(){return i!==e.current}}):o(n,r-1)}));e.current=i},t]}(),c=(0,i.A)(s,2),u=c[0],p=c[1],h=t?Z:J;return Y((function(){if(a!==M&&a!==T){var e=h.indexOf(a),t=h[e+1],n=o(a);n===ee?l(t,!0):t&&u((function(e){function o(){e.isCanceled()||l(t,!0)}!0===n?o():Promise.resolve(n).then(o)}))}}),[e,a]),d.useEffect((function(){return function(){p()}}),[]),[function(){l(I,!0)},a]}(pe,!e,(function(e){if(e===I){var t=xe[I];return t?t(fe()):ee}var o;return ke in xe&&de((null===(o=xe[ke])||void 0===o?void 0:o.call(xe,fe(),null))||null),ke===O&&pe!==E&&(we(fe()),v>0&&(clearTimeout(me.current),me.current=setTimeout((function(){ve({deadline:!0})}),v))),ke===$&&be(),!0})),Ee=(0,i.A)(Ae,2),Se=Ee[0],ke=Ee[1],Re=te(ke);ge.current=Re;var Me=(0,d.useRef)(null);Y((function(){if(!he.current||Me.current!==t){ne(t);var o,n=he.current;he.current=!0,!n&&t&&f&&(o=S),n&&t&&h&&(o=k),(n&&!t&&b||!n&&y&&!t&&b)&&(o=R);var r=Ce(o);o&&(e||r[I])?(le(o),Se()):le(E),Me.current=t}}),[t]),(0,d.useEffect)((function(){(pe===S&&!f||pe===k&&!h||pe===R&&!b)&&le(E)}),[f,h,b]),(0,d.useEffect)((function(){return function(){he.current=!1,clearTimeout(me.current)}}),[]);var Ie=d.useRef(!1);(0,d.useEffect)((function(){oe&&(Ie.current=!0),void 0!==oe&&pe===E&&((Ie.current||oe)&&(null==G||G(oe)),Ie.current=!0)}),[oe,pe]);var Pe=ue;return xe[I]&&ke===P&&(Pe=(0,r.A)({transition:"none"},Pe)),[pe,ke,Pe,null!=oe?oe:t]}const ne=function(e){var t=e;"object"===(0,a.A)(e)&&(t=e.transitionSupport);var o=d.forwardRef((function(e,o){var a=e.visible,l=void 0===a||a,p=e.removeOnLeave,h=void 0===p||p,f=e.forceRender,g=e.children,b=e.motionName,v=e.leavedClassName,y=e.eventProps,C=function(e,o){return!(!e.motionName||!t||!1===o)}(e,d.useContext(m).motion),x=(0,d.useRef)(),A=(0,d.useRef)(),S=oe(C,l,(function(){try{return x.current instanceof HTMLElement?x.current:(0,c.Ay)(A.current)}catch(e){return null}}),e),k=(0,i.A)(S,4),R=k[0],M=k[1],O=k[2],T=k[3],$=d.useRef(T);T&&($.current=!0);var z,D=d.useCallback((function(e){x.current=e,(0,u.Xf)(o,e)}),[o]),L=(0,r.A)((0,r.A)({},y),{},{visible:l});if(g)if(R===E)z=T?g((0,r.A)({},L),D):!h&&$.current&&v?g((0,r.A)((0,r.A)({},L),{},{className:v}),D):f||!h&&!v?g((0,r.A)((0,r.A)({},L),{},{style:{display:"none"}}),D):null;else{var F;M===I?F="prepare":te(M)?F="active":M===P&&(F="start");var N=X(b,"".concat(R,"-").concat(F));z=g((0,r.A)((0,r.A)({},L),{},{className:s()(X(b,R),(0,n.A)((0,n.A)({},N,N&&F),b,"string"==typeof b)),style:O}),D)}else z=null;return d.isValidElement(z)&&(0,u.f3)(z)&&((0,u.A9)(z)||(z=d.cloneElement(z,{ref:D}))),d.createElement(w,{ref:A},z)}));return o.displayName="CSSMotion",o}(K);var re=o(58168),ie=o(9417),ae="add",le="keep",se="remove",ce="removed";function ue(e){var t;return t=e&&"object"===(0,a.A)(e)&&"key"in e?e:{key:e},(0,r.A)((0,r.A)({},t),{},{key:String(t.key)})}function de(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ue)}var pe=["component","children","onVisibleChanged","onAllRemoved"],he=["status"],me=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne,t=function(t){(0,v.A)(i,t);var o=(0,y.A)(i);function i(){var e;(0,g.A)(this,i);for(var t=arguments.length,a=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[],n=0,i=t.length,a=de(e),l=de(t);a.forEach((function(e){for(var t=!1,a=n;a1})).forEach((function(e){(o=o.filter((function(t){var o=t.key,n=t.status;return o!==e||n!==se}))).forEach((function(t){t.key===e&&(t.status=le)}))})),o}(n,i);return{keyEntities:a.filter((function(e){var t=n.find((function(t){var o=t.key;return e.key===o}));return!t||t.status!==ce||e.status!==se}))}}}]),i}(d.Component);(0,n.A)(t,"defaultProps",{component:"div"})}(K);const fe=ne},91790:(e,t,o)=>{"use strict";o.d(t,{A:()=>a,y:()=>i});var n=o(96148),r=o(1908);function i(e){return(0,r.Ay)("MuiTypography",e)}const a=(0,n.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"])},92187:(e,t,o)=>{"use strict";var n=o(24994).default;t.A=void 0;var r=n(o(67018)),i=n(o(41702)),a=n(o(83009)),l=n(o(82348));const s="${label}不是一个有效的${type}",c={locale:"zh-cn",Pagination:r.default,DatePicker:a.default,TimePicker:l.default,Calendar:i.default,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};t.A=c},92661:(e,t,o)=>{"use strict";o.d(t,{gz:()=>u,Mz:()=>c,S:()=>d});var n=o(25508),r=o(74435);class i{constructor(e){this.value=e}deref(){return this.value}}const a=(()=>"undefined"==typeof WeakRef?i:WeakRef)(),l=(0,n.Ad)({memoize:n.i5,memoizeOptions:{maxSize:1,equalityCheck:Object.is},argsMemoize:function(e,t={}){let o={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let r,i=0;function l(){let t=o;const{length:l}=arguments;for(let e=0,o=l;e{o={s:0,v:void 0,o:null,p:null},l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}}),s=new WeakMap,c=(e,t,o,n,r,i,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let l;if(e&&t&&o&&n&&r&&i)l=(a,l)=>{const s=e(a,l),c=t(a,l),u=o(a,l),d=n(a,l),p=r(a,l);return i(s,c,u,d,p,l)};else if(e&&t&&o&&n&&r)l=(i,a)=>{const l=e(i,a),s=t(i,a),c=o(i,a),u=n(i,a);return r(l,s,c,u,a)};else if(e&&t&&o&&n)l=(r,i)=>{const a=e(r,i),l=t(r,i),s=o(r,i);return n(a,l,s,i)};else if(e&&t&&o)l=(n,r)=>{const i=e(n,r),a=t(n,r);return o(i,a,r)};else{if(!e||!t)throw new Error("Missing arguments");l=(o,n)=>{const r=e(o,n);return t(r,n)}}return l},u=e=>(t,o)=>e(t.current.state,o),d=(...e)=>(t,o)=>{const n=t.current.instanceId,i=s.get(n),a=i??new Map,c=a.get(e);if(a&&c){if(!(0,r.U9)(c.selectorArgs,o)){const n=void 0!==o?[...e.slice(0,e.length-1),()=>o,e[e.length-1]]:e,r=l(...n);return r.selectorArgs=o,a.set(e,r),r(t,o)}return c(t,o)}const u=void 0!==o?[...e.slice(0,e.length-1),()=>o,e[e.length-1]]:e,d=l(...u);return d.selectorArgs=o,i||s.set(n,a),a.set(e,d),d(t,o)}},92901:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(20816);function r(e,t){for(var o=0;o{"use strict";function n(e){return(e+8)/e}function r(e){const t=Array.from({length:10}).map(((t,o)=>{const n=o-1,r=e*Math.pow(Math.E,n/5),i=o>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:n(e)})))}o.d(t,{A:()=>r,k:()=>n})},96069:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},96258:(e,t,o)=>{"use strict";o.d(t,{A:()=>b});var n,r=o(96540),i=o(34164),a=o(21362),l=o(39407),s=o(35124),c=o(1713),u=o(76761),d=o(26739),p=o(39241),h=o(20439),m=o(56416),f=o(74848);const g=(0,d.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${(0,l.A)(o.position)}`],!0===o.disablePointerEvents&&t.disablePointerEvents,t[o.variant]]}})((0,p.A)((({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${m.A.positionStart}&:not(.${m.A.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]})))),b=r.forwardRef((function(e,t){const o=(0,h.b)({props:e,name:"MuiInputAdornment"}),{children:d,className:p,component:b="div",disablePointerEvents:v=!1,disableTypography:y=!1,position:w,variant:C,...x}=o,A=(0,u.A)()||{};let E=C;C&&A.variant,A&&!E&&(E=A.variant);const S={...o,hiddenLabel:A.hiddenLabel,size:A.size,disablePointerEvents:v,position:w,variant:E},k=(e=>{const{classes:t,disablePointerEvents:o,hiddenLabel:n,position:r,size:i,variant:s}=e,c={root:["root",o&&"disablePointerEvents",r&&`position${(0,l.A)(r)}`,s,n&&"hiddenLabel",i&&`size${(0,l.A)(i)}`]};return(0,a.A)(c,m.P,t)})(S);return(0,f.jsx)(c.A.Provider,{value:null,children:(0,f.jsx)(g,{as:b,ownerState:S,className:(0,i.A)(k.root,p),ref:t,...x,children:"string"!=typeof d||y?(0,f.jsxs)(r.Fragment,{children:["start"===w?n||(n=(0,f.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,d]}):(0,f.jsx)(s.A,{color:"textSecondary",children:d})})})}))},96369:(e,t,o)=>{"use strict";function n(e){if(Array.isArray(e))return e}o.d(t,{A:()=>n})},98119:(e,t,o)=>{"use strict";o.d(t,{A:()=>a,X:()=>i});var n=o(96540);const r=n.createContext(!1),i=({children:e,disabled:t})=>{const o=n.useContext(r);return n.createElement(r.Provider,{value:null!=t?t:o},e)},a=r},99374:(e,t,o)=>{var n=o(54128),r=o(23805),i=o(44394),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var o=l.test(e);return o||s.test(e)?c(e.slice(2),o?2:8):a.test(e)?NaN:+e}}}]);