@nebula.js/sn-pivot-table 7.20.0 → 7.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +11 -11
- package/dist/sn-pivot-table.js +13 -13
- package/dist/sn-pivot-table.systemjs.js +10 -10
- package/package.json +5 -5
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +13 -13
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v7.
|
|
2
|
+
* @nebula.js/sn-pivot-table v7.21.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var r,n,i,o,a,s,l,u,c,d,p,f,h,m,g,v,y,b,x,S,w,C,E,I,D,P,R,M,L,A,k,O,q,T,N,_,j,F,z,W,$,H,V,B,G,U,Y;return{setters:[function(e){r=e.default,n=e.createElement,i=e,o=e.isValidElement,a=e.cloneElement,s=e.Children,l=e.useRef,u=e.createContext,c=e.useReducer,d=e.useEffect,p=e.useDebugValue,f=e.useCallback,h=e.useContext,m=e.useState,g=e.useLayoutEffect,v=e.useMemo,y=e.useInsertionEffect,b=e.memo,x=e.forwardRef,S=e.startTransition,w=e.useImperativeHandle,C=e.PureComponent},function(e){E=e.default,I=e,D=e.flushSync},function(e){P=e.HyperCubeHandler,R=e.useMemo,M=e.useOptions,L=e.usePromise,A=e.useState,k=e.useEffect,O=e.useTheme,q=e.useInteractionState,T=e.onContextMenu,N=e.onTakeSnapshot,_=e.useImperativeHandle,j=e.useTranslator,F=e.useElement,z=e.useStaleLayout,W=e.useModel,$=e.useApp,H=e.useEmbed,V=e.useKeyboard,B=e.useSelections,G=e.useRect},function(e){U=e.default},function(e){Y=e.default}],execute:function(){e("default",function(e){return{qae:{properties:{initial:CY()},data:fF(e)},ext:xz(e),component(){SY(e)}}});const K={black:"#000",white:"#fff"},X="#e57373",J="#ef5350",Z="#f44336",Q="#d32f2f",ee="#c62828",te="#f3e5f5",re="#ce93d8",ne="#ba68c8",ie="#ab47bc",oe="#9c27b0",ae="#7b1fa2",se="#e3f2fd",le="#90caf9",ue="#42a5f5",ce="#1976d2",de="#1565c0",pe="#4fc3f7",fe="#29b6f6",he="#03a9f4",me="#0288d1",ge="#01579b",ve="#81c784",ye="#66bb6a",be="#4caf50",xe="#388e3c",Se="#2e7d32",we="#1b5e20",Ce="#ffb74d",Ee="#ffa726",Ie="#ff9800",De="#f57c00",Pe="#e65100",Re={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Me(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Le=Object.freeze({__proto__:null,default:Me}),Ae="$$material";function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ke.apply(null,arguments)}function Oe(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var qe=function(){return qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},qe.apply(this,arguments)};function Te(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ne={animationIterationCount:1,aspectRatio: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,scale: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},_e="-ms-",je="-moz-",Fe="-webkit-",ze="comm",We="rule",$e="decl",He="@keyframes",Ve=Math.abs,Be=String.fromCharCode,Ge=Object.assign;function Ue(e){return e.trim()}function Ye(e,t){return(e=t.exec(e))?e[0]:e}function Ke(e,t,r){return e.replace(t,r)}function Xe(e,t,r){return e.indexOf(t,r)}function Je(e,t){return 0|e.charCodeAt(t)}function Ze(e,t,r){return e.slice(t,r)}function Qe(e){return e.length}function et(e){return e.length}function tt(e,t){return t.push(e),e}function rt(e,t){return e.filter(function(e){return!Ye(e,t)})}var nt=1,it=1,ot=0,at=0,st=0,lt="";function ut(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:nt,column:it,length:a,return:"",siblings:s}}function ct(e,t){return Ge(ut("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function dt(e){for(;e.root;)e=ct(e.root,{children:[e]});tt(e,e.siblings)}function pt(){return st=at>0?Je(lt,--at):0,it--,10===st&&(it=1,nt--),st}function ft(){return st=at<ot?Je(lt,at++):0,it++,10===st&&(it=1,nt++),st}function ht(){return Je(lt,at)}function mt(){return at}function gt(e,t){return Ze(lt,e,t)}function vt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yt(e){return Ue(gt(at-1,St(91===e?e+2:40===e?e+1:e)))}function bt(e){for(;(st=ht())&&st<33;)ft();return vt(e)>2||vt(st)>3?"":" "}function xt(e,t){for(;--t&&ft()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return gt(e,mt()+(t<6&&32==ht()&&32==ft()))}function St(e){for(;ft();)switch(st){case e:return at;case 34:case 39:34!==e&&39!==e&&St(st);break;case 40:41===e&&St(e);break;case 92:ft()}return at}function wt(e,t){for(;ft()&&e+st!==57&&(e+st!==84||47!==ht()););return"/*"+gt(t,at-1)+"*"+Be(47===e?e:ft())}function Ct(e){for(;!vt(ht());)ft();return gt(e,at)}function Et(e){return function(e){return lt="",e}(It("",null,null,null,[""],e=function(e){return nt=it=1,ot=Qe(lt=e),at=0,[]}(e),0,[0],e))}function It(e,t,r,n,i,o,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",x=i,S=o,w=n,C=b;g;)switch(h=y,y=ft()){case 40:if(108!=h&&58==Je(C,d-1)){-1!=Xe(C+=Ke(yt(y),"&","&\f"),"&\f",Ve(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=yt(y);break;case 9:case 10:case 13:case 32:C+=bt(h);break;case 92:C+=xt(mt()-1,7);continue;case 47:switch(ht()){case 42:case 47:tt(Pt(wt(ft(),mt()),t,r,l),l),5!=vt(h||1)&&5!=vt(ht()||1)||!Qe(C)||" "===Ze(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=Qe(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(C=Ke(C,/\f/g,"")),f>0&&(Qe(C)-d||0===m&&47===h)&&tt(f>32?Rt(C+";",n,r,d-1,l):Rt(Ke(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(tt(w=Dt(C,t,r,u,c,i,s,b,x=[],S=[],d,o),o),123===y)if(0===c)It(C,t,w,w,x,o,d,s,S);else{switch(p){case 99:if(110===Je(C,3))break;case 108:if(97===Je(C,2))break;default:c=0;case 100:case 109:case 115:}c?It(e,w,w,n&&tt(Dt(e,w,w,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,n?x:S):It(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+Qe(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==pt())continue;switch(C+=Be(y),y*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Qe(C)-1)*v,v=1;break;case 64:45===ht()&&(C+=yt(ft())),p=ht(),c=d=Qe(b=C+=Ct(mt())),y++;break;case 45:45===h&&2==Qe(C)&&(m=0)}}return o}function Dt(e,t,r,n,i,o,a,s,l,u,c,d){for(var p=i-1,f=0===i?o:[""],h=et(f),m=0,g=0,v=0;m<n;++m)for(var y=0,b=Ze(e,p+1,p=Ve(g=a[m])),x=e;y<h;++y)(x=Ue(g>0?f[y]+" "+b:Ke(b,/&\f/g,f[y])))&&(l[v++]=x);return ut(e,t,r,0===i?We:s,l,u,c,d)}function Pt(e,t,r,n){return ut(e,t,r,ze,Be(st),Ze(e,2,-2),0,n)}function Rt(e,t,r,n,i){return ut(e,t,r,$e,Ze(e,0,n),Ze(e,n+1,-1),n,i)}function Mt(e,t,r){switch(function(e,t){return 45^Je(e,0)?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Fe+e+e;case 4855:return Fe+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+je+e+_e+e+e;case 5936:switch(Je(e,t+11)){case 114:return Fe+e+_e+Ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+_e+Ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+_e+Ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+_e+e+e;case 6165:return Fe+e+_e+"flex-"+e+e;case 5187:return Fe+e+Ke(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return Fe+e+_e+"flex-item-"+Ke(e,/flex-|-self/g,"")+(Ye(e,/flex-|baseline/)?"":_e+"grid-row-"+Ke(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+_e+"flex-line-pack"+Ke(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+_e+Ke(e,"shrink","negative")+e;case 5292:return Fe+e+_e+Ke(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+Ke(e,"-grow","")+Fe+e+_e+Ke(e,"grow","positive")+e;case 4554:return Fe+Ke(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return Ke(Ke(Ke(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return Ke(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return Ke(Ke(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+_e+"flex-pack:$3"),/space-between/,"justify")+Fe+e+e;case 4200:if(!Ye(e,/flex-|baseline/))return _e+"grid-column-align"+Ze(e,t)+e;break;case 2592:case 3360:return _e+Ke(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,Ye(e.props,/grid-\w+-end/)})?~Xe(e+(r=r[t].value),"span",0)?e:_e+Ke(e,"-start","")+e+_e+"grid-row-span:"+(~Xe(r,"span",0)?Ye(r,/\d+/):+Ye(r,/\d+/)-+Ye(e,/\d+/))+";":_e+Ke(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return Ye(e.props,/grid-\w+-start/)})?e:_e+Ke(Ke(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ke(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qe(e)-1-t>6)switch(Je(e,t+1)){case 109:if(45!==Je(e,t+4))break;case 102:return Ke(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+je+(108==Je(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Xe(e,"stretch",0)?Mt(Ke(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ke(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,i,o,a,s){return _e+r+":"+n+s+(i?_e+r+"-span:"+(o?a:+a-+n)+s:"")+e});case 4949:if(121===Je(e,t+6))return Ke(e,":",":"+Fe)+e;break;case 6444:switch(Je(e,45===Je(e,14)?18:11)){case 120:return Ke(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(45===Je(e,14)?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+_e+"$2box$3")+e;case 100:return Ke(e,":",":"+_e)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ke(e,"scroll-","scroll-snap-")+e}return e}function Lt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function At(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case $e:return e.return=e.return||e.value;case ze:return"";case He:return e.return=e.value+"{"+Lt(e.children,n)+"}";case We:if(!Qe(e.value=e.props.join(",")))return""}return Qe(r=Lt(e.children,n))?e.return=e.value+"{"+r+"}":""}function kt(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case $e:return void(e.return=Mt(e.value,e.length,r));case He:return Lt([ct(e,{value:Ke(e.value,"@","@"+Fe)})],n);case We:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(Ye(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":dt(ct(e,{props:[Ke(t,/:(read-\w+)/,":-moz-$1")]})),dt(ct(e,{props:[t]})),Ge(e,{props:rt(r,n)});break;case"::placeholder":dt(ct(e,{props:[Ke(t,/:(plac\w+)/,":"+Fe+"input-$1")]})),dt(ct(e,{props:[Ke(t,/:(plac\w+)/,":-moz-$1")]})),dt(ct(e,{props:[Ke(t,/:(plac\w+)/,_e+"input-$1")]})),dt(ct(e,{props:[t]})),Ge(e,{props:rt(r,n)})}return""})}}var Ot="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",qt="active",Tt="data-styled-version",Nt="6.3.12",_t="/*!sc*/\n",jt="undefined"!=typeof window&&"undefined"!=typeof document,Ft=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),zt={};function Wt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var $t=new Map,Ht=new Map,Vt=1,Bt=function(e){if($t.has(e))return $t.get(e);for(;Ht.has(Vt);)Vt++;var t=Vt++;return $t.set(e,t),Ht.set(t,e),t},Gt=function(e,t){Vt=t+1,$t.set(e,t),Ht.set(t,e)},Ut=Object.freeze([]),Yt=Object.freeze({});function Kt(e,t,r){return void 0===r&&(r=Yt),e.theme!==r.theme&&e.theme||t||r.theme}var Xt=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Jt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Zt=/(^-|-$)/g;function Qt(e){return e.replace(Jt,"-").replace(Zt,"")}var er=/(a)(d)/gi,tr=function(e){return String.fromCharCode(e+(e>25?39:97))};function rr(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=tr(t%52)+r;return(tr(t%52)+r).replace(er,"$1-$2")}var nr,ir=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},or=function(e){return ir(5381,e)};function ar(e){return rr(or(e)>>>0)}function sr(e){return"string"==typeof e&&!0}var lr="function"==typeof Symbol&&Symbol.for,ur=lr?Symbol.for("react.memo"):60115,cr=lr?Symbol.for("react.forward_ref"):60112,dr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hr=((nr={})[cr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nr[ur]=fr,nr);function mr(e){return("type"in(t=e)&&t.type.$$typeof)===ur?fr:"$$typeof"in e?hr[e.$$typeof]:dr;var t}var gr=Object.defineProperty,vr=Object.getOwnPropertyNames,yr=Object.getOwnPropertySymbols,br=Object.getOwnPropertyDescriptor,xr=Object.getPrototypeOf,Sr=Object.prototype;function wr(e,t,r){if("string"!=typeof t){if(Sr){var n=xr(t);n&&n!==Sr&&wr(e,n,r)}var i=vr(t);yr&&(i=i.concat(yr(t)));for(var o=mr(e),a=mr(t),s=0;s<i.length;++s){var l=i[s];if(!(l in pr||r&&r[l]||a&&l in a||o&&l in o)){var u=br(t,l);try{gr(e,l,u)}catch(e){}}}}return e}function Cr(e){return"function"==typeof e}function Er(e){return"object"==typeof e&&"styledComponentId"in e}function Ir(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Dr(e,t){return e.join("")}function Pr(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Rr(e,t,r){if(void 0===r&&(r=!1),!r&&!Pr(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Rr(e[n],t[n]);else if(Pr(t))for(var n in t)e[n]=Rr(e[n],t[n]);return e}function Mr(e,t){Object.defineProperty(e,"toString",{value:t})}var Lr=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw Wt(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=(o=0,t.length);o<l;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+=this.tag.getRule(o)+_t;return t},e}(),Ar="style[".concat(Ot,"][").concat(Tt,'="').concat(Nt,'"]'),kr=new RegExp("^".concat(Ot,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Or=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},qr=function(e){if(!e)return document;if(Or(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(Or(t))return t}return document},Tr=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},Nr=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(_t),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var l=s.match(kr);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Gt(c,u),Tr(e,c,l[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(s)}}},_r=function(e){for(var t=qr(e.options.target).querySelectorAll(Ar),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(Ot)!==qt&&(Nr(e,i),i.parentNode&&i.parentNode.removeChild(i))}};var jr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ot,"]")));return t[t.length-1]}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(Ot,qt),n.setAttribute(Tt,Nt);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},Fr=function(){function e(e){this.element=jr(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,n=0,i=r.length;n<i;n++){var o=r[n];if(o.ownerNode===e)return o}throw Wt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),zr=function(){function e(e){this.element=jr(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Wr=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$r=jt,Hr={isServer:!jt,useCSSOMInjection:!Ft},Vr=function(){function e(e,t,r){void 0===e&&(e=Yt),void 0===t&&(t={});var n=this;this.options=qe(qe({},Hr),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&jt&&$r&&($r=!1,_r(this)),Mr(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=function(r){var i=function(e){return Ht.get(e)}(r);if(void 0===i)return"continue";var o=e.names.get(i);if(void 0===o||!o.size)return"continue";var a=t.getGroup(r);if(0===a.length)return"continue";var s=Ot+".g"+r+'[id="'+i+'"]',l="";o.forEach(function(e){e.length>0&&(l+=e+",")}),n+=a+s+'{content:"'+l+'"}'+_t},o=0;o<r;o++)i(o);return n}(n)})}return e.registerId=function(e){return Bt(e)},e.prototype.rehydrate=function(){!this.server&&jt&&_r(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var n=new e(qe(qe({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&jt&&t.target!==this.options.target&&qr(this.options.target)!==qr(t.target)&&_r(n),n},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Wr(r):t?new Fr(r):new zr(r)}(this.options),new Lr(e)));var e},e.prototype.hasNameForId=function(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n},e.prototype.registerName=function(e,t){Bt(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Bt(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Bt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}();function Br(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Ne||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Gr=function(e){return e>="A"&&e<="Z"};function Ur(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Gr(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Yr=Symbol.for("sc-keyframes");var Kr=function(e){return null==e||!1===e||""===e},Xr=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!Kr(n)&&(Array.isArray(n)&&n.isCss||Cr(n)?t.push("".concat(Ur(r),":"),n,";"):Pr(n)?t.push.apply(t,Te(Te(["".concat(r," {")],Xr(n),!1),["}"],!1)):t.push("".concat(Ur(r),": ").concat(Br(r,n),";")))}return t};function Jr(e,t,r,n,i){if(void 0===i&&(i=[]),"string"==typeof e)return e&&i.push(e),i;if(Kr(e))return i;if(Er(e))return i.push(".".concat(e.styledComponentId)),i;var o;if(Cr(e))return!Cr(o=e)||o.prototype&&o.prototype.isReactComponent||!t?(i.push(e),i):Jr(e(t),t,r,n,i);if(function(e){return"object"==typeof e&&null!==e&&Yr in e}(e))return r?(e.inject(r,n),i.push(e.getName(n))):i.push(e),i;if(Pr(e)){for(var a=Xr(e),s=0;s<a.length;s++)i.push(a[s]);return i}if(!Array.isArray(e))return i.push(e.toString()),i;for(s=0;s<e.length;s++)Jr(e[s],t,r,n,i);return i}function Zr(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Cr(r)&&!Er(r))return!1}return!0}var Qr=or(Nt),en=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Zr(e),this.componentId=t,this.baseHash=ir(Qr,t),this.baseStyle=r,Vr.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Ir(n,this.staticRulesId);else{var i=Dr(Jr(this.rules,e,t,r)),o=rr(ir(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}n=Ir(n,o),this.staticRulesId=o}else{for(var s=ir(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Dr(Jr(c,e,t,r));s=ir(ir(s,String(u)),d),l+=d}}if(l){var p=rr(s>>>0);if(!t.hasNameForId(this.componentId,p)){var f=r(l,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}n=Ir(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(Bt(this.componentId)):""}},e}(),tn=/&/g,rn=47,nn=42;function on(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,i=!1,o=0;o<t;o++){var a=e.charCodeAt(o);if(0!==n||i||a!==rn||e.charCodeAt(o+1)!==nn)if(i)a===nn&&e.charCodeAt(o+1)===rn&&(i=!1,o++);else if(34!==a&&39!==a||0!==o&&92===e.charCodeAt(o-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else i=!0,o++}return 0!==r||0!==n}function an(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=an(e.children,t)),e})}var sn=new Vr,ln=function(){var e,t,r,n=Yt,i=n.options,o=void 0===i?Yt:i,a=n.plugins,s=void 0===a?Ut:a,l=function(r,n,i){return i.startsWith(t)&&i.endsWith(t)&&i.replaceAll(t,"").length>0?".".concat(e):r},u=s.slice();u.push(function(e){e.type===We&&e.value.includes("&")&&(r||(r=new RegExp("\\".concat(t,"\\b"),"g")),e.props[0]=e.props[0].replace(tn,t).replace(r,l))}),o.prefix&&u.push(kt),u.push(At);var c,d=[],p=function(e){var t=et(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}(u.concat((c=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&c(e)}))),f=function(n,i,a,s){void 0===i&&(i=""),void 0===a&&(a=""),void 0===s&&(s="&"),e=s,t=i,r=void 0;var l=function(e){if(!on(e))return e;for(var t=e.length,r="",n=0,i=0,o=0,a=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==o||a||l!==rn||e.charCodeAt(s+1)!==nn)if(a)l===nn&&e.charCodeAt(s+1)===rn&&(a=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===o)if(123===l)i++;else if(125===l){if(--i<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,i=0,s=u-1,n=u;continue}0===i&&(r+=e.substring(n,s+1),n=s+1)}else 59===l&&0===i&&(r+=e.substring(n,s+1),n=s+1)}else 0===o?o=l:o===l&&(o=0);else a=!0,s++}if(n<t){var d=e.substring(n);on(d)||(r+=d)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,i=0,o=0,a=0;i<t;){var s=e.charCodeAt(i);if(34!==s&&39!==s||0!==i&&92===e.charCodeAt(i-1))if(0===o)if(s===rn&&i+1<t&&e.charCodeAt(i+1)===nn){for(i+=2;i+1<t&&(e.charCodeAt(i)!==nn||e.charCodeAt(i+1)!==rn);)i++;i+=2}else if(40===s&&i>=3&&108==(32|e.charCodeAt(i-1))&&114==(32|e.charCodeAt(i-2))&&117==(32|e.charCodeAt(i-3)))a=1,i++;else if(a>0)41===s?a--:40===s&&a++,i++;else if(s===nn&&i+1<t&&e.charCodeAt(i+1)===rn)i>n&&r.push(e.substring(n,i)),n=i+=2;else if(s===rn&&i+1<t&&e.charCodeAt(i+1)===rn){for(i>n&&r.push(e.substring(n,i));i<t&&10!==e.charCodeAt(i);)i++;n=i}else i++;else i++;else 0===o?o=s:o===s&&(o=0),i++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(n)),u=Et(a||i?"".concat(a," ").concat(i," { ").concat(l," }"):l);return o.namespace&&(u=an(u,o.namespace)),d=[],Lt(u,p),d};return f.hash=s.length?s.reduce(function(e,t){return t.name||Wt(15),ir(e,t.name)},5381).toString():"",f}(),un=r.createContext({shouldForwardProp:void 0,styleSheet:sn,stylis:ln});function cn(){return r.useContext(un)}un.Consumer;var dn=r.createContext(void 0);dn.Consumer;var pn={};function fn(e,t,i){var o=Er(e),a=e,s=!sr(e),l=t.attrs,u=void 0===l?Ut:l,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Qt(e);pn[r]=(pn[r]||0)+1;var n="".concat(r,"-").concat(ar(Nt+r+pn[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return sr(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=t.displayName&&t.componentId?"".concat(Qt(t.displayName),"-").concat(t.componentId):t.componentId||d,m=o&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=t.shouldForwardProp;if(o&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var b=new en(i,h,o?a.componentStyle:void 0);function x(e,t){return function(e,t,i){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=r.useContext(dn),p=cn(),f=e.shouldForwardProp||p.shouldForwardProp,h=Kt(t,d,s)||Yt,m=function(e,t,r){for(var n,i=qe(qe({},t),{className:void 0,theme:r}),o=0;o<e.length;o+=1){var a=Cr(n=e[o])?n(i):n;for(var s in a)"className"===s?i.className=Ir(i.className,a[s]):"style"===s?i.style=qe(qe({},i.style),a[s]):s in t&&void 0===t[s]||(i[s]=a[s])}return"className"in t&&"string"==typeof t.className&&(i.className=Ir(i.className,t.className)),i}(o,t,h),g=m.as||c,v={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===h||("forwardedAs"===y?v.as=m.forwardedAs:f&&!f(y,g)||(v[y]=m[y]));var b=function(e,t){var r=cn();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,m),x=b.className,S=Ir(l,u);return x&&(S+=" "+x),m.className&&(S+=" "+m.className),v[sr(g)&&!Xt.has(g)?"class":"className"]=S,i&&(v.ref=i),n(g,v)}(S,e,t)}x.displayName=f;var S=r.forwardRef(x);return S.attrs=m,S.componentStyle=b,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=o?Ir(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=h,S.target=o?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++)Rr(e,i[n],!0);return e}({},a.defaultProps,e):e}}),Mr(S,function(){return".".concat(S.styledComponentId)}),s&&wr(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function hn(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var mn=function(e){return Object.assign(e,{isCss:!0})};function gn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Cr(e)||Pr(e))return mn(Jr(hn(Ut,Te([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Jr(n):mn(Jr(hn(n,t)))}function vn(e,t,r){if(void 0===r&&(r=Yt),!t)throw Wt(1,t);var n=function(n){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return e(t,r,gn.apply(void 0,Te([n],i,!1)))};return n.attrs=function(n){return vn(e,t,qe(qe({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return vn(e,t,qe(qe({},r),n))},n}var yn=function(e){return vn(fn,e)},bn=yn;Xt.forEach(function(e){bn[e]=yn(e)});var xn,Sn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Zr(e),Vr.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var i=n(Dr(Jr(this.rules,t,r,n)),""),o=this.componentId+e;r.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Vr.registerId(this.componentId+e);var i=this.componentId+e;this.isStatic?r.hasNameForId(i,i)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();var wn=function(){function e(e,t){var r=this;this[xn]=!0,this.inject=function(e,t){void 0===t&&(t=ln);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Mr(this,function(){throw Wt(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=ln),this.name+e.hash},e}();function Cn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Dr(gn.apply(void 0,Te([e],t,!1))),i=ar(n);return new wn(i,n)}function En(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function In(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}xn=Yr;var Dn={exports:{}};function Pn(){}function Rn(){}Rn.resetWarningCache=Pn;Dn.exports=function(){function e(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={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:Rn,resetWarningCache:Pn};return r.PropTypes=r,r}();var Mn=En(Dn.exports);function Ln(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}Ln.propTypes={children:Mn.node,injectFirst:Mn.bool};const An=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=gn.apply(void 0,Te([e],t,!1)),o="sc-global-".concat(ar(JSON.stringify(i))),a=new Sn(i,o),s=new WeakMap,l=function(e){var t=cn(),n=r.useContext(dn),i=s.get(t.styleSheet);return void 0===i&&(i=t.styleSheet.allocateGSInstance(o),s.set(t.styleSheet,i)),r.useLayoutEffect(function(){return t.styleSheet.server||function(e,t,r,n,i){if(a.isStatic)a.renderStyles(e,zt,r,i);else{var o=qe(qe({},t),{theme:Kt(t,n,l.defaultProps)});a.renderStyles(e,o,r,i)}}(i,e,t.styleSheet,n,t.stylis),function(){a.removeStyles(i,t.styleSheet)}},[i,e,t.styleSheet,n,t.stylis]),null};return r.memo(l)}(e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n});
|
|
7
|
+
System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var n,r,i,o,a,s,l,u,c,d,p,f,h,m,g,v,y,b,x,S,w,C,E,I,D,R,P,M,L,A,k,O,q,T,j,N,_,F,z,W,$,H,V,B,G,U,Y;return{setters:[function(e){n=e.default,r=e.createElement,i=e,o=e.isValidElement,a=e.cloneElement,s=e.Children,l=e.useRef,u=e.createContext,c=e.useReducer,d=e.useEffect,p=e.useDebugValue,f=e.useCallback,h=e.useContext,m=e.useState,g=e.useLayoutEffect,v=e.useMemo,y=e.useInsertionEffect,b=e.memo,x=e.forwardRef,S=e.startTransition,w=e.useImperativeHandle,C=e.PureComponent},function(e){E=e.default,I=e,D=e.flushSync},function(e){R=e.HyperCubeHandler,P=e.useMemo,M=e.useOptions,L=e.usePromise,A=e.useState,k=e.useEffect,O=e.useTheme,q=e.useInteractionState,T=e.onContextMenu,j=e.onTakeSnapshot,N=e.useImperativeHandle,_=e.useTranslator,F=e.useElement,z=e.useStaleLayout,W=e.useModel,$=e.useApp,H=e.useEmbed,V=e.useKeyboard,B=e.useSelections,G=e.useRect},function(e){U=e.default},function(e){Y=e.default}],execute:function(){e("default",function(e){return{qae:{properties:{initial:TY()},data:SF(e)},ext:Pz(e),component(){OY(e)}}});const K={black:"#000",white:"#fff"},X="#e57373",J="#ef5350",Z="#f44336",Q="#d32f2f",ee="#c62828",te="#f3e5f5",ne="#ce93d8",re="#ba68c8",ie="#ab47bc",oe="#9c27b0",ae="#7b1fa2",se="#e3f2fd",le="#90caf9",ue="#42a5f5",ce="#1976d2",de="#1565c0",pe="#4fc3f7",fe="#29b6f6",he="#03a9f4",me="#0288d1",ge="#01579b",ve="#81c784",ye="#66bb6a",be="#4caf50",xe="#388e3c",Se="#2e7d32",we="#1b5e20",Ce="#ffb74d",Ee="#ffa726",Ie="#ff9800",De="#f57c00",Re="#e65100",Pe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Me(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Le=Object.freeze({__proto__:null,default:Me}),Ae="$$material";function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(null,arguments)}function Oe(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var qe="-ms-",Te="-moz-",je="-webkit-",Ne="comm",_e="rule",Fe="decl",ze="@keyframes",We=Math.abs,$e=String.fromCharCode,He=Object.assign;function Ve(e){return e.trim()}function Be(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,n){return e.replace(t,n)}function Ue(e,t,n){return e.indexOf(t,n)}function Ye(e,t){return 0|e.charCodeAt(t)}function Ke(e,t,n){return e.slice(t,n)}function Xe(e){return e.length}function Je(e){return e.length}function Ze(e,t){return t.push(e),e}function Qe(e,t){return e.filter(function(e){return!Be(e,t)})}var et,tt,nt=1,rt=1,it=0,ot=0,at=0,st="";function lt(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:nt,column:rt,length:a,return:"",siblings:s}}function ut(e,t){return He(lt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ct(e){for(;e.root;)e=ut(e.root,{children:[e]});Ze(e,e.siblings)}function dt(){return at=ot>0?Ye(st,--ot):0,rt--,10===at&&(rt=1,nt--),at}function pt(){return at=ot<it?Ye(st,ot++):0,rt++,10===at&&(rt=1,nt++),at}function ft(){return Ye(st,ot)}function ht(){return ot}function mt(e,t){return Ke(st,e,t)}function gt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vt(e){return Ve(mt(ot-1,xt(91===e?e+2:40===e?e+1:e)))}function yt(e){for(;(at=ft())&&at<33;)pt();return gt(e)>2||gt(at)>3?"":" "}function bt(e,t){for(;--t&&pt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return mt(e,ht()+(t<6&&32==ft()&&32==pt()))}function xt(e){for(;pt();)switch(at){case e:return ot;case 34:case 39:34!==e&&39!==e&&xt(at);break;case 40:41===e&&xt(e);break;case 92:pt()}return ot}function St(e,t){for(;pt()&&e+at!==57&&(e+at!==84||47!==ft()););return"/*"+mt(t,ot-1)+"*"+$e(47===e?e:pt())}function wt(e){for(;!gt(ft());)pt();return mt(e,ot)}function Ct(e){return function(e){return st="",e}(Et("",null,null,null,[""],e=function(e){return nt=rt=1,it=Xe(st=e),ot=0,[]}(e),0,[0],e))}function Et(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",x=i,S=o,w=r,C=b;g;)switch(h=y,y=pt()){case 40:if(108!=h&&58==Ye(C,d-1)){-1!=Ue(C+=Ge(vt(y),"&","&\f"),"&\f",We(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=vt(y);break;case 9:case 10:case 13:case 32:C+=yt(h);break;case 92:C+=bt(ht()-1,7);continue;case 47:switch(ft()){case 42:case 47:Ze(Dt(St(pt(),ht()),t,n,l),l),5!=gt(h||1)&&5!=gt(ft()||1)||!Xe(C)||" "===Ke(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=Xe(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(C=Ge(C,/\f/g,"")),f>0&&(Xe(C)-d||0===m&&47===h)&&Ze(f>32?Rt(C+";",r,n,d-1,l):Rt(Ge(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(Ze(w=It(C,t,n,u,c,i,s,b,x=[],S=[],d,o),o),123===y)if(0===c)Et(C,t,w,w,x,o,d,s,S);else{switch(p){case 99:if(110===Ye(C,3))break;case 108:if(97===Ye(C,2))break;default:c=0;case 100:case 109:case 115:}c?Et(e,w,w,r&&Ze(It(e,w,w,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Et(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+Xe(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==dt())continue;switch(C+=$e(y),y*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Xe(C)-1)*v,v=1;break;case 64:45===ft()&&(C+=vt(pt())),p=ft(),c=d=Xe(b=C+=wt(ht())),y++;break;case 45:45===h&&2==Xe(C)&&(m=0)}}return o}function It(e,t,n,r,i,o,a,s,l,u,c,d){for(var p=i-1,f=0===i?o:[""],h=Je(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=Ke(e,p+1,p=We(g=a[m])),x=e;y<h;++y)(x=Ve(g>0?f[y]+" "+b:Ge(b,/&\f/g,f[y])))&&(l[v++]=x);return lt(e,t,n,0===i?_e:s,l,u,c,d)}function Dt(e,t,n,r){return lt(e,t,n,Ne,$e(at),Ke(e,2,-2),0,r)}function Rt(e,t,n,r,i){return lt(e,t,n,Fe,Ke(e,0,r),Ke(e,r+1,-1),r,i)}function Pt(e,t,n){switch(function(e,t){return 45^Ye(e,0)?(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(e,3):0}(e,t)){case 5103:return je+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return je+e+e;case 4855:return je+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return je+e+Te+e+qe+e+e;case 5936:switch(Ye(e,t+11)){case 114:return je+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return je+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return je+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return je+e+qe+e+e;case 6165:return je+e+qe+"flex-"+e+e;case 5187:return je+e+Ge(e,/(\w+).+(:[^]+)/,je+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return je+e+qe+"flex-item-"+Ge(e,/flex-|-self/g,"")+(Be(e,/flex-|baseline/)?"":qe+"grid-row-"+Ge(e,/flex-|-self/g,""))+e;case 4675:return je+e+qe+"flex-line-pack"+Ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return je+e+qe+Ge(e,"shrink","negative")+e;case 5292:return je+e+qe+Ge(e,"basis","preferred-size")+e;case 6060:return je+"box-"+Ge(e,"-grow","")+je+e+qe+Ge(e,"grow","positive")+e;case 4554:return je+Ge(e,/([^-])(transform)/g,"$1"+je+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,je+"$1"),/(image-set)/,je+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,je+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,je+"box-pack:$3"+qe+"flex-pack:$3"),/space-between/,"justify")+je+e+e;case 4200:if(!Be(e,/flex-|baseline/))return qe+"grid-column-align"+Ke(e,t)+e;break;case 2592:case 3360:return qe+Ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Be(e.props,/grid-\w+-end/)})?~Ue(e+(n=n[t].value),"span",0)?e:qe+Ge(e,"-start","")+e+qe+"grid-row-span:"+(~Ue(n,"span",0)?Be(n,/\d+/):+Be(n,/\d+/)-+Be(e,/\d+/))+";":qe+Ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Be(e.props,/grid-\w+-start/)})?e:qe+Ge(Ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ge(e,/(.+)-inline(.+)/,je+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xe(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(45!==Ye(e,t+4))break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+je+"$2-$3$1"+Te+(108==Ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ue(e,"stretch",0)?Pt(Ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,o,a,s){return qe+n+":"+r+s+(i?qe+n+"-span:"+(o?a:+a-+r)+s:"")+e});case 4949:if(121===Ye(e,t+6))return Ge(e,":",":"+je)+e;break;case 6444:switch(Ye(e,45===Ye(e,14)?18:11)){case 120:return Ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+je+(45===Ye(e,14)?"inline-":"")+"box$3$1"+je+"$2$3$1"+qe+"$2box$3")+e;case 100:return Ge(e,":",":"+qe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ge(e,"scroll-","scroll-snap-")+e}return e}function Mt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Lt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Fe:return e.return=e.return||e.value;case Ne:return"";case ze:return e.return=e.value+"{"+Mt(e.children,r)+"}";case _e:if(!Xe(e.value=e.props.join(",")))return""}return Xe(n=Mt(e.children,r))?e.return=e.value+"{"+n+"}":""}function At(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Fe:return void(e.return=Pt(e.value,e.length,n));case ze:return Mt([ut(e,{value:Ge(e.value,"@","@"+je)})],r);case _e:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Be(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ct(ut(e,{props:[Ge(t,/:(read-\w+)/,":-moz-$1")]})),ct(ut(e,{props:[t]})),He(e,{props:Qe(n,r)});break;case"::placeholder":ct(ut(e,{props:[Ge(t,/:(plac\w+)/,":"+je+"input-$1")]})),ct(ut(e,{props:[Ge(t,/:(plac\w+)/,":-moz-$1")]})),ct(ut(e,{props:[Ge(t,/:(plac\w+)/,qe+"input-$1")]})),ct(ut(e,{props:[t]})),He(e,{props:Qe(n,r)})}return""})}}const kt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ot="active",qt="data-styled-version",Tt="6.4.0",jt="/*!sc*/\n",Nt="undefined"!=typeof window&&"undefined"!=typeof document;function _t(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Ft=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(tt=null!==(et=_t("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==et?et:_t("SC_DISABLE_SPEEDY"))&&void 0!==tt?tt:"undefined"==typeof process||void 0===process.env||!1),zt="sc-keyframes-",Wt={};function $t(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let Ht=new Map,Vt=new Map,Bt=1;const Gt=e=>{if(Ht.has(e))return Ht.get(e);for(;Vt.has(Bt);)Bt++;const t=Bt++;return Ht.set(e,t),Vt.set(t,e),t},Ut=e=>Vt.get(e),Yt=(e,t)=>{Bt=t+1,Ht.set(e,t),Vt.set(t,e)},Kt=Object.freeze([]),Xt=Object.freeze({});function Jt(e,t,n=Xt){return e.theme!==n.theme&&e.theme||t||n.theme}const Zt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Qt=/(^-|-$)/g;function en(e){return e.replace(Zt,"-").replace(Qt,"")}const tn=/(a)(d)/gi,nn=e=>String.fromCharCode(e+(e>25?39:97));function rn(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=nn(t%52)+n;return(nn(t%52)+n).replace(tn,"$1-$2")}const on=5381,an=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},sn=e=>an(on,e);function ln(e){return rn(sn(e)>>>0)}function un(e){return"string"==typeof e&&!0}function cn(e){return un(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const dn=Symbol.for("react.memo"),pn=Symbol.for("react.forward_ref"),fn={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},hn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gn={[pn]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[dn]:mn};function vn(e){return("type"in(t=e)&&t.type.$$typeof)===dn?mn:"$$typeof"in e?gn[e.$$typeof]:fn;var t}const yn=Object.defineProperty,bn=Object.getOwnPropertyNames,xn=Object.getOwnPropertySymbols,Sn=Object.getOwnPropertyDescriptor,wn=Object.getPrototypeOf,Cn=Object.prototype;function En(e,t,n){if("string"!=typeof t){const r=wn(t);r&&r!==Cn&&En(e,r,n);const i=bn(t).concat(xn(t)),o=vn(e),a=vn(t);for(let r=0;r<i.length;++r){const s=i[r];if(!(s in hn||n&&n[s]||a&&s in a||o&&s in o)){const n=Sn(t,s);try{yn(e,s,n)}catch(e){}}}}return e}function In(e){return"function"==typeof e}function Dn(e){return"object"==typeof e&&"styledComponentId"in e}function Rn(e,t){return e&&t?e+" "+t:e||t||""}function Pn(e,t){return e.join("")}function Mn(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ln(e,t,n=!1){if(!n&&!Mn(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Ln(e[n],t[n]);else if(Mn(t))for(const n in t)e[n]=Ln(e[n],t[n]);return e}function An(e,t){Object.defineProperty(e,"toString",{value:t})}const kn=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw $t(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,o=t.length;i<o;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+jt;return t}},On=`style[${kt}][${qt}="${Tt}"]`,qn=new RegExp(`^${kt}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Tn=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,jn=e=>{if(!e)return document;if(Tn(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Tn(t))return t}return document},Nn=(e,t,n)=>{const r=n.split(",");let i;for(let n=0,o=r.length;n<o;n++)(i=r[n])&&e.registerName(t,i)},_n=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(jt),i=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const o=n.match(qn);if(o){const t=0|parseInt(o[1],10),n=o[2];0!==t&&(Yt(n,t),Nn(e,n,o[3]),e.getTag().insertRules(t,i)),i.length=0}else i.push(n)}},Fn=e=>{const t=jn(e.options.target).querySelectorAll(On);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(kt)!==Ot&&(_n(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let zn=!1;const Wn=(e,t)=>{const n=document.head,r=e||n,i=document.createElement("style"),o=(e=>{const t=Array.from(e.querySelectorAll(`style[${kt}]`));return t[t.length-1]})(r),a=void 0!==o?o.nextSibling:null;i.setAttribute(kt,Ot),i.setAttribute(qt,Tt);const s=t||function(){if(!1!==zn)return zn;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return zn=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return zn=t.getAttribute("content")||void 0}return zn="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&i.setAttribute("nonce",s),r.insertBefore(i,a),i},$n=class{constructor(e,t){this.element=Wn(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw $t(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},Hn=class{constructor(e,t){this.element=Wn(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let Vn=Nt;const Bn={isServer:!Nt,useCSSOMInjection:!Ft};class Gn{static registerId(e){return Gt(e)}constructor(e=Xt,t={},n){this.options=Object.assign(Object.assign({},Bn),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Nt&&Vn&&(Vn=!1,Fn(this)),An(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let i=0;i<n;i++){const n=Ut(i);if(void 0===n)continue;const o=e.names.get(n);if(void 0===o||!o.size)continue;const a=t.getGroup(i);if(0===a.length)continue;const s=kt+".g"+i+'[id="'+n+'"]';let l="";for(const e of o)e.length>0&&(l+=e+",");r+=a+s+'{content:"'+l+'"}'+jt}return r})(this))}rehydrate(){!this.server&&Nt&&Fn(this)}reconstructWithOptions(e,t=!0){const n=new Gn(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&Nt&&e.target!==this.options.target&&jn(this.options.target)!==jn(e.target)&&Fn(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new $n(t,n):new Hn(t,n))(this.options),new kn(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){Gt(e),e.startsWith(zt)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Gt(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Gt(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Un=new WeakSet,Yn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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};function Kn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Yn||e.startsWith("--")?String(t).trim():t+"px"}const Xn=e=>e>="A"&&e<="Z";function Jn(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Xn(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}const Zn=Symbol.for("sc-keyframes");function Qn(e){return In(e)&&!(e.prototype&&e.prototype.isReactComponent)}const er=e=>null==e||!1===e||""===e,tr=Symbol.for("react.client.reference");function nr(e){return e.$$typeof===tr}const rr=e=>{const t=[];for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!er(r)&&(Array.isArray(r)&&Un.has(r)||In(r)?t.push(Jn(n)+":",r,";"):Mn(r)?t.push(n+" {",...rr(r),"}"):t.push(Jn(n)+": "+Kn(n,r)+";"))}return t};function ir(e,t,n,r,i=[]){if(er(e))return i;const o=typeof e;if("string"===o)return i.push(e),i;if("function"===o){if(nr(e))return i;if(Qn(e)&&t){return ir(e(t),t,n,r,i)}return i.push(e),i}if(Array.isArray(e)){for(let o=0;o<e.length;o++)ir(e[o],t,n,r,i);return i}if(Dn(e))return i.push(`.${e.styledComponentId}`),i;if(function(e){return"object"==typeof e&&null!==e&&Zn in e}(e))return n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i;if(nr(e))return i;if(Mn(e)){const t=rr(e);for(let e=0;e<t.length;e++)i.push(t[e]);return i}return i.push(e.toString()),i}const or=sn(Tt);class ar{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=an(or,t),this.baseStyle=n,Gn.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let i="";for(let r=0;r<this.rules.length;r++){const o=this.rules[r];if("string"==typeof o)i+=o;else if(o)if(Qn(o)){const r=o(e);"string"==typeof r?i+=r:null!=r&&!1!==r&&(i+=Pn(ir(r,e,t,n)))}else i+=Pn(ir(o,e,t,n))}if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+i:i;let o=this.dynamicNameCache.get(e);if(!o){if(o=rn(an(an(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,o)}if(!t.hasNameForId(this.componentId,o)){const e=n(i,"."+o,void 0,this.componentId);t.insertRules(this.componentId,o,e)}r=Rn(r,o)}}return r}}const sr=/&/g,lr=47;function ur(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function cr(e){const t=e.length;let n="",r=0,i=0,o=0,a=!1,s=!1;for(let l=0;l<t;l++){const u=e.charCodeAt(l);if(0!==o||a||u!==lr||42!==e.charCodeAt(l+1))if(a)42===u&&e.charCodeAt(l+1)===lr&&(a=!1,l++);else if(34!==u&&39!==u||ur(e,l)){if(0===o)if(123===u)i++;else if(125===u){if(i--,i<0){s=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,i=0,l=n-1,r=n;continue}0===i&&(n+=e.substring(r,l+1),r=l+1)}else 59===u&&0===i&&(n+=e.substring(r,l+1),r=l+1)}else 0===o?o=u:o===u&&(o=0);else a=!0,l++}return s||0!==i||0!==o?(r<t&&0===i&&0===o&&(n+=e.substring(r)),n):e}function dr(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("rule"===r.type){r.value=t+" "+r.value,r.value=r.value.replaceAll(",",","+t+" ");const e=r.props,n=[];for(let r=0;r<e.length;r++)n[r]=t+" "+e[r];r.props=n}Array.isArray(r.children)&&"@keyframes"!==r.type&&(r.children=dr(r.children,t))}return e}const pr=new Gn,fr=function({options:e=Xt,plugins:t=Kt}=Xt){let n,r,i;const o=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===_e&&e.value.includes("&")&&(i||(i=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(sr,r).replace(i,o))}),e.prefix&&a.push(At),a.push(Lt);let s=[];const l=function(e){var t=Je(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}(a.concat((d=e=>s.push(e),function(e){e.root||(e=e.return)&&d(e)}))),u=(t,o="",a="",u="&")=>{n=u,r=o,i=void 0;const c=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return cr(e);const r=e.length;let i="",o=0,a=0,s=0,l=0,u=0,c=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||ur(e,a))if(0===s)if(t===lr&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==lr);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===lr)i+=e.substring(o,a),a+=2,o=a,c=!0;else if(t===lr&&a+1<r&&e.charCodeAt(a+1)===lr){for(i+=e.substring(o,a);a<r&&10!==e.charCodeAt(a);)a++;o=a,c=!0}else 123===t?u++:125===t&&u--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return c?(o<r&&(i+=e.substring(o)),0===u?i:cr(i)):0===u?e:cr(e)}(t);let d=Ct(a||o?a+" "+o+" { "+c+" }":c);return e.namespace&&(d=dr(d,e.namespace)),s=[],Mt(d,l),s},c=e;var d;let p=on;for(let e=0;e<t.length;e++)t[e].name||$t(15),p=an(p,t[e].name);return(null==c?void 0:c.namespace)&&(p=an(p,c.namespace)),(null==c?void 0:c.prefix)&&(p=an(p,"p")),u.hash=p!==on?p.toString():"",u}(),hr=n.createContext({shouldForwardProp:void 0,styleSheet:pr,stylis:fr,stylisPlugins:void 0});function mr(){return n.useContext(hr)}hr.Consumer;const gr=n.createContext(void 0);gr.Consumer;const vr=Object.prototype.hasOwnProperty,yr={};function br(e,t){const n="string"!=typeof e?"sc":en(e);yr[n]=(yr[n]||0)+1;const r=n+"-"+ln(Tt+n+yr[n]);return t?t+"-"+r:r}function xr(e,t,i){const o=Dn(e),a=e,s=!un(e),{attrs:l=Kt,componentId:u=br(t.displayName,t.parentComponentId),displayName:c=cn(e)}=t,d=t.displayName&&t.componentId?en(t.displayName)+"-"+t.componentId:t.componentId||u,p=o&&a.attrs?a.attrs.concat(l).filter(Boolean):l;let{shouldForwardProp:f}=t;if(o&&a.shouldForwardProp){const e=a.shouldForwardProp;if(t.shouldForwardProp){const n=t.shouldForwardProp;f=(t,r)=>e(t,r)&&n(t,r)}else f=e}const h=new ar(i,d,o?a.componentStyle:void 0);function m(e,t){return function(e,t,i){const{attrs:o,componentStyle:a,defaultProps:s,foldedComponentIds:l,styledComponentId:u,target:c}=e,d=n.useContext(gr),p=mr(),f=e.shouldForwardProp||p.shouldForwardProp,h=Jt(t,d,s)||Xt;let m,g;{const e=n.useRef(null),r=e.current;if(null!==r&&r[1]===h&&r[2]===p.styleSheet&&r[3]===p.stylis&&r[7]===a&&function(e,t,n){const r=e,i=t;let o=0;for(const e in i)if(vr.call(i,e)&&(o++,r[e]!==i[e]))return!1;return o===n}(r[0],t,r[4]))m=r[5],g=r[6];else{m=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){const o=e[n],a=In(o)?o(i?Object.assign({},r):r):o;for(const e in a)"className"===e?r.className=Rn(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):e in t&&void 0===t[e]||(r[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(r.className=Rn(r.className,t.className)),r}(o,t,h),g=function(e,t,n,r){return e.generateAndInjectStyles(t,n,r)}(a,m,p.styleSheet,p.stylis);let n=0;for(const e in t)vr.call(t,e)&&n++;e.current=[t,h,p.styleSheet,p.stylis,n,m,g,a]}}const v=m.as||c,y=function(e,t,n,r){const i={};for(const o in e)void 0===e[o]||"$"===o[0]||"as"===o||"theme"===o&&e.theme===n||("forwardedAs"===o?i.as=e.forwardedAs:r&&!r(o,t)||(i[o]=e[o]));return i}(m,v,h,f);let b=Rn(l,u);return g&&(b+=" "+g),m.className&&(b+=" "+m.className),y[un(v)&&v.includes("-")?"class":"className"]=b,i&&(y.ref=i),r(v,y)}(g,e,t)}m.displayName=c;let g=n.forwardRef(m);return g.attrs=p,g.componentStyle=h,g.displayName=c,g.shouldForwardProp=f,g.foldedComponentIds=o?Rn(a.foldedComponentIds,a.styledComponentId):"",g.styledComponentId=d,g.target=o?a.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=o?function(e,...t){for(const n of t)Ln(e,n,!0);return e}({},a.defaultProps,e):e}}),An(g,()=>`.${g.styledComponentId}`),s&&En(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var Sr=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function wr(e,t){const n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}const Cr=e=>(Un.add(e),e);function Er(e,...t){if(In(e)||Mn(e))return Cr(ir(wr(Kt,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ir(n):Cr(ir(wr(n,t)))}function Ir(e,t,n=Xt){if(!t)throw $t(1,t);const r=(r,...i)=>e(t,n,Er(r,...i));return r.attrs=r=>Ir(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Ir(e,t,Object.assign(Object.assign({},n),r)),r}const Dr=e=>Ir(xr,e),Rr=Dr;Sr.forEach(e=>{Rr[e]=Dr(e)});let Pr=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(In(n)&&!Dn(n))return!1}return!0}(e),Gn.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const o=this.computeRules(e,t,n,r);n.insertRules(i,o.name,o.rules)}return}const o=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&o){const t=o.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const i=Pn(ir(this.rules,t,n,r)),o={name:this.componentId+e,rules:r(i,"")};return this.instanceRules.set(e,o),o}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};var Mr;let Lr=class{constructor(e,t){this[Mr]=!0,this.inject=(e,t=fr)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=zt+e,this.rules=t,Gt(this.id),An(this,()=>{throw $t(12,String(this.name))})}getName(e=fr){return e.hash?this.name+rn(+e.hash>>>0):this.name}};function Ar(e,...t){const n=Pn(Er(e,...t)),r=ln(n);return new Lr(r,n)}function kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Or(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}Mr=Zn;var qr={exports:{}};function Tr(){}function jr(){}jr.resetWarningCache=Tr;qr.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={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:jr,resetWarningCache:Tr};return n.PropTypes=n,n}();var Nr=kr(qr.exports);function _r(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}_r.propTypes={children:Nr.node,injectFirst:Nr.bool};const Fr=function(e,...t){const r=Er(e,...t),i=`sc-global-${ln(JSON.stringify(r))}`,o=new Pr(r,i),a=e=>{const t=mr(),r=n.useContext(gr);let a;{const e=n.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(i)),a=e.current}t.styleSheet.server&&s(a,e,t.styleSheet,r,t.stylis);{const l=o.isStatic?[a,t.styleSheet,o]:[a,e,t.styleSheet,r,t.stylis,o],u=n.useRef(o);n.useLayoutEffect(()=>(t.styleSheet.server||(u.current!==o&&(t.styleSheet.clearRules(i),u.current=o),s(a,e,t.styleSheet,r,t.stylis)),()=>{o.removeStyles(a,t.styleSheet)}),l)}return t.styleSheet.server&&o.instanceRules.delete(a),null};function s(e,t,n,r,i){if(o.isStatic)o.renderStyles(e,Wt,n,i);else{const s=Object.assign(Object.assign({},t),{theme:Jt(t,r,a.defaultProps)});o.renderStyles(e,s,n,i)}}return n.memo(a)}(e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r});
|
|
8
8
|
/**
|
|
9
9
|
* @mui/styled-engine-sc v6.4.3
|
|
10
10
|
*
|
|
@@ -12,7 +12,7 @@ System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","p
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
function kn(e,t){let r;return r=t?bn(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):bn(e),r}function On(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function qn(e){return e}An.propTypes={defaultTheme:Mn.object,styles:Mn.oneOfType([Mn.array,Mn.string,Mn.object,Mn.func])};var Tn=Object.freeze({__proto__:null,GlobalStyles:An,StyledEngineProvider:Ln,ThemeContext:dn,css:gn,default:kn,internal_mutateStyles:On,internal_processStyles:function(e,t){return On(e,t)},internal_serializeStyles:qn,keyframes:Cn});function Nn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function _n(e){if(i.isValidElement(e)||!Nn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=_n(e[r])}),t}function jn(e,t,r={clone:!0}){const n=r.clone?ke({},e):e;return Nn(e)&&Nn(t)&&Object.keys(t).forEach(o=>{i.isValidElement(t[o])?n[o]=t[o]:Nn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Nn(e[o])?n[o]=jn(e[o],t[o],r):r.clone?n[o]=Nn(t[o])?_n(t[o]):t[o]:n[o]=t[o]}),n}var Fn=Object.freeze({__proto__:null,default:jn,isPlainObject:Nn});const zn=["values","unit","step"];function Wn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Oe(e,zn),o=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>ke({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-n/100}${r})`}return ke({keys:a,values:o,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},i)}const $n={borderRadius:4};function Hn(e,t){return t?jn(e,t,{clone:!1}):e}const Vn={xs:0,sm:600,md:900,lg:1200,xl:1536},Bn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vn[e]}px)`};function Gn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Bn;return t.reduce((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n),{})}if("object"==typeof t){const e=n.breakpoints||Bn;return Object.keys(t).reduce((n,i)=>{if(-1!==Object.keys(e.values||Vn).indexOf(i)){n[e.up(i)]=r(t[i],i)}else{const e=i;n[e]=t[e]}return n},{})}return r(t)}function Un(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function Yn(e){if("string"!=typeof e)throw new Error(Me(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Kn=Object.freeze({__proto__:null,default:Yn});function Xn(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Jn(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Xn(e,r)||n,t&&(i=t(i,n,e)),i}function Zn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=Xn(e.theme,n)||{};return Gn(e,o,e=>{let n=Jn(a,i,e);return e===n&&"string"==typeof e&&(n=Jn(a,i,`${t}${"default"===e?"":Yn(e)}`,e)),!1===r?n:{[r]:n}})};return o.propTypes={},o.filterProps=[t],o}const Qn={m:"margin",p:"padding"},ei={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ti={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ri=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!ti[e])return[e];e=ti[e]}const[t,r]=e.split(""),n=Qn[t],i=ei[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]}),ni=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ii=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function oi(e,t,r,n){var i;const o=null!=(i=Xn(e,t,!1))?i:r;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function ai(e){return oi(e,"spacing",8)}function si(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function li(e,t,r,n){if(-1===t.indexOf(r))return null;const i=function(e,t){return r=>e.reduce((e,n)=>(e[n]=si(t,r),e),{})}(ri(r),n);return Gn(e,e[r],i)}function ui(e,t){const r=ai(e.theme);return Object.keys(e).map(n=>li(e,t,n,r)).reduce(Hn,{})}function ci(e){return ui(e,ni)}function di(e){return ui(e,ii)}function pi(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?Hn(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function fi(e){return"number"!=typeof e?e:`${e}px solid`}function hi(e,t){return Zn({prop:e,themeKey:"borders",transform:t})}ci.propTypes={},ci.filterProps=ni,di.propTypes={},di.filterProps=ii;const mi=hi("border",fi),gi=hi("borderTop",fi),vi=hi("borderRight",fi),yi=hi("borderBottom",fi),bi=hi("borderLeft",fi),xi=hi("borderColor"),Si=hi("borderTopColor"),wi=hi("borderRightColor"),Ci=hi("borderBottomColor"),Ei=hi("borderLeftColor"),Ii=hi("outline",fi),Di=hi("outlineColor"),Pi=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=oi(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:si(t,e)});return Gn(e,e.borderRadius,r)}return null};Pi.propTypes={},Pi.filterProps=["borderRadius"],pi(mi,gi,vi,yi,bi,xi,Si,wi,Ci,Ei,Pi,Ii,Di);const Ri=e=>{if(void 0!==e.gap&&null!==e.gap){const t=oi(e.theme,"spacing",8),r=e=>({gap:si(t,e)});return Gn(e,e.gap,r)}return null};Ri.propTypes={},Ri.filterProps=["gap"];const Mi=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=oi(e.theme,"spacing",8),r=e=>({columnGap:si(t,e)});return Gn(e,e.columnGap,r)}return null};Mi.propTypes={},Mi.filterProps=["columnGap"];const Li=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=oi(e.theme,"spacing",8),r=e=>({rowGap:si(t,e)});return Gn(e,e.rowGap,r)}return null};Li.propTypes={},Li.filterProps=["rowGap"];function Ai(e,t){return"grey"===t?t:e}pi(Ri,Mi,Li,Zn({prop:"gridColumn"}),Zn({prop:"gridRow"}),Zn({prop:"gridAutoFlow"}),Zn({prop:"gridAutoColumns"}),Zn({prop:"gridAutoRows"}),Zn({prop:"gridTemplateColumns"}),Zn({prop:"gridTemplateRows"}),Zn({prop:"gridTemplateAreas"}),Zn({prop:"gridArea"}));function ki(e){return e<=1&&0!==e?100*e+"%":e}pi(Zn({prop:"color",themeKey:"palette",transform:Ai}),Zn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ai}),Zn({prop:"backgroundColor",themeKey:"palette",transform:Ai}));const Oi=Zn({prop:"width",transform:ki}),qi=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const i=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Vn[t];return i?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:ki(t)}};return Gn(e,e.maxWidth,t)}return null};qi.filterProps=["maxWidth"];const Ti=Zn({prop:"minWidth",transform:ki}),Ni=Zn({prop:"height",transform:ki}),_i=Zn({prop:"maxHeight",transform:ki}),ji=Zn({prop:"minHeight",transform:ki});Zn({prop:"size",cssProperty:"width",transform:ki}),Zn({prop:"size",cssProperty:"height",transform:ki});pi(Oi,qi,Ti,Ni,_i,ji,Zn({prop:"boxSizing"}));const Fi={border:{themeKey:"borders",transform:fi},borderTop:{themeKey:"borders",transform:fi},borderRight:{themeKey:"borders",transform:fi},borderBottom:{themeKey:"borders",transform:fi},borderLeft:{themeKey:"borders",transform:fi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:fi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pi},color:{themeKey:"palette",transform:Ai},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ai},backgroundColor:{themeKey:"palette",transform:Ai},p:{style:di},pt:{style:di},pr:{style:di},pb:{style:di},pl:{style:di},px:{style:di},py:{style:di},padding:{style:di},paddingTop:{style:di},paddingRight:{style:di},paddingBottom:{style:di},paddingLeft:{style:di},paddingX:{style:di},paddingY:{style:di},paddingInline:{style:di},paddingInlineStart:{style:di},paddingInlineEnd:{style:di},paddingBlock:{style:di},paddingBlockStart:{style:di},paddingBlockEnd:{style:di},m:{style:ci},mt:{style:ci},mr:{style:ci},mb:{style:ci},ml:{style:ci},mx:{style:ci},my:{style:ci},margin:{style:ci},marginTop:{style:ci},marginRight:{style:ci},marginBottom:{style:ci},marginLeft:{style:ci},marginX:{style:ci},marginY:{style:ci},marginInline:{style:ci},marginInlineStart:{style:ci},marginInlineEnd:{style:ci},marginBlock:{style:ci},marginBlockStart:{style:ci},marginBlockEnd:{style:ci},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ri},rowGap:{style:Li},columnGap:{style:Mi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ki},maxWidth:{style:qi},minWidth:{transform:ki},height:{transform:ki},maxHeight:{transform:ki},minHeight:{transform:ki},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zi(){function e(e,t,r,n){const i={[e]:t,theme:r},o=n[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Xn(r,s)||{};if(u)return u(i);return Gn(i,t,t=>{let r=Jn(c,l,t);return t===r&&"string"==typeof t&&(r=Jn(c,l,`${e}${"default"===t?"":Yn(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:i,theme:o={},nested:a}=r||{};if(!i)return null;const s=null!=(n=o.unstable_sxConfig)?n:Fi;function l(r){let n=r;if("function"==typeof r)n=r(o);else if("object"!=typeof r)return r;if(!n)return null;const i=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{});return r||{}}(o.breakpoints),l=Object.keys(i);let u=i;return Object.keys(n).forEach(r=>{const i=(a=n[r],l=o,"function"==typeof a?a(l):a);var a,l;if(null!=i)if("object"==typeof i)if(s[r])u=Hn(u,e(r,i,o,s));else{const e=Gn({theme:o},i,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,i)?u=Hn(u,e):u[r]=t({sx:i,theme:o,nested:!0})}else u=Hn(u,e(r,i,o,s))}),!a&&o.modularCssLayers?{"@layer sx":Un(l,u)}:Un(l,u)}return Array.isArray(i)?i.map(l):l(i)}}const Wi=zi();function $i(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Wi.filterProps=["sx"];const Hi=["breakpoints","palette","spacing","shape"];function Vi(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=Oe(e,Hi),s=Wn(r),l=function(e=8){if(e.mui)return e;const t=ai({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(i);let u=jn({breakpoints:s,direction:"ltr",components:{},palette:ke({mode:"light"},n),spacing:l,shape:ke({},$n,o)},a);return u.applyStyles=$i,u=t.reduce((e,t)=>jn(e,t),u),u.unstable_sxConfig=ke({},Fi,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Wi({sx:e,theme:this})},u}var Bi=Object.freeze({__proto__:null,default:Vi,private_createBreakpoints:Wn,unstable_applyStyles:$i});function Gi(e=null){const t=i.useContext(dn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Ui=Vi();function Yi(e=Ui){return Gi(e)}var Ki={exports:{}},Xi={},Ji=r,Zi=Symbol.for("react.element"),Qi=Symbol.for("react.fragment"),eo=Object.prototype.hasOwnProperty,to=Ji.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ro={key:!0,ref:!0,__self:!0,__source:!0};function no(e,t,r){var n,i={},o=null,a=null;for(n in void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)eo.call(t,n)&&!ro.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:Zi,type:e,key:o,ref:a,props:i,_owner:to.current}}Xi.Fragment=Qi,Xi.jsx=no,Xi.jsxs=no,Ki.exports=Xi;var io=Ki.exports;function oo(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ao({styles:e,themeId:t,defaultTheme:r={}}){const n=Yi(r),i=t&&n[t]||n;let o="function"==typeof e?e(i):e;return i.modularCssLayers&&(o=Array.isArray(o)?o.map(e=>oo("function"==typeof e?e(i):e)):oo(o)),io.jsx(An,{styles:o})}const so=["sx"];function lo(e){const{sx:t}=e,r=Oe(e,so),{systemProps:n,otherProps:i}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Fi;return Object.keys(e).forEach(t=>{i[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let o;return o=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Nn(r)?ke({},n,r):n}:ke({},n,t),ke({},i,{sx:o})}var uo=Object.freeze({__proto__:null,default:Wi,extendSxProp:lo,unstable_createStyleFunctionSx:zi,unstable_defaultSxConfig:Fi});const co=e=>e,po=(()=>{let e=co;return{configure(t){e=t},generate:t=>e(t),reset(){e=co}}})();function fo(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=fo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ho(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=fo(e))&&(n&&(n+=" "),n+=t);return n}const mo=["className","component"];const go={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function vo(e,t,r="Mui"){const n=go[t];return n?`${r}-${n}`:`${po.generate(e)}-${t}`}function yo(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=vo(e,t,r)}),n}var bo={exports:{}},xo={},So=Symbol.for("react.transitional.element"),wo=Symbol.for("react.portal"),Co=Symbol.for("react.fragment"),Eo=Symbol.for("react.strict_mode"),Io=Symbol.for("react.profiler"),Do=Symbol.for("react.consumer"),Po=Symbol.for("react.context"),Ro=Symbol.for("react.forward_ref"),Mo=Symbol.for("react.suspense"),Lo=Symbol.for("react.suspense_list"),Ao=Symbol.for("react.memo"),ko=Symbol.for("react.lazy"),Oo=Symbol.for("react.view_transition"),qo=Symbol.for("react.client.reference");function To(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case So:switch(e=e.type){case Co:case Io:case Eo:case Mo:case Lo:case Oo:return e;default:switch(e=e&&e.$$typeof){case Po:case Ro:case ko:case Ao:case Do:return e;default:return t}}case wo:return t}}}xo.ContextConsumer=Do,xo.ContextProvider=Po,xo.Element=So,xo.ForwardRef=Ro,xo.Fragment=Co,xo.Lazy=ko,xo.Memo=Ao,xo.Portal=wo,xo.Profiler=Io,xo.StrictMode=Eo,xo.Suspense=Mo,xo.SuspenseList=Lo,xo.isContextConsumer=function(e){return To(e)===Do},xo.isContextProvider=function(e){return To(e)===Po},xo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===So},xo.isForwardRef=function(e){return To(e)===Ro},xo.isFragment=function(e){return To(e)===Co},xo.isLazy=function(e){return To(e)===ko},xo.isMemo=function(e){return To(e)===Ao},xo.isPortal=function(e){return To(e)===wo},xo.isProfiler=function(e){return To(e)===Io},xo.isStrictMode=function(e){return To(e)===Eo},xo.isSuspense=function(e){return To(e)===Mo},xo.isSuspenseList=function(e){return To(e)===Lo},xo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Co||e===Io||e===Eo||e===Mo||e===Lo||"object"==typeof e&&null!==e&&(e.$$typeof===ko||e.$$typeof===Ao||e.$$typeof===Po||e.$$typeof===Do||e.$$typeof===Ro||e.$$typeof===qo||void 0!==e.getModuleId)},xo.typeOf=To,bo.exports=xo;var No=bo.exports;const _o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jo(e){const t=`${e}`.match(_o);return t&&t[1]||""}function Fo(e,t=""){return e.displayName||e.name||jo(e)||t}function zo(e,t,r){const n=Fo(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Wo=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Fo(e,"Component");if("object"==typeof e)switch(e.$$typeof){case No.ForwardRef:return zo(e,e.render,"ForwardRef");case No.Memo:return zo(e,e.type,"memo");default:return}}},getFunctionName:jo});function $o(e,t){const r=ke({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ke({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},o&&Object.keys(o)?i&&Object.keys(i)?(r[n]=ke({},o),Object.keys(i).forEach(e=>{r[n][e]=$o(i[e],o[e])})):r[n]=o:r[n]=i}else void 0===r[n]&&(r[n]=e[n])}),r}const Ho="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function Vo(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Bo=Object.freeze({__proto__:null,default:Vo});function Go(e){if(e.type)return e;if("#"===e.charAt(0))return Go(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Me(9,e));let n,i=e.substring(t+1,e.length-1);if("color"===r){if(i=i.split(" "),n=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Me(10,n))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:r,values:i,colorSpace:n}}function Uo(e,t){return e=Go(e),t=function(e,t=0,r=1){return Vo(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Yo(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function Ko(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function Xo(e){return e&&e.ownerDocument||document}function Jo(e){return Xo(e).defaultView||window}function Zo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Qo=0;const ea=i["useId".toString()];function ta(e){if(void 0!==ea){return ea()}return function(e){const[t,r]=i.useState(e),n=t;return i.useEffect(()=>{null==t&&(Qo+=1,r(`mui-${Qo}`))},[t]),n}(e)}function ra({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=i.useRef(void 0!==e),[a,s]=i.useState(t);return[o?e:a,i.useCallback(e=>{o||s(e)},[])]}function na(e){const t=i.useRef(e);return Ho(()=>{t.current=e}),i.useRef((...e)=>(0,t.current)(...e)).current}function ia(...e){return i.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Zo(e,t)})},e)}const oa={};const aa=[];class sa{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new sa}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function la(){const e=function(e,t){const r=i.useRef(oa);return r.current===oa&&(r.current=e(t)),r}(sa.create).current;return function(e){i.useEffect(e,aa)}(e.disposeEffect),e}let ua=!0,ca=!1;const da=new sa,pa={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fa(e){e.metaKey||e.altKey||e.ctrlKey||(ua=!0)}function ha(){ua=!1}function ma(){"hidden"===this.visibilityState&&ca&&(ua=!0)}function ga(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ua||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!pa[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function va(){const e=i.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fa,!0),t.addEventListener("mousedown",ha,!0),t.addEventListener("pointerdown",ha,!0),t.addEventListener("touchstart",ha,!0),t.addEventListener("visibilitychange",ma,!0))},[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ga(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ca=!0,da.start(100,()=>{ca=!1}),t.current=!1,!0)},ref:e}}function ya(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ba(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((e,n)=>{if(n){const i=t(n);""!==i&&e.push(i),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}function xa(e){return"string"==typeof e}function Sa(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function wa(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}const Ca=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ea(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Oe(e,Ca),s=o?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,i),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const e=ho(null==r?void 0:r.className,o,null==i?void 0:i.className,null==n?void 0:n.className),t=ke({},null==r?void 0:r.style,null==i?void 0:i.style,null==n?void 0:n.style),a=ke({},r,i,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Sa(ke({},i,n)),s=wa(n),l=wa(i),u=t(a),c=ho(null==u?void 0:u.className,null==r?void 0:r.className,o,null==i?void 0:i.className,null==n?void 0:n.className),d=ke({},null==u?void 0:u.style,null==r?void 0:r.style,null==i?void 0:i.style,null==n?void 0:n.style),p=ke({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(ke({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||xa(e)?t:ke({},t,{ownerState:ke({},t.ownerState,r)})}(r,ke({},l,{ref:ia(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return c}function Ia(e){var t;return parseInt(i.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Da=i.createContext(null);function Pa(){return i.useContext(Da)}var Ra="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ma(e){const{children:t,theme:r}=e,n=Pa(),o=i.useMemo(()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return ke({},e,t)}(n,r);return null!=e&&(e[Ra]=null!==n),e},[r,n]);return io.jsx(Da.Provider,{value:o,children:t})}const La=["value"],Aa=i.createContext();function ka(e){let{value:t}=e,r=Oe(e,La);return io.jsx(Aa.Provider,ke({value:null==t||t},r))}const Oa=i.createContext(void 0);function qa({value:e,children:t}){return io.jsx(Oa.Provider,{value:e,children:t})}function Ta({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?$o(i.defaultProps,n):i.styleOverrides||i.variants?n:$o(i,n)}({props:e,name:t,theme:{components:i.useContext(Oa)}})}const Na={};function _a(e,t,r,n=!1){return i.useMemo(()=>{const i=e&&t[e]||t;if("function"==typeof r){const o=r(i),a=e?ke({},t,{[e]:o}):o;return n?()=>a:a}return ke({},t,e?{[e]:r}:r)},[e,t,r,n])}function ja(e){const{children:t,theme:r,themeId:n}=e,i=Gi(Na),o=Pa()||Na,a=_a(n,i,r),s=_a(n,o,r,!0),l="rtl"===a.direction,u=function(e){const t=Gi(),r=ta()||"",{modularCssLayers:n}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return i=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,i):`@layer ${i};`:"",Ho(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(i){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const o=document.createElement("style");o.setAttribute("data-mui-layer-order",r),o.textContent=i,e.prepend(o)}else{var o;null==(o=e.querySelector(`style[data-mui-layer-order="${r}"]`))||o.remove()}},[i,r]),i?io.jsx(ao,{styles:i}):null}(a);return io.jsx(Ma,{theme:s,children:io.jsx(dn.Provider,{value:a,children:io.jsx(ka,{value:l,children:io.jsxs(qa,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Fa(e){return Fa="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},Fa(e)}function za(e){var t=function(e,t){if("object"!=Fa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Fa(t)?t:t+""}function Wa(e,t){return ke({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var $a={},Ha={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ha);var Va=Ha.exports,Ba=In(Le),Ga=In(Bo),Ua=Va;Object.defineProperty($a,"__esModule",{value:!0});var Ya=$a.alpha=ss;$a.blend=function(e,t,r,n=1){const i=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),o=rs(e),a=rs(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return is({type:"rgb",values:s})},$a.colorChannel=void 0;var Ka=$a.darken=ls;$a.decomposeColor=rs,$a.emphasize=cs;var Xa=$a.getContrastRatio=function(e,t){const r=as(e),n=as(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};$a.getLuminance=as,$a.hexToRgb=ts,$a.hslToRgb=os;var Ja=$a.lighten=us;$a.private_safeAlpha=function(e,t,r){try{return ss(e,t)}catch(t){return e}},$a.private_safeColorChannel=void 0,$a.private_safeDarken=function(e,t,r){try{return ls(e,t)}catch(t){return e}},$a.private_safeEmphasize=function(e,t,r){try{return cs(e,t)}catch(t){return e}},$a.private_safeLighten=function(e,t,r){try{return us(e,t)}catch(t){return e}},$a.recomposeColor=is,$a.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=rs(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var Za=Ua(Ba),Qa=Ua(Ga);function es(e,t=0,r=1){return(0,Qa.default)(e,t,r)}function ts(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function rs(e){if(e.type)return e;if("#"===e.charAt(0))return rs(ts(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Za.default)(9,e));let n,i=e.substring(t+1,e.length-1);if("color"===r){if(i=i.split(" "),n=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Za.default)(10,n))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:r,values:i,colorSpace:n}}const ns=e=>{const t=rs(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};$a.colorChannel=ns;function is(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function os(e){e=rs(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(e,t=(e+r/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),is({type:s,values:l})}function as(e){let t="hsl"===(e=rs(e)).type||"hsla"===e.type?rs(os(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ss(e,t){return e=rs(e),t=es(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,is(e)}function ls(e,t){if(e=rs(e),t=es(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return is(e)}function us(e,t){if(e=rs(e),t=es(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return is(e)}function cs(e,t=.15){return as(e)>.5?ls(e,t):us(e,t)}$a.private_safeColorChannel=(e,t)=>{try{return ns(e)}catch(t){return e}};const ds=["mode","contrastThreshold","tonalOffset"],ps={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:K.white,default:K.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},fs={text:{primary:K.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:K.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function hs(e,t,r,n){const i=n.light||n,o=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Ja(e.main,i):"dark"===t&&(e.dark=Ka(e.main,o)))}function ms(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Oe(e,ds),o=e.primary||function(e="light"){return"dark"===e?{main:le,light:se,dark:ue}:{main:ce,light:ue,dark:de}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:re,light:te,dark:ie}:{main:oe,light:ne,dark:ae}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Z,light:X,dark:Q}:{main:Q,light:J,dark:ee}}(t),l=e.info||function(e="light"){return"dark"===e?{main:fe,light:pe,dark:me}:{main:me,light:he,dark:ge}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ye,light:ve,dark:xe}:{main:Se,light:be,dark:we}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ee,light:Ce,dark:De}:{main:"#ed6c02",light:Ie,dark:Pe}}(t);function d(e){return Xa(e,fs.text.primary)>=r?fs.text.primary:ps.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=ke({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Me(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Me(12,t?` (${t})`:"",JSON.stringify(e.main)));return hs(e,"light",i,n),hs(e,"dark",o,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:fs,light:ps};return jn(ke({common:ke({},K),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Re,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),i)}const gs=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const vs={textTransform:"uppercase"},ys='"Roboto", "Helvetica", "Arial", sans-serif';function bs(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=ys,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Oe(r,gs),f=i/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,i,o)=>{return ke({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===ys?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},o,c);var a},g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,vs),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,vs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jn(ke({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function xs(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Ss=["none",xs(0,2,1,-1,0,1,1,0,0,1,3,0),xs(0,3,1,-2,0,2,2,0,0,1,5,0),xs(0,3,3,-2,0,3,4,0,0,1,8,0),xs(0,2,4,-1,0,4,5,0,0,1,10,0),xs(0,3,5,-1,0,5,8,0,0,1,14,0),xs(0,3,5,-1,0,6,10,0,0,1,18,0),xs(0,4,5,-2,0,7,10,1,0,2,16,1),xs(0,5,5,-3,0,8,10,1,0,3,14,2),xs(0,5,6,-3,0,9,12,1,0,3,16,2),xs(0,6,6,-3,0,10,14,1,0,4,18,3),xs(0,6,7,-4,0,11,15,1,0,4,20,3),xs(0,7,8,-4,0,12,17,2,0,5,22,4),xs(0,7,8,-4,0,13,19,2,0,5,24,4),xs(0,7,9,-4,0,14,21,2,0,5,26,4),xs(0,8,9,-5,0,15,22,2,0,6,28,5),xs(0,8,10,-5,0,16,24,2,0,6,30,5),xs(0,8,11,-5,0,17,26,2,0,6,32,5),xs(0,9,11,-5,0,18,28,2,0,7,34,6),xs(0,9,12,-6,0,19,29,2,0,7,36,6),xs(0,10,13,-6,0,20,31,3,0,8,38,7),xs(0,10,13,-6,0,21,33,3,0,8,40,7),xs(0,10,14,-6,0,22,35,3,0,8,42,7),xs(0,11,14,-7,0,23,36,3,0,9,44,8),xs(0,11,15,-7,0,24,38,3,0,9,46,8)],ws=["duration","easing","delay"],Cs={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Es={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Is(e){return`${Math.round(e)}ms`}function Ds(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ps(e){const t=ke({},Cs,e.easing),r=ke({},Es,e.duration);return ke({getAutoHeightDuration:Ds,create:(e=["all"],n={})=>{const{duration:i=r.standard,easing:o=t.easeInOut,delay:a=0}=n;return Oe(n,ws),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:Is(i)} ${o} ${"string"==typeof a?a:Is(a)}`).join(",")}},e,{easing:t,duration:r})}const Rs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ms=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ls(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=Oe(e,Ms);if(e.vars&&void 0===e.generateCssVars)throw new Error(Me(18));const s=ms(n),l=Vi(e);let u=jn(l,{mixins:Wa(l.breakpoints,r),palette:s,shadows:Ss.slice(),typography:bs(s,o),transitions:Ps(i),zIndex:ke({},Rs)});return u=jn(u,a),u=t.reduce((e,t)=>jn(e,t),u),u.unstable_sxConfig=ke({},Fi,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Wi({sx:e,theme:this})},u}const As=Ls();function ks(){const e=Yi(As);return e[Ae]||e}var Os,qs={},Ts={exports:{}};function Ns(){return Os||(Os=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ts)),Ts.exports}var _s,js={exports:{}};function Fs(){return _s||(_s=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(js)),js.exports}var zs=In(Tn),Ws=In(Fn),$s=In(Kn),Hs=In(Wo),Vs=In(Bi),Bs=In(uo),Gs=Va;Object.defineProperty(qs,"__esModule",{value:!0});var Us=qs.default=function(e={}){const{themeId:t,defaultTheme:r=al,rootShouldForwardProp:n=il,slotShouldForwardProp:i=il}=e,o=e=>(0,Qs.default)((0,Ys.default)({},e,{theme:ll((0,Ys.default)({},e,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,Xs.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ul(sl(l))}=a,p=(0,Ks.default)(a,rl),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=il;"Root"===l||"root"===l?g=n:l?g=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,Xs.default)(e,(0,Ys.default)({shouldForwardProp:g,label:void 0},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Js.isPlainObject)(e)?n=>{const i=ll({theme:n.theme,defaultTheme:r,themeId:t});return cl(e,(0,Ys.default)({},n,{theme:i}),i.modularCssLayers?f:void 0)}:e,b=(n,...i)=>{let a=y(n);const l=i?i.map(y):[];s&&d&&l.push(e=>{const n=ll((0,Ys.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const i=n.components[s].styleOverrides,o={};return Object.entries(i).forEach(([t,r])=>{o[t]=cl(r,(0,Ys.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),d(e,o)}),s&&!h&&l.push(e=>{var n;const i=ll((0,Ys.default)({},e,{defaultTheme:r,themeId:t}));return cl({variants:null==i||null==(n=i.components)||null==(n=n[s])?void 0:n.variants},(0,Ys.default)({},e,{theme:i}),i.modularCssLayers?"theme":void 0)}),m||l.push(o);const u=l.length-i.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}};qs.shouldForwardProp=il,qs.systemDefaultTheme=void 0;var Ys=Gs(Ns()),Ks=Gs(Fs()),Xs=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=nl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(zs),Js=Ws;Gs($s),Gs(Hs);var Zs=Gs(Vs),Qs=Gs(Bs);const el=["ownerState"],tl=["variants"],rl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nl(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(nl=function(e){return e?r:t})(e)}function il(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function ol(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const al=qs.systemDefaultTheme=(0,Zs.default)(),sl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ll({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function ul(e){return e?(t,r)=>r[e]:null}function cl(e,t,r){let{ownerState:n}=t,i=(0,Ks.default)(t,el);const o="function"==typeof e?e((0,Ys.default)({ownerState:n},i)):e;if(Array.isArray(o))return o.flatMap(e=>cl(e,(0,Ys.default)({ownerState:n},i),r));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Ks.default)(o,tl);return e.forEach(e=>{let o=!0;if("function"==typeof e.props?o=e.props((0,Ys.default)({ownerState:n},i,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&i[t]!==e.props[t]&&(o=!1)}),o){Array.isArray(t)||(t=[t]);const o="function"==typeof e.style?e.style((0,Ys.default)({ownerState:n},i,n)):e.style;t.push(r?ol((0,Xs.internal_serializeStyles)(o),r):o)}}),t}return r?ol((0,Xs.internal_serializeStyles)(o),r):o}function dl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const pl=e=>dl(e)&&"classes"!==e,fl=Us({themeId:Ae,defaultTheme:As,rootShouldForwardProp:pl}),hl=["theme"];function ml(e){let{theme:t}=e,r=Oe(e,hl);const n=t[Ae];let i=n||t;return"function"!=typeof t&&(n&&!n.vars?i=ke({},n,{vars:null}):t&&!t.vars&&(i=ke({},t,{vars:null}))),io.jsx(ja,ke({},r,{themeId:n?Ae:void 0,theme:i}))}const gl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function vl(e){return Ta(e)}function yl(e){return vo("MuiSvgIcon",e)}yo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],xl=fl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Yn(r.color)}`],t[`fontSize${Yn(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,o,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),Sl=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,f=Oe(r,bl),h=i.isValidElement(n)&&"svg"===n.type,m=ke({},r,{color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:h}),g={};c||(g.viewBox=p);const v=(e=>{const{color:t,fontSize:r,classes:n}=e;return ba({root:["root","inherit"!==t&&`color${Yn(t)}`,`fontSize${Yn(r)}`]},yl,n)})(m);return io.jsxs(xl,ke({as:s,className:ho(v.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,h&&n.props,{ownerState:m,children:[h?n.props.children:n,d?io.jsx("title",{children:d}):null]}))});function wl(e,t){function r(r,n){return io.jsx(Sl,ke({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Sl.muiName,i.memo(i.forwardRef(r))}function Cl(e,t){return Cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cl(e,t)}function El(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cl(e,t)}Sl.muiName="SvgIcon";var Il=!1,Dl=r.createContext(null),Pl="unmounted",Rl="exited",Ml="entering",Ll="entered",Al="exiting",kl=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var i,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(i=Rl,n.appearStatus=Ml):i=Ll:i=t.unmountOnExit||t.mountOnEnter?Pl:Rl,n.state={status:i},n.nextCallback=null,n}El(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Pl?{status:Rl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Ml&&r!==Ll&&(t=Ml):r!==Ml&&r!==Ll||(t=Al)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ml){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rl&&this.setState({status:Pl})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[E.findDOMNode(this),n],o=i[0],a=i[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Il?this.safeSetState({status:Ll},function(){t.props.onEntered(o)}):(this.props.onEnter(o,a),this.safeSetState({status:Ml},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Ll},function(){t.props.onEntered(o,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:E.findDOMNode(this);t&&!Il?(this.props.onExit(n),this.safeSetState({status:Al},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:Rl},function(){e.props.onExited(n)})})})):this.safeSetState({status:Rl},function(){e.props.onExited(n)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Pl)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=Oe(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(Dl.Provider,{value:null},"function"==typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},t}(r.Component);function Ol(){}function ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tl(e,t){var r=Object.create(null);return e&&s.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&o(e)?t(e):e}(e)}),r}function Nl(e,t,r){return null!=r[t]?r[t]:e.props[t]}function _l(e,t,r){var n=Tl(e.children),i=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var u=i[l][n];s[i[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<o.length;n++)s[o[n]]=r(o[n]);return s}(t,n);return Object.keys(i).forEach(function(s){var l=i[s];if(o(l)){var u=s in t,c=s in n,d=t[s],p=o(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&o(d)&&(i[s]=a(l,{onExited:r.bind(null,l),in:d.props.in,exit:Nl(l,"exit",e),enter:Nl(l,"enter",e)})):i[s]=a(l,{in:!1}):i[s]=a(l,{onExited:r.bind(null,l),in:!0,exit:Nl(l,"exit",e),enter:Nl(l,"enter",e)})}}),i}kl.contextType=Dl,kl.propTypes={},kl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ol,onEntering:Ol,onEntered:Ol,onExit:Ol,onExiting:Ol,onExited:Ol},kl.UNMOUNTED=Pl,kl.EXITED=Rl,kl.ENTERING=Ml,kl.ENTERED=Ll,kl.EXITING=Al;var jl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Fl=function(e){function t(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind(ql(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}El(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,i=t.children,o=t.handleExited;return{children:t.firstRender?(r=e,n=o,Tl(r.children,function(e){return a(e,{onExited:n.bind(null,e),in:!0,appear:Nl(e,"appear",r),enter:Nl(e,"enter",r),exit:Nl(e,"exit",r)})})):_l(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var r=Tl(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=ke({},t.children);return delete r[e.key],{children:r}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=Oe(e,["component","childFactory"]),o=this.state.contextValue,a=jl(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?r.createElement(Dl.Provider,{value:o},a):r.createElement(Dl.Provider,{value:o},r.createElement(t,i,a))},t}(r.Component);Fl.propTypes={},Fl.defaultProps={component:"div",childFactory:function(e){return e}};const zl=e=>e.scrollTop;function Wl(e,t){var r,n;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof i?i:i[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}function $l(e){return vo("MuiPaper",e)}yo("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Hl=["className","component","elevation","square","variant"],Vl=fl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return ke({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&ke({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ya("#fff",gl(t.elevation))}, ${Ya("#fff",gl(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),Bl=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiPaper"}),{className:n,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=r,l=Oe(r,Hl),u=ke({},r,{component:i,elevation:o,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:i}=e;return ba({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},$l,i)})(u);return io.jsx(Vl,ke({as:i,ownerState:u,className:ho(c.root,n),ref:t},l))});const Gl=yo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ul=["center","classes","className"];let Yl,Kl,Xl,Jl,Zl=e=>e;const Ql=Cn(Yl||(Yl=Zl`
|
|
15
|
+
function zr(e,t){let n;return n=t?Rr(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Rr(e),n}function Wr(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function $r(e){return e}Fr.propTypes={defaultTheme:Nr.object,styles:Nr.oneOfType([Nr.array,Nr.string,Nr.object,Nr.func])};var Hr=Object.freeze({__proto__:null,GlobalStyles:Fr,StyledEngineProvider:_r,ThemeContext:gr,css:Er,default:zr,internal_mutateStyles:Wr,internal_processStyles:function(e,t){return Wr(e,t)},internal_serializeStyles:$r,keyframes:Ar});function Vr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Br(e){if(i.isValidElement(e)||!Vr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Br(e[n])}),t}function Gr(e,t,n={clone:!0}){const r=n.clone?ke({},e):e;return Vr(e)&&Vr(t)&&Object.keys(t).forEach(o=>{i.isValidElement(t[o])?r[o]=t[o]:Vr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Vr(e[o])?r[o]=Gr(e[o],t[o],n):n.clone?r[o]=Vr(t[o])?Br(t[o]):t[o]:r[o]=t[o]}),r}var Ur=Object.freeze({__proto__:null,default:Gr,isPlainObject:Vr});const Yr=["values","unit","step"];function Kr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Oe(e,Yr),o=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>ke({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return ke({keys:a,values:o,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}const Xr={borderRadius:4};function Jr(e,t){return t?Gr(e,t,{clone:!1}):e}const Zr={xs:0,sm:600,md:900,lg:1200,xl:1536},Qr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Zr[e]}px)`};function ei(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Qr;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){const e=r.breakpoints||Qr;return Object.keys(t).reduce((r,i)=>{if(-1!==Object.keys(e.values||Zr).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r},{})}return n(t)}function ti(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ni(e){if("string"!=typeof e)throw new Error(Me(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ri=Object.freeze({__proto__:null,default:ni});function ii(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function oi(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ii(e,n)||r,t&&(i=t(i,r,e)),i}function ai(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=ii(e.theme,r)||{};return ei(e,o,e=>{let r=oi(a,i,e);return e===r&&"string"==typeof e&&(r=oi(a,i,`${t}${"default"===e?"":ni(e)}`,e)),!1===n?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o}const si={m:"margin",p:"padding"},li={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ui={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ci=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!ui[e])return[e];e=ui[e]}const[t,n]=e.split(""),r=si[t],i=li[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),di=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fi(e,t,n,r){var i;const o=null!=(i=ii(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function hi(e){return fi(e,"spacing",8)}function mi(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function gi(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce((e,r)=>(e[r]=mi(t,n),e),{})}(ci(n),r);return ei(e,e[n],i)}function vi(e,t){const n=hi(e.theme);return Object.keys(e).map(r=>gi(e,t,r,n)).reduce(Jr,{})}function yi(e){return vi(e,di)}function bi(e){return vi(e,pi)}function xi(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Jr(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Si(e){return"number"!=typeof e?e:`${e}px solid`}function wi(e,t){return ai({prop:e,themeKey:"borders",transform:t})}yi.propTypes={},yi.filterProps=di,bi.propTypes={},bi.filterProps=pi;const Ci=wi("border",Si),Ei=wi("borderTop",Si),Ii=wi("borderRight",Si),Di=wi("borderBottom",Si),Ri=wi("borderLeft",Si),Pi=wi("borderColor"),Mi=wi("borderTopColor"),Li=wi("borderRightColor"),Ai=wi("borderBottomColor"),ki=wi("borderLeftColor"),Oi=wi("outline",Si),qi=wi("outlineColor"),Ti=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fi(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:mi(t,e)});return ei(e,e.borderRadius,n)}return null};Ti.propTypes={},Ti.filterProps=["borderRadius"],xi(Ci,Ei,Ii,Di,Ri,Pi,Mi,Li,Ai,ki,Ti,Oi,qi);const ji=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fi(e.theme,"spacing",8),n=e=>({gap:mi(t,e)});return ei(e,e.gap,n)}return null};ji.propTypes={},ji.filterProps=["gap"];const Ni=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fi(e.theme,"spacing",8),n=e=>({columnGap:mi(t,e)});return ei(e,e.columnGap,n)}return null};Ni.propTypes={},Ni.filterProps=["columnGap"];const _i=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fi(e.theme,"spacing",8),n=e=>({rowGap:mi(t,e)});return ei(e,e.rowGap,n)}return null};_i.propTypes={},_i.filterProps=["rowGap"];function Fi(e,t){return"grey"===t?t:e}xi(ji,Ni,_i,ai({prop:"gridColumn"}),ai({prop:"gridRow"}),ai({prop:"gridAutoFlow"}),ai({prop:"gridAutoColumns"}),ai({prop:"gridAutoRows"}),ai({prop:"gridTemplateColumns"}),ai({prop:"gridTemplateRows"}),ai({prop:"gridTemplateAreas"}),ai({prop:"gridArea"}));function zi(e){return e<=1&&0!==e?100*e+"%":e}xi(ai({prop:"color",themeKey:"palette",transform:Fi}),ai({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fi}),ai({prop:"backgroundColor",themeKey:"palette",transform:Fi}));const Wi=ai({prop:"width",transform:zi}),$i=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Zr[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:zi(t)}};return ei(e,e.maxWidth,t)}return null};$i.filterProps=["maxWidth"];const Hi=ai({prop:"minWidth",transform:zi}),Vi=ai({prop:"height",transform:zi}),Bi=ai({prop:"maxHeight",transform:zi}),Gi=ai({prop:"minHeight",transform:zi});ai({prop:"size",cssProperty:"width",transform:zi}),ai({prop:"size",cssProperty:"height",transform:zi});xi(Wi,$i,Hi,Vi,Bi,Gi,ai({prop:"boxSizing"}));const Ui={border:{themeKey:"borders",transform:Si},borderTop:{themeKey:"borders",transform:Si},borderRight:{themeKey:"borders",transform:Si},borderBottom:{themeKey:"borders",transform:Si},borderLeft:{themeKey:"borders",transform:Si},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Si},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ti},color:{themeKey:"palette",transform:Fi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fi},backgroundColor:{themeKey:"palette",transform:Fi},p:{style:bi},pt:{style:bi},pr:{style:bi},pb:{style:bi},pl:{style:bi},px:{style:bi},py:{style:bi},padding:{style:bi},paddingTop:{style:bi},paddingRight:{style:bi},paddingBottom:{style:bi},paddingLeft:{style:bi},paddingX:{style:bi},paddingY:{style:bi},paddingInline:{style:bi},paddingInlineStart:{style:bi},paddingInlineEnd:{style:bi},paddingBlock:{style:bi},paddingBlockStart:{style:bi},paddingBlockEnd:{style:bi},m:{style:yi},mt:{style:yi},mr:{style:yi},mb:{style:yi},ml:{style:yi},mx:{style:yi},my:{style:yi},margin:{style:yi},marginTop:{style:yi},marginRight:{style:yi},marginBottom:{style:yi},marginLeft:{style:yi},marginX:{style:yi},marginY:{style:yi},marginInline:{style:yi},marginInlineStart:{style:yi},marginInlineEnd:{style:yi},marginBlock:{style:yi},marginBlockStart:{style:yi},marginBlockEnd:{style:yi},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ji},rowGap:{style:_i},columnGap:{style:Ni},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zi},maxWidth:{style:$i},minWidth:{transform:zi},height:{transform:zi},maxHeight:{transform:zi},minHeight:{transform:zi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Yi(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=ii(n,s)||{};if(u)return u(i);return ei(i,t,t=>{let n=oi(c,l,t);return t===n&&"string"==typeof t&&(n=oi(c,l,`${e}${"default"===t?"":ni(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:i,theme:o={},nested:a}=n||{};if(!i)return null;const s=null!=(r=o.unstable_sxConfig)?r:Ui;function l(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}(o.breakpoints),l=Object.keys(i);let u=i;return Object.keys(r).forEach(n=>{const i=(a=r[n],l=o,"function"==typeof a?a(l):a);var a,l;if(null!=i)if("object"==typeof i)if(s[n])u=Jr(u,e(n,i,o,s));else{const e=ei({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?u=Jr(u,e):u[n]=t({sx:i,theme:o,nested:!0})}else u=Jr(u,e(n,i,o,s))}),!a&&o.modularCssLayers?{"@layer sx":ti(l,u)}:ti(l,u)}return Array.isArray(i)?i.map(l):l(i)}}const Ki=Yi();function Xi(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}Ki.filterProps=["sx"];const Ji=["breakpoints","palette","spacing","shape"];function Zi(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Oe(e,Ji),s=Kr(n),l=function(e=8){if(e.mui)return e;const t=hi({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(i);let u=Gr({breakpoints:s,direction:"ltr",components:{},palette:ke({mode:"light"},r),spacing:l,shape:ke({},Xr,o)},a);return u.applyStyles=Xi,u=t.reduce((e,t)=>Gr(e,t),u),u.unstable_sxConfig=ke({},Ui,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ki({sx:e,theme:this})},u}var Qi=Object.freeze({__proto__:null,default:Zi,private_createBreakpoints:Kr,unstable_applyStyles:Xi});function eo(e=null){const t=i.useContext(gr);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const to=Zi();function no(e=to){return eo(e)}var ro={exports:{}},io={},oo=n,ao=Symbol.for("react.element"),so=Symbol.for("react.fragment"),lo=Object.prototype.hasOwnProperty,uo=oo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,co={key:!0,ref:!0,__self:!0,__source:!0};function po(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)lo.call(t,r)&&!co.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:ao,type:e,key:o,ref:a,props:i,_owner:uo.current}}io.Fragment=so,io.jsx=po,io.jsxs=po,ro.exports=io;var fo=ro.exports;function ho(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function mo({styles:e,themeId:t,defaultTheme:n={}}){const r=no(n),i=t&&r[t]||r;let o="function"==typeof e?e(i):e;return i.modularCssLayers&&(o=Array.isArray(o)?o.map(e=>ho("function"==typeof e?e(i):e)):ho(o)),fo.jsx(Fr,{styles:o})}const go=["sx"];function vo(e){const{sx:t}=e,n=Oe(e,go),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Ui;return Object.keys(e).forEach(t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Vr(n)?ke({},r,n):r}:ke({},r,t),ke({},i,{sx:o})}var yo=Object.freeze({__proto__:null,default:Ki,extendSxProp:vo,unstable_createStyleFunctionSx:Yi,unstable_defaultSxConfig:Ui});const bo=e=>e,xo=(()=>{let e=bo;return{configure(t){e=t},generate:t=>e(t),reset(){e=bo}}})();function So(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=So(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wo(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=So(e))&&(r&&(r+=" "),r+=t);return r}const Co=["className","component"];const Eo={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Io(e,t,n="Mui"){const r=Eo[t];return r?`${n}-${r}`:`${xo.generate(e)}-${t}`}function Do(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Io(e,t,n)}),r}var Ro={exports:{}},Po={},Mo=Symbol.for("react.transitional.element"),Lo=Symbol.for("react.portal"),Ao=Symbol.for("react.fragment"),ko=Symbol.for("react.strict_mode"),Oo=Symbol.for("react.profiler"),qo=Symbol.for("react.consumer"),To=Symbol.for("react.context"),jo=Symbol.for("react.forward_ref"),No=Symbol.for("react.suspense"),_o=Symbol.for("react.suspense_list"),Fo=Symbol.for("react.memo"),zo=Symbol.for("react.lazy"),Wo=Symbol.for("react.view_transition"),$o=Symbol.for("react.client.reference");function Ho(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Mo:switch(e=e.type){case Ao:case Oo:case ko:case No:case _o:case Wo:return e;default:switch(e=e&&e.$$typeof){case To:case jo:case zo:case Fo:case qo:return e;default:return t}}case Lo:return t}}}Po.ContextConsumer=qo,Po.ContextProvider=To,Po.Element=Mo,Po.ForwardRef=jo,Po.Fragment=Ao,Po.Lazy=zo,Po.Memo=Fo,Po.Portal=Lo,Po.Profiler=Oo,Po.StrictMode=ko,Po.Suspense=No,Po.SuspenseList=_o,Po.isContextConsumer=function(e){return Ho(e)===qo},Po.isContextProvider=function(e){return Ho(e)===To},Po.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Mo},Po.isForwardRef=function(e){return Ho(e)===jo},Po.isFragment=function(e){return Ho(e)===Ao},Po.isLazy=function(e){return Ho(e)===zo},Po.isMemo=function(e){return Ho(e)===Fo},Po.isPortal=function(e){return Ho(e)===Lo},Po.isProfiler=function(e){return Ho(e)===Oo},Po.isStrictMode=function(e){return Ho(e)===ko},Po.isSuspense=function(e){return Ho(e)===No},Po.isSuspenseList=function(e){return Ho(e)===_o},Po.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ao||e===Oo||e===ko||e===No||e===_o||"object"==typeof e&&null!==e&&(e.$$typeof===zo||e.$$typeof===Fo||e.$$typeof===To||e.$$typeof===qo||e.$$typeof===jo||e.$$typeof===$o||void 0!==e.getModuleId)},Po.typeOf=Ho,Ro.exports=Po;var Vo=Ro.exports;const Bo=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Go(e){const t=`${e}`.match(Bo);return t&&t[1]||""}function Uo(e,t=""){return e.displayName||e.name||Go(e)||t}function Yo(e,t,n){const r=Uo(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ko=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Uo(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Vo.ForwardRef:return Yo(e,e.render,"ForwardRef");case Vo.Memo:return Yo(e,e.type,"memo");default:return}}},getFunctionName:Go});function Xo(e,t){const n=ke({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ke({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=ke({},o),Object.keys(i).forEach(e=>{n[r][e]=Xo(i[e],o[e])})):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])}),n}const Jo="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function Zo(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Qo=Object.freeze({__proto__:null,default:Zo});function ea(e){if(e.type)return e;if("#"===e.charAt(0))return ea(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Me(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Me(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}function ta(e,t){return e=ea(e),t=function(e,t=0,n=1){return Zo(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function na(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function ra(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function ia(e){return e&&e.ownerDocument||document}function oa(e){return ia(e).defaultView||window}function aa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let sa=0;const la=i["useId".toString()];function ua(e){if(void 0!==la){return la()}return function(e){const[t,n]=i.useState(e),r=t;return i.useEffect(()=>{null==t&&(sa+=1,n(`mui-${sa}`))},[t]),r}(e)}function ca({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=i.useRef(void 0!==e),[a,s]=i.useState(t);return[o?e:a,i.useCallback(e=>{o||s(e)},[])]}function da(e){const t=i.useRef(e);return Jo(()=>{t.current=e}),i.useRef((...e)=>(0,t.current)(...e)).current}function pa(...e){return i.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{aa(e,t)})},e)}const fa={};const ha=[];class ma{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ma}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function ga(){const e=function(e,t){const n=i.useRef(fa);return n.current===fa&&(n.current=e(t)),n}(ma.create).current;return function(e){i.useEffect(e,ha)}(e.disposeEffect),e}let va=!0,ya=!1;const ba=new ma,xa={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Sa(e){e.metaKey||e.altKey||e.ctrlKey||(va=!0)}function wa(){va=!1}function Ca(){"hidden"===this.visibilityState&&ya&&(va=!0)}function Ea(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return va||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!xa[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ia(){const e=i.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Sa,!0),t.addEventListener("mousedown",wa,!0),t.addEventListener("pointerdown",wa,!0),t.addEventListener("touchstart",wa,!0),t.addEventListener("visibilitychange",Ca,!0))},[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ea(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ya=!0,ba.start(100,()=>{ya=!1}),t.current=!1,!0)},ref:e}}function Da(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ra(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function Pa(e){return"string"==typeof e}function Ma(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function La(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const Aa=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ka(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Oe(e,Aa),s=o?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,i),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=wo(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=ke({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=ke({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Ma(ke({},i,r)),s=La(r),l=La(i),u=t(a),c=wo(null==u?void 0:u.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d=ke({},null==u?void 0:u.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),p=ke({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(ke({},a,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||Pa(e)?t:ke({},t,{ownerState:ke({},t.ownerState,n)})}(n,ke({},l,{ref:pa(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return c}function Oa(e){var t;return parseInt(i.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const qa=i.createContext(null);function Ta(){return i.useContext(qa)}var ja="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Na(e){const{children:t,theme:n}=e,r=Ta(),o=i.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ke({},e,t)}(r,n);return null!=e&&(e[ja]=null!==r),e},[n,r]);return fo.jsx(qa.Provider,{value:o,children:t})}const _a=["value"],Fa=i.createContext();function za(e){let{value:t}=e,n=Oe(e,_a);return fo.jsx(Fa.Provider,ke({value:null==t||t},n))}const Wa=i.createContext(void 0);function $a({value:e,children:t}){return fo.jsx(Wa.Provider,{value:e,children:t})}function Ha({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Xo(i.defaultProps,r):i.styleOverrides||i.variants?r:Xo(i,r)}({props:e,name:t,theme:{components:i.useContext(Wa)}})}const Va={};function Ba(e,t,n,r=!1){return i.useMemo(()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?ke({},t,{[e]:o}):o;return r?()=>a:a}return ke({},t,e?{[e]:n}:n)},[e,t,n,r])}function Ga(e){const{children:t,theme:n,themeId:r}=e,i=eo(Va),o=Ta()||Va,a=Ba(r,i,n),s=Ba(r,o,n,!0),l="rtl"===a.direction,u=function(e){const t=eo(),n=ua()||"",{modularCssLayers:r}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return i=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,i):`@layer ${i};`:"",Jo(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(i){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const o=document.createElement("style");o.setAttribute("data-mui-layer-order",n),o.textContent=i,e.prepend(o)}else{var o;null==(o=e.querySelector(`style[data-mui-layer-order="${n}"]`))||o.remove()}},[i,n]),i?fo.jsx(mo,{styles:i}):null}(a);return fo.jsx(Na,{theme:s,children:fo.jsx(gr.Provider,{value:a,children:fo.jsx(za,{value:l,children:fo.jsxs($a,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Ua(e){return Ua="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},Ua(e)}function Ya(e){var t=function(e,t){if("object"!=Ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ua(t)?t:t+""}function Ka(e,t){return ke({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Xa={},Ja={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ja);var Za=Ja.exports,Qa=Or(Le),es=Or(Qo),ts=Za;Object.defineProperty(Xa,"__esModule",{value:!0});var ns=Xa.alpha=ms;Xa.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=cs(e),a=cs(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return ps({type:"rgb",values:s})},Xa.colorChannel=void 0;var rs=Xa.darken=gs;Xa.decomposeColor=cs,Xa.emphasize=ys;var is=Xa.getContrastRatio=function(e,t){const n=hs(e),r=hs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Xa.getLuminance=hs,Xa.hexToRgb=us,Xa.hslToRgb=fs;var os=Xa.lighten=vs;Xa.private_safeAlpha=function(e,t,n){try{return ms(e,t)}catch(t){return e}},Xa.private_safeColorChannel=void 0,Xa.private_safeDarken=function(e,t,n){try{return gs(e,t)}catch(t){return e}},Xa.private_safeEmphasize=function(e,t,n){try{return ys(e,t)}catch(t){return e}},Xa.private_safeLighten=function(e,t,n){try{return vs(e,t)}catch(t){return e}},Xa.recomposeColor=ps,Xa.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=cs(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var as=ts(Qa),ss=ts(es);function ls(e,t=0,n=1){return(0,ss.default)(e,t,n)}function us(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function cs(e){if(e.type)return e;if("#"===e.charAt(0))return cs(us(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,as.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,as.default)(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}const ds=e=>{const t=cs(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};Xa.colorChannel=ds;function ps(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function fs(e){e=cs(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),ps({type:s,values:l})}function hs(e){let t="hsl"===(e=cs(e)).type||"hsla"===e.type?cs(fs(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ms(e,t){return e=cs(e),t=ls(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ps(e)}function gs(e,t){if(e=cs(e),t=ls(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ps(e)}function vs(e,t){if(e=cs(e),t=ls(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ps(e)}function ys(e,t=.15){return hs(e)>.5?gs(e,t):vs(e,t)}Xa.private_safeColorChannel=(e,t)=>{try{return ds(e)}catch(t){return e}};const bs=["mode","contrastThreshold","tonalOffset"],xs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:K.white,default:K.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ss={text:{primary:K.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:K.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ws(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=os(e.main,i):"dark"===t&&(e.dark=rs(e.main,o)))}function Cs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Oe(e,bs),o=e.primary||function(e="light"){return"dark"===e?{main:le,light:se,dark:ue}:{main:ce,light:ue,dark:de}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ne,light:te,dark:ie}:{main:oe,light:re,dark:ae}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Z,light:X,dark:Q}:{main:Q,light:J,dark:ee}}(t),l=e.info||function(e="light"){return"dark"===e?{main:fe,light:pe,dark:me}:{main:me,light:he,dark:ge}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ye,light:ve,dark:xe}:{main:Se,light:be,dark:we}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ee,light:Ce,dark:De}:{main:"#ed6c02",light:Ie,dark:Re}}(t);function d(e){return is(e,Ss.text.primary)>=n?Ss.text.primary:xs.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=ke({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Me(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Me(12,t?` (${t})`:"",JSON.stringify(e.main)));return ws(e,"light",i,r),ws(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ss,light:xs};return Gr(ke({common:ke({},K),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Pe,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),i)}const Es=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Is={textTransform:"uppercase"},Ds='"Roboto", "Helvetica", "Arial", sans-serif';function Rs(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ds,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Oe(n,Es),f=i/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,i,o)=>{return ke({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ds?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},o,c);var a},g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Is),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Is),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gr(ke({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Ps(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Ms=["none",Ps(0,2,1,-1,0,1,1,0,0,1,3,0),Ps(0,3,1,-2,0,2,2,0,0,1,5,0),Ps(0,3,3,-2,0,3,4,0,0,1,8,0),Ps(0,2,4,-1,0,4,5,0,0,1,10,0),Ps(0,3,5,-1,0,5,8,0,0,1,14,0),Ps(0,3,5,-1,0,6,10,0,0,1,18,0),Ps(0,4,5,-2,0,7,10,1,0,2,16,1),Ps(0,5,5,-3,0,8,10,1,0,3,14,2),Ps(0,5,6,-3,0,9,12,1,0,3,16,2),Ps(0,6,6,-3,0,10,14,1,0,4,18,3),Ps(0,6,7,-4,0,11,15,1,0,4,20,3),Ps(0,7,8,-4,0,12,17,2,0,5,22,4),Ps(0,7,8,-4,0,13,19,2,0,5,24,4),Ps(0,7,9,-4,0,14,21,2,0,5,26,4),Ps(0,8,9,-5,0,15,22,2,0,6,28,5),Ps(0,8,10,-5,0,16,24,2,0,6,30,5),Ps(0,8,11,-5,0,17,26,2,0,6,32,5),Ps(0,9,11,-5,0,18,28,2,0,7,34,6),Ps(0,9,12,-6,0,19,29,2,0,7,36,6),Ps(0,10,13,-6,0,20,31,3,0,8,38,7),Ps(0,10,13,-6,0,21,33,3,0,8,40,7),Ps(0,10,14,-6,0,22,35,3,0,8,42,7),Ps(0,11,14,-7,0,23,36,3,0,9,44,8),Ps(0,11,15,-7,0,24,38,3,0,9,46,8)],Ls=["duration","easing","delay"],As={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ks={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Os(e){return`${Math.round(e)}ms`}function qs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ts(e){const t=ke({},As,e.easing),n=ke({},ks,e.duration);return ke({getAutoHeightDuration:qs,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return Oe(r,Ls),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:Os(i)} ${o} ${"string"==typeof a?a:Os(a)}`).join(",")}},e,{easing:t,duration:n})}const js={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ns=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _s(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Oe(e,Ns);if(e.vars&&void 0===e.generateCssVars)throw new Error(Me(18));const s=Cs(r),l=Zi(e);let u=Gr(l,{mixins:Ka(l.breakpoints,n),palette:s,shadows:Ms.slice(),typography:Rs(s,o),transitions:Ts(i),zIndex:ke({},js)});return u=Gr(u,a),u=t.reduce((e,t)=>Gr(e,t),u),u.unstable_sxConfig=ke({},Ui,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ki({sx:e,theme:this})},u}const Fs=_s();function zs(){const e=no(Fs);return e[Ae]||e}var Ws,$s={},Hs={exports:{}};function Vs(){return Ws||(Ws=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Hs)),Hs.exports}var Bs,Gs={exports:{}};function Us(){return Bs||(Bs=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Gs)),Gs.exports}var Ys=Or(Hr),Ks=Or(Ur),Xs=Or(ri),Js=Or(Ko),Zs=Or(Qi),Qs=Or(yo),el=Za;Object.defineProperty($s,"__esModule",{value:!0});var tl=$s.default=function(e={}){const{themeId:t,defaultTheme:n=hl,rootShouldForwardProp:r=pl,slotShouldForwardProp:i=pl}=e,o=e=>(0,sl.default)((0,nl.default)({},e,{theme:gl((0,nl.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,il.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=vl(ml(l))}=a,p=(0,rl.default)(a,cl),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=pl;"Root"===l||"root"===l?g=r:l?g=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,il.default)(e,(0,nl.default)({shouldForwardProp:g,label:void 0},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ol.isPlainObject)(e)?r=>{const i=gl({theme:r.theme,defaultTheme:n,themeId:t});return yl(e,(0,nl.default)({},r,{theme:i}),i.modularCssLayers?f:void 0)}:e,b=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push(e=>{const r=gl((0,nl.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach(([t,n])=>{o[t]=yl(n,(0,nl.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,o)}),s&&!h&&l.push(e=>{var r;const i=gl((0,nl.default)({},e,{defaultTheme:n,themeId:t}));return yl({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,nl.default)({},e,{theme:i}),i.modularCssLayers?"theme":void 0)}),m||l.push(o);const u=l.length-i.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}};$s.shouldForwardProp=pl,$s.systemDefaultTheme=void 0;var nl=el(Vs()),rl=el(Us()),il=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=dl(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(Ys),ol=Ks;el(Xs),el(Js);var al=el(Zs),sl=el(Qs);const ll=["ownerState"],ul=["variants"],cl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function dl(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(dl=function(e){return e?n:t})(e)}function pl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function fl(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const hl=$s.systemDefaultTheme=(0,al.default)(),ml=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function gl({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function vl(e){return e?(t,n)=>n[e]:null}function yl(e,t,n){let{ownerState:r}=t,i=(0,rl.default)(t,ll);const o="function"==typeof e?e((0,nl.default)({ownerState:r},i)):e;if(Array.isArray(o))return o.flatMap(e=>yl(e,(0,nl.default)({ownerState:r},i),n));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,rl.default)(o,ul);return e.forEach(e=>{let o=!0;if("function"==typeof e.props?o=e.props((0,nl.default)({ownerState:r},i,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&i[t]!==e.props[t]&&(o=!1)}),o){Array.isArray(t)||(t=[t]);const o="function"==typeof e.style?e.style((0,nl.default)({ownerState:r},i,r)):e.style;t.push(n?fl((0,il.internal_serializeStyles)(o),n):o)}}),t}return n?fl((0,il.internal_serializeStyles)(o),n):o}function bl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const xl=e=>bl(e)&&"classes"!==e,Sl=tl({themeId:Ae,defaultTheme:Fs,rootShouldForwardProp:xl}),wl=["theme"];function Cl(e){let{theme:t}=e,n=Oe(e,wl);const r=t[Ae];let i=r||t;return"function"!=typeof t&&(r&&!r.vars?i=ke({},r,{vars:null}):t&&!t.vars&&(i=ke({},t,{vars:null}))),fo.jsx(Ga,ke({},n,{themeId:r?Ae:void 0,theme:i}))}const El=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Il(e){return Ha(e)}function Dl(e){return Io("MuiSvgIcon",e)}Do("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Rl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Pl=Sl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ni(n.color)}`],t[`fontSize${ni(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),Ml=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,f=Oe(n,Rl),h=i.isValidElement(r)&&"svg"===r.type,m=ke({},n,{color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:h}),g={};c||(g.viewBox=p);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return Ra({root:["root","inherit"!==t&&`color${ni(t)}`,`fontSize${ni(n)}`]},Dl,r)})(m);return fo.jsxs(Pl,ke({as:s,className:wo(v.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,h&&r.props,{ownerState:m,children:[h?r.props.children:r,d?fo.jsx("title",{children:d}):null]}))});function Ll(e,t){function n(n,r){return fo.jsx(Ml,ke({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ml.muiName,i.memo(i.forwardRef(n))}function Al(e,t){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Al(e,t)}function kl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Al(e,t)}Ml.muiName="SvgIcon";var Ol=!1,ql=n.createContext(null),Tl="unmounted",jl="exited",Nl="entering",_l="entered",Fl="exiting",zl=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=jl,r.appearStatus=Nl):i=_l:i=t.unmountOnExit||t.mountOnEnter?Tl:jl,r.state={status:i},r.nextCallback=null,r}kl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Tl?{status:jl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Nl&&n!==_l&&(t=Nl):n!==Nl&&n!==_l||(t=Fl)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Nl){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jl&&this.setState({status:Tl})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[E.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ol?this.safeSetState({status:_l},function(){t.props.onEntered(o)}):(this.props.onEnter(o,a),this.safeSetState({status:Nl},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:_l},function(){t.props.onEntered(o,a)})})}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:E.findDOMNode(this);t&&!Ol?(this.props.onExit(r),this.safeSetState({status:Fl},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:jl},function(){e.props.onExited(r)})})})):this.safeSetState({status:jl},function(){e.props.onExited(r)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Tl)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=Oe(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return n.createElement(ql.Provider,{value:null},"function"==typeof r?r(e,i):n.cloneElement(n.Children.only(r),i))},t}(n.Component);function Wl(){}function $l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hl(e,t){var n=Object.create(null);return e&&s.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&o(e)?t(e):e}(e)}),n}function Vl(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Bl(e,t,n){var r=Hl(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach(function(s){var l=i[s];if(o(l)){var u=s in t,c=s in r,d=t[s],p=o(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&o(d)&&(i[s]=a(l,{onExited:n.bind(null,l),in:d.props.in,exit:Vl(l,"exit",e),enter:Vl(l,"enter",e)})):i[s]=a(l,{in:!1}):i[s]=a(l,{onExited:n.bind(null,l),in:!0,exit:Vl(l,"exit",e),enter:Vl(l,"enter",e)})}}),i}zl.contextType=ql,zl.propTypes={},zl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wl,onEntering:Wl,onEntered:Wl,onExit:Wl,onExiting:Wl,onExited:Wl},zl.UNMOUNTED=Tl,zl.EXITED=jl,zl.ENTERING=Nl,zl.ENTERED=_l,zl.EXITING=Fl;var Gl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ul=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind($l(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}kl(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,Hl(n.children,function(e){return a(e,{onExited:r.bind(null,e),in:!0,appear:Vl(e,"appear",n),enter:Vl(e,"enter",n),exit:Vl(e,"exit",n)})})):Bl(e,i,o),firstRender:!1}},r.handleExited=function(e,t){var n=Hl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=ke({},t.children);return delete n[e.key],{children:n}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=Oe(e,["component","childFactory"]),o=this.state.contextValue,a=Gl(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===t?n.createElement(ql.Provider,{value:o},a):n.createElement(ql.Provider,{value:o},n.createElement(t,i,a))},t}(n.Component);Ul.propTypes={},Ul.defaultProps={component:"div",childFactory:function(e){return e}};const Yl=e=>e.scrollTop;function Kl(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}function Xl(e){return Io("MuiPaper",e)}Do("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jl=["className","component","elevation","square","variant"],Zl=Sl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return ke({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&ke({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ns("#fff",El(t.elevation))}, ${ns("#fff",El(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Ql=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=n,l=Oe(n,Jl),u=ke({},n,{component:i,elevation:o,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return Ra({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Xl,i)})(u);return fo.jsx(Zl,ke({as:i,ownerState:u,className:wo(c.root,r),ref:t},l))});const eu=Do("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tu=["center","classes","className"];let nu,ru,iu,ou,au=e=>e;const su=Ar(nu||(nu=au`
|
|
16
16
|
0% {
|
|
17
17
|
transform: scale(0);
|
|
18
18
|
opacity: 0.1;
|
|
@@ -22,7 +22,7 @@ function kn(e,t){let r;return r=t?bn(e).withConfig({displayName:t.label,shouldFo
|
|
|
22
22
|
transform: scale(1);
|
|
23
23
|
opacity: 0.3;
|
|
24
24
|
}
|
|
25
|
-
`)),
|
|
25
|
+
`)),lu=Ar(ru||(ru=au`
|
|
26
26
|
0% {
|
|
27
27
|
opacity: 1;
|
|
28
28
|
}
|
|
@@ -30,7 +30,7 @@ function kn(e,t){let r;return r=t?bn(e).withConfig({displayName:t.label,shouldFo
|
|
|
30
30
|
100% {
|
|
31
31
|
opacity: 0;
|
|
32
32
|
}
|
|
33
|
-
`)),
|
|
33
|
+
`)),uu=Ar(iu||(iu=au`
|
|
34
34
|
0% {
|
|
35
35
|
transform: scale(1);
|
|
36
36
|
}
|
|
@@ -42,7 +42,7 @@ function kn(e,t){let r;return r=t?bn(e).withConfig({displayName:t.label,shouldFo
|
|
|
42
42
|
100% {
|
|
43
43
|
transform: scale(1);
|
|
44
44
|
}
|
|
45
|
-
`)),
|
|
45
|
+
`)),cu=Sl("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),du=Sl(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:c}=e,[d,p]=i.useState(!1),f=wo(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-s/2+a,left:-s/2+o},m=wo(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||p(!0),i.useEffect(()=>{if(!l&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}},[u,l,c]),fo.jsx("span",{className:f,style:h,children:fo.jsx("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})(ou||(ou=au`
|
|
46
46
|
opacity: 0;
|
|
47
47
|
position: absolute;
|
|
48
48
|
|
|
@@ -85,18 +85,18 @@ function kn(e,t){let r;return r=t?bn(e).withConfig({displayName:t.label,shouldFo
|
|
|
85
85
|
animation-iteration-count: infinite;
|
|
86
86
|
animation-delay: 200ms;
|
|
87
87
|
}
|
|
88
|
-
`),Gl.rippleVisible,Ql,550,({theme:e})=>e.transitions.easing.easeInOut,Gl.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Gl.child,Gl.childLeaving,eu,550,({theme:e})=>e.transitions.easing.easeInOut,Gl.childPulsate,tu,({theme:e})=>e.transitions.easing.easeInOut),iu=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a}=r,s=Oe(r,Ul),[l,u]=i.useState([]),c=i.useRef(0),d=i.useRef(null);i.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=i.useRef(!1),f=la(),h=i.useRef(null),m=i.useRef(null),g=i.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;u(e=>[...e,io.jsx(nu,{classes:{ripple:ho(o.ripple,Gl.ripple),rippleVisible:ho(o.rippleVisible,Gl.rippleVisible),ripplePulsate:ho(o.ripplePulsate,Gl.ripplePulsate),child:ho(o.child,Gl.child),childLeaving:ho(o.childLeaving,Gl.childLeaving),childPulsate:ho(o.childPulsate,Gl.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),v=i.useCallback((e={},t={},r=()=>{})=>{const{pulsate:i=!1,center:o=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:i,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:i,rippleX:u,rippleY:c,rippleSize:d,cb:r})},[n,g,f]),y=i.useCallback(()=>{v({},{pulsate:!0})},[v]),b=i.useCallback((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,()=>{b(e,t)});h.current=null,u(e=>e.length>0?e.slice(1):e),d.current=t},[f]);return i.useImperativeHandle(t,()=>({pulsate:y,start:v,stop:b}),[y,v,b]),io.jsx(ru,ke({className:ho(Gl.root,o.root,a),ref:m},s,{children:io.jsx(Fl,{component:null,exit:!0,children:l})}))});function ou(e){return vo("MuiButtonBase",e)}const au=yo("MuiButtonBase",["root","disabled","focusVisible"]),su=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],lu=fl("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${au.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),uu=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:I,onTouchMove:D,onTouchStart:P,tabIndex:R=0,TouchRippleProps:M,touchRippleRef:L,type:A}=r,k=Oe(r,su),O=i.useRef(null),q=i.useRef(null),T=ia(q,L),{isFocusVisibleRef:N,onFocus:_,onBlur:j,ref:F}=va(),[z,W]=i.useState(!1);u&&z&&W(!1),i.useImperativeHandle(n,()=>({focusVisible:()=>{W(!0),O.current.focus()}}),[]);const[$,H]=i.useState(!1);i.useEffect(()=>{H(!0)},[]);const V=$&&!c&&!u;function B(e,t,r=d){return na(n=>{t&&t(n);return!r&&q.current&&q.current[e](n),!0})}i.useEffect(()=>{z&&p&&!c&&$&&q.current.pulsate()},[c,p,z,$]);const G=B("start",w),U=B("stop",g),Y=B("stop",v),K=B("stop",E),X=B("stop",e=>{z&&e.preventDefault(),C&&C(e)}),J=B("start",P),Z=B("stop",I),Q=B("stop",D),ee=B("stop",e=>{j(e),!1===N.current&&W(!1),h&&h(e)},!1),te=na(e=>{O.current||(O.current=e.currentTarget),_(e),!0===N.current&&(W(!0),b&&b(e)),y&&y(e)}),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=i.useRef(!1),ie=na(e=>{p&&!ne.current&&z&&q.current&&" "===e.key&&(ne.current=!0,q.current.stop(e,()=>{q.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))}),oe=na(e=>{p&&" "===e.key&&q.current&&z&&!e.defaultPrevented&&(ne.current=!1,q.current.stop(e,()=>{q.current.pulsate(e)})),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)});let ae=l;"button"===ae&&(k.href||k.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===A?"button":A,se.disabled=u):(k.href||k.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=ia(t,F,O),ue=ke({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:R,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=ba({root:["root",t&&"disabled",r&&"focusVisible"]},ou,i);return r&&n&&(o.root+=` ${n}`),o})(ue);return io.jsxs(lu,ke({as:ae,className:ho(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:ie,onKeyUp:oe,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:u?-1:R,type:A},se,k,{children:[a,V?io.jsx(iu,ke({ref:T,center:o},M)):null]}))});function cu(e){return vo("MuiTypography",e)}yo("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const du=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],pu=fl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Yn(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>ke({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),fu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mu=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiTypography"}),n=(e=>hu[e]||e)(r.color),i=lo(ke({},r,{color:n})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=fu}=i,f=Oe(i,du),h=ke({},i,{align:o,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||fu[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:a}=e;return ba({root:["root",o,"inherit"!==e.align&&`align${Yn(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]},cu,a)})(h);return io.jsx(pu,ke({as:m,ref:t,ownerState:h,className:ho(g.root,a)},f))});const gu=i.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=ia(i.isValidElement(r)?Ia(r):null,t);if(Ho(()=>{o||s(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),Ho(()=>{if(a&&!o)return Zo(t,a),()=>{Zo(t,null)}},[t,a,o]),o){if(i.isValidElement(r)){const e={ref:l};return i.cloneElement(r,e)}return io.jsx(i.Fragment,{children:r})}return io.jsx(i.Fragment,{children:a?I.createPortal(r,a):a})}),vu=["onChange","maxRows","minRows","style","value"];function yu(e){return parseInt(e,10)||0}const bu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function xu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Su=i.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:a,value:s}=e,l=Oe(e,vu),{current:u}=i.useRef(null!=s),c=i.useRef(null),d=ia(t,c),p=i.useRef(null),f=i.useRef(null),h=i.useCallback(()=>{const t=c.current,r=f.current;if(!t||!r)return;const i=Jo(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=yu(i.paddingBottom)+yu(i.paddingTop),l=yu(i.borderBottomWidth)+yu(i.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}},[n,o,e.placeholder]),m=na(()=>{const e=c.current,t=h();if(!e||!t||xu(t))return!1;const r=t.outerHeightStyle;return null!=p.current&&p.current!==r}),g=i.useCallback(()=>{const e=c.current,t=h();if(!e||!t||xu(t))return;const r=t.outerHeightStyle;p.current!==r&&(p.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),v=i.useRef(-1);Ho(()=>{const e=Ko(g),t=null==c?void 0:c.current;if(!t)return;const r=Jo(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{m()&&(n.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[h,g,m]),Ho(()=>{g()});return io.jsxs(i.Fragment,{children:[io.jsx("textarea",ke({value:s,onChange:e=>{u||g(),r&&r(e)},ref:d,rows:o,style:a},l)),io.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:ke({},bu,a,{paddingTop:0,paddingBottom:0})})]})});function wu({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Cu=i.createContext(void 0);function Eu(){return i.useContext(Cu)}function Iu(e){return io.jsx(ao,ke({},e,{defaultTheme:As,themeId:Ae}))}function Du(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Pu(e,t=!1){return e&&(Du(e.value)&&""!==e.value||t&&Du(e.defaultValue)&&""!==e.defaultValue)}function Ru(e){return vo("MuiInputBase",e)}const Mu=yo("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Lu=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Au=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Yn(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ku=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ou=fl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Au})(({theme:e,ownerState:t})=>ke({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Mu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ke({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),qu=fl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ku})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=ke({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return ke({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Mu.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Mu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Tu=io.jsx(Iu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nu=i.forwardRef(function(e,t){var r;const n=vl({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:I,onClick:D,onFocus:P,onKeyDown:R,onKeyUp:M,placeholder:L,readOnly:A,renderSuffix:k,rows:O,slotProps:q={},slots:T={},startAdornment:N,type:_="text",value:j}=n,F=Oe(n,Lu),z=null!=y.value?y.value:j,{current:W}=i.useRef(null!=z),$=i.useRef(),H=i.useCallback(e=>{},[]),V=ia($,b,y.ref,H),[B,G]=i.useState(!1),U=Eu(),Y=wu({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:B,i.useEffect(()=>{!U&&p&&B&&(G(!1),E&&E())},[U,p,B,E]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=i.useCallback(e=>{Pu(e)?K&&K():X&&X()},[K,X]);Ho(()=>{W&&J({value:z})},[z,J,W]);i.useEffect(()=>{J($.current)},[]);let Z=v,Q=y;w&&"input"===Z&&(Q=ke(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Su);i.useEffect(()=>{U&&U.setAdornedStart(Boolean(N))},[U,N]);const ee=ke({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:h,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:_}),te=(e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return ba({root:["root",`color${Yn(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Yn(p)}`,c&&"multiline",f&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},Ru,t)})(ee),re=T.root||u.Root||Ou,ne=q.root||c.root||{},ie=T.input||u.Input||qu;return Q=ke({},Q,null!=(r=q.input)?r:c.input),io.jsxs(i.Fragment,{children:[!f&&Tu,io.jsxs(re,ke({},ne,!xa(re)&&{ownerState:ke({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),D&&D(e)}},F,{className:ho(te.root,ne.className,l,A&&"MuiInputBase-readOnly"),children:[N,io.jsx(Cu.Provider,{value:null,children:io.jsx(ie,ke({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:C,placeholder:L,readOnly:A,required:Y.required,rows:O,value:z,onKeyDown:R,onKeyUp:M,type:_},Q,!xa(ie)&&{as:Z,ownerState:ke({},ee,Q.ownerState)},{ref:V,className:ho(te.input,Q.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),y.onBlur&&y.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!W){const t=e.target||$.current;if(null==t)throw new Error(Me(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),y.onFocus&&y.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),h,k?k(ke({},Y,{startAdornment:N})):null]}))]})});function _u(e){return vo("MuiInput",e)}const ju=ke({},Mu,yo("MuiInput",["root","underline","input"]));function Fu(e){return vo("MuiOutlinedInput",e)}const zu=ke({},Mu,yo("MuiOutlinedInput",["root","notchedOutline","input"]));function Wu(e){return vo("MuiFilledInput",e)}const $u=ke({},Mu,yo("MuiFilledInput",["root","underline","input"]));var Hu=wl(io.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Vu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Bu={entering:{opacity:1},entered:{opacity:1}},Gu=i.forwardRef(function(e,t){const r=ks(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=n,TransitionComponent:y=kl}=e,b=Oe(e,Vu),x=i.useRef(null),S=ia(x,Ia(s),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(p),E=w((e,t)=>{zl(e);const n=Wl({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)}),I=w(d),D=w(m),P=w(e=>{const t=Wl({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)}),R=w(h);return io.jsx(y,ke({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:P,onExited:R,onExiting:D,addEndListener:e=>{o&&o(x.current,e)},timeout:v},b,{children:(e,t)=>i.cloneElement(s,ke({style:ke({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Bu[e],g,s.props.style),ref:S},t))}))});function Uu(e){return vo("MuiBackdrop",e)}yo("MuiBackdrop",["root","invisible"]);const Yu=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ku=fl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>ke({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Xu=i.forwardRef(function(e,t){var r,n,i;const o=vl({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Gu,transitionDuration:g}=o,v=Oe(o,Yu),y=ke({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return ba({root:["root",r&&"invisible"]},Uu,t)})(y),x=null!=(r=f.root)?r:c.root;return io.jsx(m,ke({in:p,timeout:g},v,{children:io.jsx(Ku,ke({"aria-hidden":!0},x,{as:null!=(n=null!=(i=h.root)?i:u.Root)?n:l,className:ho(b.root,s,null==x?void 0:x.className),ownerState:ke({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}),Ju=yo("MuiBox",["root"]),Zu=Ls(),Qu=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=kn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Wi);return i.forwardRef(function(e,i){const s=Yi(r),l=lo(e),{className:u,component:c="div"}=l,d=Oe(l,mo);return io.jsx(a,ke({as:c,ref:i,className:ho(u,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:Ae,defaultTheme:Zu,defaultClassName:Ju.root,generateClassName:po.generate});function ec(e){return vo("MuiButton",e)}const tc=yo("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),rc=i.createContext({}),nc=i.createContext(void 0),ic=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],oc=e=>ke({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ac=fl(uu,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Yn(r.color)}`],t[`size${Yn(r.size)}`],t[`${r.variant}Size${Yn(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return ke({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ke({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${tc.focusVisible}`]:ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${tc.disabled}`]:ke({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ya(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${tc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${tc.disabled}`]:{boxShadow:"none"}}),sc=fl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Yn(r.size)}`]]}})(({ownerState:e})=>ke({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},oc(e))),lc=fl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Yn(r.size)}`]]}})(({ownerState:e})=>ke({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},oc(e))),uc=i.forwardRef(function(e,t){const r=i.useContext(rc),n=i.useContext(nc),o=vl({props:$o(r,e),name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,size:g="medium",startIcon:v,type:y,variant:b="text"}=o,x=Oe(o,ic),S=ke({},o,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:y,variant:b}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,classes:a}=e;return ke({},a,ba({root:["root",o,`${o}${Yn(t)}`,`size${Yn(i)}`,`${o}Size${Yn(i)}`,`color${Yn(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Yn(i)}`],endIcon:["icon","endIcon",`iconSize${Yn(i)}`]},ec,a))})(S),C=v&&io.jsx(sc,{className:w.startIcon,ownerState:S,children:v}),E=f&&io.jsx(lc,{className:w.endIcon,ownerState:S,children:f}),I=n||"";return io.jsxs(ac,ke({ownerState:S,className:ho(r.className,w.root,u,I),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:ho(w.focusVisible,h),ref:t,type:y},x,{classes:w,children:[C,a,E]}))});function cc(e){return vo("PrivateSwitchBase",e)}yo("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],pc=fl(uu,{name:"MuiSwitchBase"})(({ownerState:e})=>ke({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),fc=fl("input",{name:"MuiSwitchBase",shouldForwardProp:pl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hc=i.forwardRef(function(e,t){const{autoFocus:r,checked:n,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b=!1,tabIndex:x,type:S,value:w}=e,C=Oe(e,dc),[E,I]=ra({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=Eu();let P=s;D&&void 0===P&&(P=D.disabled);const R="checkbox"===S||"radio"===S,M=ke({},e,{checked:E,disabled:P,disableFocusRipple:l,edge:u}),L=(e=>{const{classes:t,checked:r,disabled:n,edge:i}=e;return ba({root:["root",r&&"checked",n&&"disabled",i&&`edge${Yn(i)}`],input:["input"]},cc,t)})(M);return io.jsxs(pc,ke({component:"span",className:ho(L.root,o),centerRipple:!0,focusRipple:!l,disabled:P,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),D&&D.onFocus&&D.onFocus(e)},onBlur:e=>{m&&m(e),D&&D.onBlur&&D.onBlur(e)},ownerState:M,ref:t},C,{children:[io.jsx(fc,ke({autoFocus:r,checked:n,defaultChecked:a,className:L.input,disabled:P,id:R?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:M,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?i:c]}))});var mc=wl(io.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"),gc=wl(io.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"),vc=wl(io.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");function yc(e){return vo("MuiCheckbox",e)}const bc=yo("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),xc=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Sc=fl(hc,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Yn(r.size)}`],"default"!==r.color&&t[`color${Yn(r.color)}`]]}})(({theme:e,ownerState:t})=>ke({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${bc.checked}, &.${bc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${bc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),wc=io.jsx(gc,{}),Cc=io.jsx(mc,{}),Ec=io.jsx(vc,{}),Ic=i.forwardRef(function(e,t){var r,n;const o=vl({props:e,name:"MuiCheckbox"}),{checkedIcon:a=wc,color:s="primary",icon:l=Cc,indeterminate:u=!1,indeterminateIcon:c=Ec,inputProps:d,size:p="medium",className:f}=o,h=Oe(o,xc),m=u?c:l,g=u?c:a,v=ke({},o,{color:s,indeterminate:u,size:p}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:i}=e;return ke({},t,ba({root:["root",r&&"indeterminate",`color${Yn(n)}`,`size${Yn(i)}`]},yc,t))})(v);return io.jsx(Sc,ke({type:"checkbox",inputProps:ke({"data-indeterminate":u},d),icon:i.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:p}),checkedIcon:i.cloneElement(g,{fontSize:null!=(n=g.props.fontSize)?n:p}),ownerState:v,ref:t,className:ho(y.root,f)},h,{classes:y}))});function Dc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Pc(e){return parseInt(Jo(e).getComputedStyle(e).paddingRight,10)||0}function Rc(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===o.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Dc(e,i)})}function Mc(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function Lc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Xo(e);return t.body===e?Jo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ya(Xo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Pc(n)+e}px`;const t=Xo(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Pc(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=Xo(n).body;else{const t=n.parentElement,r=Jo(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const Ac=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kc(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ac)).forEach((e,n)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===i?t.push(e):r.push({documentOrder:n,tabIndex:i,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Oc(){return!0}function qc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=kc,isEnabled:s=Oc,open:l}=e,u=i.useRef(!1),c=i.useRef(null),d=i.useRef(null),p=i.useRef(null),f=i.useRef(null),h=i.useRef(!1),m=i.useRef(null),g=ia(Ia(t),m),v=i.useRef(null);i.useEffect(()=>{l&&m.current&&(h.current=!r)},[r,l]),i.useEffect(()=>{if(!l||!m.current)return;const e=Xo(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}},[l]),i.useEffect(()=>{if(!l||!m.current)return;const e=Xo(m.current),t=t=>{v.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(m.current)),r.length>0){var i,o;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=v.current)?void 0:o.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return io.jsxs(i.Fragment,{children:[io.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),io.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const Tc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Dc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Rc(t,e.mount,e.modalRef,n,!0);const i=Mc(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Mc(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=Lc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Mc(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&Dc(e.modalRef,t),Rc(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&Dc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Nc(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Tc,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=e,f=i.useRef({}),h=i.useRef(null),m=i.useRef(null),g=ia(m,p),[v,y]=i.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=na(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Xo(h.current).body;o.add(S(),e),m.current&&w()}),E=i.useCallback(()=>o.isTopModal(S()),[o]),I=na(e=>{h.current=e,e&&(d&&E()?w():m.current&&Dc(m.current,x))}),D=i.useCallback(()=>{o.remove(S(),x)},[x,o]);i.useEffect(()=>()=>{D()},[D]),i.useEffect(()=>{d?C():b&&a||D()},[d,D,b,a,C]);const P=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},R=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Sa(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=ke({},r,t);return ke({role:"presentation"},n,{onKeyDown:P(n),ref:g})},getBackdropProps:(e={})=>ke({"aria-hidden":!0},e,{onClick:R(e),open:d}),getTransitionProps:()=>({onEnter:Yo(()=>{y(!1),s&&s()},null==u?void 0:u.props.onEnter),onExited:Yo(()=>{y(!0),l&&l(),a&&D()},null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:b}}function _c(e){return vo("MuiModal",e)}yo("MuiModal",["root","hidden","backdrop"]);const jc=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Fc=fl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>ke({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),zc=fl(Xu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Wc=i.forwardRef(function(e,t){var r,n,o,a,s,l;const u=vl({name:"MuiModal",props:e}),{BackdropComponent:c=zc,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:I=!1,keepMounted:D=!1,onBackdropClick:P,open:R,slotProps:M,slots:L}=u,A=Oe(u,jc),k=ke({},u,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:D}),{getRootProps:O,getBackdropProps:q,getTransitionProps:T,portalRef:N,isTopModal:_,exited:j,hasTransition:F}=Nc(ke({},k,{rootRef:t})),z=ke({},k,{exited:j}),W=(e=>{const{open:t,exited:r,classes:n}=e;return ba({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},_c,n)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const H=null!=(r=null!=(n=null==L?void 0:L.root)?n:v.Root)?r:Fc,V=null!=(o=null!=(a=null==L?void 0:L.backdrop)?a:v.Backdrop)?o:c,B=null!=(s=null==M?void 0:M.root)?s:y.root,G=null!=(l=null==M?void 0:M.backdrop)?l:y.backdrop,U=Ea({elementType:H,externalSlotProps:B,externalForwardedProps:A,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:ho(p,null==B?void 0:B.className,null==W?void 0:W.root,!z.open&&z.exited&&(null==W?void 0:W.hidden))}),Y=Ea({elementType:V,externalSlotProps:G,additionalProps:d,getSlotProps:e=>q(ke({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ho(null==G?void 0:G.className,null==d?void 0:d.className,null==W?void 0:W.backdrop),ownerState:z});return D||R||F&&!j?io.jsx(gu,{ref:N,container:m,disablePortal:w,children:io.jsxs(H,ke({},U,{children:[!I&&c?io.jsx(V,ke({},Y)):null,io.jsx(qc,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:_,open:R,children:i.cloneElement(h,$)})]}))}):null});function $c(e){return vo("MuiDivider",e)}const Hc=yo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Vc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Bc=fl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>ke({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ya(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>ke({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>ke({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>ke({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>ke({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Gc=fl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>ke({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Uc=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiDivider"}),{absolute:n=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Oe(r,Vc),h=ke({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return ba({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},$c,n)})(h);return io.jsx(Bc,ke({as:a,className:ho(m.root,o),role:c,ref:t,ownerState:h},f,{children:i?io.jsx(Gc,{className:m.wrapper,ownerState:h,children:i}):null}))});Uc.muiSkipListHighlight=!0;const Yc=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Kc=fl(Ou,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Au(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ke({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${$u.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${$u.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$u.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$u.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$u.disabled}, .${$u.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$u.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&ke({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),Xc=fl(qu,{name:"MuiFilledInput",slot:"Input",overridesResolver:ku})(({theme:e,ownerState:t})=>ke({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Jc=i.forwardRef(function(e,t){var r,n,i,o;const a=vl({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Oe(a,Yc),g=ke({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return ke({},t,ba({root:["root",!r&&"underline"],input:["input"]},Wu,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?jn(y,null!=p?p:l):y,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Kc,S=null!=(i=null!=(o=f.input)?o:s.Input)?i:Xc;return io.jsx(Nu,ke({slots:{root:x,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))});Jc.muiName="Input";const Zc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Qc(e){return`scale(${e}, ${e**2})`}const ed={entering:{opacity:1,transform:Qc(1)},entered:{opacity:1,transform:"none"}},td="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rd=i.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=kl}=e,v=Oe(e,Zc),y=la(),b=i.useRef(),x=ks(),S=i.useRef(null),w=ia(S,Ia(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(c),I=C((e,t)=>{zl(e);const{duration:r,delay:n,easing:i}=Wl({style:h,timeout:m,easing:a},{mode:"enter"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=r,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:td?o:.666*o,delay:n,easing:i})].join(","),l&&l(e,t)}),D=C(u),P=C(f),R=C(e=>{const{duration:t,delay:r,easing:n}=Wl({style:h,timeout:m,easing:a},{mode:"exit"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:r}),x.transitions.create("transform",{duration:td?i:.666*i,delay:td?r:r||.333*i,easing:n})].join(","),e.style.opacity=0,e.style.transform=Qc(.75),d&&d(e)}),M=C(p);return io.jsx(g,ke({appear:n,in:s,nodeRef:S,onEnter:I,onEntered:D,onEntering:E,onExit:R,onExited:M,onExiting:P,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),r&&r(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(o,ke({style:ke({opacity:0,transform:Qc(.75),visibility:"exited"!==e||s?void 0:"hidden"},ed[e],h,o.props.style),ref:w},t))}))});rd.muiSupportAuto=!0;const nd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],id=fl(Ou,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Au(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),ke({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ju.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ju.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ju.disabled}, .${ju.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ju.disabled}:before`]:{borderBottomStyle:"dotted"}})}),od=fl(qu,{name:"MuiInput",slot:"Input",overridesResolver:ku})({}),ad=i.forwardRef(function(e,t){var r,n,i,o;const a=vl({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Oe(a,nd),v=(e=>{const{classes:t,disableUnderline:r}=e;return ke({},t,ba({root:["root",!r&&"underline"],input:["input"]},_u,t))})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:u)?jn(null!=f?f:u,y):y,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:id,S=null!=(i=null!=(o=h.input)?o:l.Input)?i:od;return io.jsx(Nu,ke({slots:{root:x,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function sd(e){return vo("MuiInputAdornment",e)}ad.muiName="Input";const ld=yo("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ud;const cd=["children","className","component","disablePointerEvents","disableTypography","position","variant"],dd=fl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Yn(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(({theme:e,ownerState:t})=>ke({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${ld.positionStart}&:not(.${ld.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),pd=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Oe(r,cd),p=Eu()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=ke({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:o,variant:a}=e;return ba({root:["root",r&&"disablePointerEvents",i&&`position${Yn(i)}`,a,n&&"hiddenLabel",o&&`size${Yn(o)}`]},sd,t)})(h);return io.jsx(Cu.Provider,{value:null,children:io.jsx(dd,ke({as:a,ownerState:h,className:ho(m.root,o),ref:t},d,{children:"string"!=typeof n||l?io.jsxs(i.Fragment,{children:["start"===u?ud||(ud=io.jsx("span",{className:"notranslate",children:""})):null,n]}):io.jsx(mu,{color:"text.secondary",children:n})}))})});function fd(e){return vo("MuiLink",e)}const hd=yo("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),md={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gd=({theme:e,ownerState:t})=>{const r=(e=>md[e]||e)(t.color),n=Xn(e,`palette.${r}`,!1)||t.color,i=Xn(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Ya(n,.4)},vd=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],yd=fl(mu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Yn(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>ke({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&ke({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:gd({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hd.focusVisible}`]:{outline:"auto"}})),bd=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,f=Oe(r,vd),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=va(),[y,b]=i.useState(!1),x=ia(t,v),S=ke({},r,{color:o,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e;return ba({root:["root",`underline${Yn(i)}`,"button"===r&&"button",n&&"focusVisible"]},fd,t)})(S);return io.jsx(yd,ke({color:o,className:ho(w.root,n),classes:u,component:a,onBlur:e=>{m(e),!1===h.current&&b(!1),s&&s(e)},onFocus:e=>{g(e),!0===h.current&&b(!0),l&&l(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(md).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))}),xd=i.createContext({});function Sd(e){return vo("MuiList",e)}yo("MuiList",["root","padding","dense","subheader"]);const wd=["children","className","component","dense","disablePadding","subheader"],Cd=fl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>ke({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Ed=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Oe(r,wd),d=i.useMemo(()=>({dense:s}),[s]),p=ke({},r,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return ba({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},Sd,t)})(p);return io.jsx(xd.Provider,{value:d,children:io.jsxs(Cd,ke({as:a,className:ho(f.root,o),ref:t,ownerState:p},c,{children:[u,n]}))})});function Id(e){return vo("MuiListItem",e)}const Dd=yo("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Pd=yo("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Rd(e){return vo("MuiListItemSecondaryAction",e)}yo("MuiListItemSecondaryAction",["root","disableGutters"]);const Md=["className"],Ld=fl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>ke({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Ad=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=Oe(r,Md),a=ke({},r,{disableGutters:i.useContext(xd).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return ba({root:["root",t&&"disableGutters"]},Rd,r)})(a);return io.jsx(Ld,ke({className:ho(s.root,n),ownerState:a,ref:t},o))});Ad.muiName="ListItemSecondaryAction";const kd=["className"],Od=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],qd=fl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>ke({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&ke({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Pd.root}`]:{paddingRight:48}},{[`&.${Dd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Dd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Dd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ya(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})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Td=fl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Nd=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:S=!1,slotProps:w={},slots:C={}}=r,E=Oe(r.ContainerProps,kd),I=Oe(r,Od),D=i.useContext(xd),P=i.useMemo(()=>({dense:h||D.dense||!1,alignItems:n,disableGutters:g}),[n,D.dense,h,g]),R=i.useRef(null);Ho(()=>{o&&R.current&&R.current.focus()},[o]);const M=i.Children.toArray(s),L=M.length&&(A=M[M.length-1],k=["ListItemSecondaryAction"],i.isValidElement(A)&&-1!==k.indexOf(null!=(O=A.type.muiName)?O:null==(q=A.type)||null==(q=q._payload)||null==(q=q.value)?void 0:q.muiName));var A,k,O,q;const T=ke({},r,{alignItems:n,autoFocus:o,button:a,dense:P.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:L,selected:S}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return ba({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Id,n)})(T),_=ia(R,t),j=C.root||c.Root||qd,F=w.root||d.root||{},z=ke({className:ho(N.root,F.className,l),disabled:m},I);let W=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=ho(Dd.focusVisible,b),W=uu),L?(W=z.component||u?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),io.jsx(xd.Provider,{value:P,children:io.jsxs(Td,ke({as:p,className:ho(N.container,f),ref:_,ownerState:T},E,{children:[io.jsx(j,ke({},F,!xa(j)&&{as:W,ownerState:ke({},T,F.ownerState)},z,{children:M})),M.pop()]}))})):io.jsx(xd.Provider,{value:P,children:io.jsxs(j,ke({},F,{as:W,ref:_},!xa(j)&&{ownerState:ke({},T,F.ownerState)},z,{children:[M,x&&io.jsx(Ad,{children:x})]}))})});function _d(e){return vo("MuiListItemIcon",e)}const jd=yo("MuiListItemIcon",["root","alignItemsFlexStart"]),Fd=["className"],zd=fl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>ke({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Wd=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Oe(r,Fd),a=ke({},r,{alignItems:i.useContext(xd).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return ba({root:["root","flex-start"===t&&"alignItemsFlexStart"]},_d,r)})(a);return io.jsx(zd,ke({className:ho(s.root,n),ownerState:a,ref:t},o))}),$d=yo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Hd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Vd(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Bd(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Gd(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Ud(e,t,r,n,i,o){let a=!1,s=i(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Gd(s,o)&&!t)return s.focus(),!0;s=i(e,s,r)}return!1}const Yd=i.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Oe(e,Hd),f=i.useRef(null),h=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ho(()=>{n&&f.current.focus()},[n]),i.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${ya(Xo(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}}),[]);const m=ia(f,t);let g=-1;i.Children.forEach(a,(e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))});const v=i.Children.map(a,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),i.cloneElement(e,t)}return e});return io.jsx(Ed,ke({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,r=e.key,n=Xo(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Ud(t,n,u,l,Vd);else if("ArrowUp"===r)e.preventDefault(),Ud(t,n,u,l,Bd);else if("Home"===r)e.preventDefault(),Ud(t,null,u,l,Vd);else if("End"===r)e.preventDefault(),Ud(t,null,u,l,Bd);else if(1===r.length){const i=h.current,o=r.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=n&&!i.repeating&&Gd(n,i);i.previousKeyMatched&&(s||Ud(t,n,!1,l,Vd,i))?e.preventDefault():i.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:v}))});function Kd(e){return vo("MuiPopover",e)}yo("MuiPopover",["root","paper"]);const Xd=["onEntering"],Jd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Zd=["slotProps"];function Qd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function ep(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function tp(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function rp(e){return"function"==typeof e?e():e}const np=fl(Wc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ip=fl(Bl,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),op=i.forwardRef(function(e,t){var r,n,o;const a=vl({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:y={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=rd,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=Oe(a.TransitionProps,Xd),P=Oe(a,Jd),R=null!=(r=null==x?void 0:x.paper)?r:y,M=i.useRef(),L=ia(M,R.ref),A=ke({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:R,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),k=(e=>{const{classes:t}=e;return ba({root:["root"],paper:["paper"]},Kd,t)})(A),O=i.useCallback(()=>{if("anchorPosition"===d)return c;const e=rp(l),t=(e&&1===e.nodeType?e:Xo(M.current).body).getBoundingClientRect();return{top:t.top+Qd(t,u.vertical),left:t.left+ep(t,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),q=i.useCallback(e=>({vertical:Qd(e,S.vertical),horizontal:ep(e,S.horizontal)}),[S.horizontal,S.vertical]),T=i.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=q(t);if("none"===d)return{top:null,left:null,transformOrigin:tp(r)};const n=O();let i=n.top-r.vertical,o=n.left-r.horizontal;const a=i+t.height,s=o+t.width,u=Jo(rp(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&i<g){const e=i-g;i-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;i-=e,r.vertical+=e}if(null!==g&&o<g){const e=o-g;o-=e,r.horizontal+=e}else if(s>p){const e=s-p;o-=e,r.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:tp(r)}},[l,d,O,q,g]),[N,_]=i.useState(v),j=i.useCallback(()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)},[T]);i.useEffect(()=>(I&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[l,I,j]);i.useEffect(()=>{v&&j()}),i.useImperativeHandle(s,()=>v?{updatePosition:()=>{j()}}:null,[v,j]),i.useEffect(()=>{if(!v)return;const e=Ko(()=>{j()}),t=Jo(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,v,j]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?Xo(rp(l)).body:void 0),W=null!=(n=null==b?void 0:b.root)?n:np,$=null!=(o=null==b?void 0:b.paper)?o:ip,H=Ea({elementType:$,externalSlotProps:ke({},R,{style:N?R.style:ke({},R.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:A,className:ho(k.paper,null==R?void 0:R.className)}),V=Ea({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:A,className:ho(k.root,f)}),{slotProps:B}=V,G=Oe(V,Zd);return io.jsx(W,ke({},G,!xa(W)&&{slotProps:B,disableScrollLock:I},{children:io.jsx(w,ke({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),j()},onExited:()=>{_(!1)},timeout:F},D,{children:io.jsx($,ke({},H,{children:p}))}))}))});function ap(e){return vo("MuiMenu",e)}yo("MuiMenu",["root","paper","list"]);const sp=["onEntering"],lp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],up={vertical:"top",horizontal:"right"},cp={vertical:"top",horizontal:"left"},dp=fl(op,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pp=fl(ip,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fp=fl(Yd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),hp=i.forwardRef(function(e,t){var r,n;const o=vl({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:y={},slotProps:b={}}=o,x=Oe(o.TransitionProps,sp),S=Oe(o,lp),w=(()=>{const e=i.useContext(Aa);return null!=e&&e})(),C=ke({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:v}),E=(e=>{const{classes:t}=e;return ba({root:["root"],paper:["paper"],list:["list"]},ap,t)})(C),I=a&&!u&&p,D=i.useRef(null);let P=-1;i.Children.map(s,(e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===P)&&(P=t))});const R=null!=(r=y.paper)?r:pp,M=null!=(n=b.paper)?n:f,L=Ea({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),A=Ea({elementType:R,externalSlotProps:M,ownerState:C,className:E.paper});return io.jsx(dp,ke({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?up:cp,slots:{paper:R,root:y.root},slotProps:{root:L,paper:A},open:p,ref:t,transitionDuration:m,TransitionProps:ke({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:h,children:io.jsx(fp,ke({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===P||u),autoFocusItem:I,variant:v},c,{className:ho(E.list,c.className),children:s}))}))});function mp(e){return vo("MuiMenuItem",e)}const gp=yo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),vp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],yp=fl(uu,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>ke({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${gp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ya(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})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Hc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Hc.inset}`]:{marginLeft:52},[`& .${$d.root}`]:{marginTop:0,marginBottom:0},[`& .${$d.inset}`]:{paddingLeft:36},[`& .${jd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ke({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${jd.root} svg`]:{fontSize:"1.25rem"}}))),bp=i.forwardRef(function(e,t){const r=vl({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,f=Oe(r,vp),h=i.useContext(xd),m=i.useMemo(()=>({dense:a||h.dense||!1,disableGutters:l}),[h.dense,a,l]),g=i.useRef(null);Ho(()=>{n&&g.current&&g.current.focus()},[n]);const v=ke({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:o,classes:a}=e;return ke({},a,ba({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",o&&"selected"]},mp,a))})(r),b=ia(g,t);let x;return r.disabled||(x=void 0!==d?d:-1),io.jsx(xd.Provider,{value:m,children:io.jsx(yp,ke({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:ho(y.focusVisible,u),className:ho(y.root,p)},f,{ownerState:v,classes:y}))})});function xp(e){return vo("MuiNativeSelect",e)}const Sp=yo("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wp=["className","disabled","error","IconComponent","inputRef","variant"],Cp=({ownerState:e,theme:t})=>ke({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ke({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Sp.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Ep=fl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pl,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Sp.multiple}`]:t.multiple}]}})(Cp),Ip=({ownerState:e,theme:t})=>ke({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Sp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Dp=fl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Yn(r.variant)}`],r.open&&t.iconOpen]}})(Ip),Pp=i.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=Oe(e,wp),c=ke({},e,{disabled:n,variant:l,error:o}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e;return ba({select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Yn(r)}`,o&&"iconOpen",n&&"disabled"]},xp,t)})(c);return io.jsxs(i.Fragment,{children:[io.jsx(Ep,ke({ownerState:c,className:ho(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:io.jsx(Dp,{as:a,ownerState:c,className:d.icon})]})});var Rp;const Mp=["children","classes","className","label","notched"],Lp=fl("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pl})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ap=fl("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pl})(({ownerState:e,theme:t})=>ke({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&ke({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));const kp=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Op=fl(Ou,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Au})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ke({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${zu.focused} .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${zu.error} .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${zu.disabled} .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ke({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),qp=fl(function(e){const{className:t,label:r,notched:n}=e,i=Oe(e,Mp),o=null!=r&&""!==r,a=ke({},e,{notched:n,withLabel:o});return io.jsx(Lp,ke({"aria-hidden":!0,className:t,ownerState:a},i,{children:io.jsx(Ap,{ownerState:a,children:o?io.jsx("span",{children:r}):Rp||(Rp=io.jsx("span",{className:"notranslate",children:""}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Tp=fl(qu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ku})(({theme:e,ownerState:t})=>ke({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Np=i.forwardRef(function(e,t){var r,n,o,a,s;const l=vl({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,v=Oe(l,kp),y=(e=>{const{classes:t}=e;return ke({},t,ba({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fu,t))})(l),b=Eu(),x=wu({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ke({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),w=null!=(r=null!=(n=m.root)?n:u.Root)?r:Op,C=null!=(o=null!=(a=m.input)?a:u.Input)?o:Tp;return io.jsx(Nu,ke({slots:{root:w,input:C},renderSuffix:e=>io.jsx(qp,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=io.jsxs(i.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:g},v,{classes:ke({},y,{notchedOutline:null})}))});function _p(e){return vo("MuiSelect",e)}Np.muiName="Input";const jp=yo("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Fp;const zp=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Wp=fl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${jp.select}`]:t.select},{[`&.${jp.select}`]:t[r.variant]},{[`&.${jp.error}`]:t.error},{[`&.${jp.multiple}`]:t.multiple}]}})(Cp,{[`&.${jp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$p=fl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Yn(r.variant)}`],r.open&&t.iconOpen]}})(Ip),Hp=fl("input",{shouldForwardProp:e=>dl(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vp(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Bp(e){return null==e||"string"==typeof e&&!e.trim()}const Gp=i.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:y={},multiple:b,name:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:I,open:D,readOnly:P,renderValue:R,SelectDisplayProps:M={},tabIndex:L,value:A,variant:k="standard"}=e,O=Oe(e,zp),[q,T]=ra({controlled:A,default:d,name:"Select"}),[N,_]=ra({controlled:D,default:c,name:"Select"}),j=i.useRef(null),F=i.useRef(null),[z,W]=i.useState(null),{current:$}=i.useRef(null!=D),[H,V]=i.useState(),B=ia(t,g),G=i.useCallback(e=>{F.current=e,e&&W(e)},[]),U=null==z?void 0:z.parentNode;i.useImperativeHandle(B,()=>({focus:()=>{F.current.focus()},node:j.current,value:q}),[q]),i.useEffect(()=>{c&&N&&z&&!$&&(V(s?null:U.clientWidth),F.current.focus())},[z,s]),i.useEffect(()=>{a&&F.current.focus()},[a]),i.useEffect(()=>{if(!v)return;const e=Xo(F.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[v]);const Y=(e,t)=>{e?I&&I(t):C&&C(t),$||(V(s?null:U.clientWidth),_(e))},K=i.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(q)?q.slice():[];const t=q.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),q!==r&&(T(r),w)){const n=t.nativeEvent||t,i=new n.constructor(n.type,n);Object.defineProperty(i,"target",{writable:!0,value:{value:r,name:x}}),w(i,e)}b||Y(!1,t)}},J=null!==z&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Pu({value:q})||f)&&(R?Z=R(q):te=!0);const re=K.map(e=>{if(!i.isValidElement(e))return null;let t;if(b){if(!Array.isArray(q))throw new Error(Me(2));t=q.some(t=>Vp(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=Vp(q,e.props.value),t&&te&&(Q=e.props.children);return i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=b?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,ie=H;!s&&$&&z&&(ie=U.clientWidth),ne=void 0!==L?L:p?null:0;const oe=M.id||(x?`mui-component-select-${x}`:void 0),ae=ke({},e,{variant:k,value:q,open:J,error:h}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e;return ba({select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Yn(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},_p,t)})(ae),le=ke({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=ta();return io.jsxs(i.Fragment,{children:[io.jsx(Wp,ke({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||P?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:x}}),S(e))},onFocus:E},M,{ownerState:ae,className:ho(M.className,se.select,u),id:oe,children:Bp(Z)?Fp||(Fp=io.jsx("span",{className:"notranslate",children:""})):Z})),io.jsx(Hp,ke({"aria-invalid":h,value:Array.isArray(q)?q.join(","):q,name:x,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(T(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:se.nativeInput,autoFocus:a,ownerState:ae},O)),io.jsx($p,{as:m,className:se.icon,ownerState:ae}),io.jsx(hp,ke({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:ke({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:ke({},y.slotProps,{paper:ke({},le,{style:ke({minWidth:ie},null!=le?le.style:null)})}),children:re}))]})}),Up=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Yp=["root"],Kp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>pl(e)&&"variant"!==e,slot:"Root"},Xp=fl(ad,Kp)(""),Jp=fl(Np,Kp)(""),Zp=fl(Jc,Kp)(""),Qp=i.forwardRef(function(e,t){const r=vl({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Hu,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,I=Oe(r,Up),D=y?Pp:Gp,P=wu({props:r,muiFormControl:Eu(),states:["variant","error"]}),R=P.variant||E,M=ke({},r,{variant:R,classes:a}),L=(e=>{const{classes:t}=e;return t})(M),A=Oe(L,Yp),k=p||{standard:io.jsx(Xp,{ownerState:M}),outlined:io.jsx(Jp,{label:h,ownerState:M}),filled:io.jsx(Zp,{ownerState:M})}[R],O=ia(t,Ia(k));return io.jsx(i.Fragment,{children:i.cloneElement(k,ke({inputComponent:D,inputProps:ke({children:o,error:P.error,IconComponent:c,variant:R,type:void 0,multiple:v},y?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:ke({id:d},C)},f,{classes:f?jn(A,f.classes):A},p?p.props.inputProps:{})},(v&&y||u)&&"outlined"===R?{notched:!0}:{},{ref:O,className:ho(k.props.className,s,L.root)},!p&&{variant:R},I))})});Qp.muiName="Select";const ef={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},tf={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...ef,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},rf=12,nf=14,of=16,af=24,sf=3,lf=300,uf=400,cf=600,df=700,pf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function ff(e){return io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:io.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function hf({fontSize:e="medium",children:t=null,className:r=""}={}){return io.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function mf(e={}){return io.jsx(hf,{...e,children:io.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[io.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),io.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function gf(e={}){return io.jsx(hf,{fontSize:"medium",...e,children:io.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[io.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),io.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function vf(e){return io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:io.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function yf(e={}){return io.jsx(hf,{...e,children:io.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:io.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[io.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),io.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function bf(e={}){return io.jsx(hf,{fontSize:"medium",...e,children:io.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:io.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:io.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function xf({className:e}){return io.jsx(hf,{fontSize:"small",className:e,children:io.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:io.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:io.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:io.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[io.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),io.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Sf(e={}){return io.jsx(hf,{...e,children:io.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:io.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:io.jsx("rect",{stroke:tf.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var wf=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:tf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:tf.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:io.jsx(ff,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${tf.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`,borderRadius:sf,backgroundColor:tf.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${tf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:tf.WHITE,color:tf.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:sf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:tf.GREYSCALE_0_15,backgroundColor:tf.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:tf.GREEN_PALE},"&:active":{backgroundColor:tf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Uo(tf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:tf.BLUE_PALE},"&:active":{backgroundColor:tf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Uo(tf.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:sf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:tf.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:tf.GREYSCALE_0_42,backgroundColor:tf.GREYSCALE_100_60,"&:active":{backgroundColor:tf.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tf.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:tf.PURPLE,"&.Mui-focusVisible":{borderColor:tf.PURPLE,boxShadow:`0 0 0 3px ${Uo(tf.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:tf.GREEN,"&.Mui-focusVisible":{borderColor:tf.GREEN,boxShadow:`0 0 0 3px ${Uo(tf.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:tf.BLUE,"&.Mui-focusVisible":{borderColor:tf.BLUE,boxShadow:`0 0 0 3px ${Uo(tf.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:tf.ORANGE,"&.Mui-focusVisible":{borderColor:tf.ORANGE,boxShadow:`0 0 0 3px ${Uo(tf.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:tf.RED,"&.Mui-focusVisible":{borderColor:tf.RED,boxShadow:`0 0 0 3px ${Uo(tf.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:tf.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:tf.PURPLE_PALE},"&:active":{backgroundColor:tf.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:tf.PURPLE_PALE,boxShadow:`0 0 0 3px ${Uo(tf.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:tf.GREEN_PALE},"&:active":{backgroundColor:tf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Uo(tf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:tf.BLUE_PALE},"&:active":{backgroundColor:tf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Uo(tf.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:tf.ORANGE_PALE},"&:active":{backgroundColor:tf.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:tf.ORANGE_PALE,boxShadow:`0 0 0 3px ${Uo(tf.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:tf.RED_PALE},"&:active":{backgroundColor:tf.RED_DARK},"&.Mui-focusVisible":{borderColor:tf.RED_PALE,boxShadow:`0 0 0 3px ${Uo(tf.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:tf.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:tf.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:sf,boxShadow:`inset 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:io.jsx(vf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:rf,borderRadius:sf,color:tf.TEXT_PRIMARY,backgroundColor:tf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:tf.GREYSCALE_0_05,color:tf.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:tf.GREEN,borderColor:tf.GREEN},"&.MuiChip-outlinedInfo":{color:tf.BLUE,borderColor:tf.BLUE},"&.MuiChip-outlinedWarning":{color:tf.ORANGE,borderColor:tf.ORANGE},"&.MuiChip-outlinedError":{color:tf.RED,borderColor:tf.RED}},outlined:{border:`solid 1px ${tf.GREYSCALE_0_15}`,backgroundColor:tf.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:sf,boxShadow:"none",backgroundColor:tf.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:tf.GREEN,borderColor:tf.GREEN},outlinedSecondary:{color:tf.BLUE,borderColor:tf.BLUE},label:{fontFamily:pf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:io.jsx(vf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:io.jsx(ff,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:sf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:sf,fontSize:nf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:tf.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${tf.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:tf.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:tf.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_05}}},popupIndicator:{borderRadius:sf,border:`solid 1px ${tf.GREYSCALE_0_15}`,color:tf.GREYSCALE_0_60,marginRight:0,width:af,height:af},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${tf.GREYSCALE_0_15}`},clearIndicator:{borderRadius:sf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:tf.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:nf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:rf,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:tf.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:tf.GREYSCALE_25,fontSize:rf,fontFamily:pf.FONT_FAMILY,fontWeight:cf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:tf.TEXT_PRIMARY},"&.Mui-error":{color:tf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:tf.TEXT_SECONDARY,content:"'(optional)'",fontWeight:uf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:tf.TEXT_SECONDARY,content:"'(required)'",fontWeight:uf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:nf,lineHeight:"16px",backgroundColor:tf.WHITE,borderRadius:sf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.GREYSCALE_0_05}`,borderColor:tf.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${tf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${tf.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.RED}`,boxShadow:`0px 0px 0px 1px ${tf.RED}, inset 0 2px 0 0 ${tf.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.GREYSCALE_0_10}`,borderColor:tf.GREYSCALE_0_10,backgroundColor:tf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:tf.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:tf.GREYSCALE_0_15,borderRadius:sf,boxShadow:`inset 0 2px 0 0 ${tf.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>io.jsx(ff,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:tf.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:tf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:tf.GREYSCALE_0_03},"&:active":{backgroundColor:tf.GREYSCALE_0_10},"&:focus":{backgroundColor:tf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${tf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:tf.GREYSCALE_0_30,"&:hover":{backgroundColor:tf.GREYSCALE_0_0,borderColor:tf.GREYSCALE_0_15},"& ~svg":{color:tf.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${tf.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:sf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:tf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:nf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:rf,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:rf,fontWeight:cf,color:tf.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:cf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${tf.GREYSCALE_0_15}, 0px 0px 0px 1px ${tf.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:io.jsx(bf,{}),checkedIcon:io.jsx(gf,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:tf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Uo(tf.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Uo(tf.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:tf.GREYSCALE_0_20}},"&.Mui-disabled":{fill:tf.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:io.jsx(Sf,{}),checkedIcon:io.jsx(mf,{}),indeterminateIcon:io.jsx(yf,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:sf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:tf.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:tf.GREYSCALE_0_55,color:tf.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:tf.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:tf.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:tf.GREYSCALE_0_55,"&:hover":{color:tf.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:tf.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:tf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:nf,color:tf.TEXT_PRIMARY,lineHeight:"16px",fontWeight:cf},secondary:{fontSize:rf,color:tf.GREYSCALE_45,fontWeight:uf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:nf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:nf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:tf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:rf,borderBottom:`solid 1px ${tf.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:nf,color:tf.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:tf.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:tf.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:tf.RED}}},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:tf.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:tf.GREEN,height:"24px","&.Mui-disabled":{color:tf.GREYSCALE_0_15}},rail:{backgroundColor:tf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${tf.GREYSCALE_0_05}`,borderRadius:sf,boxShadow:`inset 0px 0px 0px 1px ${tf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${tf.GREYSCALE_0_05}`,borderRadius:sf},thumb:{height:"16px",width:"16px",borderRadius:sf,backgroundColor:tf.WHITE,boxShadow:`0px 1px 2px 0px ${tf.GREYSCALE_0_15}, 0px 0px 0px 1px ${tf.GREYSCALE_0_05}`,"&:hover":{borderRadius:sf,boxShadow:`0 2px 4px 0 ${tf.GREYSCALE_0_30}, 0 0 0 1px ${tf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${tf.GREYSCALE_0_15}, 0 0 0 1px ${tf.GREYSCALE_0_06}, 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${tf.GREYSCALE_0_15}, 0 0 0 1px ${tf.GREYSCALE_0_06}, 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:tf.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:tf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:tf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:tf.GREYSCALE_0_15},markLabel:{color:tf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:tf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:tf.WHITE,color:tf.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:tf.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Uo(tf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Uo(tf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:tf.GREYSCALE_0_15,borderRadius:sf},thumb:{height:"16px",width:"16px",borderRadius:sf,backgroundColor:tf.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:nf,fontWeight:cf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${tf.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`,backgroundColor:tf.GREYSCALE_0_03,borderRadius:sf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:tf.GREYSCALE_25,"&.Mui-selected":{color:tf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:nf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:sf,"&:hover":{backgroundColor:tf.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${tf.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${tf.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:sf,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:tf.GREYSCALE_0_05},"&:hover":{backgroundColor:tf.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${tf.GREYSCALE_85}`,borderRight:`1px solid ${tf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:cf,backgroundColor:tf.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:tf.GREYSCALE_98,borderBottom:`1px solid ${tf.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${tf.GREYSCALE_85}`,borderTop:`1px solid ${tf.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:tf.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:tf.GREYSCALE_0_05,"&:hover":{backgroundColor:tf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:tf.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>io.jsx(xf,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${tf.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:nf,borderRadius:sf,padding:"7px 16px",border:`1px solid ${tf.GREYSCALE_0_15}`,backgroundColor:tf.GREYSCALE_100_60,color:tf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:tf.GREYSCALE_0_10,border:`1px solid ${tf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:tf.GREYSCALE_0_03,border:`1px solid ${tf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:tf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${tf.MISC_FOCUS_BORDER}`,border:`1px solid ${tf.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:tf.GREYSCALE_25,backgroundColor:tf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:tf.GREYSCALE_0_10,border:`1px solid ${tf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:rf,height:24,width:24,padding:7},sizeLarge:{fontSize:of,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:nf,borderRadius:sf}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:tf.GREYSCALE_20},tooltip:{backgroundColor:tf.GREYSCALE_20,fontSize:rf,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Cf=e=>({mode:"light",primary:{ultraLight:tf.GREEN_ULTRA_LIGHT,light:tf.GREEN_PALE,main:tf.GREEN,dark:tf.GREEN_DARK,extraDark:tf.GREEN_EXTRA_DARK,contrastText:tf.WHITE},secondary:{ultraLight:tf.BLUE_ULTRA_LIGHT,light:tf.BLUE_PALE,main:tf.BLUE,dark:tf.BLUE_DARK,extraDark:tf.BLUE_EXTRA_DARK,contrastText:tf.WHITE},error:{ultraLight:tf.RED_ULTRA_LIGHT,light:tf.RED_PALE,main:tf.RED,dark:tf.RED_DARK,extraDark:tf.RED_EXTRA_DARK,contrastText:tf.WHITE},warning:{ultraLight:tf.ORANGE_ULTRA_LIGHT,light:tf.ORANGE_PALE,main:tf.ORANGE,dark:tf.ORANGE_DARK,extraDark:tf.ORANGE_EXTRA_DARK,contrastText:tf.WHITE},success:{ultraLight:tf.GREEN_ULTRA_LIGHT,light:tf.GREEN_PALE,main:tf.GREEN,dark:tf.GREEN_DARK,extraDark:tf.GREEN_EXTRA_DARK,contrastText:tf.WHITE},info:{ultraLight:tf.BLUE_ULTRA_LIGHT,light:tf.BLUE_PALE,main:tf.BLUE,dark:tf.BLUE_DARK,extraDark:tf.BLUE_EXTRA_DARK,contrastText:tf.WHITE},text:{primary:tf.TEXT_PRIMARY,secondary:tf.TEXT_SECONDARY,disabled:tf.GREYSCALE_0_30},action:{hover:tf.GREYSCALE_0_03,hoverOpacity:.03,selected:tf.GREYSCALE_0_05,selectedOpacity:.05,focus:tf.MISC_FOCUS_BORDER},amethyst:{ultraLight:tf.WHITE,main:tf.PURPLE,light:tf.PURPLE_PALE,dark:tf.PURPLE_DARK,extraDark:tf.GREYSCALE_0_0,contrastText:tf.WHITE},background:{paper:tf.WHITE,default:tf.GREYSCALE_95},divider:tf.GREYSCALE_0_15}),Ef=e=>({components:wf(),palette:Cf(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:nf,fontWeightLight:lf,fontWeightRegular:uf,fontWeightMedium:cf,fontWeightBold:df,htmlFontSize:nf,fontFamily:pf.FONT_FAMILY,button:{fontWeight:cf,fontSize:nf,textTransform:"none"},body1:{fontSize:of,lineHeight:"24px"},body2:{fontSize:nf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:af,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:of,fontWeight:cf,lineHeight:"16px"},h6:{fontSize:nf,fontWeight:cf,lineHeight:"16px"},caption:{color:tf.TEXT_SECONDARY},subtitle1:{fontSize:nf,color:tf.TEXT_SECONDARY},subtitle2:{fontSize:rf,color:tf.TEXT_SECONDARY}},shape:{borderRadius:sf}}),If={...ef};var Df={},Pf={exports:{}},Rf={exports:{}};!function(e){function t(r){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(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Rf);var Mf=Rf.exports;!function(e){var t=Mf.default;function r(n,i){if("function"==typeof WeakMap)var o=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,i,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:o){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?n(s,l,i):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Pf);var Lf=Pf.exports,Af={};function kf(e,t){return function(){return null}}function Of(e){return e&&"object"===Fa(e)&&e.constructor===Object}function qf(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?ke({},e):e;return Of(e)&&Of(t)&&Object.keys(t).forEach(function(i){"__proto__"!==i&&(Of(t[i])&&i in e?n[i]=qf(e[i],t[i],r):n[i]=t[i])}),n}var Tf=(Mn.element,function(){return null});Tf.isRequired=(Mn.element.isRequired,function(){return null});var Nf=function(){return null};var _f={exports:{}},jf={},Ff=60103,zf=60106,Wf=60107,$f=60108,Hf=60114,Vf=60109,Bf=60110,Gf=60112,Uf=60113,Yf=60120,Kf=60115,Xf=60116,Jf=60121,Zf=60122,Qf=60117,eh=60129,th=60131;if("function"==typeof Symbol&&Symbol.for){var rh=Symbol.for;Ff=rh("react.element"),zf=rh("react.portal"),Wf=rh("react.fragment"),$f=rh("react.strict_mode"),Hf=rh("react.profiler"),Vf=rh("react.provider"),Bf=rh("react.context"),Gf=rh("react.forward_ref"),Uf=rh("react.suspense"),Yf=rh("react.suspense_list"),Kf=rh("react.memo"),Xf=rh("react.lazy"),Jf=rh("react.block"),Zf=rh("react.server.block"),Qf=rh("react.fundamental"),eh=rh("react.debug_trace_mode"),th=rh("react.legacy_hidden")}function nh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ff:switch(e=e.type){case Wf:case Hf:case $f:case Uf:case Yf:return e;default:switch(e=e&&e.$$typeof){case Bf:case Gf:case Xf:case Kf:case Vf:return e;default:return t}}case zf:return t}}}var ih=Vf,oh=Ff,ah=Gf,sh=Wf,lh=Xf,uh=Kf,ch=zf,dh=Hf,ph=$f,fh=Uf;jf.ContextConsumer=Bf,jf.ContextProvider=ih,jf.Element=oh,jf.ForwardRef=ah,jf.Fragment=sh,jf.Lazy=lh,jf.Memo=uh,jf.Portal=ch,jf.Profiler=dh,jf.StrictMode=ph,jf.Suspense=fh,jf.isAsyncMode=function(){return!1},jf.isConcurrentMode=function(){return!1},jf.isContextConsumer=function(e){return nh(e)===Bf},jf.isContextProvider=function(e){return nh(e)===Vf},jf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ff},jf.isForwardRef=function(e){return nh(e)===Gf},jf.isFragment=function(e){return nh(e)===Wf},jf.isLazy=function(e){return nh(e)===Xf},jf.isMemo=function(e){return nh(e)===Kf},jf.isPortal=function(e){return nh(e)===zf},jf.isProfiler=function(e){return nh(e)===Hf},jf.isStrictMode=function(e){return nh(e)===$f},jf.isSuspense=function(e){return nh(e)===Uf},jf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Wf||e===Hf||e===eh||e===$f||e===Uf||e===Yf||e===th||"object"==typeof e&&null!==e&&(e.$$typeof===Xf||e.$$typeof===Kf||e.$$typeof===Vf||e.$$typeof===Bf||e.$$typeof===Gf||e.$$typeof===Qf||e.$$typeof===Jf||e[0]===Zf)},jf.typeOf=nh,_f.exports=jf;var hh=_f.exports,mh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function gh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(mh);return t&&t[1]||""}(e)||t}function vh(e,t,r){var n=gh(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var yh="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),bh=Mn.oneOfType([Mn.func,Mn.object]),xh=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,i){return null},chainPropTypes:kf,deepmerge:qf,elementAcceptingRef:Tf,elementTypeAcceptingRef:Nf,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return gh(e,"Component");if("object"===Fa(e))switch(e.$$typeof){case hh.ForwardRef:return vh(e,e.render,"ForwardRef");case hh.Memo:return vh(e,e.type,"memo");default:return}}},ponyfillGlobal:yh,refType:bh}),Sh=In(xh);Object.defineProperty(Af,"__esModule",{value:!0}),Af.hexToRgb=Eh,Af.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=Dh(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Af.hslToRgb=Ih,Af.decomposeColor=Dh,Af.recomposeColor=Ph,Af.getContrastRatio=function(e,t){var r=Rh(e),n=Rh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Af.getLuminance=Rh,Af.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Rh(e)>.5?Lh(e,t):Ah(e,t)},Af.fade=function(e,t){return Mh(e,t)},Af.alpha=Mh,Af.darken=Lh,Af.lighten=Ah;var wh=Sh;function Ch(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function Eh(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function Ih(e){var t=(e=Dh(e)).values,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Ph({type:s,values:l})}function Dh(e){if(e.type)return e;if("#"===e.charAt(0))return Dh(Eh(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,wh.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map(function(e){return parseFloat(e)})}}function Ph(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function Rh(e){var t="hsl"===(e=Dh(e)).type?Dh(Ih(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Mh(e,t){return e=Dh(e),t=Ch(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Ph(e)}function Lh(e,t){if(e=Dh(e),t=Ch(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return Ph(e)}function Ah(e,t){if(e=Dh(e),t=Ch(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return Ph(e)}var kh,Oh,qh,Th={},Nh={exports:{}},_h={exports:{}},jh={exports:{}};function Fh(){return kh||(kh=1,function(e){var t=Mf.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,r||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(jh)),jh.exports}function zh(){return Oh||(Oh=1,function(e){var t=Mf.default,r=Fh();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(_h)),_h.exports}function Wh(){return qh||(qh=1,function(e){var t=zh();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Nh)),Nh.exports}var $h,Hh={exports:{}};function Vh(){return $h||($h=1,function(e){var t=Fs();e.exports=function(e,r){if(null==e)return{};var n,i,o=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Hh)),Hh.exports}var Bh,Gh={};var Uh,Yh={};var Kh,Xh={},Jh={};var Zh,Qh={};var em,tm={};var rm,nm={};var im,om={};var am,sm={};var lm,um={};var cm,dm,pm={};function fm(){if(dm)return Xh;dm=1;var e=Va;Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,b=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,I=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,D=e.success,P=void 0===D?{light:d.default[300],main:d.default[500],dark:d.default[700]}:D,R=e.type,M=void 0===R?"light":R,L=e.contrastThreshold,A=void 0===L?3:L,k=e.tonalOffset,O=void 0===k?.2:k,q=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(e){return(0,p.getContrastRatio)(e,h.text.primary)>=A?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",i,O),m(e,"dark",o,O),e.contrastText||(e.contrastText=T(e.main)),e},_={dark:h,light:f},j=(0,n.deepmerge)((0,t.default)({common:i.default,type:M,primary:N(v),secondary:N(b,"A400","A200","A700"),error:N(S),warning:N(C),info:N(I),success:N(P),grey:o.default,contrastThreshold:A,getContrastText:T,augmentColor:N,tonalOffset:O},_[M]),q);return j},Xh.dark=Xh.light=void 0;var t=e(Ns()),r=e(Vh()),n=Sh,i=e(function(){if(Kh)return Jh;Kh=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.default=void 0;var e={black:"#000",white:"#fff"};return Jh.default=e,Jh}()),o=e(function(){if(Zh)return Qh;Zh=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Qh.default=e,Qh}()),a=e(function(){if(em)return tm;em=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return tm.default=e,tm}()),s=e(function(){if(rm)return nm;rm=1,Object.defineProperty(nm,"__esModule",{value:!0}),nm.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return nm.default=e,nm}()),l=e(function(){if(im)return om;im=1,Object.defineProperty(om,"__esModule",{value:!0}),om.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return om.default=e,om}()),u=e(function(){if(am)return sm;am=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return sm.default=e,sm}()),c=e(function(){if(lm)return um;lm=1,Object.defineProperty(um,"__esModule",{value:!0}),um.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return um.default=e,um}()),d=e(function(){if(cm)return pm;cm=1,Object.defineProperty(pm,"__esModule",{value:!0}),pm.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return pm.default=e,pm}()),p=Af,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:i.default.white,default:o.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};Xh.light=f;var h={text:{primary:i.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:o.default[800],default:"#303030"},action:{active:i.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var i=n.light||n,o=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,i):"dark"===t&&(e.dark=(0,p.darken)(e.main,o)))}return Xh.dark=h,Xh}var hm,mm={};var gm,vm={};var ym,bm={};var xm={};function Sm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function wm(e,t){if(e){if("string"==typeof e)return Sm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sm(e,t):void 0}}function Cm(e){return function(e){if(Array.isArray(e))return Sm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wm(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.")}()}function Em(e,t){return t?qf(e,t,{clone:!1}):e}var Im={xs:0,sm:600,md:960,lg:1280,xl:1920},Dm={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Im[e],"px)")}};function Pm(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Dm;return t.reduce(function(e,i,o){return e[n.up(n.keys[o])]=r(t[o]),e},{})}if("object"===Fa(t)){var i=e.theme.breakpoints||Dm;return Object.keys(t).reduce(function(e,n){return e[i.up(n)]=r(t[n]),e},{})}return r(t)}function Rm(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function Mm(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,i=e.themeKey,o=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Rm(e.theme,i)||{};return Pm(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Rm(a,e)||e,o&&(t=o(t))),!1===n?t:function(e,t,r){return(t=za(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function Lm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?Em(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function Am(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var km=Mm({prop:"border",themeKey:"borders",transform:Am}),Om=Mm({prop:"borderTop",themeKey:"borders",transform:Am}),qm=Mm({prop:"borderRight",themeKey:"borders",transform:Am}),Tm=Mm({prop:"borderBottom",themeKey:"borders",transform:Am}),Nm=Mm({prop:"borderLeft",themeKey:"borders",transform:Am}),_m=Mm({prop:"borderColor",themeKey:"palette"}),jm=Mm({prop:"borderRadius",themeKey:"shape"}),Fm=Lm(km,Om,qm,Tm,Nm,_m,jm);function zm(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function Wm(e){var t=function(t){var r=e(t);return t.css?ke({},Em(r,e(ke({theme:t.theme},t.css))),zm(t.css,[e.filterProps])):t.sx?ke({},Em(r,e(ke({theme:t.theme},t.sx))),zm(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Cm(e.filterProps)),t}var $m=Lm(Mm({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Mm({prop:"display"}),Mm({prop:"overflow"}),Mm({prop:"textOverflow"}),Mm({prop:"visibility"}),Mm({prop:"whiteSpace"})),Hm=Mm({prop:"flexBasis"}),Vm=Mm({prop:"flexDirection"}),Bm=Mm({prop:"flexWrap"}),Gm=Mm({prop:"justifyContent"}),Um=Mm({prop:"alignItems"}),Ym=Mm({prop:"alignContent"}),Km=Mm({prop:"order"}),Xm=Mm({prop:"flex"}),Jm=Mm({prop:"flexGrow"}),Zm=Mm({prop:"flexShrink"}),Qm=Mm({prop:"alignSelf"}),eg=Mm({prop:"justifyItems"}),tg=Mm({prop:"justifySelf"}),rg=Lm(Hm,Vm,Bm,Gm,Um,Ym,Km,Xm,Jm,Zm,Qm,eg,tg),ng=Mm({prop:"gridGap"}),ig=Mm({prop:"gridColumnGap"}),og=Mm({prop:"gridRowGap"}),ag=Mm({prop:"gridColumn"}),sg=Mm({prop:"gridRow"}),lg=Mm({prop:"gridAutoFlow"}),ug=Mm({prop:"gridAutoColumns"}),cg=Mm({prop:"gridAutoRows"}),dg=Mm({prop:"gridTemplateColumns"}),pg=Mm({prop:"gridTemplateRows"}),fg=Mm({prop:"gridTemplateAreas"}),hg=Mm({prop:"gridArea"}),mg=Lm(ng,ig,og,ag,sg,lg,ug,cg,dg,pg,fg,hg),gg=Mm({prop:"color",themeKey:"palette"}),vg=Mm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),yg=Lm(gg,vg),bg=Mm({prop:"position"}),xg=Mm({prop:"zIndex",themeKey:"zIndex"}),Sg=Mm({prop:"top"}),wg=Mm({prop:"right"}),Cg=Mm({prop:"bottom"}),Eg=Mm({prop:"left"}),Ig=Lm(bg,xg,Sg,wg,Cg,Eg),Dg=Mm({prop:"boxShadow",themeKey:"shadows"});function Pg(e){return e<=1?"".concat(100*e,"%"):e}var Rg=Mm({prop:"width",transform:Pg}),Mg=Mm({prop:"maxWidth",transform:Pg}),Lg=Mm({prop:"minWidth",transform:Pg}),Ag=Mm({prop:"height",transform:Pg}),kg=Mm({prop:"maxHeight",transform:Pg}),Og=Mm({prop:"minHeight",transform:Pg}),qg=Mm({prop:"size",cssProperty:"width",transform:Pg}),Tg=Mm({prop:"size",cssProperty:"height",transform:Pg}),Ng=Mm({prop:"boxSizing"}),_g=Lm(Rg,Mg,Lg,Ag,kg,Og,Ng);function jg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t);else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||wm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Fg={m:"margin",p:"padding"},zg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$g=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!Wg[e])return[e];e=Wg[e]}var t=jg(e.split(""),2),r=t[0],n=t[1],i=Fg[r],o=zg[n]||"";return Array.isArray(o)?o.map(function(e){return i+e}):[i+o]}),Hg=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Vg(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Bg(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function Gg(e){var t=Vg(e.theme);return Object.keys(e).map(function(r){if(-1===Hg.indexOf(r))return null;var n=Bg($g(r),t),i=e[r];return Pm(e,i,n)}).reduce(Em,{})}Gg.propTypes={},Gg.filterProps=Hg;var Ug,Yg=Mm({prop:"fontFamily",themeKey:"typography"}),Kg=Mm({prop:"fontSize",themeKey:"typography"}),Xg=Mm({prop:"fontStyle",themeKey:"typography"}),Jg=Mm({prop:"fontWeight",themeKey:"typography"}),Zg=Mm({prop:"letterSpacing"}),Qg=Mm({prop:"lineHeight"}),ev=Mm({prop:"textAlign"}),tv=Lm(Yg,Kg,Xg,Jg,Zg,Qg,ev),rv=Object.freeze({__proto__:null,alignContent:Ym,alignItems:Um,alignSelf:Qm,bgcolor:vg,border:km,borderBottom:Tm,borderColor:_m,borderLeft:Nm,borderRadius:jm,borderRight:qm,borderTop:Om,borders:Fm,bottom:Cg,boxSizing:Ng,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Dm,i=n.keys.reduce(function(r,i){return t[i]&&((r=r||{})[n.up(i)]=e(ke({theme:t.theme},t[i]))),r},null);return Em(r,i)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Cm(e.filterProps)),t},color:gg,compose:Lm,createUnarySpacing:Vg,css:function(e){return Wm(e)},display:$m,flex:Xm,flexBasis:Hm,flexDirection:Vm,flexGrow:Jm,flexShrink:Zm,flexWrap:Bm,flexbox:rg,fontFamily:Yg,fontSize:Kg,fontStyle:Xg,fontWeight:Jg,grid:mg,gridArea:hg,gridAutoColumns:ug,gridAutoFlow:lg,gridAutoRows:cg,gridColumn:ag,gridColumnGap:ig,gridGap:ng,gridRow:sg,gridRowGap:og,gridTemplateAreas:fg,gridTemplateColumns:dg,gridTemplateRows:pg,height:Ag,justifyContent:Gm,justifyItems:eg,justifySelf:tg,left:Eg,letterSpacing:Zg,lineHeight:Qg,maxHeight:kg,maxWidth:Mg,minHeight:Og,minWidth:Lg,order:Km,palette:yg,position:bg,positions:Ig,right:wg,shadows:Dg,sizeHeight:Tg,sizeWidth:qg,sizing:_g,spacing:Gg,style:Mm,styleFunctionSx:Wm,textAlign:ev,top:Sg,typography:tv,width:Rg,zIndex:xg}),nv=In(rv);var iv,ov={};function av(){if(iv)return ov;iv=1;var e=Va;Object.defineProperty(ov,"__esModule",{value:!0}),ov.default=ov.duration=ov.easing=void 0;var t=e(Vh()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};ov.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i(e){return"".concat(Math.round(e),"ms")}ov.duration=n;var o={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.duration,s=void 0===a?n.standard:a,l=o.easing,u=void 0===l?r.easeInOut:l,c=o.delay,d=void 0===c?0:c;return(0,t.default)(o,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:i(s)," ").concat(u," ").concat("string"==typeof d?d:i(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return ov.default=o,ov}var sv,lv,uv={};function cv(){if(lv)return Th;lv=1;var e=Va;Object.defineProperty(Th,"__esModule",{value:!0}),Th.createMuiTheme=function(){return p.apply(void 0,arguments)},Th.default=void 0,e(Wh());var t=e(Vh()),r=Sh,n=e(function(){if(Bh)return Gh;Bh=1;var e=Va;Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.default=function(e){var i=e.values,o=void 0===i?{xs:0,sm:600,md:960,lg:1280,xl:1920}:i,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof o[e]?o[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof o[e]?o[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof o[n[r+1]]?o[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:o,up:d,down:function(e){var t=n.indexOf(e)+1,r=o[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return o[e]}},c)},Gh.keys=void 0;var t=e(Ns()),r=e(Vh()),n=["xs","sm","md","lg","xl"];return Gh.keys=n,Gh}()),i=e(function(){if(Uh)return Yh;Uh=1;var e=Va;Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.default=function(e,n,i){var o;return(0,r.default)({gutters:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},i,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},i[e.up("sm")])))},toolbar:(o={minHeight:56},(0,t.default)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(o,e.up("sm"),{minHeight:64}),o)},i)};var t=e(Wh()),r=e(Ns());return Yh}()),o=e(fm()),a=e(function(){if(hm)return mm;hm=1;var e=Va;Object.defineProperty(mm,"__esModule",{value:!0}),mm.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,y=u.fontWeightMedium,b=void 0===y?500:y,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,I=u.pxToRem,D=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,R=I||function(e){return"".concat(e/C*P,"rem")},M=function(e,r,n,o,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:R(r),lineHeight:n},d===s?{letterSpacing:"".concat(i(o/r),"em")}:{},a,E)},L={h1:M(m,96,1.167,-1.5),h2:M(m,60,1.2,-.5),h3:M(v,48,1.167,0),h4:M(v,34,1.235,.25),h5:M(v,24,1.334,0),h6:M(b,20,1.6,.15),subtitle1:M(v,16,1.75,.15),subtitle2:M(b,14,1.57,.1),body1:M(v,16,1.5,.15),body2:M(v,14,1.43,.15),button:M(b,14,1.75,.4,a),caption:M(v,12,1.66,.4),overline:M(v,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:R,round:o,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:S},L),D,{clone:!1})};var t=e(Ns()),r=e(Vh()),n=Sh;function i(e){return Math.round(1e5*e)/1e5}function o(e){return i(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return mm}()),s=e(function(){if(gm)return vm;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}gm=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return vm.default=t,vm}()),l=e(function(){if(ym)return bm;ym=1,Object.defineProperty(bm,"__esModule",{value:!0}),bm.default=void 0;var e={borderRadius:4};return bm.default=e,bm}()),u=e(function(){if(Ug)return xm;Ug=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=nv;return xm}()),c=e(av()),d=e(function(){if(sv)return uv;sv=1,Object.defineProperty(uv,"__esModule",{value:!0}),uv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return uv.default=e,uv}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,y=e.spacing,b=e.typography,x=void 0===b?{}:b,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,o.default)(v),C=(0,n.default)(f),E=(0,u.default)(y),I=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,i.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),D=arguments.length,P=new Array(D>1?D-1:0),R=1;R<D;R++)P[R-1]=arguments[R];return I=P.reduce(function(e,t){return(0,r.deepmerge)(e,t)},I)}var f=p;return Th.default=f,Th}var dv,pv={};var fv={},hv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",mv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function gv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,i=void 0===n?"jss":n,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==mv.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[hv]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}function vv(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var i,o=t.props[r];for(i in o)void 0===n[i]&&(n[i]=o[i]);return n}var yv="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},bv="object"===("undefined"==typeof window?"undefined":yv(window))&&"object"===("undefined"==typeof document?"undefined":yv(document))&&9===document.nodeType;function xv(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,za(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Sv={}.constructor;function wv(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(wv);if(e.constructor!==Sv)return e;var t={};for(var r in e)t[r]=wv(e[r]);return t}function Cv(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=wv(t),o=n.plugins.onCreateRule(e,i,r);return o||(e[0],null)}var Ev=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Iv=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=Ev(e[r]," ");else t=Ev(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Dv(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Pv(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Rv(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var i=r.indent,o=void 0===i?0:i,a=t.fallbacks;!1===r.format&&(o=-1/0);var s=Dv(r),l=s.linebreak,u=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Pv(p+":"+u+Iv(f)+";",o))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Pv(h+":"+u+Iv(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=Pv(g+":"+u+Iv(v)+";",o))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Pv(""+e+u+"{"+n,--o)+Pv("}",o)):n}var Mv=/([[\].#*$><+~=|^:(),"'`\s])/g,Lv="undefined"!=typeof CSS&&CSS.escape,Av=function(e){return Lv?Lv(e):e.replace(Mv,"\\$1")},kv=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!n)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Ov=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var o=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(ql(ql(i)),s),i.selectorText="."+Av(i.id)),i}El(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=Iv(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return Rv(this.selectorText,this.style,r)},xv(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(kv),qv={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Ov(e,t,r)}},Tv={indent:1,children:!0},Nv=/@([\w-]+)/,_v=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Nv);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new sy(ke({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=Tv);var t=Dv(e).linebreak;if(null==e.indent&&(e.indent=Tv.indent),null==e.children&&(e.children=Tv.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),jv=/@container|@media|@supports\s+/,Fv={onCreateRule:function(e,t,r){return jv.test(e)?new _v(e,t,r):null}},zv={indent:1,children:!0},Wv=/@keyframes\s+([\w-]+)/,$v=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Wv);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,o=r.sheet,a=r.generateId;for(var s in this.id=!1===i?this.name:Av(a(this,o)),this.rules=new sy(ke({},r,{parent:this})),t)this.rules.add(s,t[s],ke({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=zv);var t=Dv(e).linebreak;if(null==e.indent&&(e.indent=zv.indent),null==e.children&&(e.children=zv.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Hv=/@keyframes\s+/,Vv=/\$([\w-]+)/g,Bv=function(e,t){return"string"==typeof e?e.replace(Vv,function(e,r){return r in t?t[r]:e}):e},Gv=function(e,t,r){var n=e[t],i=Bv(n,r);i!==n&&(e[t]=i)},Uv={onCreateRule:function(e,t,r){return"string"==typeof e&&Hv.test(e)?new $v(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Gv(e,"animation-name",r.keyframes),"animation"in e&&Gv(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Bv(e,n.keyframes);default:return e}}},Yv=function(e){function t(){return e.apply(this,arguments)||this}return El(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return Rv(this.key,this.style,r)},t}(kv),Kv={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Yv(e,t,r):null}},Xv=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Dv(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Rv(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Rv(this.at,this.style,e)},e}(),Jv=/@font-face/,Zv={onCreateRule:function(e,t,r){return Jv.test(e)?new Xv(e,t,r):null}},Qv=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return Rv(this.key,this.style,e)},e}(),ey={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Qv(e,t,r):null}},ty=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ry={"@charset":!0,"@import":!0,"@namespace":!0},ny={onCreateRule:function(e,t,r){return e in ry?new ty(e,t,r):null}},iy=[qv,Fv,Uv,Kv,Zv,ey,ny],oy={process:!0},ay={force:!0,process:!0},sy=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,i=n.parent,o=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=ke({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Av(this.classes[d]));var p=Cv(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),i=this.index.indexOf(n);n&&this.remove(n);var o=r;return-1!==i&&(o=ke({},r,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Ov?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof $v&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ov?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof $v&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=oy);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(o.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,ay)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ay)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,i=Dv(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||n)&&(t&&(t+=i),t+=a)}return t},e}(),ly=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=ke({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new sy(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(e,t,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var i=this.rules.replace(e,t,r);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?n.renderable&&this.renderer.replaceRule(n.renderable,i):this.renderer.deleteRule(n)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var i=this.addRule(n,e[n],t);i&&r.push(i)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),uy=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](e,t,r);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),cy=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Oe(t,["attached"]),i=Dv(n).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(o&&(o+=i),o+=s.toString(n))}return o},xv(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),dy=new cy,py="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),fy="2f1acc6c3a606b082e5eef5e54414ffb";null==py[fy]&&(py[fy]=0);var hy=py[fy]++,my=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),e.minify?""+(o||"c")+hy+i+t:o+r.key+"-"+hy+(i?"-"+i:"")+"-"+t}},gy=function(e){var t;return function(){return t||(t=e()),t}},vy=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},yy=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Iv(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var i=n?n.indexOf("!important"):-1,o=i>-1?n.substr(0,i-1):n;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},by=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},xy=function(e,t){return e.selectorText=t,e.selectorText===t},Sy=gy(function(){return document.querySelector("head")});function wy(e){var t=dy.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var i=function(e){for(var t=Sy(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var Cy=gy(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Ey=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Iy=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Dy=function(){function e(e){this.getPropertyValue=vy,this.setProperty=yy,this.removeProperty=by,this.setSelector=xy,this.hasInsertedRules=!1,this.cssRules=[],e&&dy.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=Cy();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=wy(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else Sy().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,i=r;if("conditional"===e.type||"keyframes"===e.type){var o=Iy(r,t);if(!1===(i=Ey(r,n.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(n.rules,i),i}var a=e.toString();if(!a)return!1;var s=Iy(r,t),l=Ey(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof ly&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Py=0,Ry=function(){function e(e){this.id=Py++,this.version="10.10.0",this.plugins=new uy,this.options={id:{minify:!1},createGenerateId:my,Renderer:bv?Dy:null,plugins:[]},this.generateId=my({minify:!1});for(var t=0;t<iy.length;t++)this.plugins.use(iy[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=ke({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===dy.index?0:dy.index+1);var n=new ly(e,ke({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),dy.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=ke({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var i=Cv(e,t,n);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),My=function(e){return new Ry(e)},Ly="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ay(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if("function"===i)t||(t={}),t[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=Ay(n);o&&(t||(t={}),t[r]=o)}}return t}
|
|
88
|
+
`),eu.rippleVisible,su,550,({theme:e})=>e.transitions.easing.easeInOut,eu.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,eu.child,eu.childLeaving,lu,550,({theme:e})=>e.transitions.easing.easeInOut,eu.childPulsate,uu,({theme:e})=>e.transitions.easing.easeInOut),pu=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,s=Oe(n,tu),[l,u]=i.useState([]),c=i.useRef(0),d=i.useRef(null);i.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=i.useRef(!1),f=ga(),h=i.useRef(null),m=i.useRef(null),g=i.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;u(e=>[...e,fo.jsx(du,{classes:{ripple:wo(o.ripple,eu.ripple),rippleVisible:wo(o.rippleVisible,eu.rippleVisible),ripplePulsate:wo(o.ripplePulsate,eu.ripplePulsate),child:wo(o.child,eu.child),childLeaving:wo(o.childLeaving,eu.childLeaving),childPulsate:wo(o.childPulsate,eu.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),v=i.useCallback((e={},t={},n=()=>{})=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:i,rippleX:u,rippleY:c,rippleSize:d,cb:n})},f.start(80,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:i,rippleX:u,rippleY:c,rippleSize:d,cb:n})},[r,g,f]),y=i.useCallback(()=>{v({},{pulsate:!0})},[v]),b=i.useCallback((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,()=>{b(e,t)});h.current=null,u(e=>e.length>0?e.slice(1):e),d.current=t},[f]);return i.useImperativeHandle(t,()=>({pulsate:y,start:v,stop:b}),[y,v,b]),fo.jsx(cu,ke({className:wo(eu.root,o.root,a),ref:m},s,{children:fo.jsx(Ul,{component:null,exit:!0,children:l})}))});function fu(e){return Io("MuiButtonBase",e)}const hu=Do("MuiButtonBase",["root","disabled","focusVisible"]),mu=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],gu=Sl("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vu=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:I,onTouchMove:D,onTouchStart:R,tabIndex:P=0,TouchRippleProps:M,touchRippleRef:L,type:A}=n,k=Oe(n,mu),O=i.useRef(null),q=i.useRef(null),T=pa(q,L),{isFocusVisibleRef:j,onFocus:N,onBlur:_,ref:F}=Ia(),[z,W]=i.useState(!1);u&&z&&W(!1),i.useImperativeHandle(r,()=>({focusVisible:()=>{W(!0),O.current.focus()}}),[]);const[$,H]=i.useState(!1);i.useEffect(()=>{H(!0)},[]);const V=$&&!c&&!u;function B(e,t,n=d){return da(r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!0})}i.useEffect(()=>{z&&p&&!c&&$&&q.current.pulsate()},[c,p,z,$]);const G=B("start",w),U=B("stop",g),Y=B("stop",v),K=B("stop",E),X=B("stop",e=>{z&&e.preventDefault(),C&&C(e)}),J=B("start",R),Z=B("stop",I),Q=B("stop",D),ee=B("stop",e=>{_(e),!1===j.current&&W(!1),h&&h(e)},!1),te=da(e=>{O.current||(O.current=e.currentTarget),N(e),!0===j.current&&(W(!0),b&&b(e)),y&&y(e)}),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=i.useRef(!1),ie=da(e=>{p&&!re.current&&z&&q.current&&" "===e.key&&(re.current=!0,q.current.stop(e,()=>{q.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))}),oe=da(e=>{p&&" "===e.key&&q.current&&z&&!e.defaultPrevented&&(re.current=!1,q.current.stop(e,()=>{q.current.pulsate(e)})),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)});let ae=l;"button"===ae&&(k.href||k.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===A?"button":A,se.disabled=u):(k.href||k.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=pa(t,F,O),ue=ke({},n,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:P,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=Ra({root:["root",t&&"disabled",n&&"focusVisible"]},fu,i);return n&&r&&(o.root+=` ${r}`),o})(ue);return fo.jsxs(gu,ke({as:ae,className:wo(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:ie,onKeyUp:oe,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:u?-1:P,type:A},se,k,{children:[a,V?fo.jsx(pu,ke({ref:T,center:o},M)):null]}))});function yu(e){return Io("MuiTypography",e)}Do("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],xu=Sl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${ni(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>ke({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Su={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Cu=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiTypography"}),r=(e=>wu[e]||e)(n.color),i=vo(ke({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Su}=i,f=Oe(i,bu),h=ke({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Su[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return Ra({root:["root",o,"inherit"!==e.align&&`align${ni(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},yu,a)})(h);return fo.jsx(xu,ke({as:m,ref:t,ownerState:h,className:wo(g.root,a)},f))});const Eu=i.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=pa(i.isValidElement(n)?Oa(n):null,t);if(Jo(()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Jo(()=>{if(a&&!o)return aa(t,a),()=>{aa(t,null)}},[t,a,o]),o){if(i.isValidElement(n)){const e={ref:l};return i.cloneElement(n,e)}return fo.jsx(i.Fragment,{children:n})}return fo.jsx(i.Fragment,{children:a?I.createPortal(n,a):a})}),Iu=["onChange","maxRows","minRows","style","value"];function Du(e){return parseInt(e,10)||0}const Ru={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Pu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Mu=i.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:s}=e,l=Oe(e,Iu),{current:u}=i.useRef(null!=s),c=i.useRef(null),d=pa(t,c),p=i.useRef(null),f=i.useRef(null),h=i.useCallback(()=>{const t=c.current,n=f.current;if(!t||!n)return;const i=oa(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Du(i.paddingBottom)+Du(i.paddingTop),l=Du(i.borderBottomWidth)+Du(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}},[r,o,e.placeholder]),m=da(()=>{const e=c.current,t=h();if(!e||!t||Pu(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=i.useCallback(()=>{const e=c.current,t=h();if(!e||!t||Pu(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),v=i.useRef(-1);Jo(()=>{const e=ra(g),t=null==c?void 0:c.current;if(!t)return;const n=oa(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,g,m]),Jo(()=>{g()});return fo.jsxs(i.Fragment,{children:[fo.jsx("textarea",ke({value:s,onChange:e=>{u||g(),n&&n(e)},ref:d,rows:o,style:a},l)),fo.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:ke({},Ru,a,{paddingTop:0,paddingBottom:0})})]})});function Lu({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Au=i.createContext(void 0);function ku(){return i.useContext(Au)}function Ou(e){return fo.jsx(mo,ke({},e,{defaultTheme:Fs,themeId:Ae}))}function qu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Tu(e,t=!1){return e&&(qu(e.value)&&""!==e.value||t&&qu(e.defaultValue)&&""!==e.defaultValue)}function ju(e){return Io("MuiInputBase",e)}const Nu=Do("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_u=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Fu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ni(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},zu=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Wu=Sl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Fu})(({theme:e,ownerState:t})=>ke({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Nu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ke({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),$u=Sl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zu})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=ke({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return ke({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Nu.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Nu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Hu=fo.jsx(Ou,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Vu=i.forwardRef(function(e,t){var n;const r=Il({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:I,onClick:D,onFocus:R,onKeyDown:P,onKeyUp:M,placeholder:L,readOnly:A,renderSuffix:k,rows:O,slotProps:q={},slots:T={},startAdornment:j,type:N="text",value:_}=r,F=Oe(r,_u),z=null!=y.value?y.value:_,{current:W}=i.useRef(null!=z),$=i.useRef(),H=i.useCallback(e=>{},[]),V=pa($,b,y.ref,H),[B,G]=i.useState(!1),U=ku(),Y=Lu({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:B,i.useEffect(()=>{!U&&p&&B&&(G(!1),E&&E())},[U,p,B,E]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=i.useCallback(e=>{Tu(e)?K&&K():X&&X()},[K,X]);Jo(()=>{W&&J({value:z})},[z,J,W]);i.useEffect(()=>{J($.current)},[]);let Z=v,Q=y;w&&"input"===Z&&(Q=ke(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Mu);i.useEffect(()=>{U&&U.setAdornedStart(Boolean(j))},[U,j]);const ee=ke({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:h,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:j,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Ra({root:["root",`color${ni(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ni(p)}`,c&&"multiline",f&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},ju,t)})(ee),ne=T.root||u.Root||Wu,re=q.root||c.root||{},ie=T.input||u.Input||$u;return Q=ke({},Q,null!=(n=q.input)?n:c.input),fo.jsxs(i.Fragment,{children:[!f&&Hu,fo.jsxs(ne,ke({},re,!Pa(ne)&&{ownerState:ke({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),D&&D(e)}},F,{className:wo(te.root,re.className,l,A&&"MuiInputBase-readOnly"),children:[j,fo.jsx(Au.Provider,{value:null,children:fo.jsx(ie,ke({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:C,placeholder:L,readOnly:A,required:Y.required,rows:O,value:z,onKeyDown:P,onKeyUp:M,type:N},Q,!Pa(ie)&&{as:Z,ownerState:ke({},ee,Q.ownerState)},{ref:V,className:wo(te.input,Q.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),y.onBlur&&y.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!W){const t=e.target||$.current;if(null==t)throw new Error(Me(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(R&&R(e),y.onFocus&&y.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),h,k?k(ke({},Y,{startAdornment:j})):null]}))]})});function Bu(e){return Io("MuiInput",e)}const Gu=ke({},Nu,Do("MuiInput",["root","underline","input"]));function Uu(e){return Io("MuiOutlinedInput",e)}const Yu=ke({},Nu,Do("MuiOutlinedInput",["root","notchedOutline","input"]));function Ku(e){return Io("MuiFilledInput",e)}const Xu=ke({},Nu,Do("MuiFilledInput",["root","underline","input"]));var Ju=Ll(fo.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Zu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qu={entering:{opacity:1},entered:{opacity:1}},ec=i.forwardRef(function(e,t){const n=zs(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=r,TransitionComponent:y=zl}=e,b=Oe(e,Zu),x=i.useRef(null),S=pa(x,Oa(s),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=w(p),E=w((e,t)=>{Yl(e);const r=Kl({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),I=w(d),D=w(m),R=w(e=>{const t=Kl({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),P=w(h);return fo.jsx(y,ke({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:R,onExited:P,onExiting:D,addEndListener:e=>{o&&o(x.current,e)},timeout:v},b,{children:(e,t)=>i.cloneElement(s,ke({style:ke({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Qu[e],g,s.props.style),ref:S},t))}))});function tc(e){return Io("MuiBackdrop",e)}Do("MuiBackdrop",["root","invisible"]);const nc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rc=Sl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>ke({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),ic=i.forwardRef(function(e,t){var n,r,i;const o=Il({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=ec,transitionDuration:g}=o,v=Oe(o,nc),y=ke({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return Ra({root:["root",n&&"invisible"]},tc,t)})(y),x=null!=(n=f.root)?n:c.root;return fo.jsx(m,ke({in:p,timeout:g},v,{children:fo.jsx(rc,ke({"aria-hidden":!0},x,{as:null!=(r=null!=(i=h.root)?i:u.Root)?r:l,className:wo(b.root,s,null==x?void 0:x.className),ownerState:ke({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}),oc=Do("MuiBox",["root"]),ac=_s(),sc=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=zr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ki);return i.forwardRef(function(e,i){const s=no(n),l=vo(e),{className:u,component:c="div"}=l,d=Oe(l,Co);return fo.jsx(a,ke({as:c,ref:i,className:wo(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:Ae,defaultTheme:ac,defaultClassName:oc.root,generateClassName:xo.generate});function lc(e){return Io("MuiButton",e)}const uc=Do("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),cc=i.createContext({}),dc=i.createContext(void 0),pc=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fc=e=>ke({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),hc=Sl(vu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ni(n.color)}`],t[`size${ni(n.size)}`],t[`${n.variant}Size${ni(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return ke({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ke({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ns(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ns(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ns(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${uc.focusVisible}`]:ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${uc.disabled}`]:ke({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ns(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${uc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${uc.disabled}`]:{boxShadow:"none"}}),mc=Sl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ni(n.size)}`]]}})(({ownerState:e})=>ke({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},fc(e))),gc=Sl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ni(n.size)}`]]}})(({ownerState:e})=>ke({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},fc(e))),vc=i.forwardRef(function(e,t){const n=i.useContext(cc),r=i.useContext(dc),o=Il({props:Xo(n,e),name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,size:g="medium",startIcon:v,type:y,variant:b="text"}=o,x=Oe(o,pc),S=ke({},o,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:y,variant:b}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return ke({},a,Ra({root:["root",o,`${o}${ni(t)}`,`size${ni(i)}`,`${o}Size${ni(i)}`,`color${ni(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ni(i)}`],endIcon:["icon","endIcon",`iconSize${ni(i)}`]},lc,a))})(S),C=v&&fo.jsx(mc,{className:w.startIcon,ownerState:S,children:v}),E=f&&fo.jsx(gc,{className:w.endIcon,ownerState:S,children:f}),I=r||"";return fo.jsxs(hc,ke({ownerState:S,className:wo(n.className,w.root,u,I),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:wo(w.focusVisible,h),ref:t,type:y},x,{classes:w,children:[C,a,E]}))});function yc(e){return Io("PrivateSwitchBase",e)}Do("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],xc=Sl(vu,{name:"MuiSwitchBase"})(({ownerState:e})=>ke({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Sc=Sl("input",{name:"MuiSwitchBase",shouldForwardProp:xl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wc=i.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b=!1,tabIndex:x,type:S,value:w}=e,C=Oe(e,bc),[E,I]=ca({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=ku();let R=s;D&&void 0===R&&(R=D.disabled);const P="checkbox"===S||"radio"===S,M=ke({},e,{checked:E,disabled:R,disableFocusRipple:l,edge:u}),L=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e;return Ra({root:["root",n&&"checked",r&&"disabled",i&&`edge${ni(i)}`],input:["input"]},yc,t)})(M);return fo.jsxs(xc,ke({component:"span",className:wo(L.root,o),centerRipple:!0,focusRipple:!l,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),D&&D.onFocus&&D.onFocus(e)},onBlur:e=>{m&&m(e),D&&D.onBlur&&D.onBlur(e)},ownerState:M,ref:t},C,{children:[fo.jsx(Sc,ke({autoFocus:n,checked:r,defaultChecked:a,className:L.input,disabled:R,id:P?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:M,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?i:c]}))});var Cc=Ll(fo.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"),Ec=Ll(fo.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"),Ic=Ll(fo.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");function Dc(e){return Io("MuiCheckbox",e)}const Rc=Do("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Pc=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Mc=Sl(wc,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ni(n.size)}`],"default"!==n.color&&t[`color${ni(n.color)}`]]}})(({theme:e,ownerState:t})=>ke({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ns("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Rc.checked}, &.${Rc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Rc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Lc=fo.jsx(Ec,{}),Ac=fo.jsx(Cc,{}),kc=fo.jsx(Ic,{}),Oc=i.forwardRef(function(e,t){var n,r;const o=Il({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Lc,color:s="primary",icon:l=Ac,indeterminate:u=!1,indeterminateIcon:c=kc,inputProps:d,size:p="medium",className:f}=o,h=Oe(o,Pc),m=u?c:l,g=u?c:a,v=ke({},o,{color:s,indeterminate:u,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e;return ke({},t,Ra({root:["root",n&&"indeterminate",`color${ni(r)}`,`size${ni(i)}`]},Dc,t))})(v);return fo.jsx(Mc,ke({type:"checkbox",inputProps:ke({"data-indeterminate":u},d),icon:i.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:i.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:v,ref:t,className:wo(y.root,f)},h,{classes:y}))});function qc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Tc(e){return parseInt(oa(e).getComputedStyle(e).paddingRight,10)||0}function jc(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&qc(e,i)})}function Nc(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function _c(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ia(e);return t.body===e?oa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Da(ia(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Tc(r)+e}px`;const t=ia(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Tc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=ia(r).body;else{const t=r.parentElement,n=oa(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const Fc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zc(e){const t=[],n=[];return Array.from(e.querySelectorAll(Fc)).forEach((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Wc(){return!0}function $c(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=zc,isEnabled:s=Wc,open:l}=e,u=i.useRef(!1),c=i.useRef(null),d=i.useRef(null),p=i.useRef(null),f=i.useRef(null),h=i.useRef(!1),m=i.useRef(null),g=pa(Oa(t),m),v=i.useRef(null);i.useEffect(()=>{l&&m.current&&(h.current=!n)},[n,l]),i.useEffect(()=>{if(!l||!m.current)return;const e=ia(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}},[l]),i.useEffect(()=>{if(!l||!m.current)return;const e=ia(m.current),t=t=>{v.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var i,o;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=v.current)?void 0:o.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return fo.jsxs(i.Fragment,{children:[fo.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),fo.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const Hc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&qc(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);jc(t,e.mount,e.modalRef,r,!0);const i=Nc(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Nc(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=_c(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Nc(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&qc(e.modalRef,t),jc(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&qc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Vc(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Hc,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=e,f=i.useRef({}),h=i.useRef(null),m=i.useRef(null),g=pa(m,p),[v,y]=i.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=da(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ia(h.current).body;o.add(S(),e),m.current&&w()}),E=i.useCallback(()=>o.isTopModal(S()),[o]),I=da(e=>{h.current=e,e&&(d&&E()?w():m.current&&qc(m.current,x))}),D=i.useCallback(()=>{o.remove(S(),x)},[x,o]);i.useEffect(()=>()=>{D()},[D]),i.useEffect(()=>{d?C():b&&a||D()},[d,D,b,a,C]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},P=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ma(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=ke({},n,t);return ke({role:"presentation"},r,{onKeyDown:R(r),ref:g})},getBackdropProps:(e={})=>ke({"aria-hidden":!0},e,{onClick:P(e),open:d}),getTransitionProps:()=>({onEnter:na(()=>{y(!1),s&&s()},null==u?void 0:u.props.onEnter),onExited:na(()=>{y(!0),l&&l(),a&&D()},null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:b}}function Bc(e){return Io("MuiModal",e)}Do("MuiModal",["root","hidden","backdrop"]);const Gc=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Uc=Sl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>ke({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Yc=Sl(ic,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Kc=i.forwardRef(function(e,t){var n,r,o,a,s,l;const u=Il({name:"MuiModal",props:e}),{BackdropComponent:c=Yc,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:I=!1,keepMounted:D=!1,onBackdropClick:R,open:P,slotProps:M,slots:L}=u,A=Oe(u,Gc),k=ke({},u,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:D}),{getRootProps:O,getBackdropProps:q,getTransitionProps:T,portalRef:j,isTopModal:N,exited:_,hasTransition:F}=Vc(ke({},k,{rootRef:t})),z=ke({},k,{exited:_}),W=(e=>{const{open:t,exited:n,classes:r}=e;return Ra({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Bc,r)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==L?void 0:L.root)?r:v.Root)?n:Uc,V=null!=(o=null!=(a=null==L?void 0:L.backdrop)?a:v.Backdrop)?o:c,B=null!=(s=null==M?void 0:M.root)?s:y.root,G=null!=(l=null==M?void 0:M.backdrop)?l:y.backdrop,U=ka({elementType:H,externalSlotProps:B,externalForwardedProps:A,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:wo(p,null==B?void 0:B.className,null==W?void 0:W.root,!z.open&&z.exited&&(null==W?void 0:W.hidden))}),Y=ka({elementType:V,externalSlotProps:G,additionalProps:d,getSlotProps:e=>q(ke({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:wo(null==G?void 0:G.className,null==d?void 0:d.className,null==W?void 0:W.backdrop),ownerState:z});return D||P||F&&!_?fo.jsx(Eu,{ref:j,container:m,disablePortal:w,children:fo.jsxs(H,ke({},U,{children:[!I&&c?fo.jsx(V,ke({},Y)):null,fo.jsx($c,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:N,open:P,children:i.cloneElement(h,$)})]}))}):null});function Xc(e){return Io("MuiDivider",e)}const Jc=Do("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Zc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Qc=Sl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>ke({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ns(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>ke({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>ke({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>ke({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>ke({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),ed=Sl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>ke({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),td=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Oe(n,Zc),h=ke({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Ra({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Xc,r)})(h);return fo.jsx(Qc,ke({as:a,className:wo(m.root,o),role:c,ref:t,ownerState:h},f,{children:i?fo.jsx(ed,{className:m.wrapper,ownerState:h,children:i}):null}))});td.muiSkipListHighlight=!0;const nd=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],rd=Sl(Wu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ke({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Xu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Xu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xu.disabled}, .${Xu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&ke({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),id=Sl($u,{name:"MuiFilledInput",slot:"Input",overridesResolver:zu})(({theme:e,ownerState:t})=>ke({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),od=i.forwardRef(function(e,t){var n,r,i,o;const a=Il({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Oe(a,nd),g=ke({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e;return ke({},t,Ra({root:["root",!n&&"underline"],input:["input"]},Ku,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?Gr(y,null!=p?p:l):y,x=null!=(n=null!=(r=f.root)?r:s.Root)?n:rd,S=null!=(i=null!=(o=f.input)?o:s.Input)?i:id;return fo.jsx(Vu,ke({slots:{root:x,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))});od.muiName="Input";const ad=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function sd(e){return`scale(${e}, ${e**2})`}const ld={entering:{opacity:1,transform:sd(1)},entered:{opacity:1,transform:"none"}},ud="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),cd=i.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=zl}=e,v=Oe(e,ad),y=ga(),b=i.useRef(),x=zs(),S=i.useRef(null),w=pa(S,Oa(o),t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},E=C(c),I=C((e,t)=>{Yl(e);const{duration:n,delay:r,easing:i}=Kl({style:h,timeout:m,easing:a},{mode:"enter"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=n,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:ud?o:.666*o,delay:r,easing:i})].join(","),l&&l(e,t)}),D=C(u),R=C(f),P=C(e=>{const{duration:t,delay:n,easing:r}=Kl({style:h,timeout:m,easing:a},{mode:"exit"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:ud?i:.666*i,delay:ud?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=sd(.75),d&&d(e)}),M=C(p);return fo.jsx(g,ke({appear:r,in:s,nodeRef:S,onEnter:I,onEntered:D,onEntering:E,onExit:P,onExited:M,onExiting:R,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(o,ke({style:ke({opacity:0,transform:sd(.75),visibility:"exited"!==e||s?void 0:"hidden"},ld[e],h,o.props.style),ref:w},t))}))});cd.muiSupportAuto=!0;const dd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],pd=Sl(Wu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),ke({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gu.disabled}, .${Gu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gu.disabled}:before`]:{borderBottomStyle:"dotted"}})}),fd=Sl($u,{name:"MuiInput",slot:"Input",overridesResolver:zu})({}),hd=i.forwardRef(function(e,t){var n,r,i,o;const a=Il({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Oe(a,dd),v=(e=>{const{classes:t,disableUnderline:n}=e;return ke({},t,Ra({root:["root",!n&&"underline"],input:["input"]},Bu,t))})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:u)?Gr(null!=f?f:u,y):y,x=null!=(n=null!=(r=h.root)?r:l.Root)?n:pd,S=null!=(i=null!=(o=h.input)?o:l.Input)?i:fd;return fo.jsx(Vu,ke({slots:{root:x,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function md(e){return Io("MuiInputAdornment",e)}hd.muiName="Input";const gd=Do("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var vd;const yd=["children","className","component","disablePointerEvents","disableTypography","position","variant"],bd=Sl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ni(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>ke({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${gd.positionStart}&:not(.${gd.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),xd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=n,d=Oe(n,yd),p=ku()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=ke({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e;return Ra({root:["root",n&&"disablePointerEvents",i&&`position${ni(i)}`,a,r&&"hiddenLabel",o&&`size${ni(o)}`]},md,t)})(h);return fo.jsx(Au.Provider,{value:null,children:fo.jsx(bd,ke({as:a,ownerState:h,className:wo(m.root,o),ref:t},d,{children:"string"!=typeof r||l?fo.jsxs(i.Fragment,{children:["start"===u?vd||(vd=fo.jsx("span",{className:"notranslate",children:""})):null,r]}):fo.jsx(Cu,{color:"text.secondary",children:r})}))})});function Sd(e){return Io("MuiLink",e)}const wd=Do("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Cd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ed=({theme:e,ownerState:t})=>{const n=(e=>Cd[e]||e)(t.color),r=ii(e,`palette.${n}`,!1)||t.color,i=ii(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:ns(r,.4)},Id=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Dd=Sl(Cu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ni(n.underline)}`],"button"===n.component&&t.button]}})(({theme:e,ownerState:t})=>ke({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&ke({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Ed({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${wd.focusVisible}`]:{outline:"auto"}})),Rd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Oe(n,Id),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=Ia(),[y,b]=i.useState(!1),x=pa(t,v),S=ke({},n,{color:o,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e;return Ra({root:["root",`underline${ni(i)}`,"button"===n&&"button",r&&"focusVisible"]},Sd,t)})(S);return fo.jsx(Dd,ke({color:o,className:wo(w.root,r),classes:u,component:a,onBlur:e=>{m(e),!1===h.current&&b(!1),s&&s(e)},onFocus:e=>{g(e),!0===h.current&&b(!0),l&&l(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(Cd).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))}),Pd=i.createContext({});function Md(e){return Io("MuiList",e)}Do("MuiList",["root","padding","dense","subheader"]);const Ld=["children","className","component","dense","disablePadding","subheader"],Ad=Sl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>ke({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),kd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=Oe(n,Ld),d=i.useMemo(()=>({dense:s}),[s]),p=ke({},n,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ra({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Md,t)})(p);return fo.jsx(Pd.Provider,{value:d,children:fo.jsxs(Ad,ke({as:a,className:wo(f.root,o),ref:t,ownerState:p},c,{children:[u,r]}))})});function Od(e){return Io("MuiListItem",e)}const qd=Do("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Td=Do("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function jd(e){return Io("MuiListItemSecondaryAction",e)}Do("MuiListItemSecondaryAction",["root","disableGutters"]);const Nd=["className"],_d=Sl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>ke({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Fd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Oe(n,Nd),a=ke({},n,{disableGutters:i.useContext(Pd).disableGutters}),s=(e=>{const{disableGutters:t,classes:n}=e;return Ra({root:["root",t&&"disableGutters"]},jd,n)})(a);return fo.jsx(_d,ke({className:wo(s.root,r),ownerState:a,ref:t},o))});Fd.muiName="ListItemSecondaryAction";const zd=["className"],Wd=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],$d=Sl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>ke({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&ke({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Td.root}`]:{paddingRight:48}},{[`&.${qd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ns(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${qd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ns(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})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Hd=Sl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Vd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:S=!1,slotProps:w={},slots:C={}}=n,E=Oe(n.ContainerProps,zd),I=Oe(n,Wd),D=i.useContext(Pd),R=i.useMemo(()=>({dense:h||D.dense||!1,alignItems:r,disableGutters:g}),[r,D.dense,h,g]),P=i.useRef(null);Jo(()=>{o&&P.current&&P.current.focus()},[o]);const M=i.Children.toArray(s),L=M.length&&(A=M[M.length-1],k=["ListItemSecondaryAction"],i.isValidElement(A)&&-1!==k.indexOf(null!=(O=A.type.muiName)?O:null==(q=A.type)||null==(q=q._payload)||null==(q=q.value)?void 0:q.muiName));var A,k,O,q;const T=ke({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:L,selected:S}),j=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ra({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Od,r)})(T),N=pa(P,t),_=C.root||c.Root||$d,F=w.root||d.root||{},z=ke({className:wo(j.root,F.className,l),disabled:m},I);let W=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=wo(qd.focusVisible,b),W=vu),L?(W=z.component||u?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),fo.jsx(Pd.Provider,{value:R,children:fo.jsxs(Hd,ke({as:p,className:wo(j.container,f),ref:N,ownerState:T},E,{children:[fo.jsx(_,ke({},F,!Pa(_)&&{as:W,ownerState:ke({},T,F.ownerState)},z,{children:M})),M.pop()]}))})):fo.jsx(Pd.Provider,{value:R,children:fo.jsxs(_,ke({},F,{as:W,ref:N},!Pa(_)&&{ownerState:ke({},T,F.ownerState)},z,{children:[M,x&&fo.jsx(Fd,{children:x})]}))})});function Bd(e){return Io("MuiListItemIcon",e)}const Gd=Do("MuiListItemIcon",["root","alignItemsFlexStart"]),Ud=["className"],Yd=Sl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>ke({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Kd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Oe(n,Ud),a=ke({},n,{alignItems:i.useContext(Pd).alignItems}),s=(e=>{const{alignItems:t,classes:n}=e;return Ra({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Bd,n)})(a);return fo.jsx(Yd,ke({className:wo(s.root,r),ownerState:a,ref:t},o))}),Xd=Do("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Jd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Zd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Qd(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ep(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function tp(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&ep(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const np=i.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Oe(e,Jd),f=i.useRef(null),h=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jo(()=>{r&&f.current.focus()},[r]),i.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Da(ia(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const m=pa(f,t);let g=-1;i.Children.forEach(a,(e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))});const v=i.Children.map(a,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),i.cloneElement(e,t)}return e});return fo.jsx(kd,ke({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=ia(t).activeElement;if("ArrowDown"===n)e.preventDefault(),tp(t,r,u,l,Zd);else if("ArrowUp"===n)e.preventDefault(),tp(t,r,u,l,Qd);else if("Home"===n)e.preventDefault(),tp(t,null,u,l,Zd);else if("End"===n)e.preventDefault(),tp(t,null,u,l,Qd);else if(1===n.length){const i=h.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&ep(r,i);i.previousKeyMatched&&(s||tp(t,r,!1,l,Zd,i))?e.preventDefault():i.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:v}))});function rp(e){return Io("MuiPopover",e)}Do("MuiPopover",["root","paper"]);const ip=["onEntering"],op=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ap=["slotProps"];function sp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function lp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function up(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function cp(e){return"function"==typeof e?e():e}const dp=Sl(Kc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pp=Sl(Ql,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fp=i.forwardRef(function(e,t){var n,r,o;const a=Il({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:y={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=cd,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=Oe(a.TransitionProps,ip),R=Oe(a,op),P=null!=(n=null==x?void 0:x.paper)?n:y,M=i.useRef(),L=pa(M,P.ref),A=ke({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),k=(e=>{const{classes:t}=e;return Ra({root:["root"],paper:["paper"]},rp,t)})(A),O=i.useCallback(()=>{if("anchorPosition"===d)return c;const e=cp(l),t=(e&&1===e.nodeType?e:ia(M.current).body).getBoundingClientRect();return{top:t.top+sp(t,u.vertical),left:t.left+lp(t,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),q=i.useCallback(e=>({vertical:sp(e,S.vertical),horizontal:lp(e,S.horizontal)}),[S.horizontal,S.vertical]),T=i.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=q(t);if("none"===d)return{top:null,left:null,transformOrigin:up(n)};const r=O();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,u=oa(cp(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&i<g){const e=i-g;i-=e,n.vertical+=e}else if(null!==g&&a>c){const e=a-c;i-=e,n.vertical+=e}if(null!==g&&o<g){const e=o-g;o-=e,n.horizontal+=e}else if(s>p){const e=s-p;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:up(n)}},[l,d,O,q,g]),[j,N]=i.useState(v),_=i.useCallback(()=>{const e=M.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)},[T]);i.useEffect(()=>(I&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[l,I,_]);i.useEffect(()=>{v&&_()}),i.useImperativeHandle(s,()=>v?{updatePosition:()=>{_()}}:null,[v,_]),i.useEffect(()=>{if(!v)return;const e=ra(()=>{_()}),t=oa(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,v,_]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?ia(cp(l)).body:void 0),W=null!=(r=null==b?void 0:b.root)?r:dp,$=null!=(o=null==b?void 0:b.paper)?o:pp,H=ka({elementType:$,externalSlotProps:ke({},P,{style:j?P.style:ke({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:A,className:wo(k.paper,null==P?void 0:P.className)}),V=ka({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:A,className:wo(k.root,f)}),{slotProps:B}=V,G=Oe(V,ap);return fo.jsx(W,ke({},G,!Pa(W)&&{slotProps:B,disableScrollLock:I},{children:fo.jsx(w,ke({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{N(!1)},timeout:F},D,{children:fo.jsx($,ke({},H,{children:p}))}))}))});function hp(e){return Io("MuiMenu",e)}Do("MuiMenu",["root","paper","list"]);const mp=["onEntering"],gp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],vp={vertical:"top",horizontal:"right"},yp={vertical:"top",horizontal:"left"},bp=Sl(fp,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xp=Sl(pp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Sp=Sl(np,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),wp=i.forwardRef(function(e,t){var n,r;const o=Il({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:y={},slotProps:b={}}=o,x=Oe(o.TransitionProps,mp),S=Oe(o,gp),w=(()=>{const e=i.useContext(Fa);return null!=e&&e})(),C=ke({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:v}),E=(e=>{const{classes:t}=e;return Ra({root:["root"],paper:["paper"],list:["list"]},hp,t)})(C),I=a&&!u&&p,D=i.useRef(null);let R=-1;i.Children.map(s,(e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===R)&&(R=t))});const P=null!=(n=y.paper)?n:xp,M=null!=(r=b.paper)?r:f,L=ka({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),A=ka({elementType:P,externalSlotProps:M,ownerState:C,className:E.paper});return fo.jsx(bp,ke({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?vp:yp,slots:{paper:P,root:y.root},slotProps:{root:L,paper:A},open:p,ref:t,transitionDuration:m,TransitionProps:ke({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:h,children:fo.jsx(Sp,ke({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===R||u),autoFocusItem:I,variant:v},c,{className:wo(E.list,c.className),children:s}))}))});function Cp(e){return Io("MuiMenuItem",e)}const Ep=Do("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ip=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Dp=Sl(vu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>ke({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ep.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ep.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ns(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ep.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ns(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})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ep.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ep.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Jc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Jc.inset}`]:{marginLeft:52},[`& .${Xd.root}`]:{marginTop:0,marginBottom:0},[`& .${Xd.inset}`]:{paddingLeft:36},[`& .${Gd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ke({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Gd.root} svg`]:{fontSize:"1.25rem"}}))),Rp=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Oe(n,Ip),h=i.useContext(Pd),m=i.useMemo(()=>({dense:a||h.dense||!1,disableGutters:l}),[h.dense,a,l]),g=i.useRef(null);Jo(()=>{r&&g.current&&g.current.focus()},[r]);const v=ke({},n,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e;return ke({},a,Ra({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},Cp,a))})(n),b=pa(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),fo.jsx(Pd.Provider,{value:m,children:fo.jsx(Dp,ke({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:wo(y.focusVisible,u),className:wo(y.root,p)},f,{ownerState:v,classes:y}))})});function Pp(e){return Io("MuiNativeSelect",e)}const Mp=Do("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Lp=["className","disabled","error","IconComponent","inputRef","variant"],Ap=({ownerState:e,theme:t})=>ke({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ke({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mp.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),kp=Sl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xl,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mp.multiple}`]:t.multiple}]}})(Ap),Op=({ownerState:e,theme:t})=>ke({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),qp=Sl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ni(n.variant)}`],n.open&&t.iconOpen]}})(Op),Tp=i.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=Oe(e,Lp),c=ke({},e,{disabled:r,variant:l,error:o}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return Ra({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ni(n)}`,o&&"iconOpen",r&&"disabled"]},Pp,t)})(c);return fo.jsxs(i.Fragment,{children:[fo.jsx(kp,ke({ownerState:c,className:wo(d.select,n),disabled:r,ref:s||t},u)),e.multiple?null:fo.jsx(qp,{as:a,ownerState:c,className:d.icon})]})});var jp;const Np=["children","classes","className","label","notched"],_p=Sl("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:xl})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Fp=Sl("legend",{name:"MuiNotchedOutlined",shouldForwardProp:xl})(({ownerState:e,theme:t})=>ke({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&ke({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));const zp=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Wp=Sl(Wu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Fu})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ke({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Yu.focused} .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yu.error} .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yu.disabled} .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ke({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),$p=Sl(function(e){const{className:t,label:n,notched:r}=e,i=Oe(e,Np),o=null!=n&&""!==n,a=ke({},e,{notched:r,withLabel:o});return fo.jsx(_p,ke({"aria-hidden":!0,className:t,ownerState:a},i,{children:fo.jsx(Fp,{ownerState:a,children:o?fo.jsx("span",{children:n}):jp||(jp=fo.jsx("span",{className:"notranslate",children:""}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Hp=Sl($u,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zu})(({theme:e,ownerState:t})=>ke({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Vp=i.forwardRef(function(e,t){var n,r,o,a,s;const l=Il({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,v=Oe(l,zp),y=(e=>{const{classes:t}=e;return ke({},t,Ra({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Uu,t))})(l),b=ku(),x=Lu({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ke({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),w=null!=(n=null!=(r=m.root)?r:u.Root)?n:Wp,C=null!=(o=null!=(a=m.input)?a:u.Input)?o:Hp;return fo.jsx(Vu,ke({slots:{root:w,input:C},renderSuffix:e=>fo.jsx($p,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=fo.jsxs(i.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:g},v,{classes:ke({},y,{notchedOutline:null})}))});function Bp(e){return Io("MuiSelect",e)}Vp.muiName="Input";const Gp=Do("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Up;const Yp=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Kp=Sl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Gp.select}`]:t.select},{[`&.${Gp.select}`]:t[n.variant]},{[`&.${Gp.error}`]:t.error},{[`&.${Gp.multiple}`]:t.multiple}]}})(Ap,{[`&.${Gp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Xp=Sl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ni(n.variant)}`],n.open&&t.iconOpen]}})(Op),Jp=Sl("input",{shouldForwardProp:e=>bl(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Zp(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Qp(e){return null==e||"string"==typeof e&&!e.trim()}const ef=i.forwardRef(function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:y={},multiple:b,name:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:I,open:D,readOnly:R,renderValue:P,SelectDisplayProps:M={},tabIndex:L,value:A,variant:k="standard"}=e,O=Oe(e,Yp),[q,T]=ca({controlled:A,default:d,name:"Select"}),[j,N]=ca({controlled:D,default:c,name:"Select"}),_=i.useRef(null),F=i.useRef(null),[z,W]=i.useState(null),{current:$}=i.useRef(null!=D),[H,V]=i.useState(),B=pa(t,g),G=i.useCallback(e=>{F.current=e,e&&W(e)},[]),U=null==z?void 0:z.parentNode;i.useImperativeHandle(B,()=>({focus:()=>{F.current.focus()},node:_.current,value:q}),[q]),i.useEffect(()=>{c&&j&&z&&!$&&(V(s?null:U.clientWidth),F.current.focus())},[z,s]),i.useEffect(()=>{a&&F.current.focus()},[a]),i.useEffect(()=>{if(!v)return;const e=ia(F.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[v]);const Y=(e,t)=>{e?I&&I(t):C&&C(t),$||(V(s?null:U.clientWidth),N(e))},K=i.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(q)?q.slice():[];const t=q.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),q!==n&&(T(n),w)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:x}}),w(i,e)}b||Y(!1,t)}},J=null!==z&&j;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Tu({value:q})||f)&&(P?Z=P(q):te=!0);const ne=K.map(e=>{if(!i.isValidElement(e))return null;let t;if(b){if(!Array.isArray(q))throw new Error(Me(2));t=q.some(t=>Zp(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=Zp(q,e.props.value),t&&te&&(Q=e.props.children);return i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=b?0===ee.length?null:ee.reduce((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):Q);let re,ie=H;!s&&$&&z&&(ie=U.clientWidth),re=void 0!==L?L:p?null:0;const oe=M.id||(x?`mui-component-select-${x}`:void 0),ae=ke({},e,{variant:k,value:q,open:J,error:h}),se=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return Ra({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ni(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Bp,t)})(ae),le=ke({},y.PaperProps,null==(n=y.slotProps)?void 0:n.paper),ue=ua();return fo.jsxs(i.Fragment,{children:[fo.jsx(Kp,ke({ref:G,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||R?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:x}}),S(e))},onFocus:E},M,{ownerState:ae,className:wo(M.className,se.select,u),id:oe,children:Qp(Z)?Up||(Up=fo.jsx("span",{className:"notranslate",children:""})):Z})),fo.jsx(Jp,ke({"aria-invalid":h,value:Array.isArray(q)?q.join(","):q,name:x,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(T(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:se.nativeInput,autoFocus:a,ownerState:ae},O)),fo.jsx(Xp,{as:m,className:se.icon,ownerState:ae}),fo.jsx(wp,ke({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:ke({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:ke({},y.slotProps,{paper:ke({},le,{style:ke({minWidth:ie},null!=le?le.style:null)})}),children:ne}))]})}),tf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],nf=["root"],rf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>xl(e)&&"variant"!==e,slot:"Root"},of=Sl(hd,rf)(""),af=Sl(Vp,rf)(""),sf=Sl(od,rf)(""),lf=i.forwardRef(function(e,t){const n=Il({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Ju,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=n,I=Oe(n,tf),D=y?Tp:ef,R=Lu({props:n,muiFormControl:ku(),states:["variant","error"]}),P=R.variant||E,M=ke({},n,{variant:P,classes:a}),L=(e=>{const{classes:t}=e;return t})(M),A=Oe(L,nf),k=p||{standard:fo.jsx(of,{ownerState:M}),outlined:fo.jsx(af,{label:h,ownerState:M}),filled:fo.jsx(sf,{ownerState:M})}[P],O=pa(t,Oa(k));return fo.jsx(i.Fragment,{children:i.cloneElement(k,ke({inputComponent:D,inputProps:ke({children:o,error:R.error,IconComponent:c,variant:P,type:void 0,multiple:v},y?{id:d}:{autoWidth:r,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:ke({id:d},C)},f,{classes:f?Gr(A,f.classes):A},p?p.props.inputProps:{})},(v&&y||u)&&"outlined"===P?{notched:!0}:{},{ref:O,className:wo(k.props.className,s,L.root)},!p&&{variant:P},I))})});lf.muiName="Select";const uf={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},cf={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...uf,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},df=12,pf=14,ff=16,hf=24,mf=3,gf=300,vf=400,yf=600,bf=700,xf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Sf(e){return fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:fo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function wf({fontSize:e="medium",children:t=null,className:n=""}={}){return fo.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function Cf(e={}){return fo.jsx(wf,{...e,children:fo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[fo.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),fo.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function Ef(e={}){return fo.jsx(wf,{fontSize:"medium",...e,children:fo.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[fo.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),fo.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function If(e){return fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:fo.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function Df(e={}){return fo.jsx(wf,{...e,children:fo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fo.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[fo.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),fo.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Rf(e={}){return fo.jsx(wf,{fontSize:"medium",...e,children:fo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fo.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:fo.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Pf({className:e}){return fo.jsx(wf,{fontSize:"small",className:e,children:fo.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:fo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:fo.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:fo.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[fo.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),fo.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Mf(e={}){return fo.jsx(wf,{...e,children:fo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:fo.jsx("rect",{stroke:cf.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Lf=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:cf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:cf.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:fo.jsx(Sf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${cf.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`,borderRadius:mf,backgroundColor:cf.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${cf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:cf.WHITE,color:cf.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:mf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:cf.GREYSCALE_0_15,backgroundColor:cf.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${cf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:cf.GREEN_PALE},"&:active":{backgroundColor:cf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:cf.BLUE_PALE},"&:active":{backgroundColor:cf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:mf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:cf.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:cf.GREYSCALE_0_42,backgroundColor:cf.GREYSCALE_100_60,"&:active":{backgroundColor:cf.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${cf.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:cf.PURPLE,"&.Mui-focusVisible":{borderColor:cf.PURPLE,boxShadow:`0 0 0 3px ${ta(cf.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:cf.GREEN,"&.Mui-focusVisible":{borderColor:cf.GREEN,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:cf.BLUE,"&.Mui-focusVisible":{borderColor:cf.BLUE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:cf.ORANGE,"&.Mui-focusVisible":{borderColor:cf.ORANGE,boxShadow:`0 0 0 3px ${ta(cf.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:cf.RED,"&.Mui-focusVisible":{borderColor:cf.RED,boxShadow:`0 0 0 3px ${ta(cf.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:cf.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:cf.PURPLE_PALE},"&:active":{backgroundColor:cf.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:cf.PURPLE_PALE,boxShadow:`0 0 0 3px ${ta(cf.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:cf.GREEN_PALE},"&:active":{backgroundColor:cf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:cf.BLUE_PALE},"&:active":{backgroundColor:cf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:cf.ORANGE_PALE},"&:active":{backgroundColor:cf.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:cf.ORANGE_PALE,boxShadow:`0 0 0 3px ${ta(cf.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:cf.RED_PALE},"&:active":{backgroundColor:cf.RED_DARK},"&.Mui-focusVisible":{borderColor:cf.RED_PALE,boxShadow:`0 0 0 3px ${ta(cf.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:cf.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:cf.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:mf,boxShadow:`inset 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:fo.jsx(If,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:df,borderRadius:mf,color:cf.TEXT_PRIMARY,backgroundColor:cf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:cf.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:cf.GREYSCALE_0_05,color:cf.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:cf.GREEN,borderColor:cf.GREEN},"&.MuiChip-outlinedInfo":{color:cf.BLUE,borderColor:cf.BLUE},"&.MuiChip-outlinedWarning":{color:cf.ORANGE,borderColor:cf.ORANGE},"&.MuiChip-outlinedError":{color:cf.RED,borderColor:cf.RED}},outlined:{border:`solid 1px ${cf.GREYSCALE_0_15}`,backgroundColor:cf.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:mf,boxShadow:"none",backgroundColor:cf.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:cf.GREEN,borderColor:cf.GREEN},outlinedSecondary:{color:cf.BLUE,borderColor:cf.BLUE},label:{fontFamily:xf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:fo.jsx(If,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:fo.jsx(Sf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:mf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:mf,fontSize:pf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:cf.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${cf.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:cf.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:cf.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:cf.GREYSCALE_0_05}}},popupIndicator:{borderRadius:mf,border:`solid 1px ${cf.GREYSCALE_0_15}`,color:cf.GREYSCALE_0_60,marginRight:0,width:hf,height:hf},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${cf.GREYSCALE_0_15}`},clearIndicator:{borderRadius:mf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:cf.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:pf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:df,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:cf.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:cf.GREYSCALE_25,fontSize:df,fontFamily:xf.FONT_FAMILY,fontWeight:yf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:cf.TEXT_PRIMARY},"&.Mui-error":{color:cf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:cf.TEXT_SECONDARY,content:"'(optional)'",fontWeight:vf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:cf.TEXT_SECONDARY,content:"'(required)'",fontWeight:vf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:pf,lineHeight:"16px",backgroundColor:cf.WHITE,borderRadius:mf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.GREYSCALE_0_05}`,borderColor:cf.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${cf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${cf.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.RED}`,boxShadow:`0px 0px 0px 1px ${cf.RED}, inset 0 2px 0 0 ${cf.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.GREYSCALE_0_10}`,borderColor:cf.GREYSCALE_0_10,backgroundColor:cf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:cf.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:cf.GREYSCALE_0_15,borderRadius:mf,boxShadow:`inset 0 2px 0 0 ${cf.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>fo.jsx(Sf,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:cf.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:cf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:cf.GREYSCALE_0_03},"&:active":{backgroundColor:cf.GREYSCALE_0_10},"&:focus":{backgroundColor:cf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${cf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:cf.GREYSCALE_0_30,"&:hover":{backgroundColor:cf.GREYSCALE_0_0,borderColor:cf.GREYSCALE_0_15},"& ~svg":{color:cf.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${cf.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:mf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:cf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:pf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:df,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:df,fontWeight:yf,color:cf.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:yf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${cf.GREYSCALE_0_15}, 0px 0px 0px 1px ${cf.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:fo.jsx(Rf,{}),checkedIcon:fo.jsx(Ef,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:cf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:cf.GREYSCALE_0_20}},"&.Mui-disabled":{fill:cf.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:fo.jsx(Mf,{}),checkedIcon:fo.jsx(Cf,{}),indeterminateIcon:fo.jsx(Df,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:mf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:cf.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:cf.GREYSCALE_0_55,color:cf.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:cf.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:cf.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:cf.GREYSCALE_0_55,"&:hover":{color:cf.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:cf.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:cf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:pf,color:cf.TEXT_PRIMARY,lineHeight:"16px",fontWeight:yf},secondary:{fontSize:df,color:cf.GREYSCALE_45,fontWeight:vf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:pf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:pf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:cf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:df,borderBottom:`solid 1px ${cf.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:pf,color:cf.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:cf.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:cf.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:cf.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:cf.RED}}},"&.Mui-focusVisible":{backgroundColor:cf.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:cf.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:cf.GREEN,height:"24px","&.Mui-disabled":{color:cf.GREYSCALE_0_15}},rail:{backgroundColor:cf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${cf.GREYSCALE_0_05}`,borderRadius:mf,boxShadow:`inset 0px 0px 0px 1px ${cf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${cf.GREYSCALE_0_05}`,borderRadius:mf},thumb:{height:"16px",width:"16px",borderRadius:mf,backgroundColor:cf.WHITE,boxShadow:`0px 1px 2px 0px ${cf.GREYSCALE_0_15}, 0px 0px 0px 1px ${cf.GREYSCALE_0_05}`,"&:hover":{borderRadius:mf,boxShadow:`0 2px 4px 0 ${cf.GREYSCALE_0_30}, 0 0 0 1px ${cf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${cf.GREYSCALE_0_15}, 0 0 0 1px ${cf.GREYSCALE_0_06}, 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${cf.GREYSCALE_0_15}, 0 0 0 1px ${cf.GREYSCALE_0_06}, 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:cf.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:cf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:cf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:cf.GREYSCALE_0_15},markLabel:{color:cf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:cf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:cf.WHITE,color:cf.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:cf.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:cf.GREYSCALE_0_15,borderRadius:mf},thumb:{height:"16px",width:"16px",borderRadius:mf,backgroundColor:cf.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:pf,fontWeight:yf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${cf.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`,backgroundColor:cf.GREYSCALE_0_03,borderRadius:mf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:cf.GREYSCALE_25,"&.Mui-selected":{color:cf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:pf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:mf,"&:hover":{backgroundColor:cf.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${cf.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${cf.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:mf,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:cf.GREYSCALE_0_05},"&:hover":{backgroundColor:cf.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${cf.GREYSCALE_85}`,borderRight:`1px solid ${cf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:yf,backgroundColor:cf.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:cf.GREYSCALE_98,borderBottom:`1px solid ${cf.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${cf.GREYSCALE_85}`,borderTop:`1px solid ${cf.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:cf.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:cf.GREYSCALE_0_05,"&:hover":{backgroundColor:cf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:cf.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>fo.jsx(Pf,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${cf.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:pf,borderRadius:mf,padding:"7px 16px",border:`1px solid ${cf.GREYSCALE_0_15}`,backgroundColor:cf.GREYSCALE_100_60,color:cf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:cf.GREYSCALE_0_10,border:`1px solid ${cf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:cf.GREYSCALE_0_03,border:`1px solid ${cf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:cf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${cf.MISC_FOCUS_BORDER}`,border:`1px solid ${cf.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:cf.GREYSCALE_25,backgroundColor:cf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:cf.GREYSCALE_0_10,border:`1px solid ${cf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:df,height:24,width:24,padding:7},sizeLarge:{fontSize:ff,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:pf,borderRadius:mf}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:cf.GREYSCALE_20},tooltip:{backgroundColor:cf.GREYSCALE_20,fontSize:df,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Af=e=>({mode:"light",primary:{ultraLight:cf.GREEN_ULTRA_LIGHT,light:cf.GREEN_PALE,main:cf.GREEN,dark:cf.GREEN_DARK,extraDark:cf.GREEN_EXTRA_DARK,contrastText:cf.WHITE},secondary:{ultraLight:cf.BLUE_ULTRA_LIGHT,light:cf.BLUE_PALE,main:cf.BLUE,dark:cf.BLUE_DARK,extraDark:cf.BLUE_EXTRA_DARK,contrastText:cf.WHITE},error:{ultraLight:cf.RED_ULTRA_LIGHT,light:cf.RED_PALE,main:cf.RED,dark:cf.RED_DARK,extraDark:cf.RED_EXTRA_DARK,contrastText:cf.WHITE},warning:{ultraLight:cf.ORANGE_ULTRA_LIGHT,light:cf.ORANGE_PALE,main:cf.ORANGE,dark:cf.ORANGE_DARK,extraDark:cf.ORANGE_EXTRA_DARK,contrastText:cf.WHITE},success:{ultraLight:cf.GREEN_ULTRA_LIGHT,light:cf.GREEN_PALE,main:cf.GREEN,dark:cf.GREEN_DARK,extraDark:cf.GREEN_EXTRA_DARK,contrastText:cf.WHITE},info:{ultraLight:cf.BLUE_ULTRA_LIGHT,light:cf.BLUE_PALE,main:cf.BLUE,dark:cf.BLUE_DARK,extraDark:cf.BLUE_EXTRA_DARK,contrastText:cf.WHITE},text:{primary:cf.TEXT_PRIMARY,secondary:cf.TEXT_SECONDARY,disabled:cf.GREYSCALE_0_30},action:{hover:cf.GREYSCALE_0_03,hoverOpacity:.03,selected:cf.GREYSCALE_0_05,selectedOpacity:.05,focus:cf.MISC_FOCUS_BORDER},amethyst:{ultraLight:cf.WHITE,main:cf.PURPLE,light:cf.PURPLE_PALE,dark:cf.PURPLE_DARK,extraDark:cf.GREYSCALE_0_0,contrastText:cf.WHITE},background:{paper:cf.WHITE,default:cf.GREYSCALE_95},divider:cf.GREYSCALE_0_15}),kf=e=>({components:Lf(),palette:Af(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:pf,fontWeightLight:gf,fontWeightRegular:vf,fontWeightMedium:yf,fontWeightBold:bf,htmlFontSize:pf,fontFamily:xf.FONT_FAMILY,button:{fontWeight:yf,fontSize:pf,textTransform:"none"},body1:{fontSize:ff,lineHeight:"24px"},body2:{fontSize:pf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:hf,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ff,fontWeight:yf,lineHeight:"16px"},h6:{fontSize:pf,fontWeight:yf,lineHeight:"16px"},caption:{color:cf.TEXT_SECONDARY},subtitle1:{fontSize:pf,color:cf.TEXT_SECONDARY},subtitle2:{fontSize:df,color:cf.TEXT_SECONDARY}},shape:{borderRadius:mf}}),Of={...uf};var qf={},Tf={exports:{}},jf={exports:{}};!function(e){function t(n){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(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(jf);var Nf=jf.exports;!function(e){var t=Nf.default;function n(r,i){if("function"==typeof WeakMap)var o=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,i,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:o){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?r(s,l,i):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Tf);var _f=Tf.exports,Ff={};function zf(e,t){return function(){return null}}function Wf(e){return e&&"object"===Ua(e)&&e.constructor===Object}function $f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?ke({},e):e;return Wf(e)&&Wf(t)&&Object.keys(t).forEach(function(i){"__proto__"!==i&&(Wf(t[i])&&i in e?r[i]=$f(e[i],t[i],n):r[i]=t[i])}),r}var Hf=(Nr.element,function(){return null});Hf.isRequired=(Nr.element.isRequired,function(){return null});var Vf=function(){return null};var Bf={exports:{}},Gf={},Uf=60103,Yf=60106,Kf=60107,Xf=60108,Jf=60114,Zf=60109,Qf=60110,eh=60112,th=60113,nh=60120,rh=60115,ih=60116,oh=60121,ah=60122,sh=60117,lh=60129,uh=60131;if("function"==typeof Symbol&&Symbol.for){var ch=Symbol.for;Uf=ch("react.element"),Yf=ch("react.portal"),Kf=ch("react.fragment"),Xf=ch("react.strict_mode"),Jf=ch("react.profiler"),Zf=ch("react.provider"),Qf=ch("react.context"),eh=ch("react.forward_ref"),th=ch("react.suspense"),nh=ch("react.suspense_list"),rh=ch("react.memo"),ih=ch("react.lazy"),oh=ch("react.block"),ah=ch("react.server.block"),sh=ch("react.fundamental"),lh=ch("react.debug_trace_mode"),uh=ch("react.legacy_hidden")}function dh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Uf:switch(e=e.type){case Kf:case Jf:case Xf:case th:case nh:return e;default:switch(e=e&&e.$$typeof){case Qf:case eh:case ih:case rh:case Zf:return e;default:return t}}case Yf:return t}}}var ph=Zf,fh=Uf,hh=eh,mh=Kf,gh=ih,vh=rh,yh=Yf,bh=Jf,xh=Xf,Sh=th;Gf.ContextConsumer=Qf,Gf.ContextProvider=ph,Gf.Element=fh,Gf.ForwardRef=hh,Gf.Fragment=mh,Gf.Lazy=gh,Gf.Memo=vh,Gf.Portal=yh,Gf.Profiler=bh,Gf.StrictMode=xh,Gf.Suspense=Sh,Gf.isAsyncMode=function(){return!1},Gf.isConcurrentMode=function(){return!1},Gf.isContextConsumer=function(e){return dh(e)===Qf},Gf.isContextProvider=function(e){return dh(e)===Zf},Gf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Uf},Gf.isForwardRef=function(e){return dh(e)===eh},Gf.isFragment=function(e){return dh(e)===Kf},Gf.isLazy=function(e){return dh(e)===ih},Gf.isMemo=function(e){return dh(e)===rh},Gf.isPortal=function(e){return dh(e)===Yf},Gf.isProfiler=function(e){return dh(e)===Jf},Gf.isStrictMode=function(e){return dh(e)===Xf},Gf.isSuspense=function(e){return dh(e)===th},Gf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Kf||e===Jf||e===lh||e===Xf||e===th||e===nh||e===uh||"object"==typeof e&&null!==e&&(e.$$typeof===ih||e.$$typeof===rh||e.$$typeof===Zf||e.$$typeof===Qf||e.$$typeof===eh||e.$$typeof===sh||e.$$typeof===oh||e[0]===ah)},Gf.typeOf=dh,Bf.exports=Gf;var wh=Bf.exports,Ch=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Eh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Ch);return t&&t[1]||""}(e)||t}function Ih(e,t,n){var r=Eh(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var Dh="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Rh=Nr.oneOfType([Nr.func,Nr.object]),Ph=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,i){return null},chainPropTypes:zf,deepmerge:$f,elementAcceptingRef:Hf,elementTypeAcceptingRef:Vf,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Eh(e,"Component");if("object"===Ua(e))switch(e.$$typeof){case wh.ForwardRef:return Ih(e,e.render,"ForwardRef");case wh.Memo:return Ih(e,e.type,"memo");default:return}}},ponyfillGlobal:Dh,refType:Rh}),Mh=Or(Ph);Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.hexToRgb=kh,Ff.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=qh(e),n=t.values;return"#".concat(n.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Ff.hslToRgb=Oh,Ff.decomposeColor=qh,Ff.recomposeColor=Th,Ff.getContrastRatio=function(e,t){var n=jh(e),r=jh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ff.getLuminance=jh,Ff.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return jh(e)>.5?_h(e,t):Fh(e,t)},Ff.fade=function(e,t){return Nh(e,t)},Ff.alpha=Nh,Ff.darken=_h,Ff.lighten=Fh;var Lh=Mh;function Ah(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function kh(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function Oh(e){var t=(e=qh(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Th({type:s,values:l})}function qh(e){if(e.type)return e;if("#"===e.charAt(0))return qh(kh(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,Lh.formatMuiErrorMessage)(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map(function(e){return parseFloat(e)})}}function Th(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function jh(e){var t="hsl"===(e=qh(e)).type?qh(Oh(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Nh(e,t){return e=qh(e),t=Ah(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Th(e)}function _h(e,t){if(e=qh(e),t=Ah(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Th(e)}function Fh(e,t){if(e=qh(e),t=Ah(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Th(e)}var zh,Wh,$h,Hh={},Vh={exports:{}},Bh={exports:{}},Gh={exports:{}};function Uh(){return zh||(zh=1,function(e){var t=Nf.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Gh)),Gh.exports}function Yh(){return Wh||(Wh=1,function(e){var t=Nf.default,n=Uh();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Bh)),Bh.exports}function Kh(){return $h||($h=1,function(e){var t=Yh();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Vh)),Vh.exports}var Xh,Jh={exports:{}};function Zh(){return Xh||(Xh=1,function(e){var t=Us();e.exports=function(e,n){if(null==e)return{};var r,i,o=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Jh)),Jh.exports}var Qh,em={};var tm,nm={};var rm,im={},om={};var am,sm={};var lm,um={};var cm,dm={};var pm,fm={};var hm,mm={};var gm,vm={};var ym,bm,xm={};function Sm(){if(bm)return im;bm=1;var e=Za;Object.defineProperty(im,"__esModule",{value:!0}),im.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,b=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,I=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,D=e.success,R=void 0===D?{light:d.default[300],main:d.default[500],dark:d.default[700]}:D,P=e.type,M=void 0===P?"light":P,L=e.contrastThreshold,A=void 0===L?3:L,k=e.tonalOffset,O=void 0===k?.2:k,q=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(e){return(0,p.getContrastRatio)(e,h.text.primary)>=A?h.text.primary:f.text.primary}var j=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",i,O),m(e,"dark",o,O),e.contrastText||(e.contrastText=T(e.main)),e},N={dark:h,light:f},_=(0,r.deepmerge)((0,t.default)({common:i.default,type:M,primary:j(v),secondary:j(b,"A400","A200","A700"),error:j(S),warning:j(C),info:j(I),success:j(R),grey:o.default,contrastThreshold:A,getContrastText:T,augmentColor:j,tonalOffset:O},N[M]),q);return _},im.dark=im.light=void 0;var t=e(Vs()),n=e(Zh()),r=Mh,i=e(function(){if(rm)return om;rm=1,Object.defineProperty(om,"__esModule",{value:!0}),om.default=void 0;var e={black:"#000",white:"#fff"};return om.default=e,om}()),o=e(function(){if(am)return sm;am=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return sm.default=e,sm}()),a=e(function(){if(lm)return um;lm=1,Object.defineProperty(um,"__esModule",{value:!0}),um.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return um.default=e,um}()),s=e(function(){if(cm)return dm;cm=1,Object.defineProperty(dm,"__esModule",{value:!0}),dm.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return dm.default=e,dm}()),l=e(function(){if(pm)return fm;pm=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return fm.default=e,fm}()),u=e(function(){if(hm)return mm;hm=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return mm.default=e,mm}()),c=e(function(){if(gm)return vm;gm=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return vm.default=e,vm}()),d=e(function(){if(ym)return xm;ym=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return xm.default=e,xm}()),p=Ff,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:i.default.white,default:o.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};im.light=f;var h={text:{primary:i.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:o.default[800],default:"#303030"},action:{active:i.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,i):"dark"===t&&(e.dark=(0,p.darken)(e.main,o)))}return im.dark=h,im}var wm,Cm={};var Em,Im={};var Dm,Rm={};var Pm={};function Mm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Lm(e,t){if(e){if("string"==typeof e)return Mm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mm(e,t):void 0}}function Am(e){return function(e){if(Array.isArray(e))return Mm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lm(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.")}()}function km(e,t){return t?$f(e,t,{clone:!1}):e}var Om={xs:0,sm:600,md:960,lg:1280,xl:1920},qm={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Om[e],"px)")}};function Tm(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||qm;return t.reduce(function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e},{})}if("object"===Ua(t)){var i=e.theme.breakpoints||qm;return Object.keys(t).reduce(function(e,r){return e[i.up(r)]=n(t[r]),e},{})}return n(t)}function jm(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function Nm(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,o=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=jm(e.theme,i)||{};return Tm(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=jm(a,e)||e,o&&(t=o(t))),!1===r?t:function(e,t,n){return(t=Ya(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)})};return a.propTypes={},a.filterProps=[t],a}function _m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?km(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function Fm(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var zm=Nm({prop:"border",themeKey:"borders",transform:Fm}),Wm=Nm({prop:"borderTop",themeKey:"borders",transform:Fm}),$m=Nm({prop:"borderRight",themeKey:"borders",transform:Fm}),Hm=Nm({prop:"borderBottom",themeKey:"borders",transform:Fm}),Vm=Nm({prop:"borderLeft",themeKey:"borders",transform:Fm}),Bm=Nm({prop:"borderColor",themeKey:"palette"}),Gm=Nm({prop:"borderRadius",themeKey:"shape"}),Um=_m(zm,Wm,$m,Hm,Vm,Bm,Gm);function Ym(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function Km(e){var t=function(t){var n=e(t);return t.css?ke({},km(n,e(ke({theme:t.theme},t.css))),Ym(t.css,[e.filterProps])):t.sx?ke({},km(n,e(ke({theme:t.theme},t.sx))),Ym(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Am(e.filterProps)),t}var Xm=_m(Nm({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Nm({prop:"display"}),Nm({prop:"overflow"}),Nm({prop:"textOverflow"}),Nm({prop:"visibility"}),Nm({prop:"whiteSpace"})),Jm=Nm({prop:"flexBasis"}),Zm=Nm({prop:"flexDirection"}),Qm=Nm({prop:"flexWrap"}),eg=Nm({prop:"justifyContent"}),tg=Nm({prop:"alignItems"}),ng=Nm({prop:"alignContent"}),rg=Nm({prop:"order"}),ig=Nm({prop:"flex"}),og=Nm({prop:"flexGrow"}),ag=Nm({prop:"flexShrink"}),sg=Nm({prop:"alignSelf"}),lg=Nm({prop:"justifyItems"}),ug=Nm({prop:"justifySelf"}),cg=_m(Jm,Zm,Qm,eg,tg,ng,rg,ig,og,ag,sg,lg,ug),dg=Nm({prop:"gridGap"}),pg=Nm({prop:"gridColumnGap"}),fg=Nm({prop:"gridRowGap"}),hg=Nm({prop:"gridColumn"}),mg=Nm({prop:"gridRow"}),gg=Nm({prop:"gridAutoFlow"}),vg=Nm({prop:"gridAutoColumns"}),yg=Nm({prop:"gridAutoRows"}),bg=Nm({prop:"gridTemplateColumns"}),xg=Nm({prop:"gridTemplateRows"}),Sg=Nm({prop:"gridTemplateAreas"}),wg=Nm({prop:"gridArea"}),Cg=_m(dg,pg,fg,hg,mg,gg,vg,yg,bg,xg,Sg,wg),Eg=Nm({prop:"color",themeKey:"palette"}),Ig=Nm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Dg=_m(Eg,Ig),Rg=Nm({prop:"position"}),Pg=Nm({prop:"zIndex",themeKey:"zIndex"}),Mg=Nm({prop:"top"}),Lg=Nm({prop:"right"}),Ag=Nm({prop:"bottom"}),kg=Nm({prop:"left"}),Og=_m(Rg,Pg,Mg,Lg,Ag,kg),qg=Nm({prop:"boxShadow",themeKey:"shadows"});function Tg(e){return e<=1?"".concat(100*e,"%"):e}var jg=Nm({prop:"width",transform:Tg}),Ng=Nm({prop:"maxWidth",transform:Tg}),_g=Nm({prop:"minWidth",transform:Tg}),Fg=Nm({prop:"height",transform:Tg}),zg=Nm({prop:"maxHeight",transform:Tg}),Wg=Nm({prop:"minHeight",transform:Tg}),$g=Nm({prop:"size",cssProperty:"width",transform:Tg}),Hg=Nm({prop:"size",cssProperty:"height",transform:Tg}),Vg=Nm({prop:"boxSizing"}),Bg=_m(jg,Ng,_g,Fg,zg,Wg,Vg);function Gg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||Lm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ug={m:"margin",p:"padding"},Yg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Kg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Xg=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!Kg[e])return[e];e=Kg[e]}var t=Gg(e.split(""),2),n=t[0],r=t[1],i=Ug[n],o=Yg[r]||"";return Array.isArray(o)?o.map(function(e){return i+e}):[i+o]}),Jg=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Zg(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Qg(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function ev(e){var t=Zg(e.theme);return Object.keys(e).map(function(n){if(-1===Jg.indexOf(n))return null;var r=Qg(Xg(n),t),i=e[n];return Tm(e,i,r)}).reduce(km,{})}ev.propTypes={},ev.filterProps=Jg;var tv,nv=Nm({prop:"fontFamily",themeKey:"typography"}),rv=Nm({prop:"fontSize",themeKey:"typography"}),iv=Nm({prop:"fontStyle",themeKey:"typography"}),ov=Nm({prop:"fontWeight",themeKey:"typography"}),av=Nm({prop:"letterSpacing"}),sv=Nm({prop:"lineHeight"}),lv=Nm({prop:"textAlign"}),uv=_m(nv,rv,iv,ov,av,sv,lv),cv=Object.freeze({__proto__:null,alignContent:ng,alignItems:tg,alignSelf:sg,bgcolor:Ig,border:zm,borderBottom:Hm,borderColor:Bm,borderLeft:Vm,borderRadius:Gm,borderRight:$m,borderTop:Wm,borders:Um,bottom:Ag,boxSizing:Vg,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||qm,i=r.keys.reduce(function(n,i){return t[i]&&((n=n||{})[r.up(i)]=e(ke({theme:t.theme},t[i]))),n},null);return km(n,i)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Am(e.filterProps)),t},color:Eg,compose:_m,createUnarySpacing:Zg,css:function(e){return Km(e)},display:Xm,flex:ig,flexBasis:Jm,flexDirection:Zm,flexGrow:og,flexShrink:ag,flexWrap:Qm,flexbox:cg,fontFamily:nv,fontSize:rv,fontStyle:iv,fontWeight:ov,grid:Cg,gridArea:wg,gridAutoColumns:vg,gridAutoFlow:gg,gridAutoRows:yg,gridColumn:hg,gridColumnGap:pg,gridGap:dg,gridRow:mg,gridRowGap:fg,gridTemplateAreas:Sg,gridTemplateColumns:bg,gridTemplateRows:xg,height:Fg,justifyContent:eg,justifyItems:lg,justifySelf:ug,left:kg,letterSpacing:av,lineHeight:sv,maxHeight:zg,maxWidth:Ng,minHeight:Wg,minWidth:_g,order:rg,palette:Dg,position:Rg,positions:Og,right:Lg,shadows:qg,sizeHeight:Hg,sizeWidth:$g,sizing:Bg,spacing:ev,style:Nm,styleFunctionSx:Km,textAlign:lv,top:Mg,typography:uv,width:jg,zIndex:Pg}),dv=Or(cv);var pv,fv={};function hv(){if(pv)return fv;pv=1;var e=Za;Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=fv.duration=fv.easing=void 0;var t=e(Zh()),n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};fv.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i(e){return"".concat(Math.round(e),"ms")}fv.duration=r;var o={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.duration,s=void 0===a?r.standard:a,l=o.easing,u=void 0===l?n.easeInOut:l,c=o.delay,d=void 0===c?0:c;return(0,t.default)(o,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:i(s)," ").concat(u," ").concat("string"==typeof d?d:i(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return fv.default=o,fv}var mv,gv,vv={};function yv(){if(gv)return Hh;gv=1;var e=Za;Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.createMuiTheme=function(){return p.apply(void 0,arguments)},Hh.default=void 0,e(Kh());var t=e(Zh()),n=Mh,r=e(function(){if(Qh)return em;Qh=1;var e=Za;Object.defineProperty(em,"__esModule",{value:!0}),em.default=function(e){var i=e.values,o=void 0===i?{xs:0,sm:600,md:960,lg:1280,xl:1920}:i,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof o[e]?o[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof o[e]?o[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof o[r[n+1]]?o[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:o,up:d,down:function(e){var t=r.indexOf(e)+1,n=o[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return o[e]}},c)},em.keys=void 0;var t=e(Vs()),n=e(Zh()),r=["xs","sm","md","lg","xl"];return em.keys=r,em}()),i=e(function(){if(tm)return nm;tm=1;var e=Za;Object.defineProperty(nm,"__esModule",{value:!0}),nm.default=function(e,r,i){var o;return(0,n.default)({gutters:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},i,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},i[e.up("sm")])))},toolbar:(o={minHeight:56},(0,t.default)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(o,e.up("sm"),{minHeight:64}),o)},i)};var t=e(Kh()),n=e(Vs());return nm}()),o=e(Sm()),a=e(function(){if(wm)return Cm;wm=1;var e=Za;Object.defineProperty(Cm,"__esModule",{value:!0}),Cm.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,y=u.fontWeightMedium,b=void 0===y?500:y,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,I=u.pxToRem,D=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),R=f/14,P=I||function(e){return"".concat(e/C*R,"rem")},M=function(e,n,r,o,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:P(n),lineHeight:r},d===s?{letterSpacing:"".concat(i(o/n),"em")}:{},a,E)},L={h1:M(m,96,1.167,-1.5),h2:M(m,60,1.2,-.5),h3:M(v,48,1.167,0),h4:M(v,34,1.235,.25),h5:M(v,24,1.334,0),h6:M(b,20,1.6,.15),subtitle1:M(v,16,1.75,.15),subtitle2:M(b,14,1.57,.1),body1:M(v,16,1.5,.15),body2:M(v,14,1.43,.15),button:M(b,14,1.75,.4,a),caption:M(v,12,1.66,.4),overline:M(v,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:P,round:o,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:S},L),D,{clone:!1})};var t=e(Vs()),n=e(Zh()),r=Mh;function i(e){return Math.round(1e5*e)/1e5}function o(e){return i(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Cm}()),s=e(function(){if(Em)return Im;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}Em=1,Object.defineProperty(Im,"__esModule",{value:!0}),Im.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return Im.default=t,Im}()),l=e(function(){if(Dm)return Rm;Dm=1,Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.default=void 0;var e={borderRadius:4};return Rm.default=e,Rm}()),u=e(function(){if(tv)return Pm;tv=1,Object.defineProperty(Pm,"__esModule",{value:!0}),Pm.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=dv;return Pm}()),c=e(hv()),d=e(function(){if(mv)return vv;mv=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return vv.default=e,vv}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,y=e.spacing,b=e.typography,x=void 0===b?{}:b,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,o.default)(v),C=(0,r.default)(f),E=(0,u.default)(y),I=(0,n.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,i.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),D=arguments.length,R=new Array(D>1?D-1:0),P=1;P<D;P++)R[P-1]=arguments[P];return I=R.reduce(function(e,t){return(0,n.deepmerge)(e,t)},I)}var f=p;return Hh.default=f,Hh}var bv,xv={};var Sv={},wv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Cv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Ev(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Cv.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[wv]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}function Iv(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var Dv="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},Rv="object"===("undefined"==typeof window?"undefined":Dv(window))&&"object"===("undefined"==typeof document?"undefined":Dv(document))&&9===document.nodeType;function Pv(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ya(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Mv={}.constructor;function Lv(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Lv);if(e.constructor!==Mv)return e;var t={};for(var n in e)t[n]=Lv(e[n]);return t}function Av(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Lv(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var kv=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ov=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=kv(e[n]," ");else t=kv(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function qv(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Tv(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function jv(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=qv(n),l=s.linebreak,u=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=Tv(p+":"+u+Ov(f)+";",o))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Tv(h+":"+u+Ov(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=Tv(g+":"+u+Ov(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Tv(""+e+u+"{"+r,--o)+Tv("}",o)):r}var Nv=/([[\].#*$><+~=|^:(),"'`\s])/g,_v="undefined"!=typeof CSS&&CSS.escape,Fv=function(e){return _v?_v(e):e.replace(Nv,"\\$1")},zv=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Wv=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l($l($l(i)),s),i.selectorText="."+Fv(i.id)),i}kl(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ov(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return jv(this.selectorText,this.style,n)},Pv(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(zv),$v={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Wv(e,t,n)}},Hv={indent:1,children:!0},Vv=/@([\w-]+)/,Bv=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Vv);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new my(ke({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Hv);var t=qv(e).linebreak;if(null==e.indent&&(e.indent=Hv.indent),null==e.children&&(e.children=Hv.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Gv=/@container|@media|@supports\s+/,Uv={onCreateRule:function(e,t,n){return Gv.test(e)?new Bv(e,t,n):null}},Yv={indent:1,children:!0},Kv=/@keyframes\s+([\w-]+)/,Xv=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Kv);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:Fv(a(this,o)),this.rules=new my(ke({},n,{parent:this})),t)this.rules.add(s,t[s],ke({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Yv);var t=qv(e).linebreak;if(null==e.indent&&(e.indent=Yv.indent),null==e.children&&(e.children=Yv.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Jv=/@keyframes\s+/,Zv=/\$([\w-]+)/g,Qv=function(e,t){return"string"==typeof e?e.replace(Zv,function(e,n){return n in t?t[n]:e}):e},ey=function(e,t,n){var r=e[t],i=Qv(r,n);i!==r&&(e[t]=i)},ty={onCreateRule:function(e,t,n){return"string"==typeof e&&Jv.test(e)?new Xv(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&ey(e,"animation-name",n.keyframes),"animation"in e&&ey(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Qv(e,r.keyframes);default:return e}}},ny=function(e){function t(){return e.apply(this,arguments)||this}return kl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return jv(this.key,this.style,n)},t}(zv),ry={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ny(e,t,n):null}},iy=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=qv(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=jv(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return jv(this.at,this.style,e)},e}(),oy=/@font-face/,ay={onCreateRule:function(e,t,n){return oy.test(e)?new iy(e,t,n):null}},sy=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return jv(this.key,this.style,e)},e}(),ly={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new sy(e,t,n):null}},uy=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),cy={"@charset":!0,"@import":!0,"@namespace":!0},dy={onCreateRule:function(e,t,n){return e in cy?new uy(e,t,n):null}},py=[$v,Uv,ty,ry,ay,ly,dy],fy={process:!0},hy={force:!0,process:!0},my=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=ke({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Fv(this.classes[d]));var p=Av(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=ke({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Wv?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Xv&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Wv?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Xv&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=fy);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,hy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,hy)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=qv(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),gy=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=ke({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new my(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),vy=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),yy=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Oe(t,["attached"]),i=qv(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},Pv(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),by=new yy,xy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Sy="2f1acc6c3a606b082e5eef5e54414ffb";null==xy[Sy]&&(xy[Sy]=0);var wy=xy[Sy]++,Cy=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+wy+i+t:o+n.key+"-"+wy+(i?"-"+i:"")+"-"+t}},Ey=function(e){var t;return function(){return t||(t=e()),t}},Iy=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Dy=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ov(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Ry=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Py=function(e,t){return e.selectorText=t,e.selectorText===t},My=Ey(function(){return document.querySelector("head")});function Ly(e){var t=by.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=My(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var Ay=Ey(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),ky=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Oy=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},qy=function(){function e(e){this.getPropertyValue=Iy,this.setProperty=Dy,this.removeProperty=Ry,this.setSelector=Py,this.hasInsertedRules=!1,this.cssRules=[],e&&by.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Ay();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Ly(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else My().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=Oy(n,t);if(!1===(i=ky(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=Oy(n,t),l=ky(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof gy&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ty=0,jy=function(){function e(e){this.id=Ty++,this.version="10.10.0",this.plugins=new vy,this.options={id:{minify:!1},createGenerateId:Cy,Renderer:Rv?qy:null,plugins:[]},this.generateId=Cy({minify:!1});for(var t=0;t<py.length;t++)this.plugins.use(py[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=ke({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===by.index?0:by.index+1);var r=new gy(e,ke({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),by.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=ke({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=Av(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Ny=function(e){return new jy(e)},_y="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Fy(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Fy(r);o&&(t||(t={}),t[n]=o)}}return t}
|
|
89
89
|
/**
|
|
90
90
|
* A better abstraction over CSS.
|
|
91
91
|
*
|
|
92
92
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
93
93
|
* @website https://github.com/cssinjs/jss
|
|
94
94
|
* @license MIT
|
|
95
|
-
*/My();var ky=Date.now(),Oy="fnValues"+ky,qy="fnStyle"+ ++ky,Ty="@global",Ny="@global ",_y=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ty,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new sy(ke({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),jy=function(){function e(e,t,r){this.type="global",this.at=Ty,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,ke({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Fy=/\s*,\s*/g;function zy(e,t){for(var r=e.split(Fy),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}function Wy(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ty)return new _y(e,t,r);if("@"===e[0]&&e.substr(0,8)===Ny)return new jy(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,i=n?n[Ty]:null;if(i){for(var o in i)t.addRule(o,i[o],ke({},r,{selector:zy(o,e.selector)}));delete n[Ty]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var i in n)if("@"===i[0]&&i.substr(0,7)===Ty){var o=zy(i.substr(7),e.selector);t.addRule(o,n[i],ke({},r,{selector:o})),delete n[i]}}(e,t))}}}var $y=/\s*,\s*/g,Hy=/&/g,Vy=/\$([\w-]+)/g;function By(){function e(e,t){return function(r,n){var i=e.getRule(n)||t&&t.getRule(n);return i?i.selector:n}}function t(e,t){for(var r=t.split($y),n=e.split($y),i="",o=0;o<r.length;o++)for(var a=r[o],s=0;s<n.length;s++){var l=n[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Hy,a):a+" "+l}return i}function r(e,t,r){if(r)return ke({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=ke({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var a,s,l=i,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,o)),f=f.replace(Vy,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],ke({},a,{selector:f})):u.addRule(h,n[c],ke({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Gy=/[A-Z]/g,Uy=/^ms-/,Yy={};function Ky(e){return"-"+e.toLowerCase()}function Xy(e){if(Yy.hasOwnProperty(e))return Yy[e];var t=e.replace(Gy,Ky);return Yy[e]=Uy.test(t)?"-"+t:t}function Jy(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Xy(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Jy):t.fallbacks=Jy(e.fallbacks)),t}var Zy=Ly&&CSS?CSS.px:"px",Qy=Ly&&CSS?CSS.ms:"ms",eb=Ly&&CSS?CSS.percent:"%";function tb(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var rb=tb({"animation-delay":Qy,"animation-duration":Qy,"background-position":Zy,"background-position-x":Zy,"background-position-y":Zy,"background-size":Zy,border:Zy,"border-bottom":Zy,"border-bottom-left-radius":Zy,"border-bottom-right-radius":Zy,"border-bottom-width":Zy,"border-left":Zy,"border-left-width":Zy,"border-radius":Zy,"border-right":Zy,"border-right-width":Zy,"border-top":Zy,"border-top-left-radius":Zy,"border-top-right-radius":Zy,"border-top-width":Zy,"border-width":Zy,"border-block":Zy,"border-block-end":Zy,"border-block-end-width":Zy,"border-block-start":Zy,"border-block-start-width":Zy,"border-block-width":Zy,"border-inline":Zy,"border-inline-end":Zy,"border-inline-end-width":Zy,"border-inline-start":Zy,"border-inline-start-width":Zy,"border-inline-width":Zy,"border-start-start-radius":Zy,"border-start-end-radius":Zy,"border-end-start-radius":Zy,"border-end-end-radius":Zy,margin:Zy,"margin-bottom":Zy,"margin-left":Zy,"margin-right":Zy,"margin-top":Zy,"margin-block":Zy,"margin-block-end":Zy,"margin-block-start":Zy,"margin-inline":Zy,"margin-inline-end":Zy,"margin-inline-start":Zy,padding:Zy,"padding-bottom":Zy,"padding-left":Zy,"padding-right":Zy,"padding-top":Zy,"padding-block":Zy,"padding-block-end":Zy,"padding-block-start":Zy,"padding-inline":Zy,"padding-inline-end":Zy,"padding-inline-start":Zy,"mask-position-x":Zy,"mask-position-y":Zy,"mask-size":Zy,height:Zy,width:Zy,"min-height":Zy,"max-height":Zy,"min-width":Zy,"max-width":Zy,bottom:Zy,left:Zy,top:Zy,right:Zy,inset:Zy,"inset-block":Zy,"inset-block-end":Zy,"inset-block-start":Zy,"inset-inline":Zy,"inset-inline-end":Zy,"inset-inline-start":Zy,"box-shadow":Zy,"text-shadow":Zy,"column-gap":Zy,"column-rule":Zy,"column-rule-width":Zy,"column-width":Zy,"font-size":Zy,"font-size-delta":Zy,"letter-spacing":Zy,"text-decoration-thickness":Zy,"text-indent":Zy,"text-stroke":Zy,"text-stroke-width":Zy,"word-spacing":Zy,motion:Zy,"motion-offset":Zy,outline:Zy,"outline-offset":Zy,"outline-width":Zy,perspective:Zy,"perspective-origin-x":eb,"perspective-origin-y":eb,"transform-origin":eb,"transform-origin-x":eb,"transform-origin-y":eb,"transform-origin-z":eb,"transition-delay":Qy,"transition-duration":Qy,"vertical-align":Zy,"flex-basis":Zy,"shape-margin":Zy,size:Zy,gap:Zy,grid:Zy,"grid-gap":Zy,"row-gap":Zy,"grid-row-gap":Zy,"grid-column-gap":Zy,"grid-template-rows":Zy,"grid-template-columns":Zy,"grid-auto-rows":Zy,"grid-auto-columns":Zy,"box-shadow-x":Zy,"box-shadow-y":Zy,"box-shadow-blur":Zy,"box-shadow-spread":Zy,"font-line-height":Zy,"text-shadow-x":Zy,"text-shadow-y":Zy,"text-shadow-blur":Zy});function nb(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=nb(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=nb(i,t[i],r);else for(var o in t)t[o]=nb(e+"-"+o,t[o],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||rb[e];return!a||0===t&&a===Zy?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ib(e){void 0===e&&(e={});var t=tb(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=nb(n,e[n],t);return e},onChangeValue:function(e,r){return nb(r,e,t)}}}var ob="",ab="",sb="",lb="",ub=bv&&"ontouchstart"in document.documentElement;if(bv){var cb={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},db=document.createElement("p").style;for(var pb in cb)if(pb+"Transform"in db){ob=pb,ab=cb[pb];break}"Webkit"===ob&&"msHyphens"in db&&(ob="ms",ab=cb.ms,lb="edge"),"Webkit"===ob&&"-apple-trailing-word"in db&&(sb="apple")}var fb=ob,hb=ab,mb=sb,gb=lb,vb=ub;var yb={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===fb?"-webkit-"+e:hb+e)}},bb={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===fb?hb+"print-"+e:e)}},xb=/[-\s]+(.)?/g;function Sb(e,t){return t?t.toUpperCase():""}function wb(e){return e.replace(xb,Sb)}function Cb(e){return wb("-"+e)}var Eb,Ib={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===fb){var r="mask-image";if(wb(r)in t)return e;if(fb+Cb(r)in t)return hb+e}return e}},Db={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==mb||vb?e:hb+e)}},Pb={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:hb+e)}},Rb={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:hb+e)}},Mb={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===fb||"ms"===fb&&"edge"!==gb?hb+e:e)}},Lb={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===fb||"ms"===fb||"apple"===mb?hb+e:e)}},Ab={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===fb?"WebkitColumn"+Cb(e)in t&&hb+"column-"+e:"Moz"===fb&&("page"+Cb(e)in t&&"page-"+e))}},kb={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===fb)return e;var r=e.replace("-inline","");return fb+Cb(r)in t&&hb+r}},Ob={supportedProperty:function(e,t){return wb(e)in t&&e}},qb={supportedProperty:function(e,t){var r=Cb(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:fb+r in t?hb+e:"Webkit"!==fb&&"Webkit"+r in t&&"-webkit-"+e}},Tb={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===fb?""+hb+e:e)}},Nb={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===fb?hb+"scroll-chaining":e)}},_b={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},jb={supportedProperty:function(e,t){var r=_b[e];return!!r&&(fb+Cb(r)in t&&hb+r)}},Fb={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},zb=Object.keys(Fb),Wb=function(e){return hb+e},$b={supportedProperty:function(e,t,r){var n=r.multiple;if(zb.indexOf(e)>-1){var i=Fb[e];if(!Array.isArray(i))return fb+Cb(i)in t&&hb+i;if(!n)return!1;for(var o=0;o<i.length;o++)if(!(fb+Cb(i[0])in t))return!1;return i.map(Wb)}return!1}},Hb=[yb,bb,Ib,Db,Pb,Rb,Mb,Lb,Ab,kb,Ob,qb,Tb,Nb,jb,$b],Vb=Hb.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Bb=Hb.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Cm(t.noPrefill)),e},[]),Gb={};if(bv){Eb=document.createElement("p");var Ub=window.getComputedStyle(document.documentElement,"");for(var Yb in Ub)isNaN(Yb)||(Gb[Ub[Yb]]=Ub[Yb]);Bb.forEach(function(e){return delete Gb[e]})}function Kb(e,t){if(void 0===t&&(t={}),!Eb)return e;if(null!=Gb[e])return Gb[e];"transition"!==e&&"transform"!==e||(t[e]=e in Eb.style);for(var r=0;r<Vb.length&&(Gb[e]=Vb[r](e,Eb.style,t),!Gb[e]);r++);try{Eb.style[e]=""}catch(e){return!1}return Gb[e]}var Xb,Jb={},Zb={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Qb=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ex(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Kb(t):", "+Kb(r);return n||(t||r)}function tx(e,t){var r=t;if(!Xb||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Jb[n])return Jb[n];try{Xb.style[e]=r}catch(e){return Jb[n]=!1,!1}if(Zb[e])r=r.replace(Qb,ex);else if(""===Xb.style[e]&&("-ms-flex"===(r=hb+r)&&(Xb.style[e]="-ms-flexbox"),Xb.style[e]=r,""===Xb.style[e]))return Jb[n]=!1,!1;return Xb.style[e]="",Jb[n]=r,Jb[n]}function rx(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var i=!1,o=Kb(r);o&&o!==r&&(i=!0);var a=!1,s=tx(o,Iv(n));s&&s!==n&&(a=!0),(i||a)&&(i&&delete t[r],t[o||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===fb?e:"@"+hb+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return tx(t,Iv(e))||e}}}function nx(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)n[i[o]]=t[i[o]];return n}}}function ix(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=Cv(e,{},r);return n[qy]=t,n},onProcessStyle:function(e,t){if(Oy in t||qy in t)return e;var r={};for(var n in e){var i=e[n];"function"==typeof i&&(delete e[n],r[n]=i)}return t[Oy]=r,e},onUpdate:function(e,t,r,n){var i=t,o=i[qy];o&&(i.style=o(e)||{});var a=i[Oy];if(a)for(var s in a)i.prop(s,a[s](e),n)}},Wy(),By(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Jy(e[t]);return e}return Jy(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Xy(t);return t===n?e:(r.prop(n,e),null)}},ib(),"undefined"==typeof window?null:rx(),nx()]}}function ox(e,t){if(null==e)return{};var r,n,i=Oe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ax(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=ke({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}bv&&(Xb=document.createElement("p"));var sx=function(e,t,r,n){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(r,n)},lx=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},ux=function(e,t,r){e.get(t).delete(r)},cx=r.createContext(null);function dx(){return r.useContext(cx)}var px,fx=My(ix()),hx=gv(),mx=new Map,gx={disableGeneration:!1,generateClassName:hx,jss:fx,sheetsCache:null,sheetsManager:mx,sheetsRegistry:null},vx=r.createContext(gx);function yx(e){var t=e.children,n=e.injectFirst,i=void 0!==n&&n,o=e.disableGeneration,a=void 0!==o&&o,s=ox(e,["children","injectFirst","disableGeneration"]),l=ke({},r.useContext(vx),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&i&&"undefined"!=typeof window){if(!px){var u=document.head;px=document.createComment("mui-inject-first"),u.insertBefore(px,u.firstChild)}l.jss=My({plugins:ix().plugins,insertionPoint:px})}return r.createElement(vx.Provider,{value:l},t)}var bx=-1e9;var xx={};function Sx(e,t){var r=e.state,n=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=lx(i.sheetsManager,o,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},sx(i.sheetsManager,o,n,s));var l=ke({},o.options,i,{theme:n,flip:"boolean"==typeof i.flip?i.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=lx(i.sheetsCache,o,n));var d=o.create(n,a);c||((c=i.jss.createStyleSheet(d,ke({link:!1},l))).attach(),i.sheetsCache&&sx(i.sheetsCache,o,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Ay(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,ke({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=ax({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function wx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,o=t.Component,a=t.defaultTheme,s=void 0===a?xx:a,l=ox(t,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"==typeof e;return{create:function(r,n){var i;try{i=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return i;var o=r.overrides[n],a=ke({},i);return Object.keys(o).forEach(function(e){a[e]=qf(a[e],o[e])}),a},options:{}}}(e),c=n||i||"makeStyles";u.options={index:bx+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=dx()||s,i=ke({},r.useContext(vx),l),a=r.useRef(),c=r.useRef();!function(e,t){var n,i=r.useRef([]),o=r.useMemo(function(){return{}},t);i.current!==o&&(i.current=o,n=e()),r.useEffect(function(){return function(){n&&n()}},[o])}(function(){var r={name:n,state:{},stylesCreator:u,stylesOptions:i,theme:t};return Sx(r,e),c.current=!1,a.current=r,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,i=e.stylesCreator;if(!n.disableGeneration){var o=lx(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;0===o.refs&&(ux(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(r)}},[t,u]),r.useEffect(function(){c.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(a.current,e),c.current=!0});var d=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,i=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,i=!0),i&&(n.cacheClasses.value=ax({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(a.current,e.classes,o);return d}}var Cx=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return xv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new cy;var n=gv();return r.createElement(yx,ke({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return r.createElement("style",ke({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function Ex(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Ex(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ix(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Ex(e))&&(n&&(n+=" "),n+=t);return n}var Dx={exports:{}},Px={},Rx="function"==typeof Symbol&&Symbol.for,Mx=Rx?Symbol.for("react.element"):60103,Lx=Rx?Symbol.for("react.portal"):60106,Ax=Rx?Symbol.for("react.fragment"):60107,kx=Rx?Symbol.for("react.strict_mode"):60108,Ox=Rx?Symbol.for("react.profiler"):60114,qx=Rx?Symbol.for("react.provider"):60109,Tx=Rx?Symbol.for("react.context"):60110,Nx=Rx?Symbol.for("react.async_mode"):60111,_x=Rx?Symbol.for("react.concurrent_mode"):60111,jx=Rx?Symbol.for("react.forward_ref"):60112,Fx=Rx?Symbol.for("react.suspense"):60113,zx=Rx?Symbol.for("react.suspense_list"):60120,Wx=Rx?Symbol.for("react.memo"):60115,$x=Rx?Symbol.for("react.lazy"):60116,Hx=Rx?Symbol.for("react.block"):60121,Vx=Rx?Symbol.for("react.fundamental"):60117,Bx=Rx?Symbol.for("react.responder"):60118,Gx=Rx?Symbol.for("react.scope"):60119;function Ux(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Mx:switch(e=e.type){case Nx:case _x:case Ax:case Ox:case kx:case Fx:return e;default:switch(e=e&&e.$$typeof){case Tx:case jx:case $x:case Wx:case qx:return e;default:return t}}case Lx:return t}}}function Yx(e){return Ux(e)===_x}Px.AsyncMode=Nx,Px.ConcurrentMode=_x,Px.ContextConsumer=Tx,Px.ContextProvider=qx,Px.Element=Mx,Px.ForwardRef=jx,Px.Fragment=Ax,Px.Lazy=$x,Px.Memo=Wx,Px.Portal=Lx,Px.Profiler=Ox,Px.StrictMode=kx,Px.Suspense=Fx,Px.isAsyncMode=function(e){return Yx(e)||Ux(e)===Nx},Px.isConcurrentMode=Yx,Px.isContextConsumer=function(e){return Ux(e)===Tx},Px.isContextProvider=function(e){return Ux(e)===qx},Px.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Mx},Px.isForwardRef=function(e){return Ux(e)===jx},Px.isFragment=function(e){return Ux(e)===Ax},Px.isLazy=function(e){return Ux(e)===$x},Px.isMemo=function(e){return Ux(e)===Wx},Px.isPortal=function(e){return Ux(e)===Lx},Px.isProfiler=function(e){return Ux(e)===Ox},Px.isStrictMode=function(e){return Ux(e)===kx},Px.isSuspense=function(e){return Ux(e)===Fx},Px.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ax||e===_x||e===Ox||e===kx||e===Fx||e===zx||"object"==typeof e&&null!==e&&(e.$$typeof===$x||e.$$typeof===Wx||e.$$typeof===qx||e.$$typeof===Tx||e.$$typeof===jx||e.$$typeof===Vx||e.$$typeof===Bx||e.$$typeof===Gx||e.$$typeof===Hx)},Px.typeOf=Ux,Dx.exports=Px;var Kx=Dx.exports,Xx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Jx={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Zx={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qx={};function eS(e){return Kx.isMemo(e)?Zx:Qx[e.$$typeof]||Xx}Qx[Kx.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qx[Kx.Memo]=Zx;var tS=Object.defineProperty,rS=Object.getOwnPropertyNames,nS=Object.getOwnPropertySymbols,iS=Object.getOwnPropertyDescriptor,oS=Object.getPrototypeOf,aS=Object.prototype;var sS=function e(t,r,n){if("string"!=typeof r){if(aS){var i=oS(r);i&&i!==aS&&e(t,i,n)}var o=rS(r);nS&&(o=o.concat(nS(r)));for(var a=eS(t),s=eS(r),l=0;l<o.length;++l){var u=o[l];if(!(Jx[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=iS(r,u);try{tS(t,u,c)}catch(e){}}}}return t},lS=En(sS);function uS(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=r.forwardRef(function(n,i){var o=n.innerRef,a=ox(n,["innerRef"]),s=dx()||e;return r.createElement(t,ke({theme:s,ref:o||i},a))});return lS(n,t),n}}var cS,dS=uS(),pS=Object.freeze({__proto__:null,ServerStyleSheets:Cx,StylesContext:vx,StylesProvider:yx,ThemeProvider:function(e){var t=e.children,n=e.theme,i=dx(),o=r.useMemo(function(){var e=null===i?n:function(e,t){return"function"==typeof t?t(e):ke({},e,t)}(i,n);return null!=e&&(e[hv]=null!==i),e},[n,i]);return r.createElement(cx.Provider,{value:o},t)},createGenerateClassName:gv,createStyles:function(e){return e},getThemeProps:vv,jssPreset:ix,makeStyles:wx,mergeClasses:ax,sheetsManager:mx,styled:function(e){return function(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.name,a=ox(i,["name"]),s=o,l=wx("function"==typeof t?function(e){return{root:function(r){return t(ke({theme:e},r))}}}:{root:t},ke({Component:e,name:o||e.displayName,classNamePrefix:s},a));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=r.forwardRef(function(t,i){var o,a,s,u=t.children,c=t.className,d=t.clone,p=t.component,f=ox(t,["children","className","clone","component"]),h=Ix(l(t).root,c),m=f;if(n&&(o=m,a=n,s={},Object.keys(o).forEach(function(e){-1===a.indexOf(e)&&(s[e]=o[e])}),m=s),d)return r.cloneElement(u,ke({className:Ix(u.props.className,h)},m));if("function"==typeof u)return u(ke({className:h},m));var g=p||e;return r.createElement(g,ke({ref:i,className:h},m),u)});return lS(u,e),u}},useTheme:dx,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,o=t.withTheme,a=void 0!==o&&o,s=t.name,l=ox(t,["defaultTheme","withTheme","name"]),u=s,c=wx(e,ke({defaultTheme:i,Component:n,name:s||n.displayName,classNamePrefix:u},l)),d=r.forwardRef(function(e,t){e.classes;var o,l=e.innerRef,u=ox(e,["classes","innerRef"]),d=c(ke({},n.defaultProps,e)),p=u;return("string"==typeof s||a)&&(o=dx()||i,s&&(p=vv({theme:o,name:s,props:u})),a&&!p.theme&&(p.theme=o)),r.createElement(n,ke({ref:l||t,classes:d},p))});return lS(d,n),d}},withTheme:dS,withThemeCreator:uS}),fS=In(pS);
|
|
95
|
+
*/Ny();var zy=Date.now(),Wy="fnValues"+zy,$y="fnStyle"+ ++zy,Hy="@global",Vy="@global ",By=function(){function e(e,t,n){for(var r in this.type="global",this.at=Hy,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new my(ke({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Gy=function(){function e(e,t,n){this.type="global",this.at=Hy,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,ke({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Uy=/\s*,\s*/g;function Yy(e,t){for(var n=e.split(Uy),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Ky(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Hy)return new By(e,t,n);if("@"===e[0]&&e.substr(0,8)===Vy)return new Gy(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[Hy]:null;if(i){for(var o in i)t.addRule(o,i[o],ke({},n,{selector:Yy(o,e.selector)}));delete r[Hy]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,7)===Hy){var o=Yy(i.substr(7),e.selector);t.addRule(o,r[i],ke({},n,{selector:o})),delete r[i]}}(e,t))}}}var Xy=/\s*,\s*/g,Jy=/&/g,Zy=/\$([\w-]+)/g;function Qy(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Xy),r=e.split(Xy),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Jy,a):a+" "+l}return i}function n(e,t,n){if(n)return ke({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=ke({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,o)),f=f.replace(Zy,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],ke({},a,{selector:f})):u.addRule(h,r[c],ke({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var eb=/[A-Z]/g,tb=/^ms-/,nb={};function rb(e){return"-"+e.toLowerCase()}function ib(e){if(nb.hasOwnProperty(e))return nb[e];var t=e.replace(eb,rb);return nb[e]=tb.test(t)?"-"+t:t}function ob(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ib(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ob):t.fallbacks=ob(e.fallbacks)),t}var ab=_y&&CSS?CSS.px:"px",sb=_y&&CSS?CSS.ms:"ms",lb=_y&&CSS?CSS.percent:"%";function ub(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var cb=ub({"animation-delay":sb,"animation-duration":sb,"background-position":ab,"background-position-x":ab,"background-position-y":ab,"background-size":ab,border:ab,"border-bottom":ab,"border-bottom-left-radius":ab,"border-bottom-right-radius":ab,"border-bottom-width":ab,"border-left":ab,"border-left-width":ab,"border-radius":ab,"border-right":ab,"border-right-width":ab,"border-top":ab,"border-top-left-radius":ab,"border-top-right-radius":ab,"border-top-width":ab,"border-width":ab,"border-block":ab,"border-block-end":ab,"border-block-end-width":ab,"border-block-start":ab,"border-block-start-width":ab,"border-block-width":ab,"border-inline":ab,"border-inline-end":ab,"border-inline-end-width":ab,"border-inline-start":ab,"border-inline-start-width":ab,"border-inline-width":ab,"border-start-start-radius":ab,"border-start-end-radius":ab,"border-end-start-radius":ab,"border-end-end-radius":ab,margin:ab,"margin-bottom":ab,"margin-left":ab,"margin-right":ab,"margin-top":ab,"margin-block":ab,"margin-block-end":ab,"margin-block-start":ab,"margin-inline":ab,"margin-inline-end":ab,"margin-inline-start":ab,padding:ab,"padding-bottom":ab,"padding-left":ab,"padding-right":ab,"padding-top":ab,"padding-block":ab,"padding-block-end":ab,"padding-block-start":ab,"padding-inline":ab,"padding-inline-end":ab,"padding-inline-start":ab,"mask-position-x":ab,"mask-position-y":ab,"mask-size":ab,height:ab,width:ab,"min-height":ab,"max-height":ab,"min-width":ab,"max-width":ab,bottom:ab,left:ab,top:ab,right:ab,inset:ab,"inset-block":ab,"inset-block-end":ab,"inset-block-start":ab,"inset-inline":ab,"inset-inline-end":ab,"inset-inline-start":ab,"box-shadow":ab,"text-shadow":ab,"column-gap":ab,"column-rule":ab,"column-rule-width":ab,"column-width":ab,"font-size":ab,"font-size-delta":ab,"letter-spacing":ab,"text-decoration-thickness":ab,"text-indent":ab,"text-stroke":ab,"text-stroke-width":ab,"word-spacing":ab,motion:ab,"motion-offset":ab,outline:ab,"outline-offset":ab,"outline-width":ab,perspective:ab,"perspective-origin-x":lb,"perspective-origin-y":lb,"transform-origin":lb,"transform-origin-x":lb,"transform-origin-y":lb,"transform-origin-z":lb,"transition-delay":sb,"transition-duration":sb,"vertical-align":ab,"flex-basis":ab,"shape-margin":ab,size:ab,gap:ab,grid:ab,"grid-gap":ab,"row-gap":ab,"grid-row-gap":ab,"grid-column-gap":ab,"grid-template-rows":ab,"grid-template-columns":ab,"grid-auto-rows":ab,"grid-auto-columns":ab,"box-shadow-x":ab,"box-shadow-y":ab,"box-shadow-blur":ab,"box-shadow-spread":ab,"font-line-height":ab,"text-shadow-x":ab,"text-shadow-y":ab,"text-shadow-blur":ab});function db(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=db(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=db(i,t[i],n);else for(var o in t)t[o]=db(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||cb[e];return!a||0===t&&a===ab?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function pb(e){void 0===e&&(e={});var t=ub(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=db(r,e[r],t);return e},onChangeValue:function(e,n){return db(n,e,t)}}}var fb="",hb="",mb="",gb="",vb=Rv&&"ontouchstart"in document.documentElement;if(Rv){var yb={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},bb=document.createElement("p").style;for(var xb in yb)if(xb+"Transform"in bb){fb=xb,hb=yb[xb];break}"Webkit"===fb&&"msHyphens"in bb&&(fb="ms",hb=yb.ms,gb="edge"),"Webkit"===fb&&"-apple-trailing-word"in bb&&(mb="apple")}var Sb=fb,wb=hb,Cb=mb,Eb=gb,Ib=vb;var Db={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Sb?"-webkit-"+e:wb+e)}},Rb={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Sb?wb+"print-"+e:e)}},Pb=/[-\s]+(.)?/g;function Mb(e,t){return t?t.toUpperCase():""}function Lb(e){return e.replace(Pb,Mb)}function Ab(e){return Lb("-"+e)}var kb,Ob={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Sb){var n="mask-image";if(Lb(n)in t)return e;if(Sb+Ab(n)in t)return wb+e}return e}},qb={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Cb||Ib?e:wb+e)}},Tb={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:wb+e)}},jb={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:wb+e)}},Nb={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Sb||"ms"===Sb&&"edge"!==Eb?wb+e:e)}},_b={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Sb||"ms"===Sb||"apple"===Cb?wb+e:e)}},Fb={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Sb?"WebkitColumn"+Ab(e)in t&&wb+"column-"+e:"Moz"===Sb&&("page"+Ab(e)in t&&"page-"+e))}},zb={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Sb)return e;var n=e.replace("-inline","");return Sb+Ab(n)in t&&wb+n}},Wb={supportedProperty:function(e,t){return Lb(e)in t&&e}},$b={supportedProperty:function(e,t){var n=Ab(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Sb+n in t?wb+e:"Webkit"!==Sb&&"Webkit"+n in t&&"-webkit-"+e}},Hb={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Sb?""+wb+e:e)}},Vb={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Sb?wb+"scroll-chaining":e)}},Bb={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Gb={supportedProperty:function(e,t){var n=Bb[e];return!!n&&(Sb+Ab(n)in t&&wb+n)}},Ub={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Yb=Object.keys(Ub),Kb=function(e){return wb+e},Xb={supportedProperty:function(e,t,n){var r=n.multiple;if(Yb.indexOf(e)>-1){var i=Ub[e];if(!Array.isArray(i))return Sb+Ab(i)in t&&wb+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Sb+Ab(i[0])in t))return!1;return i.map(Kb)}return!1}},Jb=[Db,Rb,Ob,qb,Tb,jb,Nb,_b,Fb,zb,Wb,$b,Hb,Vb,Gb,Xb],Zb=Jb.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Qb=Jb.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Am(t.noPrefill)),e},[]),ex={};if(Rv){kb=document.createElement("p");var tx=window.getComputedStyle(document.documentElement,"");for(var nx in tx)isNaN(nx)||(ex[tx[nx]]=tx[nx]);Qb.forEach(function(e){return delete ex[e]})}function rx(e,t){if(void 0===t&&(t={}),!kb)return e;if(null!=ex[e])return ex[e];"transition"!==e&&"transform"!==e||(t[e]=e in kb.style);for(var n=0;n<Zb.length&&(ex[e]=Zb[n](e,kb.style,t),!ex[e]);n++);try{kb.style[e]=""}catch(e){return!1}return ex[e]}var ix,ox={},ax={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},sx=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function lx(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?rx(t):", "+rx(n);return r||(t||n)}function ux(e,t){var n=t;if(!ix||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ox[r])return ox[r];try{ix.style[e]=n}catch(e){return ox[r]=!1,!1}if(ax[e])n=n.replace(sx,lx);else if(""===ix.style[e]&&("-ms-flex"===(n=wb+n)&&(ix.style[e]="-ms-flexbox"),ix.style[e]=n,""===ix.style[e]))return ox[r]=!1,!1;return ix.style[e]="",ox[r]=n,ox[r]}function cx(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=rx(n);o&&o!==n&&(i=!0);var a=!1,s=ux(o,Ov(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Sb?e:"@"+wb+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ux(t,Ov(e))||e}}}function dx(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}function px(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Av(e,{},n);return r[$y]=t,r},onProcessStyle:function(e,t){if(Wy in t||$y in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[Wy]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[$y];o&&(i.style=o(e)||{});var a=i[Wy];if(a)for(var s in a)i.prop(s,a[s](e),r)}},Ky(),Qy(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ob(e[t]);return e}return ob(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ib(t);return t===r?e:(n.prop(r,e),null)}},pb(),"undefined"==typeof window?null:cx(),dx()]}}function fx(e,t){if(null==e)return{};var n,r,i=Oe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=ke({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}Rv&&(ix=document.createElement("p"));var mx=function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},gx=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},vx=function(e,t,n){e.get(t).delete(n)},yx=n.createContext(null);function bx(){return n.useContext(yx)}var xx,Sx=Ny(px()),wx=Ev(),Cx=new Map,Ex={disableGeneration:!1,generateClassName:wx,jss:Sx,sheetsCache:null,sheetsManager:Cx,sheetsRegistry:null},Ix=n.createContext(Ex);function Dx(e){var t=e.children,r=e.injectFirst,i=void 0!==r&&r,o=e.disableGeneration,a=void 0!==o&&o,s=fx(e,["children","injectFirst","disableGeneration"]),l=ke({},n.useContext(Ix),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&i&&"undefined"!=typeof window){if(!xx){var u=document.head;xx=document.createComment("mui-inject-first"),u.insertBefore(xx,u.firstChild)}l.jss=Ny({plugins:px().plugins,insertionPoint:xx})}return n.createElement(Ix.Provider,{value:l},t)}var Rx=-1e9;var Px={};function Mx(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=gx(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},mx(i.sheetsManager,o,r,s));var l=ke({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=gx(i.sheetsCache,o,r));var d=o.create(r,a);c||((c=i.jss.createStyleSheet(d,ke({link:!1},l))).attach(),i.sheetsCache&&mx(i.sheetsCache,o,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Fy(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,ke({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=hx({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Lx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,i=t.classNamePrefix,o=t.Component,a=t.defaultTheme,s=void 0===a?Px:a,l=fx(t,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=ke({},i);return Object.keys(o).forEach(function(e){a[e]=$f(a[e],o[e])}),a},options:{}}}(e),c=r||i||"makeStyles";u.options={index:Rx+=1,name:r,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=bx()||s,i=ke({},n.useContext(Ix),l),a=n.useRef(),c=n.useRef();!function(e,t){var r,i=n.useRef([]),o=n.useMemo(function(){return{}},t);i.current!==o&&(i.current=o,r=e()),n.useEffect(function(){return function(){r&&r()}},[o])}(function(){var n={name:r,state:{},stylesCreator:u,stylesOptions:i,theme:t};return Mx(n,e),c.current=!1,a.current=n,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=gx(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(vx(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(n)}},[t,u]),n.useEffect(function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,e),c.current=!0});var d=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=hx({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,e.classes,o);return d}}var Ax=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return Pv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new yy;var r=Ev();return n.createElement(Dx,ke({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return n.createElement("style",ke({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function kx(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=kx(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ox(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=kx(e))&&(r&&(r+=" "),r+=t);return r}var qx={exports:{}},Tx={},jx="function"==typeof Symbol&&Symbol.for,Nx=jx?Symbol.for("react.element"):60103,_x=jx?Symbol.for("react.portal"):60106,Fx=jx?Symbol.for("react.fragment"):60107,zx=jx?Symbol.for("react.strict_mode"):60108,Wx=jx?Symbol.for("react.profiler"):60114,$x=jx?Symbol.for("react.provider"):60109,Hx=jx?Symbol.for("react.context"):60110,Vx=jx?Symbol.for("react.async_mode"):60111,Bx=jx?Symbol.for("react.concurrent_mode"):60111,Gx=jx?Symbol.for("react.forward_ref"):60112,Ux=jx?Symbol.for("react.suspense"):60113,Yx=jx?Symbol.for("react.suspense_list"):60120,Kx=jx?Symbol.for("react.memo"):60115,Xx=jx?Symbol.for("react.lazy"):60116,Jx=jx?Symbol.for("react.block"):60121,Zx=jx?Symbol.for("react.fundamental"):60117,Qx=jx?Symbol.for("react.responder"):60118,eS=jx?Symbol.for("react.scope"):60119;function tS(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Nx:switch(e=e.type){case Vx:case Bx:case Fx:case Wx:case zx:case Ux:return e;default:switch(e=e&&e.$$typeof){case Hx:case Gx:case Xx:case Kx:case $x:return e;default:return t}}case _x:return t}}}function nS(e){return tS(e)===Bx}Tx.AsyncMode=Vx,Tx.ConcurrentMode=Bx,Tx.ContextConsumer=Hx,Tx.ContextProvider=$x,Tx.Element=Nx,Tx.ForwardRef=Gx,Tx.Fragment=Fx,Tx.Lazy=Xx,Tx.Memo=Kx,Tx.Portal=_x,Tx.Profiler=Wx,Tx.StrictMode=zx,Tx.Suspense=Ux,Tx.isAsyncMode=function(e){return nS(e)||tS(e)===Vx},Tx.isConcurrentMode=nS,Tx.isContextConsumer=function(e){return tS(e)===Hx},Tx.isContextProvider=function(e){return tS(e)===$x},Tx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Nx},Tx.isForwardRef=function(e){return tS(e)===Gx},Tx.isFragment=function(e){return tS(e)===Fx},Tx.isLazy=function(e){return tS(e)===Xx},Tx.isMemo=function(e){return tS(e)===Kx},Tx.isPortal=function(e){return tS(e)===_x},Tx.isProfiler=function(e){return tS(e)===Wx},Tx.isStrictMode=function(e){return tS(e)===zx},Tx.isSuspense=function(e){return tS(e)===Ux},Tx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fx||e===Bx||e===Wx||e===zx||e===Ux||e===Yx||"object"==typeof e&&null!==e&&(e.$$typeof===Xx||e.$$typeof===Kx||e.$$typeof===$x||e.$$typeof===Hx||e.$$typeof===Gx||e.$$typeof===Zx||e.$$typeof===Qx||e.$$typeof===eS||e.$$typeof===Jx)},Tx.typeOf=tS,qx.exports=Tx;var rS=qx.exports,iS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},aS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sS={};function lS(e){return rS.isMemo(e)?aS:sS[e.$$typeof]||iS}sS[rS.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sS[rS.Memo]=aS;var uS=Object.defineProperty,cS=Object.getOwnPropertyNames,dS=Object.getOwnPropertySymbols,pS=Object.getOwnPropertyDescriptor,fS=Object.getPrototypeOf,hS=Object.prototype;var mS=function e(t,n,r){if("string"!=typeof n){if(hS){var i=fS(n);i&&i!==hS&&e(t,i,r)}var o=cS(n);dS&&(o=o.concat(dS(n)));for(var a=lS(t),s=lS(n),l=0;l<o.length;++l){var u=o[l];if(!(oS[u]||r&&r[u]||s&&s[u]||a&&a[u])){var c=pS(n,u);try{uS(t,u,c)}catch(e){}}}}return t},gS=kr(mS);function vS(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=n.forwardRef(function(r,i){var o=r.innerRef,a=fx(r,["innerRef"]),s=bx()||e;return n.createElement(t,ke({theme:s,ref:o||i},a))});return gS(r,t),r}}var yS,bS=vS(),xS=Object.freeze({__proto__:null,ServerStyleSheets:Ax,StylesContext:Ix,StylesProvider:Dx,ThemeProvider:function(e){var t=e.children,r=e.theme,i=bx(),o=n.useMemo(function(){var e=null===i?r:function(e,t){return"function"==typeof t?t(e):ke({},e,t)}(i,r);return null!=e&&(e[wv]=null!==i),e},[r,i]);return n.createElement(yx.Provider,{value:o},t)},createGenerateClassName:Ev,createStyles:function(e){return e},getThemeProps:Iv,jssPreset:px,makeStyles:Lx,mergeClasses:hx,sheetsManager:Cx,styled:function(e){return function(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.name,a=fx(i,["name"]),s=o,l=Lx("function"==typeof t?function(e){return{root:function(n){return t(ke({theme:e},n))}}}:{root:t},ke({Component:e,name:o||e.displayName,classNamePrefix:s},a));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=n.forwardRef(function(t,i){var o,a,s,u=t.children,c=t.className,d=t.clone,p=t.component,f=fx(t,["children","className","clone","component"]),h=Ox(l(t).root,c),m=f;if(r&&(o=m,a=r,s={},Object.keys(o).forEach(function(e){-1===a.indexOf(e)&&(s[e]=o[e])}),m=s),d)return n.cloneElement(u,ke({className:Ox(u.props.className,h)},m));if("function"==typeof u)return u(ke({className:h},m));var g=p||e;return n.createElement(g,ke({ref:i,className:h},m),u)});return gS(u,e),u}},useTheme:bx,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var i=t.defaultTheme,o=t.withTheme,a=void 0!==o&&o,s=t.name,l=fx(t,["defaultTheme","withTheme","name"]),u=s,c=Lx(e,ke({defaultTheme:i,Component:r,name:s||r.displayName,classNamePrefix:u},l)),d=n.forwardRef(function(e,t){e.classes;var o,l=e.innerRef,u=fx(e,["classes","innerRef"]),d=c(ke({},r.defaultProps,e)),p=u;return("string"==typeof s||a)&&(o=bx()||i,s&&(p=Iv({theme:o,name:s,props:u})),a&&!p.theme&&(p.theme=o)),n.createElement(r,ke({ref:l||t,classes:d},p))});return gS(d,r),d}},withTheme:bS,withThemeCreator:vS}),SS=Or(xS);
|
|
96
96
|
/** @license Material-UI v4.11.5
|
|
97
97
|
*
|
|
98
98
|
* This source code is licensed under the MIT license found in the
|
|
99
99
|
* LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/var hS,mS,gS={},vS={};function yS(){if(hS)return vS;hS=1;var e=Va;Object.defineProperty(vS,"__esModule",{value:!0}),vS.default=void 0;var t=(0,e(cv()).default)();return vS.default=t,vS}var bS,xS,SS={},wS={};function CS(){if(xS)return SS;xS=1;var e=Va;Object.defineProperty(SS,"__esModule",{value:!0}),SS.default=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.breakpoints,a=void 0===o?["sm","md","lg"]:o,s=i.disableAlign,l=void 0!==s&&s,u=i.factor,c=void 0===u?2:u,d=i.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var i=h[e],o=parseFloat(m(i.fontSize,"rem"));if(!(o<=1)){var a=o,s=1+(a-1)/c,u=i.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(o));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},i,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Ns()),r=Sh,n=function(){if(bS)return wS;bS=1;var e=Va;Object.defineProperty(wS,"__esModule",{value:!0}),wS.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},wS.getUnit=r,wS.toUnitless=n,wS.convertLength=function(e){return function(t,i){var o=r(t);if(o===i)return t;var a=n(t);if("px"!==o)if("em"===o)a=n(t)*n(e);else if("rem"===o)return a=n(t)*n(e),t;var s=a;if("px"!==i)if("em"===i)s=a/n(e);else{if("rem"!==i)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+i}},wS.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,i=n+r;return t-n<i-t?n:i},wS.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},wS.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,i=e.max,o=e.unit,a=void 0===o?"rem":o,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(i-n)/l[l.length-1];return l.forEach(function(e){var i=n+p*e;null!==c&&(i=c(i)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*i)/1e4).concat(a))}),d};var t=e(Wh());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return wS}();return SS}var ES,IS={};var DS,PS={};var RS,MS={};var LS,AS={};!function(e){var t=Va,n=Lf;Object.defineProperty(e,"__esModule",{value:!0});var i={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var o=Af;Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var a=n(cv()),s=t(function(){if(dv)return pv;dv=1;var e=Va;Object.defineProperty(pv,"__esModule",{value:!0}),pv.default=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(i))};var t=Sh,r=e(cv());return pv}()),l=t(function(){if(cS)return fv;cS=1,Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=function(t){return(0,e.createStyles)(t)};var e=fS;return fv}()),u=t(function(){if(mS)return gS;mS=1;var e=Va;Object.defineProperty(gS,"__esModule",{value:!0}),gS.default=void 0;var t=e(Ns()),r=fS,n=e(yS()),i=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},i))};return gS.default=i,gS}()),c=t(CS()),d=t(function(){if(ES)return IS;ES=1;var e=Va;Object.defineProperty(IS,"__esModule",{value:!0}),IS.default=void 0;var t=e(Ns()),r=fS,n=e(yS()),i=function(e){var i=(0,r.styled)(e);return function(e,r){return i(e,(0,t.default)({defaultTheme:n.default},r))}};return IS.default=i,IS}()),p=av();Object.keys(p).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))});var f=t(function(){if(DS)return PS;DS=1;var e=Va;Object.defineProperty(PS,"__esModule",{value:!0}),PS.default=function(){return(0,t.useTheme)()||n.default};var t=fS;e(r);var n=e(yS());return PS}()),h=t(function(){if(RS)return MS;RS=1;var e=Va;Object.defineProperty(MS,"__esModule",{value:!0}),MS.default=void 0;var t=e(Ns()),r=fS,n=e(yS()),i=function(e,i){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},i))};return MS.default=i,MS}()),m=t(function(){if(LS)return AS;LS=1;var e=Va;Object.defineProperty(AS,"__esModule",{value:!0}),AS.default=void 0;var t=fS,r=e(yS()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return AS.default=n,AS}()),g=fS}(Df),Df.alpha(tf.GREYSCALE_0,.05),Df.alpha(tf.GREEN_PALE,.5),Df.alpha(tf.BLUE_PALE,.5),Df.alpha(tf.GREEN_PALE,.5),Df.alpha(tf.BLUE_PALE,.5),Df.alpha(tf.GREEN_PALE,.5),Df.alpha(tf.BLUE_PALE,.5),Df.alpha(tf.GREEN_PALE,.5),Df.alpha(tf.BLUE_PALE,.5),Df.alpha(tf.GREEN_PALE,.5),Df.alpha(tf.BLUE_PALE,.5);const kS=(e="light")=>Ef();function OS(e){return"init"in e}function qS(e){return!!e.write}function TS(e){return"v"in e||"e"in e}function NS(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function _S(e){return"function"==typeof(null==e?void 0:e.then)}function jS(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function FS(e,t,r){var n;const i=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])i.add(t);for(const e of t.p)i.add(e);return i}const zS=()=>{const e={},t=new WeakMap,r=r=>{var n,i;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(i=t.get(r))||i.forEach(e=>e())};return r.add=(r,n)=>{const i=r||e;let o=t.get(i);return o||(o=new Set,t.set(i,o)),o.add(n),()=>{o.delete(n),o.size||t.delete(i)}},r};function WS(e){return e.i||(e.i=zS()),e.r||(e.r=zS()),e.c||(e.c=zS()),e.m||(e.m=zS()),e.u||(e.u=zS()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const $S=(e,t,...r)=>t.read(...r),HS=(e,t,...r)=>t.write(...r),VS=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},BS=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},GS=(e,r)=>{var n;const i=uw(e),o=i[0],a=i[6],s=i[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let l=o.get(r);return l||(l={d:new Map,p:new Set,n:0},o.set(r,l),null==(n=a.i)||n.call(a,r),null==s||s(e,r)),l},US=e=>{const t=uw(e),r=t[1],n=t[3],i=t[4],o=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach(e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)}),n.clear(),o.forEach(l),o.clear(),i.forEach(l),i.clear(),t.forEach(u),n.size&&s(e)}while(n.size||o.size||i.size);if(l.length)throw new AggregateError(l)},YS=e=>{const r=uw(e),n=r[1],i=r[2],o=r[3],a=r[11],s=r[14],l=r[17],u=[],c=new WeakSet,d=new WeakSet,p=Array.from(o);for(;p.length;){const r=p[p.length-1],o=a(e,r);if(d.has(r))p.pop();else if(c.has(r)){if(i.get(r)===o.n)u.push([r,o]);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&i.has(r))throw new Error("[Bug] invalidated atom exists");d.add(r),p.pop()}else{c.add(r);for(const e of FS(r,o,n))c.has(e)||p.push(e)}}for(let t=u.length-1;t>=0;--t){const[r,n]=u[t];let a=!1;for(const e of n.d.keys())if(e!==r&&o.has(e)){a=!0;break}a&&(i.set(r,n.n),s(e,r),l(e,r)),i.delete(r)}},KS=new WeakSet,XS=(e,r)=>{var n,i;const o=uw(e),a=o[1],s=o[2],l=o[3],u=o[6],c=o[7],d=o[11],p=o[12],f=o[13],h=o[14],m=o[16],g=o[17],v=o[20],y=o[26],b=o[28],x=d(e,r),S=b[0];if(TS(x)){if(a.has(r)&&s.get(r)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[r,n]of x.d)if(h(e,r).n!==n){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=new Map,I=()=>{for(const e of C)E.has(e)||x.d.delete(e)},D=()=>{if(a.has(r)){const t=!l.size;g(e,r),t&&(f(e),p(e))}},P=t=>{var n;if(t===r){const r=d(e,t);if(!TS(r)){if(!OS(t))throw new Error("no atom init");v(e,t,t.init)}return NS(r)}const i=h(e,t);try{return NS(i)}finally{E.set(t,i.n),x.d.set(t,i.n),_S(x.v)&&jS(r,x.v,i),a.has(r)&&(null==(n=a.get(t))||n.t.add(r)),w||D()}};let R,M;const L={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||qS(r)||console.warn("setSelf function cannot be used with read-only atom"),!M&&qS(r)&&(M=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,r,...n)}finally{f(e),p(e)}}),M}},A=x.n,k=s.get(r)===A;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&KS.delete(e);const i=c(e,r,P,L);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&KS.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),v(e,r,i),_S(i)){y(e,i,()=>null==R?void 0:R.abort());const t=()=>{I(),D()};i.then(t,t)}else I();return null==(n=u.r)||n.call(u,r),x.m=S,x}catch(e){return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==A&&k&&(s.set(r,x.n),l.add(r),null==(i=u.c)||i.call(u,r))}},JS=(e,t)=>{const r=uw(e),n=r[1],i=r[2],o=r[11],a=[t];for(;a.length;){const t=a.pop(),r=o(e,t);for(const s of FS(t,r,n)){const t=o(e,s);i.get(s)!==t.n&&(i.set(s,t.n),a.push(s))}}},ZS=(e,r,...n)=>{const i=uw(e),o=i[3],a=i[6],s=i[8],l=i[11],u=i[12],c=i[13],d=i[14],p=i[15],f=i[16],h=i[17],m=i[20],g=i[28];let v=!0;const y=t=>NS(d(e,t)),b=(n,...i)=>{var s;const d=l(e,n);try{if(n===r){if(!OS(n))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&KS.add(e);const r=d.n,l=i[0];return m(e,n,l),h(e,n),void(r!==d.n&&(++g[0],o.add(n),p(e,n),null==(s=a.c)||s.call(a,n)))}return f(e,n,...i)}finally{v||(c(e),u(e))}};try{return s(e,r,y,b,...n)}finally{v=!1}},QS=(e,t)=>{var r;const n=uw(e),i=n[1],o=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=i.get(t);if(p){for(const[n,i]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),i!==c.n&&(o.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},ew=(e,t)=>{var r;const n=uw(e),i=n[1],o=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=i.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},i.set(t,m),qS(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const i=s(e,t,n);i&&(m.u=()=>{r=!0;try{i()}finally{r=!1}})}finally{r=!1}};o.add(r)}null==(r=a.m)||r.call(a,t)}return m},tw=(e,t)=>{var r,n;const i=uw(e),o=i[1],a=i[5],s=i[6],l=i[11],u=i[19],c=l(e,t);let d=o.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=o.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,o.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},rw=(e,t,r)=>{const n=uw(e),i=n[11],o=n[27],a=i(e,t),s="v"in a,l=a.v;if(_S(r))for(const n of a.d.keys())jS(t,r,i(e,n));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,_S(l)&&o(e,l))},nw=(e,t)=>NS((0,uw(e)[14])(e,t)),iw=(e,t,...r)=>{const n=uw(e),i=n[3],o=n[12],a=n[13],s=n[16],l=i.size;try{return s(e,t,...r)}finally{i.size!==l&&(a(e),o(e))}},ow=(e,t,r)=>{const n=uw(e),i=n[12],o=n[18],a=n[19],s=o(e,t).l;return s.add(r),i(e),()=>{s.delete(r),a(e,t),i(e)}},aw=(e,t,r)=>{const n=uw(e)[25];let i=n.get(t);if(!i){i=new Set,n.set(t,i);const e=()=>n.delete(t);t.then(e,e)}i.add(r)},sw=(e,t)=>{const r=uw(e)[25].get(t);null==r||r.forEach(e=>e())},lw=new WeakMap,uw=e=>{const r=lw.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r};function cw(e){const t=uw(e),r=t[24];return r?r(t):t}function dw(...e){const t={get:e=>(0,uw(t)[21])(t,e),set:(e,...r)=>(0,uw(t)[22])(t,e,...r),sub:(e,r)=>(0,uw(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},$S,HS,VS,BS,GS,US,YS,XS,JS,ZS,QS,ew,tw,rw,nw,iw,ow,void 0,new WeakMap,aw,sw,[0]].map((t,r)=>e[r]||t);return lw.set(t,Object.freeze(r)),t}let pw,fw=0;function hw(e,r){const n="atom"+ ++fw,i={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?i.read=e:(i.init=e,i.read=mw,i.write=gw),r&&(i.write=r),i}function mw(e){return e(this)}function gw(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function vw(){return dw()}const yw=u(void 0);function bw(e){const r=h(yw);return(null==e?void 0:e.store)||r||(pw||(pw=vw(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=pw),globalThis.__JOTAI_DEFAULT_STORE__!==pw&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),pw)}function xw({children:e,store:t}){const r=l(null);return t?n(yw.Provider,{value:t},e):(null===r.current&&(r.current=vw()),n(yw.Provider,{value:r.current},e))}const Sw=e=>"function"==typeof(null==e?void 0:e.then),ww=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Cw=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(ww(e),e)}),Ew=new WeakMap,Iw=(e,t,r)=>{const n=cw(e)[26];let i=Ew.get(t);return i||(i=new Promise((o,a)=>{let s=t;const l=e=>t=>{s===e&&o(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=r();Sw(t)?(Ew.set(t,i),s=t,t.then(l(t),u(t)),n(e,t,c)):o(t)}catch(e){a(e)}};t.then(l(t),u(t)),n(e,t,c)}),Ew.set(t,i)),i};function Dw(e,t){const{delay:n,unstable_promiseStatus:i=!r.use}={},o=bw(t),[[a,s,l],u]=c(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let f=a;if(s===o&&l===e||(u(),f=o.get(e)),d(()=>{const t=o.sub(e,()=>{if(i)try{const t=o.get(e);Sw(t)&&ww(Iw(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof n)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(u,n);u()});return u(),t},[o,e,n,i]),p(f),Sw(f)){const t=Iw(o,f,()=>o.get(e));return i&&ww(t),Cw(t)}return f}function Pw(e,r){const n=bw(r);return f((...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Rw(e,t){return[Dw(e,t),Pw(e,t)]}t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},r){var n;let i,o;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(i!==(e=e||"")){try{o=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}i=e}return o},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const Mw=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),Lw=new WeakMap,Aw=()=>{};const kw=new WeakMap;function Ow(e,t){const r=bw(t),n=qw(r);for(const[i,...o]of e)n.has(i)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(n.add(i),r.set(i,...o))}const qw=e=>{let t=kw.get(e);return t||(t=new WeakSet,kw.set(e,t)),t};function Tw(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function Nw(e){const t=hw(()=>[]),r=hw(function(e){const[n,i,o]=e(t);o.has(r)&&(n.forEach(e),++i.n)});return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let i,o=0,a=!1,s=!1,l=!1;function u(){if(o)return;n.clear();let t=!0;const c=i=>{if(l)return e.get(i);if(i===r){const t=h(e,i);if(!TS(t)){if(!OS(i))throw new Error("no atom init");S(e,i,i.init)}return NS(t)}const o=v(e,i);try{return NS(o)}finally{C.d.set(i,o.n),d.get(i)?.t.add(r),t?n.add(i):d.has(i)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...i)=>{const a=h(e,n);try{if(++o,n===r){if(!OS(n))throw new Error("atom not writable");const t=a.n,r=i[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),y(e,n)))}return b(e,n,...i)}finally{t||(g(e),m(e)),--o}};w.recurse=(t,...n)=>{if(l){if(Tw())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{i?.();const e=r.effect(c,w);if("function"!=typeof e)return;i=()=>{if(!o)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,i=void 0}}}finally{t=!1,n.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,r),g(e)}}const c=cw(e),d=c[1],p=c[3],f=WS(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],y=c[15],b=c[16],x=c[17],S=c[20],w=function(e,t){let r=_w.get(e);r||(r=new Set,_w.set(e,r),t.f.add(function(){for(const e of r)r.delete(e),e()}));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,function(){p.delete(r)}),f.m.add(r,function(){w.add(u),i&&w.delete(i)}),f.u.add(r,function(){w.delete(u),i&&w.add(i)}),f.c.add(r,function(){a?s=!0:w.add(u)})},Tw()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const _w=new WeakMap;const jw=async(e,t,r)=>{const n=e.get(r);void 0!==n&&("dimension"===n.type?await t.moveDimensionToAlternative(n.def.qDef.cId):await t.moveMeasureToAlternative(n.def.qDef.cId))},Fw=async(e,t,r)=>{const n=e.get(r);void 0!==n&&("dimension"===n.type?await t.moveDimensionFromAlternative(n.def.qDef.cId):await t.moveMeasureFromAlternative(n.def.qDef.cId))},zw=async e=>{const{type:t,handler:r,model:n,fieldInfo:i,handlerQueue:o}=e;void 0!==r&&void 0!==n&&o&&o.add(async()=>{switch(t){case"apply":for(const t of e.localChecked)await Fw(i,r,t);for(const t of e.localUnchecked)await jw(i,r,t);break;case"checked":await Fw(i,r,e.cId);break;case"unchecked":await jw(i,r,e.cId)}})},Ww=hw(),$w=hw(),Hw=hw(),Vw=hw(e=>e(Hw)?.translate??(e=>e)),Bw=hw(""),Gw=hw(e=>{const t=e(Bw).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),Uw=e=>7005!==e.qError?.qErrorCode,Yw=new WeakMap,Kw={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},Xw=function(e,r=Aw){return((e,t,r)=>{const n=Mw(()=>new WeakMap,Lw,t);return Mw(e,n,r)})(()=>{const n=new WeakMap,i=new WeakMap,o=hw(0),a=hw([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(o,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(o.debugPrivate=!0,a.debugPrivate=!0);const s=hw(t=>{let l;t(o);try{l=t(s)}catch(e){}const u=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then(e=>{i.set(u,e);const[r]=t(a);r()},e=>{n.set(u,e);const[r]=t(a);r()}),n.has(u))throw n.get(u);return i.has(u)?{p:u,v:i.get(u)}:l&&"v"in l?{p:u,f:r(l.v),v:l.v}:{p:u,f:r()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),hw(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,r)}(hw(async e=>{const t=e(Ww);if(t){if(Yw.has(t))return Yw.get(t);try{const e=await t.app.createSessionObject(Kw);return Yw.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),Jw=hw(null),Zw=hw(),Qw=Nw((e,t)=>{const r=e(Ww),n=e(Xw);if(!r||!n)return;const i=async()=>{const e=await r.getLayout();if(e.qSelectionInfo?.qInSelections)return;const i=await r.getEffectiveProperties();await n.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions)},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures)}]);const o=await n.getLayout();t(Zw,{layout:structuredClone(e),properties:structuredClone(i),altLayout:structuredClone(o)}),t(Jw,null)};return i(),r.Invalidated?.bind(i),()=>{r.Invalidated?.unbind(i)}}),eC=hw(e=>e(Zw)?.layout),tC=hw(e=>e(Zw)?.altLayout),rC=hw(e=>e(Zw)?.properties),nC=hw(e=>{const t=e(Zw)?.layout;return t?.qHyperCube.qDimensionInfo.filter(Uw)??[]}),iC=hw(e=>{const t=e(Zw)?.layout;return t?.qHyperCube.qMeasureInfo.filter(Uw)??[]}),oC=hw(e=>{const t=e(eC),r=e(nC),n=e(iC),i=e(rC),o=new Map;return t&&i?(r.forEach((e,t)=>{o.set(e.cId,{id:e.cId,type:"dimension",def:i.qHyperCubeDef.qDimensions[t]})}),n.forEach((e,t)=>{o.set(e.cId,{id:e.cId,type:"measure",def:i.qHyperCubeDef.qMeasures[t]})}),i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(e=>{o.set(e.qDef.cId,{id:e.qDef.cId,type:"dimension",def:e})}),i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.forEach(e=>{o.set(e.qDef.cId,{id:e.qDef.cId,type:"measure",def:e})}),o):o});class aC{#e=[];#t=!1;#r=!1;#n;#i;#o;#a;constructor({onQueueCompleted:e}){this.#n=e}#s(){this.#i=void 0,this.#o=void 0,this.#a=void 0}pause(){this.#i&&(clearTimeout(this.#a),this.#o?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#i=e,this.#o=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#o;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#o&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#r=!0,this.#e=[],this.#o?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#r=!1;this.#e.length>0;)if(this.#i)await this.#i;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#r||await(this.#n?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const sC=hw(null),lC=Nw((e,t)=>{const r=e(Ww),n=e($w),i=new aC({onQueueCompleted:async()=>{r&&n&&await r.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(n.properties.qHyperCubeDef)}],!0)}});t(sC,i);const o=()=>{i.pause()},a=()=>{i.continue(500)},s=()=>{i.abort()};return r?.Invalidated?.bind(o),r?.Validated?.bind(a),r?.Cancelled?.bind(s),r?.Closing?.bind(s),()=>{i.abort(),r?.Invalidated?.unbind(o),r?.Validated?.unbind(a),r?.Cancelled?.unbind(s),r?.Closing?.unbind(s)}}),uC=hw(e=>{const t=[...e(nC),...e(iC)].map(e=>e.cId);return new Set(t)}),cC=hw(new Set),dC=hw(new Set),pC=hw(e=>{const t=e(cC),r=e(dC);return e(uC).difference(r).union(t)}),fC=Nw((e,t)=>{e(uC),t(cC,new Set),t(dC,new Set)}),hC=hw(e=>e(pC),(e,t,r)=>{const n=e(pC).has(r),i=new Set(e(dC)),o=new Set(e(cC));n?(i.add(r),o.delete(r)):(o.add(r),i.delete(r)),t(dC,i),t(cC,o),zw({type:n?"unchecked":"checked",cId:r,handler:e($w),model:e(Ww),fieldInfo:e(oC),handlerQueue:e(sC)})}),mC=({props:e,children:t})=>(Ow([[Ww,e.args.model],[Hw,e.args.apis],[$w,e.args.handler]]),Dw(fC),Dw(Qw),Dw(lC),t);function gC(e,t){const r=new Set(e),n=new Set(t);return e===t||r.size===n.size&&Array.from(r).every(n.has.bind(n))}function vC(e){return"write"in e}const yC=new WeakMap,bC={},{read:xC,write:SC}=hw(null);function wC(e,t,r){const[n,i,o,,a]=e,s=n.get(t);if(s)return s;if(r===e){let n=i.get(t);return n||(n=[DC(e,t,r),r],i.set(t,n)),n}const l=r??bC;let u=o.get(l);u||(u=new WeakMap,o.set(l,u));let c=u.get(t);if(!c){const[n,i]=a?wC(a,t,r):[t];c=[t.read===xC?n:DC(e,t,i),i],u.set(t,c)}return c}function CC(e){for(const t of e[5])t()}function EC(e,t,r,n,i){if(r.read===xC&&vC(r)&&vC(t)&&r.write!==SC&&e!==n){const{write:o}=r;return t.write=IC(e,r.write.bind(r),n,i),()=>{t.write=o}}}function IC(e,t,r,n=r){return function(i,o,...a){return t(function(t){const[n]=wC(e,t,r);return i(n)},function(t,...i){const[a]=wC(e,t,r),s=EC(e,a,t,r,n);try{return o(a,...i)}finally{null==s||s()}},...a)}}function DC(e,t,r){const n=Object.getOwnPropertyDescriptors(t);Object.keys(n).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>n[e].configurable=!0);const i=Object.getPrototypeOf(t),o=Object.create(i,n);return o.read!==xC&&(o.read=function(e,t,r){return function(n,i){return t(function(t){const[i]=wC(e,t,r);return n(i)},i)}}(e,t.read.bind(t),r)),vC(o)&&vC(t)&&o.write!==SC&&(o.write=IC(e,t.write.bind(t),r)),o}function PC({atoms:e=[],atomFamilies:t=[],parentStore:r,name:n}){const i=new WeakSet(e),o=yC.get(r),a=(null==o?void 0:o[3])??r,s=[new WeakMap,new WeakMap,new WeakMap,a,o,new Set,void 0],l=s[0],u=s[5],c=function(e){const t=e[3],r=[...cw(t)],n=r[21],i=r[22],o=r[23],a=r[9],s={};r[9]=(e,t)=>a(l,t),r[21]=h(n),r[22]=p,r[23]=h(o),r[24]=([...e])=>{const t=[m(e[0],u),m(e[1],c),m(e[2]),g(e[3]),e[4],e[5],y(e[6]),h(e[7]),h(e[8]),e[9],h(e[10]),h(e[11],e=>d(t[0],e)),e[12],e[13],h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e];return t};const l=dw(...r);return l;function u(t){const r=new WeakMap;return function(n){let i=r.get(n);if(i)return i;const o=t(n);return o?(i={...o,d:m(o.d,function(t){return r=>t(wC(e,r)[0])}),p:g(o.p),get n(){return o.n},set n(e){o.n=e},get v(){return o.v},set v(e){o.v=e},get e(){return o.e},set e(e){o.e=e}},r.set(n,i),i):void 0}}function c(e){const t=new WeakMap;return function(r){let n=t.get(r);if(n)return n;const i=e(r);return i?(n={...i,d:g(i.d),t:g(i.t),get u(){return i.u},set u(e){i.u=e}},t.set(r,n),n):void 0}}function d(e,t){return function(r,n){return e.get(n)||(e.set(n,t(r,n)),e.get(n))}}function p(t,r,...n){const[o,a]=wC(e,r),s=EC(e,o,r,a,e);try{return i(t,o,...n)}finally{null==s||s()}}function f(t,r){return function(n,...i){const[o]=wC(e,n);return(r?r(t):t)(o,...i)}}function h(t,r){return function(n,i,...o){const[a]=wC(e,i);return(r?r(t):t)(n,a,...o)}}function m(e,t){return{get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))}}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const r of t)yield wC(e,r)[0]}}}function v(t){if(!t)return;const r=f(t);return r.add=function(r,n){if(void 0===r)return t.add(void 0,n);const[i]=wC(e,r);return t.add(i,n)},r}function y(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>s[t]??(s[t]=v(e[t])),set(r){delete s[t],e[t]=r},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=c,Object.assign(c,{name:n}),yC.set(c,s);for(const t of new Set(e))l.set(t,[DC(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const r=e(t);l.has(r)||l.set(r,[DC(s,r,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!i.has(t)&&l.delete(t):l.set(t,[DC(s,t,s),s])});u.add(t)}return c}const RC=function(e,t){return function(r){const{atoms:i=[],atomFamilies:o=[],children:a,scope:s,name:l}=r,u=t(),c=Array.from(i,e=>Array.isArray(e)?e[0]:e);function p(){return[s??PC({atoms:c,atomFamilies:o,parentStore:u,name:l}),function(e){return u!==e.parentStore||!gC(c,e.atoms)||!gC(o,e.atomFamilies)||s!==e.providedScope}]}const[[f,h],g]=m(p);if(h({atoms:c,atomFamilies:o,parentStore:u,providedScope:s})){const e=yC.get(f);e&&CC(e),g(p)}return Ow(Array.from(i).filter(Array.isArray),{store:f}),d(()=>{const e=yC.get(f);return()=>{e&&CC(e)}},[f]),n(e,{store:f,children:a})}}(xw,bw);var MC=Object.defineProperty,LC=Object.defineProperties,AC=Object.getOwnPropertyDescriptors,kC=Object.getOwnPropertySymbols,OC=Object.prototype.hasOwnProperty,qC=Object.prototype.propertyIsEnumerable,TC=(e,t,r)=>t in e?MC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NC=(e,t)=>{for(var r in t||(t={}))OC.call(t,r)&&TC(e,r,t[r]);if(kC)for(var r of kC(t))qC.call(t,r)&&TC(e,r,t[r]);return e},_C=(e,t)=>LC(e,AC(t));function jC(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function FC(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function zC(e,t){return function(e,t,r){var n,i,o;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex(e=>u(e,a.id)),i=e.findIndex(e=>u(e,s.id));if(-1===n||-1===i){if(FC(a)){const n=a.initialIndex,i=a.index;return n===i||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,i)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,i)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&FC(a)){const n=a.initialGroup,i=a.initialIndex,o=a.group,s=a.index;if(null==n||null==o||!(n in e)||!(o in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===o&&i===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===o)return _C(NC({},e),{[n]:r(e[n],i,s)});const l=e[n][i];return _C(NC({},e),{[n]:[...e[n].slice(0,i),...e[n].slice(i+1)],[o]:[...e[o].slice(0,s),l,...e[o].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(i=null==(n=m.shape)?void 0:n.current.center)?i:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&FC(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(o=a.group)?o:d;if(t in e){if(d===t)return _C(NC({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return _C(NC({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return _C(NC({},e),{[d]:r(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,y=e[d][f];return _C(NC({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),y,...e[p].slice(h+v)]})}(e,t,jC)}function WC(e,t){let r=null;const n=new Map,i=new Set;function o(i){let s;if(void 0===t)s=n.get(i);else for(const[e,r]of n)if(t(e,i)){s=r;break}if(void 0!==s){if(!r?.(s[1],i))return s[0];o.remove(i)}const l=e(i);return n.set(i,[l,Date.now()]),a("CREATE",i,l),l}function a(e,t,r){for(const n of i)n({type:e,param:t,atom:r})}return o.unstable_listen=e=>(i.add(e),()=>{i.delete(e)}),o.getParams=()=>n.keys(),o.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[i]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,i);break}},o.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,i]]of n)r(i,e)&&(n.delete(e),a("REMOVE",e,t))},o}const $C=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,HC=hw(),VC=hw(e=>e(HC)?.numberOfSections??0),BC=hw(e=>e(HC)?.numberOfItemsInSection??[]),GC=hw(e=>e(HC)?.keyExtractor??$C),UC=hw(e=>e(HC)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),YC=hw(e=>e(HC)?.onDragEnd),KC=hw(e=>e(HC)?.onDragOver),XC=hw(e=>e(HC)?.itemRenderer),JC=hw(e=>e(HC)?.headerRenderer),ZC=hw(e=>e(HC)?.dragOverlayRenderer),QC=hw(e=>e(HC)?.onClick),eE=hw(e=>{const t=e(VC),r=e(BC),n=e(GC),i={};for(let e=0;e<t;e++)i[e]=Array.from({length:r[e]},(t,r)=>n({sectionIndex:e,itemIndex:r}));return i}),tE=hw(null),rE=hw(e=>e(tE),(e,t,r)=>{if(null===r)return void t(tE,null);const n=e(tE);t(tE,{...n,...r})}),nE=WC(e=>hw(null,(t,r,n)=>{let i;"over"===e?i=t(KC):"end"===e&&(i=t(YC),r(rE,null));const{source:o,target:a}=n.operation;if(null===a)return void r(rE,{toIndex:void 0,toSectionIndex:void 0});const s=zC(t(eE),n)[a.data.sectionIndex].indexOf(o.id),l=-1!==s?s:a.sortable?.index??0;"start"===e?r(rE,{id:o.id,startSection:o.data.sectionKey,startIndex:o.data.itemIndex,startSectionIndex:o.data.sectionIndex}):"over"===e&&r(rE,{toIndex:l,toSectionIndex:a.data.sectionIndex}),i?.({id:o.id,toIndex:l,toSection:a.data.sectionKey,fromSection:o.data.sectionKey,startSection:t(rE)?.startSection??o.data.sectionKey,event:n})})),iE=[HC,VC,BC,GC,UC,YC,XC,JC,QC,rE],oE=[nE],aE=({props:e,children:t})=>{const r=Pw(HC);return g(()=>{r(e)},[e,r]),t};var sE=Symbol.for("preact-signals");function lE(){if(fE>1)fE--;else{var e,t=!1;for(!function(){var e=vE;for(vE=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==pE;){var r=pE;for(pE=void 0,hE++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&wE(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(hE=0,fE--,t)throw e}}function uE(e){if(fE>0)return e();gE=++mE,fE++;try{return e()}finally{lE()}}var cE=void 0;function dE(e){var t=cE;cE=void 0;try{return e()}finally{cE=t}}var pE=void 0,fE=0,hE=0,mE=0,gE=0,vE=void 0,yE=0;function bE(e){if(void 0!==cE){var t=e.n;if(void 0===t||t.t!==cE)return t={i:0,S:e,p:cE.s,n:void 0,t:cE,e:void 0,x:void 0,r:t},void 0!==cE.s&&(cE.s.n=t),cE.s=t,e.n=t,32&cE.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=cE.s,t.n=void 0,cE.s.n=t,cE.s=t),t}}function xE(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function SE(e,t){return new xE(e,t)}function wE(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function CE(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function EE(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function IE(e,t){xE.call(this,void 0),this.x=e,this.s=void 0,this.g=yE-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function DE(e,t){return new IE(e,t)}function PE(e){var t=e.m;if(e.m=void 0,"function"==typeof t){fE++;var r=cE;cE=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,RE(e),t}finally{cE=r,lE()}}}function RE(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,PE(e)}function ME(e){if(cE!==this)throw new Error("Out-of-order effect");EE(this),cE=e,this.f&=-2,8&this.f&&RE(this),lE()}function LE(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function AE(e,t){var r=new LE(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}xE.prototype.brand=sE,xE.prototype.h=function(){return!0},xE.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:dE(function(){var e;null==(e=t.W)||e.call(t)}))},xE.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&dE(function(){var e;null==(e=t.Z)||e.call(t)}))}},xE.prototype.subscribe=function(e){var t=this;return AE(function(){var r=t.value,n=cE;cE=void 0;try{e(r)}finally{cE=n}},{name:"sub"})},xE.prototype.valueOf=function(){return this.value},xE.prototype.toString=function(){return this.value+""},xE.prototype.toJSON=function(){return this.value},xE.prototype.peek=function(){var e=cE;cE=void 0;try{return this.value}finally{cE=e}},Object.defineProperty(xE.prototype,"value",{get:function(){var e=bE(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(hE>100)throw new Error("Cycle detected");!function(e){0!==fE&&0===hE&&e.l!==gE&&(e.l=gE,vE={S:e,v:e.v,i:e.i,o:vE})}(this),this.v=e,this.i++,yE++,fE++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{lE()}}}}),IE.prototype=new xE,IE.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===yE)return!0;if(this.g=yE,this.f|=1,this.i>0&&!wE(this))return this.f&=-2,!0;var e=cE;try{CE(this),cE=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return cE=e,EE(this),this.f&=-2,!0},IE.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}xE.prototype.S.call(this,e)},IE.prototype.U=function(e){if(void 0!==this.t&&(xE.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},IE.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(IE.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=bE(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),LE.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},LE.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,PE(this),CE(this),fE++;var e=cE;return cE=this,ME.bind(this,e)},LE.prototype.N=function(){2&this.f||(this.f|=2,this.u=pE,pE=this)},LE.prototype.d=function(){this.f|=8,1&this.f||RE(this)},LE.prototype.dispose=function(){this.d()};var kE,OE,qE,TE,NE,_E,jE,FE,zE,WE,$E,HE,VE,BE,GE,UE,YE,KE,XE,JE,ZE=Object.create,QE=Object.defineProperty,eI=Object.defineProperties,tI=Object.getOwnPropertyDescriptor,rI=Object.getOwnPropertyDescriptors,nI=Object.getOwnPropertySymbols,iI=Object.prototype.hasOwnProperty,oI=Object.prototype.propertyIsEnumerable,aI=e=>{throw TypeError(e)},sI=(e,t,r)=>t in e?QE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lI=(e,t)=>QE(e,"name",{value:t,configurable:!0}),uI=["class","method","getter","setter","accessor","field","value","get","set"],cI=e=>void 0!==e&&"function"!=typeof e?aI("Function expected"):e,dI=(e,t,r,n,i)=>({kind:uI[e],name:t,metadata:n,addInitializer:e=>r._?aI("Already initialized"):i.push(cI(e||null))}),pI=(e,t)=>{return sI(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},fI=(e,t,r,n)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(r):n=o[i].call(r,n);return n},hI=(e,t,r,n,i,o)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=uI[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&tI(d<4?i:{get[r](){return vI(this,o)},set[r](e){return bI(this,o,e)}},r));d?f&&d<4&&lI(o,(d>2?"set ":d>1?"get ":"")+r):lI(i,r);for(var b=n.length-1;b>=0;b--)u=dI(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>gI(i,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?vI:xI)(e,i,4^d?o:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>bI(e,i,t,4^d?o:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?cI(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?aI("Object expected"):(cI(a=s.get)&&(y.get=a),cI(a=s.set)&&(y.set=a),cI(a=s.init)&&g.unshift(a));return d||pI(e,i),y&&QE(i,r,y),f?4^d?o:y:i},mI=(e,t,r)=>t.has(e)||aI("Cannot "+r),gI=(e,t)=>Object(t)!==t?aI('Cannot use the "in" operator on this value'):e.has(t),vI=(e,t,r)=>(mI(e,t,"read from private field"),r?r.call(e):t.get(e)),yI=(e,t,r)=>t.has(e)?aI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),bI=(e,t,r,n)=>(mI(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),xI=(e,t,r)=>(mI(e,t,"access private method"),r);function SI(e,t){if(t){let r;return DE(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return DE(e)}function wI(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,r)=>!wI(e,t[r]))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const i=r.some(r=>!wI(e[r],t[r]));return!i}return!1}function CI({get:e},t){return{init:e=>SE(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function EI(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=SI(e.bind(this)),r.set(this,t)),t.value}}function II(e=!0){return function(t,r){r.addInitializer(function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>eI(e,rI(t)))(((e,t)=>{for(var r in t||(t={}))iI.call(t,r)&&sI(e,r,t[r]);if(nI)for(var r of nI(t))oI.call(t,r)&&sI(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function DI(...e){const t=e.map(e=>AE(e));return()=>t.forEach(e=>e())}_E=[CI],NE=[CI],TE=[CI],qE=[II()],OE=[II()],kE=[II()];var PI,RI=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,fI(jE,5,this),yI(this,HE),yI(this,FE,fI(jE,8,this)),fI(jE,11,this),yI(this,VE,fI(jE,12,this)),fI(jE,15,this),yI(this,YE,fI(jE,16,this)),fI(jE,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return vI(this,HE,XE)}get initial(){return vI(this,HE,WE)}get previous(){return vI(this,HE,GE)}set current(e){const t=dE(()=>vI(this,HE,XE));e&&t&&this.equals(t,e)||uE(()=>{vI(this,HE,WE)||bI(this,HE,e,$E),bI(this,HE,t,UE),bI(this,HE,e,JE)})}reset(e=this.defaultValue){uE(()=>{bI(this,HE,void 0,UE),bI(this,HE,e,$E),bI(this,HE,e,JE)})}};function MI(e){return dE(()=>{const t={};for(const r in e)t[r]=e[r];return t})}jE=[,,,ZE(null)],FE=new WeakMap,HE=new WeakSet,VE=new WeakMap,YE=new WeakMap,zE=hI(jE,20,"#initial",_E,HE,FE),WE=zE.get,$E=zE.set,BE=hI(jE,20,"#previous",NE,HE,VE),GE=BE.get,UE=BE.set,KE=hI(jE,20,"#current",TE,HE,YE),XE=KE.get,JE=KE.set,hI(jE,2,"current",qE,RI),hI(jE,2,"initial",OE,RI),hI(jE,2,"previous",kE,RI),pI(jE,RI);PI=new WeakMap;var LI,AI,kI,OI,qI,TI=Object.create,NI=Object.defineProperty,_I=Object.getOwnPropertyDescriptor,jI=Object.getOwnPropertySymbols,FI=Object.prototype.hasOwnProperty,zI=Object.prototype.propertyIsEnumerable,WI=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),$I=e=>{throw TypeError(e)},HI=Math.pow,VI=(e,t,r)=>t in e?NI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BI=["class","method","getter","setter","accessor","field","value","get","set"],GI=e=>void 0!==e&&"function"!=typeof e?$I("Function expected"):e,UI=(e,t,r,n,i)=>({kind:BI[e],name:t,metadata:n,addInitializer:e=>r._?$I("Already initialized"):i.push(GI(e||null))}),YI=(e,t,r,n,i,o)=>{for(var a,s,l,u,c=7&t,d=BI[c+5],p=e[2]||(e[2]=[]),f=(i=i.prototype,_I(i,r)),h=n.length-1;h>=0;h--)(l=UI(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,GI(a)&&(f[d]=a);return f&&NI(i,r,f),i},KI=(e,t,r)=>t.has(e)||$I("Cannot "+r),XI=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},JI=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:i,width:o,height:a,scale:s}=this,l=new e(i+t,n+r,o,a);return l.scale=((e,t)=>{for(var r in t||(t={}))FI.call(t,r)&&VI(e,r,t[r]);if(jI)for(var r of jI(t))zI.call(t,r)&&VI(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:i,bottom:o}=this;return{width:e,height:t,left:r,top:n,right:i,bottom:o}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new XI((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:i,height:o}=this;return r===t.left&&n===t.top&&i===t.width&&o===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:i}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-n,s=o-r;if(n<i&&r<o){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:i}){return new e(r,t,n,i)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],i="x"===t?e.left:e.top,o="x"===t?e.width:e.height;return"start"==n?i:"end"==n?i+o:i+o/2};return XI.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var ZI,QI=class extends(kI=RI,AI=[EI],LI=[EI],kI){constructor(e){var t,r,n;super(XI.from(e),(e,t)=>XI.equals(e,t)),((e,t,r)=>{for(var n=0,i=e[t>>1],o=i&&i.length;n<o;n++)i[n].call(r)})(qI,5,this),t=this,n=0,(r=OI).has(t)?$I("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return XI.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=XI.from(e),n={x:r.x-t.x,y:r.y-t.y},i=Date.now(),o=i-(KI(a=this,s=OI,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/o*100);uE(()=>{((e,t,r)=>{KI(e,t,"write to private field"),t.set(e,r)})(this,OI,i),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(XI.from(e)),this.velocity={x:0,y:0}}};function eD({x:e,y:t},r){const n=Math.abs(e),i=Math.abs(t);return"number"==typeof r?Math.sqrt(HI(n,2)+HI(i,2))>r:"x"in r&&"y"in r?n>r.x&&i>r.y:"x"in r?n>r.x:"y"in r&&i>r.y}qI=(e=>{var t;return[,,,TI(null!=(t=null==e?void 0:e[WI("metadata")])?t:null)]})(kI),OI=new WeakMap,YI(qI,2,"delta",AI,QI),YI(qI,2,"direction",LI,QI),ZI=qI,VI(QI,WI("metadata"),ZI[3]);var tD,rD,nD,iD,oD=(e=>(e.Horizontal="x",e.Vertical="y",e))(oD||{}),aD=Object.values(oD),sD=Object.create,lD=Object.defineProperty,uD=Object.defineProperties,cD=Object.getOwnPropertyDescriptor,dD=Object.getOwnPropertyDescriptors,pD=Object.getOwnPropertySymbols,fD=Object.prototype.hasOwnProperty,hD=Object.prototype.propertyIsEnumerable,mD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),gD=e=>{throw TypeError(e)},vD=(e,t,r)=>t in e?lD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yD=(e,t)=>{for(var r in t||(t={}))fD.call(t,r)&&vD(e,r,t[r]);if(pD)for(var r of pD(t))hD.call(t,r)&&vD(e,r,t[r]);return e},bD=(e,t)=>uD(e,dD(t)),xD=(e,t)=>lD(e,"name",{value:t,configurable:!0}),SD=(e,t)=>{var r={};for(var n in e)fD.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&pD)for(var n of pD(e))t.indexOf(n)<0&&hD.call(e,n)&&(r[n]=e[n]);return r},wD=e=>{var t;return[,,,sD(null!=(t=null==e?void 0:e[mD("metadata")])?t:null)]},CD=["class","method","getter","setter","accessor","field","value","get","set"],ED=e=>void 0!==e&&"function"!=typeof e?gD("Function expected"):e,ID=(e,t,r,n,i)=>({kind:CD[e],name:t,metadata:n,addInitializer:e=>r._?gD("Already initialized"):i.push(ED(e||null))}),DD=(e,t)=>vD(t,mD("metadata"),e[3]),PD=(e,t,r,n)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(r):n=o[i].call(r,n);return n},RD=(e,t,r,n,i,o)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=CD[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&cD(d<4?i:{get[r](){return AD(this,o)},set[r](e){return OD(this,o,e)}},r));d?f&&d<4&&xD(o,(d>2?"set ":d>1?"get ":"")+r):xD(i,r);for(var b=n.length-1;b>=0;b--)u=ID(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>LD(i,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?AD:qD)(e,i,4^d?o:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>OD(e,i,t,4^d?o:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?ED(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?gD("Object expected"):(ED(a=s.get)&&(y.get=a),ED(a=s.set)&&(y.set=a),ED(a=s.init)&&g.unshift(a));return d||DD(e,i),y&&lD(i,r,y),f?4^d?o:y:i},MD=(e,t,r)=>t.has(e)||gD("Cannot "+r),LD=(e,t)=>Object(t)!==t?gD('Cannot use the "in" operator on this value'):e.has(t),AD=(e,t,r)=>(MD(e,t,"read from private field"),r?r.call(e):t.get(e)),kD=(e,t,r)=>t.has(e)?gD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),OD=(e,t,r,n)=>(MD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),qD=(e,t,r)=>(MD(e,t,"access private method"),r);function TD(e,t){return{plugin:e,options:t}}function ND(e){return t=>TD(e,t)}function _D(e){return"function"==typeof e?{plugin:e,options:void 0}:e}tD=[CI];var jD=class{constructor(e,t){this.manager=e,this.options=t,kD(this,nD,PD(rD,8,this,!1)),PD(rD,11,this),kD(this,iD,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return dE(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=AE(e.bind(this));return AD(this,iD).add(t),t}destroy(){AD(this,iD).forEach(e=>e())}static configure(e){return TD(this,e)}};rD=wD(null),nD=new WeakMap,iD=new WeakMap,RD(rD,4,"disabled",tD,jD,nD),DD(rD,jD);var FD,zD=class extends jD{},WD=class{constructor(e){this.manager=e,this.instances=new Map,kD(this,FD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(_D).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),r=t.map(({plugin:e})=>e);for(const e of AD(this,FD))if(!r.includes(e)){if(e.prototype instanceof zD)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);OD(this,FD,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function $D(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}FD=new WeakMap;var HD,VD,BD=[],GD=class extends jD{constructor(e){super(e),kD(this,HD),kD(this,VD),this.computeCollisions=this.computeCollisions.bind(this),OD(this,VD,SE(BD)),this.destroy=DI(()=>{const e=this.computeCollisions(),t=dE(()=>this.manager.dragOperation.position.current);if(e!==BD){const e=AD(this,HD);if(OD(this,HD,t),e&&t.x==e.x&&t.y==e.y)return}else OD(this,HD,void 0);AD(this,VD).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){dE(()=>{e?AD(this,VD).value=this.computeCollisions():OD(this,HD,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:i,shape:o,status:a}=n;if(!a.initialized||!o)return BD;const s=[],l=[];for(const o of null!=e?e:r.droppables){if(o.disabled)continue;if(i&&!o.accepts(i))continue;const e=null!=t?t:o.collisionDetector;if(!e)continue;l.push(o),o.shape;const r=dE(()=>e({droppable:o,dragOperation:n}));r&&(null!=o.collisionPriority&&(r.priority=o.collisionPriority),s.push(r))}return 0===l.length?BD:(s.sort($D),s)}get collisions(){return AD(this,VD).value}};HD=new WeakMap,VD=new WeakMap;var UD=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},YD=class extends UD{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function KD(e,t=!0){let r=!1;return bD(yD({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var XD,JD,ZD,QD,eP,tP,rP,nP,iP,oP=class extends zD{constructor(e){super(e);let t=[];this.destroy=DI(()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())},()=>{const{collisionObserver:r,monitor:n}=e,{collisions:i}=r;if(r.isDisabled())return;const o=KD({collisions:i});if(n.dispatch("collision",o),o.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(i,t))return;t=i;const[a]=i;dE(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},aP=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(aP||{}),sP=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(sP||{});rP=[CI],tP=[EI],eP=[EI],QD=[EI],ZD=[EI],JD=[EI],XD=[EI];var lP=class{constructor(){PD(nP,5,this),kD(this,iP,PD(nP,8,this,"idle")),PD(nP,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};nP=wD(null),iP=new WeakMap,RD(nP,4,"value",rP,lP,iP),RD(nP,2,"current",tP,lP),RD(nP,2,"idle",eP,lP),RD(nP,2,"initializing",QD,lP),RD(nP,2,"initialized",ZD,lP),RD(nP,2,"dragging",JD,lP),RD(nP,2,"dropped",XD,lP),DD(nP,lP);var uP,cP,dP,pP,fP,hP,mP,gP,vP,yP=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return dE(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=KD({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return dE(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:i}=e;uE(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(i)});const o=KD({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))}),r)})}move(e){return dE(()=>{var t,r;const{dragOperation:n}=this.manager,{status:i,controller:o}=n;if(!i.dragging||!o||o.signal.aborted)return;const a=KD({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,r,i,o,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(o=null==(i=e.by)?void 0:i.y)?o:0)};n.position.current=l})})}stop(e={}){return dE(()=>{var t,r;const{dragOperation:n}=this.manager,{controller:i}=n;if(!i||i.signal.aborted)return;let o;i.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{n.status.set("dropped");const e=dE(()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)}),t=()=>{n.controller===i&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=AE(()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())})}else this.manager.renderer.rendering.then(t)})};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return o=new Promise((t,r)=>{e.resume=t,e.abort=r}),e}}),o?o.then(a).catch(()=>n.reset()):a()})}};pP=[CI],dP=[CI],cP=[CI],uP=[CI];var bP=class{constructor(e,t){kD(this,hP,PD(fP,8,this)),PD(fP,11,this),kD(this,mP,PD(fP,12,this)),PD(fP,15,this),kD(this,gP,PD(fP,16,this)),PD(fP,19,this),kD(this,vP,PD(fP,20,this)),PD(fP,23,this);const{effects:r,id:n,data:i={},disabled:o=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=i,this.disabled=o,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};fP=wD(null),hP=new WeakMap,mP=new WeakMap,gP=new WeakMap,vP=new WeakMap,RD(fP,4,"manager",pP,bP,hP),RD(fP,4,"id",dP,bP,mP),RD(fP,4,"data",cP,bP,gP),RD(fP,4,"disabled",uP,bP,vP),DD(fP,bP);var xP,SP,wP,CP,EP,IP,DP,PP,RP,MP,LP,AP,kP,OP,qP,TP,NP,_P,jP,FP,zP,WP,$P,HP,VP=class{constructor(){this.map=SE(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),i=()=>this.unregister(e,t);if(n===t)return i;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const o=new Map(r);o.set(e,t),this.map.value=o;const a=DI(...t.effects());return this.cleanupFunctions.set(t,a),i},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const i=new Map(r);i.delete(e),this.map.value=i}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},BP=class extends(DP=bP,IP=[CI],EP=[CI],CP=[CI],wP=[EI],SP=[EI],xP=[EI],DP){constructor(e,t){var r=e,{modifiers:n,type:i,sensors:o}=r,a=SD(r,["modifiers","type","sensors"]);super(a,t),PD(PP,5,this),kD(this,RP,PD(PP,8,this)),PD(PP,11,this),kD(this,MP,PD(PP,12,this)),PD(PP,15,this),kD(this,LP,PD(PP,16,this,this.isDragSource?"dragging":"idle")),PD(PP,19,this),this.type=i,this.sensors=o,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};PP=wD(DP),RP=new WeakMap,MP=new WeakMap,LP=new WeakMap,RD(PP,4,"type",IP,BP,RP),RD(PP,4,"modifiers",EP,BP,MP),RD(PP,4,"status",CP,BP,LP),RD(PP,2,"isDropping",wP,BP),RD(PP,2,"isDragging",SP,BP),RD(PP,2,"isDragSource",xP,BP),DD(PP,BP);var GP=class extends(_P=bP,NP=[CI],TP=[CI],qP=[CI],OP=[CI],kP=[CI],AP=[EI],_P){constructor(e,t){var r=e,{accept:n,collisionDetector:i,collisionPriority:o,type:a}=r;super(SD(r,["accept","collisionDetector","collisionPriority","type"]),t),PD(jP,5,this),kD(this,FP,PD(jP,8,this)),PD(jP,11,this),kD(this,zP,PD(jP,12,this)),PD(jP,15,this),kD(this,WP,PD(jP,16,this)),PD(jP,19,this),kD(this,$P,PD(jP,20,this)),PD(jP,23,this),kD(this,HP,PD(jP,24,this)),PD(jP,27,this),this.accept=n,this.collisionDetector=i,this.collisionPriority=o,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};jP=wD(_P),FP=new WeakMap,zP=new WeakMap,WP=new WeakMap,$P=new WeakMap,HP=new WeakMap,RD(jP,4,"accept",NP,GP,FP),RD(jP,4,"type",TP,GP,zP),RD(jP,4,"collisionDetector",qP,GP,WP),RD(jP,4,"collisionPriority",OP,GP,$P),RD(jP,4,"shape",kP,GP,HP),RD(jP,2,"isDropTarget",AP,GP),DD(jP,GP);var UP,YP=class extends jD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},KP=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},XP=class{constructor(e){this.options=e,kD(this,UP)}set controller(e){OD(this,UP,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=AD(this,UP))||t.activate(e)}};UP=new WeakMap;var JP,ZP,QP,eR,tR,rR,nR,iR,oR,aR,sR,lR,uR,cR,dR,pR,fR,hR,mR,gR=class extends jD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},vR=class{constructor(e){this.draggables=new VP,this.droppables=new VP,this.plugins=new WD(e),this.sensors=new WD(e),this.modifiers=new WD(e)}register(e,t){if(e instanceof BP)return this.draggables.register(e.id,e);if(e instanceof GP)return this.droppables.register(e.id,e);if(e.prototype instanceof gR)return this.modifiers.register(e,t);if(e.prototype instanceof YP)return this.sensors.register(e,t);if(e.prototype instanceof jD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof bP)return e instanceof BP?this.draggables.unregister(e.id,e):e instanceof GP?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof gR)return this.modifiers.unregister(e);if(e.prototype instanceof YP)return this.sensors.unregister(e);if(e.prototype instanceof jD)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};oR=[EI],iR=[CI],nR=[CI],rR=[CI],tR=[CI],eR=[CI],QP=[EI],ZP=[EI],JP=[EI];var yR=class{constructor(e){PD(uR,5,this),kD(this,aR),kD(this,sR),kD(this,lR,new RI(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new lP,kD(this,cR,PD(uR,8,this,!1)),PD(uR,11,this),kD(this,dR,PD(uR,12,this,null)),PD(uR,15,this),kD(this,pR,PD(uR,16,this,null)),PD(uR,19,this),kD(this,fR,PD(uR,20,this,null)),PD(uR,23,this),kD(this,hR,PD(uR,24,this,[])),PD(uR,27,this),this.position=new QI({x:0,y:0}),kD(this,mR,{x:0,y:0}),OD(this,aR,e)}get shape(){const{current:e,initial:t,previous:r}=AD(this,lR);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?AD(this,lR).current=e:AD(this,lR).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=AD(this,aR).registry.draggables.get(t);return r&&OD(this,sR,r),null!=(e=null!=r?r:AD(this,sR))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=AD(this,aR).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(bD(yD({},this.snapshot()),{transform:r}));return OD(this,mR,r),r}snapshot(){return dE(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:AD(this,mR),shape:this.shape?MI(this.shape):null,position:MI(this.position),status:MI(this.status),canceled:this.canceled}))}reset(){uE(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,AD(this,lR).reset(),this.position.reset({x:0,y:0}),OD(this,mR,{x:0,y:0}),this.modifiers=[]})}};uR=wD(null),aR=new WeakMap,sR=new WeakMap,lR=new WeakMap,cR=new WeakMap,dR=new WeakMap,pR=new WeakMap,fR=new WeakMap,hR=new WeakMap,mR=new WeakMap,RD(uR,2,"shape",oR,yR),RD(uR,4,"canceled",iR,yR,cR),RD(uR,4,"activatorEvent",nR,yR,dR),RD(uR,4,"sourceIdentifier",rR,yR,pR),RD(uR,4,"targetIdentifier",tR,yR,fR),RD(uR,4,"modifiers",eR,yR,hR),RD(uR,2,"source",QP,yR),RD(uR,2,"target",ZP,yR),RD(uR,2,"transform",JP,yR),DD(uR,yR);var bR={get rendering(){return Promise.resolve()}};function xR(e,t){return"function"==typeof e?e(t):null!=e?e:t}var SR=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=xR(r.plugins,[]),i=xR(r.sensors,[]),o=xR(r.modifiers,[]),a=null!=(t=r.renderer)?t:bR,s=new YD(this),l=new vR(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new yP(this),this.dragOperation=new yR(this),this.collisionObserver=new GD(this),this.plugins=[oP,...n],this.modifiers=o,this.sensors=i;const{destroy:u}=this,c=DI(()=>{var e,t,r;const n=dE(()=>this.dragOperation.modifiers),i=this.modifiers;for(const e of n)i.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:r}=_D(e);return new t(this,r)}))?r:i});this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},wR=e=>{throw TypeError(e)},CR=(e,t,r)=>t.has(e)||wR("Cannot "+r),ER=(e,t,r)=>(CR(e,t,"read from private field"),t.get(e)),IR=(e,t,r)=>t.has(e)?wR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),DR=(e,t,r,n)=>(CR(e,t,"write to private field"),t.set(e,r),r),PR=(e,t,r)=>(CR(e,t,"access private method"),r);function RR(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function MR(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(RR(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function LR(e){const{width:t,height:r,top:n,left:i,bottom:o,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:i,bottom:o,right:a}}function AR(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function kR(e){return"nodeType"in e}function OR(e){var t,r,n;return e?AR(e)?e:kR(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function qR(e){const{Document:t}=OR(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function TR(e){return!(!e||AR(e))&&(e instanceof OR(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function NR(e){return e instanceof OR(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function _R(e){return e?AR(e)?e.document:kR(e)?qR(e)?e:TR(e)||NR(e)?e.ownerDocument:document:document:document}function jR(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:i}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===i}function FR(e,t=e.getBoundingClientRect(),r=0){var n,i,o,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!jR(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),o=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+i),left:Math.max(l.left,e.left-o),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(i=null==p?void 0:p.offsetTop)?i:0,h=null!=(o=null==p?void 0:p.offsetLeft)?o:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,v=r*g,y=r*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+y),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-y),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function zR(e){return{x:e.clientX,y:e.clientY}}var WR="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function $R(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...$R(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const i=n.parent;i&&i.document&&i.document!==e&&r.push(...$R(i.document,t))}}catch(e){}return r}function HR(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function VR(){var e,t;const r=HR()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function BR(e){return!(!e||!kR(e))&&e instanceof OR(e).ShadowRoot}function GR(e){if(e&&kR(e)){let t=e.getRootNode();if(BR(t))return t;if(t instanceof Document)return t}return _R(e)}function UR(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function YR(e){return"value"in e}function KR(e){return"CANVAS"===e.tagName}function XR(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:i,top:o}=n.getBoundingClientRect();return XR(e,{x:t-i,y:r-o})}}return n}var JR=new WeakMap;var ZR=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:i}]=e;t.removeEventListener(r,n,i)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],i=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:o}=t,a=[e,t];e.addEventListener(r,n,o),this.entries.add(a),i.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of i)e.removeEventListener(t,r,n)}}};function QR(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function eM(e,t){const r=()=>performance.now();let n,i;return function(...o){const a=this;i?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(a,o),i=r()},t-(r()-i))):(e.apply(a,o),i=r())}}var tM,rM=WR?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},nM=class extends rM{constructor(e){super(t=>{ER(this,tM)?e(t,this):DR(this,tM,!0)}),IR(this,tM,!1)}};tM=new WeakMap;var iM,oM,aM,sM,lM,uM,cM,dM,pM,fM,hM,mM=Array.from({length:100},(e,t)=>t/100),gM=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,IR(this,pM),this.disconnect=()=>{var e,t,r;DR(this,cM,!0),null==(e=ER(this,aM))||e.disconnect(),null==(t=ER(this,sM))||t.disconnect(),ER(this,lM).disconnect(),null==(r=ER(this,uM))||r.remove()},IR(this,iM,!0),IR(this,oM),IR(this,aM),IR(this,sM),IR(this,lM),IR(this,uM),IR(this,cM,!1),IR(this,dM,eM(()=>{var e,t,r;const{element:n}=this;if(null==(e=ER(this,sM))||e.disconnect(),ER(this,cM)||!ER(this,iM)||!n.isConnected)return;const i=null!=(t=n.ownerDocument)?t:document,{innerHeight:o,innerWidth:a}=null!=(r=i.defaultView)?r:window,s=n.getBoundingClientRect(),l=FR(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(o-d)}px ${h}px`;this.boundingClientRect=s,DR(this,sM,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:JI.intersectionRatio(r,FR(n)))&&ER(this,dM).call(this)},{threshold:mM,rootMargin:m,root:i})),ER(this,sM).observe(n),PR(this,pM,fM).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),DR(this,iM,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=FR(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const i=e.ownerDocument;(null==r?void 0:r.debug)&&(DR(this,uM,document.createElement("div")),ER(this,uM).style.background="rgba(0,0,0,0.15)",ER(this,uM).style.position="fixed",ER(this,uM).style.pointerEvents="none",i.body.appendChild(ER(this,uM))),DR(this,lM,new IntersectionObserver(t=>{var r,n;const i=t[t.length-1],{boundingClientRect:o,isIntersecting:a}=i,{width:s,height:l}=o,u=ER(this,iM);DR(this,iM,a),(s||l)&&(u&&!a?(null==(r=ER(this,sM))||r.disconnect(),this.callback(null),null==(n=ER(this,aM))||n.disconnect(),DR(this,aM,void 0),ER(this,uM)&&(ER(this,uM).style.visibility="hidden")):ER(this,dM).call(this),a&&!ER(this,aM)&&(DR(this,aM,new nM(ER(this,dM))),ER(this,aM).observe(e)))},{threshold:mM,root:i})),ER(this,iM)&&!r.skipInitial&&this.callback(this.boundingClientRect),ER(this,lM).observe(e)}};iM=new WeakMap,oM=new WeakMap,aM=new WeakMap,sM=new WeakMap,lM=new WeakMap,uM=new WeakMap,cM=new WeakMap,dM=new WeakMap,pM=new WeakSet,fM=function(){ER(this,cM)||(PR(this,pM,hM).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,ER(this,oM))||(this.callback(this.boundingClientRect),DR(this,oM,this.boundingClientRect)))},hM=function(){if(ER(this,uM)){const{top:e,left:t,width:r,height:n}=FR(this.element);ER(this,uM).style.overflow="hidden",ER(this,uM).style.visibility="visible",ER(this,uM).style.top=`${Math.floor(e)}px`,ER(this,uM).style.left=`${Math.floor(t)}px`,ER(this,uM).style.width=`${Math.floor(r)}px`,ER(this,uM).style.height=`${Math.floor(n)}px`}};var vM,yM,bM,xM,SM=new WeakMap,wM=new WeakMap;function CM(e,t){let r=SM.get(e);if(!r){const t=new gM(e,t=>{const r=SM.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),SM.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(SM.delete(e),r.disconnect())}}var EM=class{constructor(e,t,r){this.callback=t,IR(this,vM),IR(this,yM,!1),IR(this,bM),IR(this,xM,eM(e=>{if(!ER(this,yM)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of ER(this,bM))if(e.target.contains(t)){this.callback(ER(this,vM).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=QR(e);for(;r;)t.add(r),r=QR(r);return t}(e),i=function(e,t){const r=new Set;for(const n of e){const e=CM(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),o=function(e,t){var r;const n=e.ownerDocument;if(!wM.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),wM.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:i,disconnect:o}=null!=(r=wM.get(n))?r:{};return i&&o?(i.add(t),()=>{i.delete(t),0===i.size&&(o(),wM.delete(n))}):()=>{}}(e,ER(this,xM));DR(this,bM,n),DR(this,vM,new gM(e,t,r)),this.disconnect=()=>{ER(this,yM)||(DR(this,yM,!0),i(),o(),ER(this,vM).disconnect())}}};function IM(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function DM(e){try{IM(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function PM(e){return!(!WR||!e)&&e===_R(e).scrollingElement}function RM(e){var t,r;const n=OR(e),i=PM(e)?function(e){var t,r,n,i;const{documentElement:o}=_R(e),a=OR(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:o.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:o.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(i=null==a?void 0:a.offsetLeft)?i:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):LR(e),o=n.visualViewport,a=PM(e)?{height:null!=(t=null==o?void 0:o.height)?t:n.innerHeight,width:null!=(r=null==o?void 0:o.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:i,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function MM(e,t){const{isTop:r,isBottom:n,isLeft:i,isRight:o,position:a}=RM(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!i&&a.current.x+s>0,p=!o&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}vM=new WeakMap,yM=new WeakMap,bM=new WeakMap,xM=new WeakMap;var LM=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},AM=new LM(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),kM=new LM(e=>setTimeout(e,50)),OM=new Map,qM=OM.clear.bind(OM);function TM(e,t=!1){if(!t)return NM(e);let r=OM.get(e);return r||(r=NM(e),OM.set(e,r),kM.schedule(qM),r)}function NM(e){return OR(e).getComputedStyle(e)}var _M={excludeElement:!0,escapeShadowDOM:!0};function jM(e,t=_M){const{limit:r,excludeElement:n,escapeShadowDOM:i}=t,o=new Set;return e?function t(a){if(null!=r&&o.size>=r)return o;if(!a)return o;if(qR(a)&&null!=a.scrollingElement&&!o.has(a.scrollingElement))return o.add(a.scrollingElement),o;if(i&&BR(a))return t(a.host);if(!TR(a))return NR(a)?t(a.parentElement):o;if(o.has(a))return o;const s=TM(a,!0);if(n&&a===e||function(e,t=TM(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(a,s)&&o.add(a),function(e,t=TM(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&o.add(e),o}return t(a.parentNode)}(e):o}function FM(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=QR(e);for(;n;){if(n===t)return r;const e=LR(n),{x:i,y:o}=zM(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*i,r.scaleY=r.scaleY*o,n=QR(n)}return r}function zM(e,t=LR(e)){const r=Math.round(t.width),n=Math.round(t.height);if(TR(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const i=TM(e,!0);return{x:(parseFloat(i.width)||r)/r,y:(parseFloat(i.height)||n)/n}}function WM(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),i={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function $M(e){var t,r,n,i,o,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=WM(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,v=null!=(r=null==f?void 0:f.y)?r:1,y=null!=(n=null==h?void 0:h.x)?n:0,b=null!=(i=null==h?void 0:h.y)?i:0,x=null!=(o=null==m?void 0:m.x)?o:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:y+x,y:b+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:v*C}}var HM=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(HM||{}),VM={x:.2,y:.2},BM={x:10,y:10};function GM(e,t,r,n=25,i=VM,o=BM){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=RM(e),f=FM(e),h=$M(TM(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new JI(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),y={x:0,y:0},b={x:0,y:0},x=v.height*i.y,S=v.width*i.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==r?void 0:r.y)&&a>=v.left-o.x&&a<=v.right+o.x?(y.y=g?1:-1,b.y=n*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=v.left-o.x&&a<=v.right+o.x&&(y.y=g?-1:1,b.y=n*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==r?void 0:r.x)&&s>=v.top-o.y&&s<=v.bottom+o.y?(y.x=m?-1:1,b.x=n*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==r?void 0:r.x)&&s>=v.top-o.y&&s<=v.bottom+o.y&&(y.x=m?1:-1,b.x=n*Math.abs((v.left+S-a)/S)),{direction:y,speed:b}}function UM(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!TR(e))return e.scrollIntoView();var n=function(e){const[t]=jM(e,{limit:1});return null!=t?t:null}(e);if(!TR(n))return;const i=TM(n,!0),o=parseInt(i.getPropertyValue("border-top-width")),a=parseInt(i.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-o>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-o+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function YM({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function KM(e,t=TM(e).translate,r=!0){if(r){const t=MR(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=WM(e);if(t)return t}}}if(t){const e=WM(t);if(e)return e}return{x:0,y:0,z:0}}var XM=new LM(e=>setTimeout(e,0)),JM=new Map,ZM=JM.clear.bind(JM);function QM(e,t){const r=function(e){const t=e.ownerDocument;let r=JM.get(t);if(r)return r;r=t.getAnimations(),JM.set(t,r),XM.schedule(ZM);const n=r.filter(t=>RR(t.effect)&&t.effect.target===e);return JM.set(e,n),r}(e).filter(e=>{var r,n;if(RR(e.effect)){const{target:i}=e.effect;if(null==(n=i&&(null==(r=t.isValidTarget)?void 0:r.call(t,i)))||n)return e.effect.getKeyframes().some(e=>{for(const r of t.properties)if(e[r])return!0})}}).map(e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0});if(r.length>0)return()=>r.forEach(e=>null==e?void 0:e())}var eL=class extends JI{constructor(e,t={}){var r,n,i,o;const{frameTransform:a=FM(e),ignoreTransforms:s,getBoundingClientRect:l=LR}=t,u=QM(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||HR())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=TM(e),v=$M(g),y={x:null!=(r=null==v?void 0:v.scaleX)?r:1,y:null!=(n=null==v?void 0:v.scaleY)?n:1},b=function(e,t){var r;const n=e.getAnimations();let i=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=RR(e.effect)?e.effect.getKeyframes():[],o=n[n.length-1];if(!o)continue;const{transform:a,translate:s,scale:l}=o;if(a||s||l){const e=$M({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(i=i?{x:i.x+e.x,y:i.y+e.y,z:null!=(r=i.z)?r:e.z,scaleX:i.scaleX*e.scaleX,scaleY:i.scaleY*e.scaleY}:e)}}return i}(e,g);null==u||u(),v&&(d=function(e,t,r){const{scaleX:n,scaleY:i,x:o,y:a}=t,s=e.left-o-(1-n)*parseFloat(r),l=e.top-a-(1-i)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=i?e.height/i:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,v,g.transformOrigin),(s||b)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(i=null==d?void 0:d.width)?i:h,height:null!=(o=null==d?void 0:d.height)?o:m};if(b&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:i,x:o,y:a}=t,s=e.left+o+(1-n)*parseFloat(r),l=e.top+a+(1-i)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=i?e.height*i:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,b,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,y.x=b.scaleX,y.y=b.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=y,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function tL(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var rL=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(tL(r))for(const[n,i]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof i?i:`${i}px`)}}remove(e,t=""){const{element:r}=this;if(tL(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(tL(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function nL(e){return!!e&&(e instanceof OR(e).Element||kR(e)&&e.nodeType===Node.ELEMENT_NODE)}function iL(e){if(!e)return!1;const{KeyboardEvent:t}=OR(e.target);return e instanceof t}var oL={};function aL(e){const t=null==oL[e]?0:oL[e]+1;return oL[e]=t,`${e}-${t}`}var sL=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/XI.distance(t.shape.center,r),type:sP.PointerIntersection,priority:aP.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:i}=e,o=XI.distance(t.shape.center,i.current),a=n/(r.current.area+t.shape.area-n)/o;return{id:t.id,value:a,type:sP.ShapeIntersection,priority:aP.Normal}}return null})(e)},lL=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:i}=t;if(!r.shape)return null;const o=n?JI.from(n.current.boundingRectangle).corners:void 0,a=JI.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+XI.distance(XI.from(t),null!=(n=null==o?void 0:o[r])?n:i.current)},0),s=a/4;return{id:r.id,value:1/s,type:sP.Collision,priority:aP.Normal}},uL=Object.create,cL=Object.defineProperty,dL=Object.defineProperties,pL=Object.getOwnPropertyDescriptor,fL=Object.getOwnPropertyDescriptors,hL=Object.getOwnPropertySymbols,mL=Object.prototype.hasOwnProperty,gL=Object.prototype.propertyIsEnumerable,vL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),yL=e=>{throw TypeError(e)},bL=(e,t,r)=>t in e?cL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xL=(e,t)=>{for(var r in t||(t={}))mL.call(t,r)&&bL(e,r,t[r]);if(hL)for(var r of hL(t))gL.call(t,r)&&bL(e,r,t[r]);return e},SL=(e,t)=>dL(e,fL(t)),wL=(e,t)=>cL(e,"name",{value:t,configurable:!0}),CL=(e,t)=>{var r={};for(var n in e)mL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&hL)for(var n of hL(e))t.indexOf(n)<0&&gL.call(e,n)&&(r[n]=e[n]);return r},EL=e=>{var t;return[,,,uL(null!=(t=null==e?void 0:e[vL("metadata")])?t:null)]},IL=["class","method","getter","setter","accessor","field","value","get","set"],DL=e=>void 0!==e&&"function"!=typeof e?yL("Function expected"):e,PL=(e,t,r,n,i)=>({kind:IL[e],name:t,metadata:n,addInitializer:e=>r._?yL("Already initialized"):i.push(DL(e||null))}),RL=(e,t)=>bL(t,vL("metadata"),e[3]),ML=(e,t,r,n)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(r):n=o[i].call(r,n);return n},LL=(e,t,r,n,i,o)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=IL[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&pL(d<4?i:{get[r](){return OL(this,o)},set[r](e){return TL(this,o,e)}},r));d?f&&d<4&&wL(o,(d>2?"set ":d>1?"get ":"")+r):wL(i,r);for(var b=n.length-1;b>=0;b--)u=PL(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>kL(i,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?OL:NL)(e,i,4^d?o:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>TL(e,i,t,4^d?o:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?DL(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?yL("Object expected"):(DL(a=s.get)&&(y.get=a),DL(a=s.set)&&(y.set=a),DL(a=s.init)&&g.unshift(a));return d||RL(e,i),y&&cL(i,r,y),f?4^d?o:y:i},AL=(e,t,r)=>t.has(e)||yL("Cannot "+r),kL=(e,t)=>Object(t)!==t?yL('Cannot use the "in" operator on this value'):e.has(t),OL=(e,t,r)=>(AL(e,t,"read from private field"),r?r.call(e):t.get(e)),qL=(e,t,r)=>t.has(e)?yL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),TL=(e,t,r,n)=>(AL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),NL=(e,t,r)=>(AL(e,t,"access private method"),r),_L="button",jL="draggable",FL="dnd-kit-description",zL="dnd-kit-announcement",WL={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},$L={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function HL(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var VL=["dragover","dragmove"];var BL,GL,UL,YL,KL,XL,JL,ZL,QL,eA,tA,rA,nA,iA=new Map,oA=class extends(KL=zD,YL=[CI],UL=[EI],GL=[EI],BL=[EI],KL){constructor(e){super(e),ML(JL,5,this),qL(this,QL),qL(this,XL,new Set),qL(this,ZL,ML(JL,8,this,new Set)),ML(JL,11,this),this.registerEffect(NL(this,QL,eA))}register(e){return OL(this,XL).add(e),()=>{OL(this,XL).delete(e)}}addRoot(e){return dE(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{dE(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return GR(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return GR(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};JL=EL(KL),XL=new WeakMap,ZL=new WeakMap,QL=new WeakSet,eA=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of OL(this,XL))t.push(NL(this,QL,tA).call(this,r,e));return()=>{for(const e of t)e()}},tA=function(e,t){let r=iA.get(e);r||(r=new Map,iA.set(e,r));let n=r.get(t);if(!n){const i=qR(e)?NL(this,QL,rA).call(this,e,r,t):NL(this,QL,nA).call(this,e,r,t);if(!i)return()=>{};n=i,r.set(t,n)}n.refCount++;let i=!1;return()=>{i||(i=!0,n.refCount--,0===n.refCount&&n.cleanup())}},rA=function(e,t,r){const n=e.createElement("style");n.textContent=r,e.head.prepend(n);const i=new MutationObserver(t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===n)return void e.head.prepend(n)});return i.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{i.disconnect(),n.remove(),t.delete(r),0===t.size&&iA.delete(e)}}},nA=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=n?n:{};if(!i)return null;const o=new i;return o.replaceSync(r),e.adoptedStyleSheets.push(o),{refCount:0,cleanup:()=>{var n;if(BR(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(o);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&iA.delete(e)}}},LL(JL,4,"additionalRoots",YL,oA,ZL),LL(JL,2,"sourceRoot",UL,oA),LL(JL,2,"targetRoot",GL,oA),LL(JL,2,"roots",BL,oA),RL(JL,oA);var aA="data-dnd-",sA=`${aA}dropping`,lA="--dnd-",uA=`${aA}dragging`,cA=`${aA}placeholder`,dA=[uA,cA,"popover","aria-pressed","aria-grabbing"],pA=["view-transition-name"],fA=`\n :is(:root,:host) [${uA}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${lA}top, 0px) !important;\n left: var(${lA}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${lA}width, auto);\n max-width: var(${lA}width, auto);\n height: var(${lA}height, auto);\n max-height: var(${lA}height, auto);\n transition: var(${lA}transition) !important;\n }\n\n :is(:root,:host) [${cA}] {\n transition: none;\n }\n\n :is(:root,:host) [${cA}='hidden'] {\n visibility: hidden;\n }\n\n [${uA}] * {\n pointer-events: none !important;\n }\n\n [${uA}]:not([${sA}]) {\n translate: var(${lA}translate) !important;\n }\n\n [${uA}][style*='${lA}scale'] {\n scale: var(${lA}scale) !important;\n transform-origin: var(${lA}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${uA}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${uA}]::backdrop, [${aA}overlay]:not([${uA}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function hA(e,t="hidden"){return dE(()=>{const{element:r,manager:n}=e;if(!r||!n)return;const i=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${aA}${aL("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),o=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach((e,t)=>{const r=n[t];if(YR(e)&&YR(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),KR(e)&&KR(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}}),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,i]of e){if(!n.element)continue;const e=`[${i}]`,o=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(i),!o)continue;const a=n.element;n.proxy=o,o.removeAttribute(i),JR.set(a,o),r.push(()=>{JR.delete(a),n.proxy=void 0})}}(i,a,o),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(cA,t)}(a,t),a.remove=()=>{o.forEach(e=>e()),s.call(a)},a})}function mA(e,t){return e===t||QR(e)===QR(t)}function gA(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&nL(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>DM(t))}function vA(e){return"TR"===e.tagName}var yA,bA,xA,SA,wA,CA,EA,IA=250,DA="ease";var PA=class extends(bA=jD,yA=[CI],bA){constructor(e,t){super(e,t),qL(this,wA),qL(this,SA,ML(xA,8,this)),ML(xA,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(oA),n=null==r?void 0:r.register(fA);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(NL(this,wA,CA).bind(this,r)),this.registerEffect(NL(this,wA,EA))}};xA=EL(bA),SA=new WeakMap,wA=new WeakSet,CA=function(e){const{overlay:t}=this;if(!t||!e)return;const r=GR(t);return r?e.addRoot(r):void 0},EA=function(){var e,t,r;const{state:n,manager:i,options:o}=this,{dragOperation:a}=i,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=FM(f),m=FM(c),g=!mA(c,f),v=new eL(c,{frameTransform:g?m:null,ignoreTransforms:!g}),y=m.scaleX/h.scaleX,b=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=y,S/=b);const E=new rL(f),{transition:I,translate:D,boxSizing:P,paddingBlockStart:R,paddingBlockEnd:M,paddingInlineStart:L,paddingInlineEnd:A,borderInlineStartWidth:k,borderInlineEndWidth:O,borderBlockStartWidth:q,borderBlockEndWidth:T}=TM(c),N="clone"===d,_="content-box"===P,j=_?parseInt(L)+parseInt(A)+parseInt(k)+parseInt(O):0,F=_?parseInt(R)+parseInt(M)+parseInt(q)+parseInt(T):0,z="move"===d||this.overlay?null:hA(l,N?"clone":"hidden"),W=dE(()=>iL(i.dragOperation.activatorEvent));if("none"!==D){const e=WM(D);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=dE(()=>s.current);p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,H=w*h.scaleY+h.y,V=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:V,y:H},1!==y||1!==b)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=$;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const B=p.coordinates.x-V,G=p.coordinates.y-H,U=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:B/h.scaleX+U,y:G/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(uA,"true");const Z=dE(()=>a.transform),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=VR();if(E.set({width:x-j,height:S-F,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:I?`${I}, translate 0ms linear`:"",scale:g?`${y} ${b}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},lA),z&&(c.insertAdjacentElement("afterend",z),null==o?void 0:o.rootElement)){("function"==typeof o.rootElement?o.rootElement(l):o.rootElement).appendChild(c)}let ne,ie,oe;IM(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),DM(f),f.addEventListener("beforetoggle",gA));const ae=(se={placeholder:z,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:j,heightOffset:F,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>oe,setSavedCellWidths:e=>{oe=e}},new ResizeObserver(()=>{var e,t;const r=new eL(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},i=(se.width-r.width)*n.x+se.delta.x,o=(se.height-r.height)*n.y+se.delta.y,a=VR();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+o+a.y,left:se.left+i+a.x},lA),null==(t=se.getElementMutationObserver())||t.takeRecords(),vA(se.element)&&vA(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map(e=>e.style.width));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new eL(se.feedbackElement)}));var se;const le=new eL(f);dE(()=>a.shape=le);const ue=OR(f),ce=e=>{this.manager.actions.stop({event:e})},de=UR(ue);W&&ue.addEventListener("resize",ce),"idle"===dE(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),z&&(ae.observe(z),ne=function(e,t,r){const n=new MutationObserver(n=>{let i=!1;for(const r of n){if(r.target!==e){i=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||dA.includes(n))continue;const o=e.getAttribute(n);if("style"===n){if(tL(e)&&tL(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(pA.includes(e)||e.startsWith(lA))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==o?t.setAttribute(n,o):t.removeAttribute(n)}i&&r&&(t.innerHTML=e.innerHTML)});return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,z,N),ie=function(e,t,r){const n=new MutationObserver(n=>{for(const i of n)if(0!==i.addedNodes.length)for(const n of Array.from(i.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void DM(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void DM(r)}});return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,z,f));const pe=null==(r=i.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!W||null==pe)return;const t=i.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;TR(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==ie||ie.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),IM(f)&&(f.removeEventListener("beforetoggle",gA),f.removeAttribute("popover")),f.removeAttribute(uA),E.reset(),oe&&vA(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=oe[r])?e:""}l.status="idle";const t=null!=n.current.translate;z&&(t||z.parentElement!==f.parentElement)&&f.isConnected&&z.replaceWith(f),null==z||z.remove()},me=null==o?void 0:o.dropAnimation,ge=this,ve=DI(()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},i={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},o=n.current.translate,s=dE(()=>a.modifiers),l=dE(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=W&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${I}, translate ${u}`,translate:`${i.x}px ${i.y}px 0`},lA),null==ne||ne.takeRecords(),l&&l!==le&&o&&!s.length){const e=XI.delta(i,o);a.shape=JI.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new eL(f);n.current.translate=i}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();i.renderer.rendering.then(()=>{!function(e){var t,r,n,i;const{animation:o}=e;if("function"==typeof o){const t=o({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=IA,easing:s=DA}=null!=o?o:{};DM(e.feedbackElement);const[,l]=null!=(t=MR(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:mA(e.feedbackElement,u)?null:void 0},d=new eL(e.feedbackElement,c),p=null!=(n=WM(TM(e.feedbackElement).translate))?n:e.translate,f=new eL(u,c),h=JI.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,v=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},y=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},lA),e.feedbackElement.setAttribute(sA,""),null==(i=e.getElementMutationObserver())||i.takeRecords(),YM({element:e.feedbackElement,keyframes:SL(xL(xL({},v),y),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:UR(OR(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(sA),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:z,translate:t,moved:r,transition:I,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})})}});return()=>{he(),ve()}},LL(xA,4,"overlay",yA,PA,SA),RL(xA,PA),PA.configure=ND(PA);var RA,MA,LA,AA,kA,OA,qA,TA=PA,NA=!0;LA=[CI],AA=HM.Forward,RA=[CI],MA=HM.Reverse;var _A=class{constructor(){qL(this,OA,ML(kA,8,this,NA)),ML(kA,11,this),qL(this,qA,ML(kA,12,this,NA)),ML(kA,15,this)}isLocked(e){return e!==HM.Idle&&(null==e?this[HM.Forward]===NA&&this[HM.Reverse]===NA:this[e]===NA)}unlock(e){e!==HM.Idle&&(this[e]=false)}};kA=EL(null),OA=new WeakMap,qA=new WeakMap,LL(kA,4,AA,LA,_A,OA),LL(kA,4,MA,RA,_A,qA),RL(kA,_A);var jA,FA,zA,WA,$A,HA,VA=[HM.Forward,HM.Reverse],BA=class{constructor(){this.x=new _A,this.y=new _A}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},GA=class extends jD{constructor(e){super(e);const t=SE(new BA);let r=null;this.signal=t,AE(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new BA);const{delta:i}=e.dragOperation.position;if(r){const e={x:UA(i.x,r.x),y:UA(i.y,r.y)},n=t.peek();uE(()=>{for(const t of aD)for(const r of VA)e[t]===r&&n[t].unlock(r);t.value=n})}r=i})}get current(){return this.signal.peek()}};function UA(e,t){return Math.sign(e-t)}var YA=class extends(FA=zD,jA=[CI],FA){constructor(e){super(e),qL(this,WA,ML(zA,8,this,!1)),ML(zA,11,this),qL(this,$A),qL(this,HA,()=>{if(!OL(this,$A))return;const{element:e,by:t}=OL(this,$A);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return TL(this,$A,void 0),!1;const{position:n}=this.manager.dragOperation,i=null==n?void 0:n.current;if(i){const{by:n}=null!=e?e:{},o=n?{x:KA(n.x),y:KA(n.y)}:void 0,a=o?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=MM(e,n);if(r.x||r.y){const{speed:r,direction:s}=GM(e,i,o);if(a)for(const e of aD)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:i,y:o}=null!=n?n:s,a=i*r.x,l=o*r.y;if(a||l){const r=null==(t=OL(this,$A))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return TL(this,$A,{element:e,by:{x:a,y:l}}),AM.schedule(OL(this,HA)),!0}}}}}return TL(this,$A,void 0),!1};let t=null,r=null;const n=SI(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const i=XR(GR(null==n?void 0:n.element),r.current);return i&&(t=i),null!=i?i:t}),i=SI(()=>{const t=n.value,{documentElement:i}=_R(t);if(!t||t===i){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=jM(n,{excludeElement:!1});return r=e,e}}if(t){const e=jM(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},wI);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new GA(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&iL(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function KA(e){return e>0?HM.Forward:e<0?HM.Reverse:HM.Idle}zA=EL(FA),WA=new WeakMap,$A=new WeakMap,HA=new WeakMap,LL(zA,4,"autoScrolling",jA,YA,WA),RL(zA,YA);var XA,JA=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),ZA=class extends jD{constructor(e,t){super(e);const r=e.registry.plugins.get(YA);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=AE(()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval(()=>JA.schedule(r.scroll),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}})}},QA={capture:!0,passive:!0},ek=class extends zD{constructor(e){super(e),qL(this,XA),this.handleScroll=()=>{null==OL(this,XA)&&TL(this,XA,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),TL(this,XA,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=AE(()=>{var e,r,n;if(t.status.dragging){const i=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return i.addEventListener("scroll",this.handleScroll,QA),()=>{i.removeEventListener("scroll",this.handleScroll,QA)}}})}};XA=new WeakMap;function tk(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var rk,nk=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),ik=class extends YP{constructor(e,t){super(e),this.manager=e,this.options=t,qL(this,rk,[]),this.listeners=new ZR,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!nL(e.target))return;if(t.disabled)return;const{keyboardCodes:n=nk.keyboardCodes,preventActivation:i=nk.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==i?void 0:i(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=AE(()=>{var r;const n=null!=(r=e.handle)?r:e.element,i=r=>{iL(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",i),()=>{n.removeEventListener("keydown",i)}});return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),UM(n);const{center:i}=new eL(n);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const o=_R(n),a=[this.listeners.bind(o,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];OL(this,rk).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=nk.keyboardCodes}=null!=r?r:{};if(sk(e,[...n.end,...n.cancel])){e.preventDefault();const t=sk(e,n.cancel);return void this.handleEnd(e,t)}sk(e,n.up)?this.handleMove("up",e):sk(e,n.down)&&this.handleMove("down",e),sk(e,n.left)?this.handleMove("left",e):sk(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:i}=this.manager.dragOperation,o=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:nk.offset;if("number"==typeof s&&(s={x:s,y:s}),i){switch(e){case"up":a={x:0,y:-s.y*o};break;case"down":a={x:0,y:s.y*o};break;case"left":a={x:-s.x*o,y:0};break;case"right":a={x:s.x*o,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(ZA);!1===(null==e?void 0:e.disabled)&&(e.disable(),OL(this,rk).push(()=>{e.enable()}))}cleanup(){OL(this,rk).forEach(e=>e()),TL(this,rk,[])}destroy(){this.cleanup(),this.listeners.clear()}};rk=new WeakMap,ik.configure=ND(ik),ik.defaults=nk;var ok,ak=ik;function sk(e,t){return t.includes(e.code)}var lk,uk;ok=new WeakMap;lk=new WeakMap,uk=new WeakMap;var ck=class{};ck.Delay=class extends XP{constructor(){super(...arguments),qL(this,lk),qL(this,uk)}onEvent(e){switch(e.type){case"pointerdown":TL(this,uk,zR(e)),TL(this,lk,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!OL(this,uk))return;const{x:t,y:r}=zR(e);eD({x:t-OL(this,uk).x,y:r-OL(this,uk).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){OL(this,lk)&&(clearTimeout(OL(this,lk)),TL(this,uk,void 0),TL(this,lk,void 0))}},ck.Distance=class extends XP{constructor(){super(...arguments),qL(this,ok)}onEvent(e){switch(e.type){case"pointerdown":TL(this,ok,zR(e));break;case"pointermove":if(!OL(this,ok))return;const{x:t,y:r}=zR(e),n={x:t-OL(this,ok).x,y:r-OL(this,ok).y},{tolerance:i}=this.options;if(i&&eD(n,i))return void this.abort();eD(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){TL(this,ok,void 0)}};var dk,pk=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:i}=e;if("mouse"!==n||!nL(i)||t.handle!==i&&!(null==(r=t.handle)?void 0:r.contains(i)))return"touch"===n?[new ck.Delay({value:250,tolerance:5})]:function(e){if(!nL(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(i)&&!e.defaultPrevented?[new ck.Delay({value:200,tolerance:0})]:[new ck.Delay({value:200,tolerance:10}),new ck.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!nL(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),fk=class extends YP{constructor(e,t){super(e),this.manager=e,this.options=t,qL(this,dk,new Set),this.listeners=new ZR,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=pk.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=AE(()=>{var r;const n=new AbortController,{signal:i}=n,o=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=OR(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(yk(e.ownerDocument.defaultView),e.addEventListener("pointerdown",o,{signal:i}));return()=>n.abort()});return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!nL(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=pk.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:i}=e,o=TR(i)&&i.draggable&&"true"===i.getAttribute("draggable"),a=FM(t.element),{x:s,y:l}=zR(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new KP(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=$R(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:o?this.handleCancel:mk,options:{capture:!0}}]);OL(this,dk).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=zR(e),n=FM(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,AM.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const i=_R(t.target).body;i.setPointerCapture(t.pointerId);const o=nL(t.target)?[t.target,i]:i,a=this.listeners.bind(o,[{type:"touchmove",listener:mk,options:{passive:!1}},{type:"click",listener:mk},{type:"contextmenu",listener:mk},{type:"keydown",listener:this.handleKeyDown}]);OL(this,dk).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},OL(this,dk).forEach(e=>e()),OL(this,dk).clear()}destroy(){this.cleanup(),this.listeners.clear()}};dk=new WeakMap,fk.configure=ND(fk),fk.defaults=pk;var hk=fk;function mk(e){e.preventDefault()}function gk(){}var vk=new WeakSet;function yk(e){e&&!vk.has(e)&&(e.addEventListener("touchmove",gk,{capture:!1,passive:!1}),vk.add(e))}var bk,xk,Sk,wk,Ck,Ek,Ik,Dk,Pk,Rk,Mk,Lk,Ak,kk,Ok,qk,Tk,Nk,_k={modifiers:[],plugins:[class extends jD{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=FL,announcement:i=zL}={},announcements:o=$L,screenReaderInstructions:a=WL,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:aL(n),u=r?`${i}-${r}`:aL(i);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>AM.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),v=Object.entries(o).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const i=p;if(!i)return;const o=null==t?void 0:t(r,n);o&&i.nodeValue!==o&&(f=o,VL.includes(e)?g():(m(),g.cancel()))})),y=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},b=new Set;function x(){for(const e of b)e()}this.registerEffect(()=>{var e;b.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||b.add(y),HL(r)&&!HR()||r.hasAttribute("tabindex")||b.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||b.add(()=>r.setAttribute("role",_L)),r.hasAttribute("aria-roledescription")||b.add(()=>r.setAttribute("aria-roledescription",jL)),r.hasAttribute("aria-describedby")||b.add(()=>r.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&b.add(()=>r.setAttribute(e,n))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&b.add(()=>r.setAttribute("aria-disabled",e))}}b.size>0&&AM.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach(e=>e())}}},ZA,class extends jD{constructor(e,t){super(e,t),this.manager=e;const r=SI(()=>{var e;return _R(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=AE(()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:i}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return i&&t.setAttribute("nonce",i),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},TA,class extends jD{constructor(e,t){super(e,t),this.manager=e,this.destroy=AE(()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),tk(),document.addEventListener("selectionchange",tk,{capture:!0}),()=>{document.removeEventListener("selectionchange",tk,{capture:!0}),e.remove()}}})}}],sensors:[hk,ak]},jk=class extends SR{constructor(e={}){const t=xR(e.plugins,_k.plugins),r=xR(e.sensors,_k.sensors),n=xR(e.modifiers,_k.modifiers);super(SL(xL({},e),{plugins:[ek,YA,oA,...t],sensors:r,modifiers:n}))}},Fk=class extends(wk=BP,Sk=[CI],xk=[CI],bk=[CI],wk){constructor(e,t){var r=e,{element:n,effects:i=()=>[],handle:o,feedback:a="default"}=r,s=CL(r,["element","effects","handle","feedback"]);super(xL({effects:()=>[...i(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(_D))?t:[...r.sensors]).map(e=>{const t=e instanceof YP?e:r.registry.register(e.plugin),n=e instanceof YP?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},s),t),qL(this,Ek,ML(Ck,8,this)),ML(Ck,11,this),qL(this,Ik,ML(Ck,12,this)),ML(Ck,15,this),qL(this,Dk,ML(Ck,16,this)),ML(Ck,19,this),this.element=n,this.handle=o,this.feedback=a}};Ck=EL(wk),Ek=new WeakMap,Ik=new WeakMap,Dk=new WeakMap,LL(Ck,4,"handle",Sk,Fk,Ek),LL(Ck,4,"element",xk,Fk,Ik),LL(Ck,4,"feedback",bk,Fk,Dk),RL(Ck,Fk);var zk=class extends(Mk=GP,Rk=[CI],Pk=[CI],Mk){constructor(e,t){var r=e,{element:n,effects:i=()=>[]}=r,o=CL(r,["element","effects"]);const{collisionDetector:a=sL}=o,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new eL(r),i=dE(()=>this.shape);return n&&(null==i?void 0:i.equals(n))?i:(this.shape=n,n)},l=SE(!1);super(SL(xL({},o),{collisionDetector:a,effects:()=>[...i(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new EM(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),qL(this,Tk),qL(this,Ak,ML(Lk,8,this)),ML(Lk,11,this),qL(this,Nk,ML(Lk,12,this)),ML(Lk,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){TL(this,Tk,e,qk)}get element(){var e;return null!=(e=this.proxy)?e:OL(this,Tk,Ok)}};function Wk(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}Lk=EL(Mk),Ak=new WeakMap,Tk=new WeakSet,Nk=new WeakMap,kk=LL(Lk,20,"#element",Rk,Tk,Ak),Ok=kk.get,qk=kk.set,LL(Lk,4,"proxy",Pk,zk,Nk),RL(Lk,zk);var $k="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?g:d;function Hk(){const e=m(0)[1];return f(()=>{e(e=>e+1)},[e])}function Vk(e,t=[],r=!1){const n=l(e);return n.current=e,function(e,t=!1){const r=l(e.peek()),n=l(!1),i=Hk();return $k(()=>AE(()=>{const o=r.current,a=e.value;if(o!==a){if(r.current=a,!n.current)return;t?D(i):i()}}),[e,t,i]),{get value(){return n.current=!0,e.peek()}}}(v(()=>SI(()=>n.current()),t),r)}function Bk(e,t){const r=l(new Map),n=Hk();return $k(()=>{if(e)return AE(()=>{var i;let o=!1,a=!1;for(const n of r.current){const[s]=n,l=dE(()=>n[1]),u=e[s];l!==u&&(o=!0,r.current.set(s,u),a=null!=(i=null==t?void 0:t(s,l,u))&&i)}o&&(a?D(n):n())});r.current.clear()},[e]),v(()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e,[e])}function Gk(e,t){e()}function Uk(e){const t=l(e);return $k(()=>{t.current=e},[e]),t}function Yk(e,t,r=d,n=Object.is){const i=l(e);r(()=>{const r=i.current;n(e,r)||(i.current=e,t(e,r))},[t,e])}function Kk(e,t){const r=l(Wk(e));$k(()=>{const n=Wk(e);n!==r.current&&(r.current=n,t(n))})}var Xk=Object.defineProperty,Jk=Object.defineProperties,Zk=Object.getOwnPropertyDescriptors,Qk=Object.getOwnPropertySymbols,eO=Object.prototype.hasOwnProperty,tO=Object.prototype.propertyIsEnumerable,rO=(e,t,r)=>t in e?Xk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nO=new jk,iO=u(nO),oO=b(x(({children:e},t)=>{const[r,n]=m(0),i=l(null),o=l(null),a=v(()=>({renderer:{get rendering(){var e;return null!=(e=i.current)?e:Promise.resolve()}},trackRendering(e){i.current||(i.current=new Promise(e=>{o.current=e})),S(()=>{e(),n(e=>e+1)})}}),[]);return $k(()=>{var e;null==(e=o.current)||e.call(o),i.current=null},[e,r]),w(t,()=>a),null})),aO=[void 0,wI];function sO(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:i,onDragStart:o,onDragMove:a,onDragOver:s,onDragEnd:u}=t,c=((e,t)=>{var r={};for(var n in e)eO.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Qk)for(var n of Qk(e))t.indexOf(n)<0&&tO.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const p=l(null),{plugins:f,modifiers:h,sensors:m}=c,g=xR(f,_k.plugins),v=xR(m,_k.sensors),b=xR(h,_k.modifiers),x=Uk(i),S=Uk(o),w=Uk(s),C=Uk(a),E=Uk(u),I=Uk(n),D=function(e){const t=l(null);t.current||(t.current=e());return y(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new jk(c)});return d(()=>{if(!p.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=p.current,{monitor:r}=D;D.renderer=e;const n=[r.addEventListener("beforedragstart",e=>{const r=x.current;r&&t(()=>r(e,D))}),r.addEventListener("dragstart",e=>{var t;return null==(t=S.current)?void 0:t.call(S,e,D)}),r.addEventListener("dragover",e=>{const r=w.current;r&&t(()=>r(e,D))}),r.addEventListener("dragmove",e=>{const r=C.current;r&&t(()=>r(e,D))}),r.addEventListener("dragend",e=>{const r=E.current;r&&t(()=>r(e,D))}),r.addEventListener("collision",e=>{var t;return null==(t=I.current)?void 0:t.call(I,e,D)})];return()=>n.forEach(e=>e())},[D]),Yk(g,()=>D&&(D.plugins=g),...aO),Yk(v,()=>D&&(D.sensors=v),...aO),Yk(b,()=>D&&(D.modifiers=b),...aO),io.jsxs(iO.Provider,{value:D,children:[io.jsx(oO,{ref:p,children:r}),r]})}function lO(){return h(iO)}function uO(e){var t;const r=null!=(t=lO())?t:void 0,[n]=m(()=>e(r));return n.manager!==r&&(n.manager=r),$k(n.register,[r,n]),n}function cO({children:e,className:t,dropAnimation:r,style:i,tag:o,disabled:a}){var s;const u=l(null),c=lO(),p=null!=(s=Vk(()=>null==c?void 0:c.dragOperation.source,[c]).value)?s:null,f="function"==typeof a?a(p):a;d(()=>{if(!u.current||!c||f)return;const e=c.plugins.find(e=>e instanceof TA);return e?(e.overlay=u.current,()=>{e.overlay=void 0}):void 0},[c,f]),d(()=>{if(!c)return;const e=c.plugins.find(e=>e instanceof TA);return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0},[c,r]);const h=v(()=>{if(!c)return null;const e=new Proxy(c.registry,{get:(e,t)=>"register"===t||"unregister"===t?dO:e[t]});return new Proxy(c,{get:(t,r)=>"registry"===r?e:t[r]})},[c]);return io.jsx(iO.Provider,{value:h,children:n(o||"div",{ref:u,className:t,style:i,"data-dnd-overlay":!0},function(){if(!p||f)return null;if("function"==typeof e)return io.jsx(pO,{source:p,children:e});return e}())})}function dO(){return()=>{}}function pO({children:e,source:t}){return e(Bk(t))}var fO,hO,mO,gO,vO,yO=Object.create,bO=Object.defineProperty,xO=Object.getOwnPropertyDescriptor,SO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),wO=e=>{throw TypeError(e)},CO=["class","method","getter","setter","accessor","field","value","get","set"],EO=e=>void 0!==e&&"function"!=typeof e?wO("Function expected"):e,IO=(e,t,r,n,i)=>({kind:CO[e],name:t,metadata:n,addInitializer:e=>r._?wO("Already initialized"):i.push(EO(e||null))}),DO=(e,t,r,n,i,o)=>{for(var a,s,l,u,c=7&t,d=CO[c+5],p=e[2]||(e[2]=[]),f=(i=i.prototype,xO(i,r)),h=n.length-1;h>=0;h--)(l=IO(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,EO(a)&&(f[d]=a);return f&&bO(i,r,f),i},PO=(e,t,r)=>t.has(e)||wO("Cannot "+r),RO=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},MO=class extends(mO=RI,hO=[EI],fO=[EI],mO){constructor(e){var t,r,n;super(RO.from(e),(e,t)=>RO.equals(e,t)),((e,t,r)=>{for(var n=0,i=e[t>>1],o=i&&i.length;n<o;n++)i[n].call(r)})(vO,5,this),t=this,n=0,(r=gO).has(t)?wO("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return RO.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=RO.from(e),n={x:r.x-t.x,y:r.y-t.y},i=Date.now(),o=i-(PO(a=this,s=gO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/o*100);uE(()=>{((e,t,r)=>{PO(e,t,"write to private field"),t.set(e,r)})(this,gO,i),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(RO.from(e)),this.velocity={x:0,y:0}}};vO=(e=>{var t;return[,,,yO(null!=(t=null==e?void 0:e[SO("metadata")])?t:null)]})(mO),gO=new WeakMap,DO(vO,2,"delta",hO,MO),DO(vO,2,"direction",fO,MO),((e,t)=>{((e,t,r)=>{t in e?bO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,SO("metadata"),e[3])})(vO,MO);var LO=(e=>(e.Horizontal="x",e.Vertical="y",e))(LO||{});Object.values(LO);var AO=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/RO.distance(t.shape.center,r),type:sP.PointerIntersection,priority:aP.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:i}=e,o=RO.distance(t.shape.center,i.current),a=n/(r.current.area+t.shape.area-n)/o;return{id:t.id,value:a,type:sP.ShapeIntersection,priority:aP.Normal}}return null})(e)};function kO(e){const{collisionDetector:t,data:r,disabled:n,element:i,id:o,accept:a,type:s}=e,l=uO(t=>new zk(((e,t)=>Jk(e,Zk(t)))(((e,t)=>{for(var r in t||(t={}))eO.call(t,r)&&rO(e,r,t[r]);if(Qk)for(var r of Qk(t))tO.call(t,r)&&rO(e,r,t[r]);return e})({},e),{register:!1,element:Wk(i)}),t)),u=Bk(l);return Yk(o,()=>l.id=o),Kk(i,e=>l.element=e),Yk(a,()=>l.accept=a,void 0,wI),Yk(t,()=>l.collisionDetector=null!=t?t:AO),Yk(r,()=>r&&(l.data=r)),Yk(n,()=>l.disabled=!0===n),Yk(s,()=>l.type=s),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:f(e=>{var t,r;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(r=l.manager)?void 0:r.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}const OO=e=>Array.from({length:e},(e,t)=>t),qO=({id:e,sectionIndex:t,itemIndex:r})=>io.jsx("span",{children:`${e}-${t}-${r}`}),TO=r.memo(()=>{const e=Dw(ZC)??qO,{startSectionIndex:t,startIndex:r,id:n}=Dw(rE)??{};return"number"!=typeof t||"number"!=typeof r||void 0===n?null:io.jsx(cO,{dropAnimation:null,children:io.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:io.jsx(e,{id:n,sectionIndex:t,itemIndex:r})})})}),NO=({sectionIndex:e,itemIndex:t,isDragging:r})=>{const n=Dw(rE),i=n?.toSectionIndex===e,o=n?.startSectionIndex===e,a=t>(n?.startIndex??t)&&e===n?.startSectionIndex?t-1:t;let s=!1;return o&&n.startIndex===a?s=!1:i&&n.toIndex===a&&(s=!0),io.jsx("div",{"data-key":"drop-target-indicator",style:{visibility:s&&!r?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},_O=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,jO=r.memo(({sectionIndex:e})=>{const t=Dw(BC)[e],r=Dw(GC),n=Dw(UC),i=null!==Dw(rE),o=n(e),a=r({sectionIndex:e}),{ref:s,isDropTarget:l}=kO({id:a,type:"section",accept:"item",collisionPriority:aP.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:io.jsxs(Qu,{ref:s,sx:{margin:"4px",outline:_O(l,i),borderRadius:"4px",boxSizing:"border-box"},children:[io.jsx(Qu,{sx:{position:"relative",top:"4px"},children:io.jsx(NO,{sectionIndex:e,itemIndex:0,isDragging:!1})}),io.jsxs(Qu,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[io.jsx(mu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:o.title}),io.jsx(mu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:o.message})]})]})}),FO=r.memo(({id:e,sectionIndex:t})=>{const r=Dw(JC);return void 0===r?null:io.jsx(r,{id:e,sectionIndex:t})});var zO=Object.defineProperty,WO=Object.defineProperties,$O=Object.getOwnPropertyDescriptors,HO=Object.getOwnPropertySymbols,VO=Object.prototype.hasOwnProperty,BO=Object.prototype.propertyIsEnumerable,GO=(e,t,r)=>t in e?zO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UO=(e,t)=>{for(var r in t||(t={}))VO.call(t,r)&&GO(e,r,t[r]);if(HO)for(var r of HO(t))BO.call(t,r)&&GO(e,r,t[r]);return e},YO=(e,t)=>WO(e,$O(t)),KO=class extends gR{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return YO(UO({},e),{[t]:r})}};KO.configure=ND(KO);var XO=KO,JO=XO.configure({axis:"x",value:0});XO.configure({axis:"y",value:0});var ZO=class extends gR{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,i="number"==typeof r?r:r.y;return YO(UO({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/i)*i})}};ZO.configure=ND(ZO);var QO=Object.create,eq=Object.defineProperty,tq=Object.defineProperties,rq=Object.getOwnPropertyDescriptor,nq=Object.getOwnPropertyDescriptors,iq=Object.getOwnPropertySymbols,oq=Object.prototype.hasOwnProperty,aq=Object.prototype.propertyIsEnumerable,sq=e=>{throw TypeError(e)},lq=(e,t,r)=>t in e?eq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uq=(e,t)=>{for(var r in t||(t={}))oq.call(t,r)&&lq(e,r,t[r]);if(iq)for(var r of iq(t))aq.call(t,r)&&lq(e,r,t[r]);return e},cq=(e,t)=>tq(e,nq(t)),dq=["class","method","getter","setter","accessor","field","value","get","set"],pq=e=>void 0!==e&&"function"!=typeof e?sq("Function expected"):e,fq=(e,t,r,n,i)=>({kind:dq[e],name:t,metadata:n,addInitializer:e=>r._?sq("Already initialized"):i.push(pq(e||null))}),hq=(e,t,r,n)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(r):n=o[i].call(r,n);return n},mq=(e,t,r,n,i,o)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=dq[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(i=i.prototype,rq({get[r](){return vq(this,o)},set[r](e){return bq(this,o,e)}},r)),v=n.length-1;v>=0;v--)(u=fq(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[v])({get:g.get,set:g.set},u),l._=1,void 0===s?pq(s)&&(g[f]=s):"object"!=typeof s||null===s?sq("Object expected"):(pq(a=s.get)&&(g.get=a),pq(a=s.set)&&(g.set=a),pq(a=s.init)&&h.unshift(a));return g&&eq(i,r,g),i},gq=(e,t,r)=>t.has(e)||sq("Cannot "+r),vq=(e,t,r)=>(gq(e,t,"read from private field"),t.get(e)),yq=(e,t,r)=>t.has(e)?sq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),bq=(e,t,r,n)=>(gq(e,t,"write to private field"),t.set(e,r),r);function xq(e){return e instanceof Jq||e instanceof Xq}var Sq=class extends jD{constructor(e){super(e);const t=AE(()=>{const{dragOperation:t}=e;if(iL(t.activatorEvent)&&xq(t.source)&&t.status.initialized){const t=e.registry.plugins.get(YA);if(t)return t.disable(),()=>t.enable()}}),r=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!iL(e.nativeEvent))return;if(!xq(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:i,registry:o}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];uE(()=>{for(const e of o.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&xq(e)||!e.element)continue;let r=e.shape;const n=new eL(e.element,{getBoundingClientRect:e=>FR(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push(()=>e.shape=r)))}}),e.preventDefault(),i.disable();const f=i.computeCollisions(d,lL);uE(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:o}=r;if(!e||!xq(e)||!o)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||v!==s,c=u?l:null==t?void 0:t.element;if(!c)return;UM(c);const d=new eL(c);if(!d)return;const p=JI.delta(d,JI.from(o.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then(()=>i.enable()):i.enable()})})});this.destroy=()=>{r(),t()}}};var wq=Object.defineProperty,Cq=Object.defineProperties,Eq=Object.getOwnPropertyDescriptors,Iq=Object.getOwnPropertySymbols,Dq=Object.prototype.hasOwnProperty,Pq=Object.prototype.propertyIsEnumerable,Rq=(e,t,r)=>t in e?wq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mq=(e,t)=>{for(var r in t||(t={}))Dq.call(t,r)&&Rq(e,r,t[r]);if(Iq)for(var r of Iq(t))Pq.call(t,r)&&Rq(e,r,t[r]);return e},Lq=(e,t)=>Cq(e,Eq(t));function Aq(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function kq(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function Oq(e,t){return function(e,t,r){var n,i,o;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex(e=>u(e,a.id)),i=e.findIndex(e=>u(e,s.id));if(-1===n||-1===i){if(kq(a)){const n=a.initialIndex,i=a.index;return n===i||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,i)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,i)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&kq(a)){const n=a.initialGroup,i=a.initialIndex,o=a.group,s=a.index;if(null==n||null==o||!(n in e)||!(o in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===o&&i===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===o)return Lq(Mq({},e),{[n]:r(e[n],i,s)});const l=e[n][i];return Lq(Mq({},e),{[n]:[...e[n].slice(0,i),...e[n].slice(i+1)],[o]:[...e[o].slice(0,s),l,...e[o].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(i=null==(n=m.shape)?void 0:n.current.center)?i:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&kq(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(o=a.group)?o:d;if(t in e){if(d===t)return Lq(Mq({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return Lq(Mq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return Lq(Mq({},e),{[d]:r(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,y=e[d][f];return Lq(Mq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),y,...e[p].slice(h+v)]})}(e,t,Aq)}var qq="__default__";function Tq(e,t,r,n){const i=n<t?"afterend":"beforebegin";r.insertAdjacentElement(i,e)}function Nq(e,t){return e.index-t.index}function _q(e){return Array.from(e).sort(Nq)}var jq,Fq,zq,Wq,$q,Hq,Vq,Bq,Gq=[Sq,class extends jD{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof Jq){const{sortable:e}=r,{group:n}=e;let i=t.get(n);i||(i=new Set,t.set(n,i)),i.add(e)}for(const[e,r]of t)t.set(e,new Set(_q(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:i,target:o}=n;if(!xq(i)||!xq(o))return;if(i.sortable===o.sortable)return;const a=t(),s=i.sortable.group===o.sortable.group,l=a.get(i.sortable.group),u=s?l:a.get(o.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||r.renderer.rendering.then(()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,i]of r)if(i.index!==t||i.group!==e||!(null==(n=p.get(e))?void 0:n.has(i)))return}const f=i.sortable.element,h=o.sortable.element;if(!h||!f)return;if(!s&&o.id===i.sortable.group)return;const m=_q(l),g=s?m:_q(u),v=null!=(c=i.sortable.group)?c:qq,y=null!=(d=o.sortable.group)?d:qq,b={[v]:m,[y]:g},x=Oq(b,e);if(b===x)return;const S=x[y].indexOf(i.sortable),w=x[y].indexOf(o.sortable);r.collisionObserver.disable(),Tq(f,S,h,w),uE(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[y].entries())t.group=o.sortable.group,t.index=e}),r.actions.setDropTarget(i.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:i}=n;xq(i)&&(i.sortable.initialIndex===i.sortable.index&&i.sortable.initialGroup===i.sortable.group||queueMicrotask(()=>{const e=t(),n=e.get(i.sortable.initialGroup);n&&r.renderer.rendering.then(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=_q(n),r=i.sortable.element,o=t[i.sortable.initialIndex],a=null==o?void 0:o.element;o&&a&&r&&(Tq(r,o.index,a,i.index),uE(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of r)e()}}}],Uq={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},Yq=new class{constructor(){yI(this,PI,new WeakMap)}get(e,t){var r;return e?null==(r=vI(this,PI).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return vI(this,PI).has(e)||vI(this,PI).set(e,new Map),null==(n=vI(this,PI).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=vI(this,PI).get(e))?void 0:t.clear():void 0}};Fq=[CI],jq=[CI];var Kq=class{constructor(e,t){yq(this,Wq,hq(zq,8,this)),hq(zq,11,this),yq(this,$q),yq(this,Hq),yq(this,Vq,hq(zq,12,this)),hq(zq,15,this),yq(this,Bq),this.register=()=>(uE(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{uE(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{uE(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:i,index:o,sensors:a,type:s,transition:l=Uq,plugins:u=Gq}=r,c=((e,t)=>{var r={};for(var n in e)oq.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&iq)for(var n of iq(e))t.indexOf(n)<0&&aq.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new Jq(c,t,this),this.draggable=new Xq(cq(uq({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&Yq.clear(this.manager),(null==n?void 0:n.dragging)&&Yq.set(this.manager,this.id,dE(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=vq(this,Hq),i=vq(this,$q);e===n&&t===i||(bq(this,Hq,e),bq(this,$q,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),bq(this,Bq,c.element),this.manager=t,this.index=o,bq(this,Hq,o),this.group=i,bq(this,$q,i),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=Yq.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=Yq.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){dE(()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then(()=>{const{element:n}=this;if(!n)return;const i=this.refreshShape();if(!i)return;const o=r.boundingRectangle.left-i.boundingRectangle.left,a=r.boundingRectangle.top-i.boundingRectangle.top,{translate:s}=TM(n),l=KM(n,s,!1),u=KM(n,s);if(o||a){const r=UR(OR(n))?cq(uq({},t),{duration:0}):t;YM({element:n,keyframes:{translate:[`${l.x+o}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){uE(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){uE(()=>{const t=vq(this,Bq),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),bq(this,Bq,e)})}get element(){var e,t;const r=vq(this,Bq);if(r)return null!=(t=null!=(e=JR.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){uE(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){uE(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){uE(()=>{this.droppable.id=e,this.draggable.id=e})}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:sL}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){uE(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};zq=[,,,QO(null)],Wq=new WeakMap,$q=new WeakMap,Hq=new WeakMap,Vq=new WeakMap,Bq=new WeakMap,mq(zq,4,"index",Fq,Kq,Wq),mq(zq,4,"group",jq,Kq,Vq),((e,t)=>{return lq(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(zq,Kq);var Xq=class extends Fk{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},Jq=class extends zk{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},Zq=Object.defineProperty,Qq=Object.defineProperties,eT=Object.getOwnPropertyDescriptors,tT=Object.getOwnPropertySymbols,rT=Object.prototype.hasOwnProperty,nT=Object.prototype.propertyIsEnumerable,iT=(e,t,r)=>t in e?Zq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oT=(e,t)=>{for(var r in t||(t={}))rT.call(t,r)&&iT(e,r,t[r]);if(tT)for(var r of tT(t))nT.call(t,r)&&iT(e,r,t[r]);return e};function aT(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:i,data:o,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:h,target:m,type:g}=e,v=oT(oT({},Uq),e.transition),y=uO(t=>new Kq(((e,t)=>Qq(e,eT(t)))(oT({},e),{transition:v,register:!1,handle:Wk(s),element:Wk(a),target:Wk(m),feedback:d}),t)),b=Bk(y,sT);return Yk(i,()=>y.id=i),$k(()=>{uE(()=>{y.group=u,y.index=l})},[y,u,l]),Yk(g,()=>y.type=g),Yk(t,()=>y.accept=t,void 0,wI),Yk(o,()=>o&&(y.data=o)),Yk(l,()=>{var e;(null==(e=y.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&y.refreshShape()},Gk),Kk(s,e=>y.handle=e),Kk(a,e=>y.element=e),Kk(m,e=>y.target=e),Yk(c,()=>y.disabled=!0===c),Yk(h,()=>y.sensors=h),Yk(r,()=>y.collisionDetector=r),Yk(n,()=>y.collisionPriority=n),Yk(d,()=>y.feedback=null!=d?d:"default"),Yk(v,()=>y.transition=v,void 0,wI),Yk(p,()=>y.modifiers=p,void 0,wI),Yk(e.alignment,()=>y.alignment=e.alignment),{sortable:b,get isDragging(){return b.isDragging},get isDropping(){return b.isDropping},get isDragSource(){return b.isDragSource},get isDropTarget(){return b.isDropTarget},handleRef:f(e=>{y.handle=null!=e?e:void 0},[y]),ref:f(e=>{var t,r;(e||!(null==(t=y.element)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.element=null!=e?e:void 0)},[y]),sourceRef:f(e=>{var t,r;(e||!(null==(t=y.source)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.source=null!=e?e:void 0)},[y]),targetRef:f(e=>{var t,r;(e||!(null==(t=y.target)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.target=null!=e?e:void 0)},[y])}}function sT(e,t,r){return!("isDragSource"!==e||r||!t)}const lT=({id:e,itemIndex:t,sectionIndex:r})=>io.jsx("div",{children:`${r}:${t} - ${e}`}),uT=({id:e,itemIndex:t,sectionIndex:r})=>{const n=Dw(QC),i=Dw(XC),o=Dw(BC).at(r)??0,a=Dw(GC)({sectionIndex:r}),{ref:s,isDragging:l,handleRef:u}=aT({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[JO],plugins:[Sq],data:{id:e,sectionIndex:r,sectionKey:a,itemIndex:t}}),c=void 0!==n?()=>{n({id:e,itemIndex:t,sectionIndex:r})}:void 0,d=i??lT;return io.jsx(Nd,{className:"section-item-container","data-testid":"section-item",onClick:c,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:io.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[io.jsx(NO,{isDragging:l,itemIndex:t,sectionIndex:r}),io.jsx(d,{id:e,itemIndex:t,sectionIndex:r,dragHandleRef:u}),t===o-1&&io.jsx(NO,{isDragging:l,itemIndex:t+1,sectionIndex:r})]})})},cT=r.memo(uT),dT=r.memo(({sectionIndex:e})=>{const t=Dw(GC),r=Dw(BC).at(e)??0,n=t({sectionIndex:e});return io.jsxs(Qu,{className:"exploration-list",style:{overflow:"auto"},children:[io.jsx(Uc,{}),io.jsx(FO,{id:n,sectionIndex:e}),io.jsx(Uc,{}),io.jsx(jO,{sectionIndex:e}),io.jsx(Ed,{sx:{padding:"2px 8px"},children:OO(r).map(r=>{const n=t({sectionIndex:e,itemIndex:r});return io.jsx(cT,{id:n,itemIndex:r,sectionIndex:e},n)})})]},n)}),pT=[hk.configure({activationConstraints:[new ck.Distance({value:5})]}),ak],fT=r.memo(()=>{const e=Dw(VC),t=Dw(GC),r=Pw(nE("start")),n=Pw(nE("over")),i=Pw(nE("end"));return io.jsxs(sO,{sensors:pT,onDragEnd:i,onDragOver:n,onDragStart:r,children:[io.jsx(Qu,{style:{display:"flex",flexDirection:"column"},children:OO(e).map(e=>io.jsx(dT,{sectionIndex:e},t({sectionIndex:e})))}),io.jsx(TO,{})]})}),hT=r.memo(e=>io.jsx(RC,{atoms:iE,atomFamilies:oE,children:io.jsx(aE,{props:e,children:io.jsx(fT,{})})})),mT="12px",gT="nebula-table-utils-head-menu-button",vT="sn-copy-cell";let yT=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const bT="nebula-table-utils-column-adjuster";let xT=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),ST=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const wT={darker:.15,brighter:.3,opacity:.03},CT={darker:.3,brighter:.5,opacity:.05};let ET=function(e){return e.Cyclic="C",e}({});const IT=(e,t)=>{const r=new Map;for(const t of e)r.set(t.id,t);return t.reduce((e,t)=>{const n=r.get(t);return n&&e.push(n),e},[])},DT=WC(e=>hw(t=>{const r=t(eC),n=t($w),i=t(Jw)?.[e],o=r?.qHyperCube.rankedList?.[e];return i||(n?.isRankedListCorrupt(e)||void 0===o?n?.createRankedList(e):o)})),PT=(e,t=new Set)=>hw(r=>{const n=r(e),i=r(hC);if(!n||0===n.length)return"disabled";const o=n.filter(e=>!t.has(e.id));if(0===o.length)return"disabled";const a=o.filter(e=>i.has(e.id)).length;return 0===a?"none":a===o.length?"all":"some"}),RT=(e,t=new Set)=>hw(null,(r,n,i)=>{const o=r(e);o&&0!==o.length&&(e=>{const{items:t,shouldCheckAll:r,get:n,set:i,excludedIds:o}=e,a=t.filter(e=>!o?.has(e.id));if(0===a.length)return;const s=n(hC),l=new Set,u=new Set;if(a.forEach(e=>{const t=s.has(e.id);t&&!r&&u.add(e.id),!t&&r&&l.add(e.id)}),0===l.size&&0===u.size)return;const c=new Set(n(cC)),d=new Set(n(dC));l.forEach(e=>c.add(e)),l.forEach(e=>d.delete(e)),u.forEach(e=>d.add(e)),u.forEach(e=>c.delete(e)),i(cC,c),i(dC,d),zw({type:"apply",localChecked:l,localUnchecked:u,handler:n($w),model:n(Ww),fieldInfo:n(oC),handlerQueue:n(sC)})})({items:o,shouldCheckAll:i,get:r,set:n,excludedIds:t})}),MT=hw(e=>{const t=e(tC);return t?.qHyperCube.qDimensionInfo.filter(Uw).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??"",alternative:!0}))}),LT=hw(e=>{const t=e(eC),r=e(Vw),n=t?.qHyperCube.qEffectiveInterColumnSortOrder.map(e=>{if(-1===e)return{id:-1,title:r("Common.Values")};const{cId:n,qFallbackTitle:i}=t.qHyperCube.qDimensionInfo[e];return{id:n,title:i??""}});return n}),AT=hw(e=>{const t=e(Vw),r=e(MT),n=e(Gw),i=e(DT("columns")),o=e(DT("rows")),a=e(LT);if(void 0===r||void 0===i||void 0===o||void 0===a)return[];const s=[...a,...r].filter(n);return[{id:"rows",title:t("Common.Rows"),items:IT(s,o)},{id:"columns",title:t("Common.Columns"),items:IT(s,i)}]}),kT=WC(e=>hw(t=>t(AT).at(e))),OT=WC(({sectionIndex:e,itemIndex:t})=>hw(r=>r(kT(e))?.items.at(t)?.title),(e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex),qT=WC(e=>hw(t=>t(kT(e))?.title)),TT=hw(e=>({sectionIndex:t,itemIndex:r})=>{const n=e(kT(t));return void 0===n?0===t?"rows":"columns":void 0===r?n.id:n.items.at(r)?.id??`missing-item-${t}-${r}`}),NT=hw(e=>e(AT).map(e=>e.items.length)),_T=WC(e=>PT(hw(t=>t(kT(e))?.items),new Set([-1]))),jT=WC(e=>RT(hw(t=>t(kT(e))?.items),new Set([-1]))),FT=hw(null,async(e,t,{event:r,id:n,toIndex:i,toSection:o,startSection:a})=>{const s=e($w),l=e(Ww),u=e(sC),c=e(DT("rows")),d=e(DT("columns")),p=o;if(void 0===s||void 0===l||void 0===c||void 0===d||null===u)return;if(r.operation.canceled)return void t(Jw,null);if("section"===r.operation.target?.type&&a===o)return void t(Jw,null);const f=zC({rows:c,columns:d},r);t(Jw,f),u.add(async()=>{"number"==typeof n?await s.movePseudoDimension({toIndex:i,toSection:p}):await s.moveDimension({cId:n,toIndex:i,toSection:p})})}),zT={noItems:{row:"ChartExploration.PivotTable.RowSectionEmpty.Title",column:"ChartExploration.PivotTable.ColumnSectionEmpty.Title",measure:"ChartExploration.PivotTable.MeasureSectionEmpty.Title"},noSearchFound:{row:"ChartExploration.PivotTable.NoRowsFound.Title",column:"ChartExploration.PivotTable.NoColumnsFound.Title",measure:"ChartExploration.PivotTable.NoMeasuresFound.Title"}},WT="ChartExploration.PivotTable.DimensionSectionEmpty.Message",$T="ChartExploration.PivotTable.MeasureSectionEmpty.Message",HT="#177fe6",VT=(e,t,r,n)=>{if("measure"===t)return e(n?zT.noSearchFound.measure:zT.noItems.measure);const i=n?zT.noSearchFound:zT.noItems;return e(r?i.row:i.column)},BT=(e,t,r)=>r?"":e("measure"===t?$T:WT),GT=WC(e=>hw(t=>{const r=t(Vw),n=t(Bw).length>0;return t=>({title:VT(r,e,0===t,n),message:BT(r,e,n)})})),UT=GT("measure"),YT=GT("dimensions"),KT=({children:e})=>io.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),XT=e=>{const t=Dw(OT(e));return io.jsx(KT,{children:t})},JT=hw(e=>{const t=e(tC);return t?.qHyperCube.qMeasureInfo.filter(Uw).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}))}),ZT=hw(e=>{const t=e(eC),r=e(JT),n=e(Gw),i=e(DT("measures"));if(void 0===t||void 0===r||void 0===i)return[];const o=t.qHyperCube.qMeasureInfo.filter(Uw).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}));o.push(...r);const a=o.filter(n);return IT(a,i)}),QT=WC(e=>hw(t=>t(ZT).at(e)?.title??"")),eN=hw(e=>({itemIndex:t})=>{const r=e(ZT);return void 0===t?"measures":r.at(t)?.id??`missing-item-${t}`}),tN=hw(e=>[e(ZT).length]),rN=PT(ZT),nN=RT(ZT),iN=hw(null,async(e,t,{id:r,toIndex:n,event:i})=>{const o=e($w),a=e(Ww),s=e(sC),l=e(DT("measures"));if(void 0===o||void 0===a||void 0===l||"string"!=typeof r||null===s)return;const u=zC({measures:l},i);t(Jw,u),s.add(async()=>{await o.moveMeasure({cId:r,toIndex:n})})}),oN=kS().palette,aN={TEXT:oN.text.primary,DISABLED:oN.text.disabled,HOVER:oN.action.hover,WHITE:If.GREYSCALE_100,BORDER_MEDIUM:If.GREYSCALE_85,DARK_MODE_TEXT:If.GREYSCALE_95,DARK_MODE_BORDER:If.GREYSCALE_95,DARK_MODE_DISABLED:If.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:oN.primary.main,LINK:oN.info.main,ERROR:oN.error.main};function sN(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function lN(e){if("object"==typeof e&&sN(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let i;(i=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(i[1],10),r=parseInt(i[2],10),n=parseInt(i[3],10)):(i=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(i[1],16),r=parseInt(i[2],16),n=parseInt(i[3],16)):(i=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(i[1]+i[1],16),r=parseInt(i[2]+i[2],16),n=parseInt(i[3]+i[3],16))}return(t<<16)+(r<<8)+n}const uN={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},cN="qcm-color";function dN(...e){const t={type:cN,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,i=0,o=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===cN)({r:r,g:n,b:i,a:o}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(sN(e[0]))({r:r,g:n,b:i}=e[0]),"a"in e[0]&&({a:o}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),i=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),i=parseInt(s[3],10),o=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))o=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),i=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),i=parseInt(s[3],16),o=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),i=parseInt(s[3]+s[3],16),o=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,i=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),i=Math.round(255*i),o=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);o=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,i=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),i=Math.round(255*i)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,i=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),i=Math.round(255*i),o=1}else{const e=a.toLowerCase();if(function(e){return e in uN}(e)){const t=uN[e];({r:r,g:n,b:i}=t),o="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(o=(4278190080&e[0])>>>24,o/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,i=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,i=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],i=e[2],o=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+i+o)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(i),t.a=o,t}function pN(e){let t,r,n;if(sN(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const i="string"==typeof e?lN(e):e;return t=((16711680&i)>>16).toString(16),r=((65280&i)>>8).toString(16),n=(255&i).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}function fN(e){let t,r,n=0;const i="string"==typeof e?dN(e):e,o=i.r/255,a=i.g/255,s=i.b/255,{a:l}=i,u=Math.max(o,a,s),c=Math.min(o,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case o:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-o)/r+2;break;case s:n=(o-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function hN(e){let t,r,n=0;const i="string"==typeof e?dN(e):e,o=i.r/255,a=i.g/255,s=i.b/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case o:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-o)/r+2;break;case s:n=(o-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function mN(e){if(sN(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?lN(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function gN(e,t){return sN(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:gN(dN(e))}function vN(e){return sN(e)?1===e.a?mN(e):gN(e):vN(dN(e))}const yN=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function bN(e){return.2126*yN(e.r)+.7152*yN(e.g)+.0722*yN(e.b)}function xN(...e){const t=dN(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=fN(r)),r.spaces.hslaObject),i=e=>{const t=n(),{h:r,s:i,l:o,a:a}=t;return`hsla(${r}, ${i}, ${Math.max(0,Math.min(o+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=dN(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=dN(...e);return t.invalid||bN(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=mN(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=gN(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=vN(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=pN(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const i="string"==typeof e?dN(e):e,o=i.r/255,a=i.g/255,s=i.b/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case o:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-o)/r+2;break;case s:n=(o-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:i}=fN(e);return`hsla(${t}, ${r}, ${n}, ${i})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:i,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=hN(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=hN(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>xN(i(18*e)),getDarkenedColor:(e=1)=>xN(i(18*-e))}}function SN(e,t){if(!e||!t)return;const r=bN(e),n=bN(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}const wN="#FFFFFF";function CN(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var EN,IN="top",DN="top-right",PN="right",RN="bottom-right",MN="bottom",LN="bottom-left",AN="left",kN="top-left";CN(CN(CN(CN(CN(CN(CN(CN(CN(CN(EN={},"equal-equal",[IN,MN]),"equal-higher",[MN,RN]),"equal-lower",[IN,DN]),"equal-void",[IN,MN]),"higher-equal",[AN,LN,IN,DN]),"higher-higher-acute",[MN,LN,AN,DN]),"higher-higher-obtuse",[MN,IN]),"higher-lower-negative",[IN,DN,PN]),"higher-lower-positive",[MN,LN,AN]),"higher-void",[IN]),CN(CN(CN(CN(CN(CN(CN(CN(CN(CN(EN,"lower-equal",[IN]),"lower-higher-negative",[IN,kN]),"lower-higher-positive",[RN]),"lower-lower-acute",[IN,kN,AN,DN,PN]),"lower-lower-obtuse",[IN,MN]),"lower-void",[IN]),"void-equal",[IN]),"void-higher",[IN,MN]),"void-lower",[IN,MN,AN]),"void-void",[IN]),CN(EN,"unclassified",[IN,MN,PN,AN,DN,RN,LN,kN]);var ON,qN,TN=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],NN=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function _N(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?NN:TN}var jN=function(){if(qN)return ON;qN=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,i=e.call(r,"constructor"),o=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!i&&!o)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return ON=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(o(l)||(u=i(l)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&o(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},ON}();function FN(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function zN(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function WN(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(jN);var $N=.7,HN=1/$N,VN="\\s*([+-]?\\d+)\\s*",BN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",GN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",UN=/^#([0-9a-f]{3,8})$/,YN=new RegExp(`^rgb\\(${VN},${VN},${VN}\\)$`),KN=new RegExp(`^rgb\\(${GN},${GN},${GN}\\)$`),XN=new RegExp(`^rgba\\(${VN},${VN},${VN},${BN}\\)$`),JN=new RegExp(`^rgba\\(${GN},${GN},${GN},${BN}\\)$`),ZN=new RegExp(`^hsl\\(${BN},${GN},${GN}\\)$`),QN=new RegExp(`^hsla\\(${BN},${GN},${GN},${BN}\\)$`),e_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function t_(){return this.rgb().formatHex()}function r_(){return this.rgb().formatRgb()}function n_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=UN.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?i_(t):3===r?new l_(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?o_(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?o_(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=YN.exec(e))?new l_(t[1],t[2],t[3],1):(t=KN.exec(e))?new l_(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=XN.exec(e))?o_(t[1],t[2],t[3],t[4]):(t=JN.exec(e))?o_(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ZN.exec(e))?h_(t[1],t[2]/100,t[3]/100,1):(t=QN.exec(e))?h_(t[1],t[2]/100,t[3]/100,t[4]):e_.hasOwnProperty(e)?i_(e_[e]):"transparent"===e?new l_(NaN,NaN,NaN,0):null}function i_(e){return new l_(e>>16&255,e>>8&255,255&e,1)}function o_(e,t,r,n){return n<=0&&(e=t=r=NaN),new l_(e,t,r,n)}function a_(e){return e instanceof WN||(e=n_(e)),e?new l_((e=e.rgb()).r,e.g,e.b,e.opacity):new l_}function s_(e,t,r,n){return 1===arguments.length?a_(e):new l_(e,t,r,null==n?1:n)}function l_(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function u_(){return`#${f_(this.r)}${f_(this.g)}${f_(this.b)}`}function c_(){const e=d_(this.opacity);return`${1===e?"rgb(":"rgba("}${p_(this.r)}, ${p_(this.g)}, ${p_(this.b)}${1===e?")":`, ${e})`}`}function d_(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function p_(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function f_(e){return((e=p_(e))<16?"0":"")+e.toString(16)}function h_(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new g_(e,t,r,n)}function m_(e){if(e instanceof g_)return new g_(e.h,e.s,e.l,e.opacity);if(e instanceof WN||(e=n_(e)),!e)return new g_;if(e instanceof g_)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+6*(r<n):r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new g_(a,s,l,e.opacity)}function g_(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function v_(e){return(e=(e||0)%360)<0?e+360:e}function y_(e){return Math.max(0,Math.min(1,e||0))}function b_(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}FN(WN,n_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:t_,formatHex:t_,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return m_(this).formatHsl()},formatRgb:r_,toString:r_}),FN(l_,s_,zN(WN,{brighter(e){return e=null==e?HN:Math.pow(HN,e),new l_(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?$N:Math.pow($N,e),new l_(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new l_(p_(this.r),p_(this.g),p_(this.b),d_(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:u_,formatHex:u_,formatHex8:function(){return`#${f_(this.r)}${f_(this.g)}${f_(this.b)}${f_(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:c_,toString:c_})),FN(g_,function(e,t,r,n){return 1===arguments.length?m_(e):new g_(e,t,r,null==n?1:n)},zN(WN,{brighter(e){return e=null==e?HN:Math.pow(HN,e),new g_(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?$N:Math.pow($N,e),new g_(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new l_(b_(e>=240?e-240:e+120,i,n),b_(e,i,n),b_(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new g_(v_(this.h),y_(this.s),y_(this.l),d_(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=d_(this.opacity);return`${1===e?"hsl(":"hsla("}${v_(this.h)}, ${100*y_(this.s)}%, ${100*y_(this.l)}%${1===e?")":`, ${e})`}`}}));const x_=Math.PI/180,S_=180/Math.PI,w_=.96422,C_=.82521,E_=4/29,I_=6/29,D_=3*I_*I_,P_=I_*I_*I_;function R_(e){if(e instanceof M_)return new M_(e.l,e.a,e.b,e.opacity);if(e instanceof q_)return T_(e);e instanceof l_||(e=a_(e));var t,r,n=O_(e.r),i=O_(e.g),o=O_(e.b),a=L_((.2225045*n+.7168786*i+.0606169*o)/1);return n===i&&i===o?t=r=a:(t=L_((.4360747*n+.3850649*i+.1430804*o)/w_),r=L_((.0139322*n+.0971045*i+.7141733*o)/C_)),new M_(116*a-16,500*(t-a),200*(a-r),e.opacity)}function M_(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function L_(e){return e>P_?Math.pow(e,1/3):e/D_+E_}function A_(e){return e>I_?e*e*e:D_*(e-E_)}function k_(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function O_(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function q_(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function T_(e){if(isNaN(e.h))return new M_(e.l,0,0,e.opacity);var t=e.h*x_;return new M_(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}FN(M_,function(e,t,r,n){return 1===arguments.length?R_(e):new M_(e,t,r,null==n?1:n)},zN(WN,{brighter(e){return new M_(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new M_(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new l_(k_(3.1338561*(t=w_*A_(t))-1.6168667*(e=1*A_(e))-.4906146*(r=C_*A_(r))),k_(-.9787684*t+1.9161415*e+.033454*r),k_(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),FN(q_,function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof q_)return new q_(e.h,e.c,e.l,e.opacity);if(e instanceof M_||(e=R_(e)),0===e.a&&0===e.b)return new q_(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*S_;return new q_(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new q_(e,t,r,null==n?1:n)},zN(WN,{brighter(e){return new q_(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new q_(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return T_(this).rgb()}}));var N_=e=>()=>e;function __(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):N_(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1===(e=+e)?__:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):N_(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=s_(e)).r,(t=s_(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=__(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var j_="center",F_="bottom";[{key:"NoDataExist",alignment:j_,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:j_,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:j_,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:j_},{key:"DataRangeIncludingZero",alignment:F_},{key:"LimitedData",alignment:F_},{key:"NegativeOrZeroValues",alignment:F_}].reduce(function(e,t){return e[t.key]=t,e},{});var z_,W_=["__proto__","constructor"];function $_(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),i=n[n.length-1];if(!W_.some(function(e){return n.includes(e)})){for(var o=e,a=0;a<n.length-1;++a){var s=n[a];void 0===o[s]&&(o[s]=Number.isNaN(+n[a+1])?{}:[]),o=o[s]}void 0!==r?o[i]=r:delete o[i]}}}function H_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var i=t(n);return r.has(i)?r.get(i):r.set(i,e(n))}}function V_(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(n,o)},r)}}function B_(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function G_(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Y_)):void 0===t&&(t=U_);for(var r,n,i,o,a,s=new J_(e),l=[s];r=l.pop();)if((i=t(r.data))&&(a=(i=Array.from(i)).length))for(r.children=i,o=a-1;o>=0;--o)l.push(n=i[o]=new J_(i[o])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(X_)}function U_(e){return e.children}function Y_(e){return Array.isArray(e)?e[1]:null}function K_(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function X_(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function J_(e){this.data=e,this.depth=this.height=0,this.parent=null}J_.prototype=G_.prototype={constructor:J_,count:function(){return this.eachAfter(B_)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),r=o.children)for(n=0,i=r.length;n<i;++n)a.push(r[n]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var r,n,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),r=i.children)for(n=r.length-1;n>=0;--n)o.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return G_(this).eachBefore(K_)},[Symbol.iterator]:function*(){var e,t,r,n,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(r=0,n=t.length;r<n;++r)o.push(t[r])}while(o.length)}},z_=function(e){
|
|
100
|
+
*/var wS,CS,ES={},IS={};function DS(){if(wS)return IS;wS=1;var e=Za;Object.defineProperty(IS,"__esModule",{value:!0}),IS.default=void 0;var t=(0,e(yv()).default)();return IS.default=t,IS}var RS,PS,MS={},LS={};function AS(){if(PS)return MS;PS=1;var e=Za;Object.defineProperty(MS,"__esModule",{value:!0}),MS.default=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.breakpoints,a=void 0===o?["sm","md","lg"]:o,s=i.disableAlign,l=void 0!==s&&s,u=i.factor,c=void 0===u?2:u,d=i.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var i=h[e],o=parseFloat(m(i.fontSize,"rem"));if(!(o<=1)){var a=o,s=1+(a-1)/c,u=i.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(o));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},i,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Vs()),n=Mh,r=function(){if(RS)return LS;RS=1;var e=Za;Object.defineProperty(LS,"__esModule",{value:!0}),LS.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},LS.getUnit=n,LS.toUnitless=r,LS.convertLength=function(e){return function(t,i){var o=n(t);if(o===i)return t;var a=r(t);if("px"!==o)if("em"===o)a=r(t)*r(e);else if("rem"===o)return a=r(t)*r(e),t;var s=a;if("px"!==i)if("em"===i)s=a/r(e);else{if("rem"!==i)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+i}},LS.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,i=r+n;return t-r<i-t?r:i},LS.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},LS.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,i=e.max,o=e.unit,a=void 0===o?"rem":o,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(i-r)/l[l.length-1];return l.forEach(function(e){var i=r+p*e;null!==c&&(i=c(i)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*i)/1e4).concat(a))}),d};var t=e(Kh());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return LS}();return MS}var kS,OS={};var qS,TS={};var jS,NS={};var _S,FS={};!function(e){var t=Za,r=_f;Object.defineProperty(e,"__esModule",{value:!0});var i={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var o=Ff;Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var a=r(yv()),s=t(function(){if(bv)return xv;bv=1;var e=Za;Object.defineProperty(xv,"__esModule",{value:!0}),xv.default=function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(i))};var t=Mh,n=e(yv());return xv}()),l=t(function(){if(yS)return Sv;yS=1,Object.defineProperty(Sv,"__esModule",{value:!0}),Sv.default=function(t){return(0,e.createStyles)(t)};var e=SS;return Sv}()),u=t(function(){if(CS)return ES;CS=1;var e=Za;Object.defineProperty(ES,"__esModule",{value:!0}),ES.default=void 0;var t=e(Vs()),n=SS,r=e(DS()),i=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},i))};return ES.default=i,ES}()),c=t(AS()),d=t(function(){if(kS)return OS;kS=1;var e=Za;Object.defineProperty(OS,"__esModule",{value:!0}),OS.default=void 0;var t=e(Vs()),n=SS,r=e(DS()),i=function(e){var i=(0,n.styled)(e);return function(e,n){return i(e,(0,t.default)({defaultTheme:r.default},n))}};return OS.default=i,OS}()),p=hv();Object.keys(p).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))});var f=t(function(){if(qS)return TS;qS=1;var e=Za;Object.defineProperty(TS,"__esModule",{value:!0}),TS.default=function(){return(0,t.useTheme)()||r.default};var t=SS;e(n);var r=e(DS());return TS}()),h=t(function(){if(jS)return NS;jS=1;var e=Za;Object.defineProperty(NS,"__esModule",{value:!0}),NS.default=void 0;var t=e(Vs()),n=SS,r=e(DS()),i=function(e,i){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},i))};return NS.default=i,NS}()),m=t(function(){if(_S)return FS;_S=1;var e=Za;Object.defineProperty(FS,"__esModule",{value:!0}),FS.default=void 0;var t=SS,n=e(DS()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return FS.default=r,FS}()),g=SS}(qf),qf.alpha(cf.GREYSCALE_0,.05),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5);const zS=(e="light")=>kf();function WS(e){return"init"in e}function $S(e){return!!e.write}function HS(e){return"v"in e||"e"in e}function VS(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function BS(e){return"function"==typeof(null==e?void 0:e.then)}function GS(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function US(e,t,n){const r=n.get(e),i=null==r?void 0:r.t,o=t.p;if(!(null==i?void 0:i.size))return o;if(!o.size)return i;const a=new Set(i);for(const e of o)a.add(e);return a}const YS=()=>{const e={},t=new WeakMap,n=n=>{var r,i;null==(r=t.get(e))||r.forEach(e=>e(n)),null==(i=t.get(n))||i.forEach(e=>e())};return n.add=(n,r)=>{const i=n||e;let o=t.get(i);return o||(o=new Set,t.set(i,o)),o.add(r),()=>{o.delete(r),o.size||t.delete(i)}},n};function KS(e){return e.i||(e.i=YS()),e.r||(e.r=YS()),e.c||(e.c=YS()),e.m||(e.m=YS()),e.u||(e.u=YS()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const XS=(e,t,...n)=>t.read(...n),JS=(e,t,...n)=>t.write(...n),ZS=(e,t)=>{var n;return null==(n=t.INTERNAL_onInit)?void 0:n.call(t,e)},QS=(e,t,n)=>{var r;return null==(r=t.onMount)?void 0:r.call(t,n)},ew=(e,n)=>{var r;const i=vw(e),o=i[0],a=i[6],s=i[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Atom is undefined or null");let l=o.get(n);return l||(l={d:new Map,p:new Set,n:0},o.set(n,l),null==(r=a.i)||r.call(a,n),null==s||s(e,n)),l},tw=e=>{var t;const n=vw(e),r=n[1],i=n[3],o=n[4],a=n[5],s=n[6],l=n[13];if(!(s.f||i.size||o.size||a.size))return;const u=[],c=e=>{try{e()}catch(e){u.push(e)}};do{s.f&&c(s.f);const n=new Set;for(const e of i){const i=null==(t=r.get(e))?void 0:t.l;if(i)for(const e of i)n.add(e)}i.clear();for(const e of a)n.add(e);a.clear();for(const e of o)n.add(e);o.clear();for(const e of n)c(e);i.size&&l(e)}while(i.size||a.size||o.size);if(u.length)throw new AggregateError(u)},nw=e=>{const n=vw(e),r=n[1],i=n[2],o=n[3],a=n[11],s=n[14],l=n[17];if(!o.size)return;const u=[],c=[],d=new WeakSet,p=new WeakSet,f=[],h=[];for(const t of o)f.push(t),h.push(a(e,t));for(;f.length;){const n=f.length-1,o=f[n],s=h[n];if(p.has(o))f.pop(),h.pop();else if(d.has(o)){if(i.get(o)===s.n)u.push(o),c.push(s);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&i.has(o))throw new Error("[Bug] invalidated atom exists");p.add(o),f.pop(),h.pop()}else{d.add(o);for(const t of US(o,s,r))d.has(t)||(f.push(t),h.push(a(e,t)))}}for(let t=u.length-1;t>=0;--t){const n=u[t],r=c[t];let a=!1;for(const e of r.d.keys())if(e!==n&&o.has(e)){a=!0;break}a&&(i.set(n,r.n),s(e,n),l(e,n)),i.delete(n)}},rw=new WeakSet,iw=(e,n)=>{var r,i;const o=vw(e),a=o[1],s=o[2],l=o[3],u=o[6],c=o[7],d=o[11],p=o[12],f=o[13],h=o[14],m=o[16],g=o[17],v=o[20],y=o[26],b=o[28],x=d(e,n),S=b[0];if(HS(x)){if(a.has(n)&&s.get(n)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[n,r]of x.d)if(h(e,n).n!==r){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=()=>{for(const e of C)x.d.delete(e)},I=()=>{if(a.has(n)){const t=!l.size;g(e,n),t&&(f(e),p(e))}},D=t=>{var r;if(t===n){const n=d(e,t);if(!HS(n)){if(!WS(t))throw new Error("no atom init");v(e,t,t.init)}return VS(n)}const i=h(e,t);try{return VS(i)}finally{C.delete(t),x.d.set(t,i.n),BS(x.v)&&GS(n,x.v,i),a.has(n)&&(null==(r=a.get(t))||r.t.add(n)),w||I()}};let R,P;const M={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||$S(n)||console.warn("setSelf function cannot be used with read-only atom"),!P&&$S(n)&&(P=(...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,n,...r)}finally{f(e),p(e)}}),P}},L=x.n,A=s.get(n)===L;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&rw.delete(e);const i=c(e,n,D,M);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&rw.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),v(e,n,i),BS(i)){y(e,i,()=>null==R?void 0:R.abort());const t=()=>{E(),I()};i.then(t,t)}else E();return null==(r=u.r)||r.call(u,n),x.m=S,x}catch(e){return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==L&&A&&(s.set(n,x.n),l.add(n),null==(i=u.c)||i.call(u,n))}},ow=(e,t)=>{const n=vw(e),r=n[1],i=n[2],o=n[11],a=[t];for(;a.length;){const t=a.pop(),n=o(e,t);for(const s of US(t,n,r)){const t=o(e,s);i.get(s)!==t.n&&(i.set(s,t.n),a.push(s))}}},aw=(e,n,...r)=>{const i=vw(e),o=i[3],a=i[6],s=i[8],l=i[11],u=i[12],c=i[13],d=i[14],p=i[15],f=i[16],h=i[17],m=i[20],g=i[28];let v=!0;const y=t=>VS(d(e,t)),b=(r,...i)=>{var s;const d=l(e,r);try{if(r===n){if(!WS(r))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&rw.add(e);const n=d.n,l=i[0];return m(e,r,l),h(e,r),void(n!==d.n&&(++g[0],o.add(r),p(e,r),null==(s=a.c)||s.call(a,r)))}return f(e,r,...i)}finally{v||(c(e),u(e))}};try{return s(e,n,y,b,...r)}finally{v=!1}},sw=(e,t)=>{var n;const r=vw(e),i=r[1],o=r[3],a=r[6],s=r[11],l=r[15],u=r[18],c=r[19],d=s(e,t),p=i.get(t);if(p&&d.d.size>0){for(const[r,i]of d.d)if(!p.d.has(r)){const c=s(e,r);u(e,r).t.add(t),p.d.add(r),i!==c.n&&(o.add(r),l(e,r),null==(n=a.c)||n.call(a,r))}for(const n of p.d)if(!d.d.has(n)){p.d.delete(n);const r=c(e,n);null==r||r.t.delete(t)}}},lw=(e,t)=>{var n;const r=vw(e),i=r[1],o=r[4],a=r[6],s=r[10],l=r[11],u=r[12],c=r[13],d=r[14],p=r[16],f=r[18],h=l(e,t);let m=i.get(t);if(!m){d(e,t);for(const n of h.d.keys()){f(e,n).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},i.set(t,m),$S(t)&&function(e){return!!e.onMount}(t)){const n=()=>{let n=!0;const r=(...r)=>{try{return p(e,t,...r)}finally{n||(c(e),u(e))}};try{const i=s(e,t,r);i&&(m.u=()=>{n=!0;try{i()}finally{n=!1}})}finally{n=!1}};o.add(n)}null==(n=a.m)||n.call(a,t)}return m},uw=(e,t)=>{var n,r;const i=vw(e),o=i[1],a=i[5],s=i[6],l=i[11],u=i[19],c=l(e,t);let d=o.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(n=o.get(e))?void 0:n.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,o.delete(t);for(const n of c.d.keys()){const r=u(e,n);null==r||r.t.delete(t)}null==(r=s.u)||r.call(s,t)},cw=(e,t,n)=>{const r=vw(e),i=r[11],o=r[27],a=i(e,t),s="v"in a,l=a.v;if(BS(n))for(const r of a.d.keys())GS(t,n,i(e,r));a.v=n,delete a.e,s&&Object.is(l,a.v)||(++a.n,BS(l)&&o(e,l))},dw=(e,t)=>VS((0,vw(e)[14])(e,t)),pw=(e,t,...n)=>{const r=vw(e),i=r[3],o=r[12],a=r[13],s=r[16],l=i.size;try{return s(e,t,...n)}finally{i.size!==l&&(a(e),o(e))}},fw=(e,t,n)=>{const r=vw(e),i=r[12],o=r[18],a=r[19],s=o(e,t).l;return s.add(n),i(e),()=>{s.delete(n),a(e,t),i(e)}},hw=(e,t,n)=>{const r=vw(e)[25];let i=r.get(t);if(!i){i=new Set,r.set(t,i);const e=()=>r.delete(t);t.then(e,e)}i.add(n)},mw=(e,t)=>{const n=vw(e)[25].get(t);null==n||n.forEach(e=>e())},gw=new WeakMap,vw=e=>{const n=gw.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Store must be created by buildStore to read its building blocks");return n};function yw(e){const t=vw(e),n=t[24];return n?n(t):t}function bw(...e){const t={get:e=>(0,vw(t)[21])(t,e),set:(e,...n)=>(0,vw(t)[22])(t,e,...n),sub:(e,n)=>(0,vw(t)[23])(t,e,n)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},XS,JS,ZS,QS,ew,tw,nw,iw,ow,aw,sw,lw,uw,cw,dw,pw,fw,void 0,new WeakMap,hw,mw,[0]].map((t,n)=>e[n]||t);return gw.set(t,Object.freeze(n)),t}let xw,Sw=0;function ww(e,n){const r="atom"+ ++Sw,i={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?i.read=e:(i.init=e,i.read=Cw,i.write=Ew),n&&(i.write=n),i}function Cw(e){return e(this)}function Ew(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function Iw(){return bw()}const Dw=u(void 0);function Rw(e){const n=h(Dw);return(null==e?void 0:e.store)||n||(xw||(xw=Iw(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=xw),globalThis.__JOTAI_DEFAULT_STORE__!==xw&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),xw)}function Pw({children:e,store:t}){const n=l(null);return t?r(Dw.Provider,{value:t},e):(null===n.current&&(n.current=Iw()),r(Dw.Provider,{value:n.current},e))}const Mw=e=>"function"==typeof(null==e?void 0:e.then),Lw=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Aw=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Lw(e),e)}),kw=new WeakMap,Ow=(e,t,n)=>{const r=yw(e)[26];let i=kw.get(t);return i||(i=new Promise((o,a)=>{let s=t;const l=e=>t=>{s===e&&o(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=n();Mw(t)?(kw.set(t,i),s=t,t.then(l(t),u(t)),r(e,t,c)):o(t)}catch(e){a(e)}};t.then(l(t),u(t)),r(e,t,c)}),kw.set(t,i)),i};function qw(e,t){const{delay:r,unstable_promiseStatus:i=!n.use}={},o=Rw(t),[[a,s,l],u]=c(t=>{const n=o.get(e);return Object.is(t[0],n)&&t[1]===o&&t[2]===e?t:[n,o,e]},void 0,()=>[o.get(e),o,e]);let f=a;if(s===o&&l===e||(u(),f=o.get(e)),d(()=>{const t=o.sub(e,()=>{if(i)try{const t=o.get(e);Mw(t)&&Lw(Ow(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(u,r);u()});return u(),t},[o,e,r,i]),p(f),Mw(f)){const t=Ow(o,f,()=>o.get(e));return i&&Lw(t),Aw(t)}return f}function Tw(e,n){const r=Rw(n);return f((...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...n)},[r,e])}function jw(e,t){return[qw(e,t),Tw(e,t)]}t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},n){var r;let i,o;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(i!==(e=e||"")){try{o=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}i=e}return o},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,n)=>l(e,e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)})))}();const Nw=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),_w=new WeakMap,Fw=()=>{};const zw=new WeakMap;function Ww(e,t){const n=Rw(t),r=$w(n);for(const[i,...o]of e)r.has(i)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(i),n.set(i,...o))}const $w=e=>{let t=zw.get(e);return t||(t=new WeakSet,zw.set(e,t)),t};function Hw(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function Vw(e){const t=ww(()=>[]),n=ww(function(e){const[r,i,o]=e(t);o.has(n)&&(r.forEach(e),++i.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=new Set;let i,o=0,a=!1,s=!1,l=!1;function u(){if(o)return;r.clear();let t=!0;const c=i=>{if(l)return e.get(i);if(i===n){const t=h(e,i);if(!HS(t)){if(!WS(i))throw new Error("no atom init");S(e,i,i.init)}return VS(t)}const o=v(e,i);try{return VS(o)}finally{C.d.set(i,o.n),d.get(i)?.t.add(n),t?r.add(i):d.has(i)&&(x(e,n),g(e),m(e))}};c.peek=e.get;const w=(r,...i)=>{const a=h(e,r);try{if(++o,r===n){if(!WS(r))throw new Error("atom not writable");const t=a.n,n=i[0];return S(e,r,n),x(e,r),void(t!==a.n&&(p.add(r),f.c?.(r),y(e,r)))}return b(e,r,...i)}finally{t||(g(e),m(e)),--o}};w.recurse=(t,...r)=>{if(l){if(Hw())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,n),w(t,...r)}finally{g(e),a=!1,s&&(s=!1,u())}};try{i?.();const e=n.effect(c,w);if("function"!=typeof e)return;i=()=>{if(!o)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,i=void 0}}}finally{t=!1,r.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,n),g(e)}}const c=yw(e),d=c[1],p=c[3],f=KS(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],y=c[15],b=c[16],x=c[17],S=c[20],w=function(e,t){let n=Bw.get(e);n||(n=new Set,Bw.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,f),C=h(e,n);C.v=void 0,Object.assign(e.get(t),[r,C,d]),f.c.add(n,function(){p.delete(n)}),f.m.add(n,function(){w.add(u),i&&w.delete(i)}),f.u.add(n,function(){w.delete(u),i&&w.add(i)}),f.c.add(n,function(){a?s=!0:w.add(u)})},Hw()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const Bw=new WeakMap;const Gw=async(e,t,n)=>{const r=e.get(n);void 0!==r&&("dimension"===r.type?await t.moveDimensionToAlternative(r.def.qDef.cId):await t.moveMeasureToAlternative(r.def.qDef.cId))},Uw=async(e,t,n)=>{const r=e.get(n);void 0!==r&&("dimension"===r.type?await t.moveDimensionFromAlternative(r.def.qDef.cId):await t.moveMeasureFromAlternative(r.def.qDef.cId))},Yw=async e=>{const{type:t,handler:n,model:r,fieldInfo:i,handlerQueue:o}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{switch(t){case"apply":for(const t of e.localChecked)await Uw(i,n,t);for(const t of e.localUnchecked)await Gw(i,n,t);break;case"checked":await Uw(i,n,e.cId);break;case"unchecked":await Gw(i,n,e.cId)}})},Kw=ww(),Xw=ww(),Jw=ww(),Zw=ww(e=>e(Jw)?.translate??(e=>e)),Qw=ww(""),eC=ww(e=>{const t=e(Qw).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),tC=e=>7005!==e.qError?.qErrorCode,nC=new WeakMap,rC={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},iC=function(e,n=Fw){return((e,t,n)=>{const r=Nw(()=>new WeakMap,_w,t);return Nw(e,r,n)})(()=>{const r=new WeakMap,i=new WeakMap,o=ww(0),a=ww([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(o,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(o.debugPrivate=!0,a.debugPrivate=!0);const s=ww(t=>{let l;t(o);try{l=t(s)}catch(e){}const u=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then(e=>{i.set(u,e);const[n]=t(a);n()},e=>{r.set(u,e);const[n]=t(a);n()}),r.has(u))throw r.get(u);return i.has(u)?{p:u,v:i.get(u)}:l&&"v"in l?{p:u,f:n(l.v),v:l.v}:{p:u,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),ww(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}(ww(async e=>{const t=e(Kw);if(t){if(nC.has(t))return nC.get(t);try{const e=await t.app.createSessionObject(rC);return nC.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),oC=ww(null),aC=ww(),sC=Vw((e,t)=>{const n=e(Kw),r=e(iC);if(!n||!r)return;const i=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const i=await n.getEffectiveProperties();await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions)},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures)}]);const o=await r.getLayout();t(aC,{layout:structuredClone(e),properties:structuredClone(i),altLayout:structuredClone(o)}),t(oC,null)};return i(),n.Invalidated?.bind(i),()=>{n.Invalidated?.unbind(i)}}),lC=ww(e=>e(aC)?.layout),uC=ww(e=>e(aC)?.altLayout),cC=ww(e=>e(aC)?.properties),dC=ww(e=>{const t=e(aC)?.layout;return t?.qHyperCube.qDimensionInfo.filter(tC)??[]}),pC=ww(e=>{const t=e(aC)?.layout;return t?.qHyperCube.qMeasureInfo.filter(tC)??[]}),fC=ww(e=>{const t=e(lC),n=e(dC),r=e(pC),i=e(cC),o=new Map;return t&&i?(n.forEach((e,t)=>{o.set(e.cId,{id:e.cId,type:"dimension",def:i.qHyperCubeDef.qDimensions[t]})}),r.forEach((e,t)=>{o.set(e.cId,{id:e.cId,type:"measure",def:i.qHyperCubeDef.qMeasures[t]})}),i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(e=>{o.set(e.qDef.cId,{id:e.qDef.cId,type:"dimension",def:e})}),i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.forEach(e=>{o.set(e.qDef.cId,{id:e.qDef.cId,type:"measure",def:e})}),o):o});class hC{#e=[];#t=!1;#n=!1;#r;#i;#o;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#i=void 0,this.#o=void 0,this.#a=void 0}pause(){this.#i&&(clearTimeout(this.#a),this.#o?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#i=e,this.#o=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#o;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#o&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#o?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#i)await this.#i;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const mC=ww(null),gC=Vw((e,t)=>{const n=e(Kw),r=e(Xw),i=new hC({onQueueCompleted:async()=>{n&&r&&await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(mC,i);const o=()=>{i.pause()},a=()=>{i.continue(500)},s=()=>{i.abort()};return n?.Invalidated?.bind(o),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{i.abort(),n?.Invalidated?.unbind(o),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),vC=ww(e=>{const t=[...e(dC),...e(pC)].map(e=>e.cId);return new Set(t)}),yC=ww(new Set),bC=ww(new Set),xC=ww(e=>{const t=e(yC),n=e(bC);return e(vC).difference(n).union(t)}),SC=Vw((e,t)=>{e(vC),t(yC,new Set),t(bC,new Set)}),wC=ww(e=>e(xC),(e,t,n)=>{const r=e(xC).has(n),i=new Set(e(bC)),o=new Set(e(yC));r?(i.add(n),o.delete(n)):(o.add(n),i.delete(n)),t(bC,i),t(yC,o),Yw({type:r?"unchecked":"checked",cId:n,handler:e(Xw),model:e(Kw),fieldInfo:e(fC),handlerQueue:e(mC)})}),CC=({props:e,children:t})=>(Ww([[Kw,e.args.model],[Jw,e.args.apis],[Xw,e.args.handler]]),qw(SC),qw(sC),qw(gC),t);function EC(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function IC(e){return"write"in e}const DC=new WeakMap,RC={},{read:PC,write:MC}=ww(null);function LC(e,t,n){const[r,i,o,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=i.get(t);return r||(r=[qC(e,t,n),n],i.set(t,r)),r}const l=n??RC;let u=o.get(l);u||(u=new WeakMap,o.set(l,u));let c=u.get(t);if(!c){const[r,i]=a?LC(a,t,n):[t];c=[t.read===PC?r:qC(e,t,i),i],u.set(t,c)}return c}function AC(e){for(const t of e[5])t()}function kC(e,t,n,r,i){if(n.read===PC&&IC(n)&&IC(t)&&n.write!==MC&&e!==r){const{write:o}=n;return t.write=OC(e,n.write.bind(n),r,i),()=>{t.write=o}}}function OC(e,t,n,r=n){return function(i,o,...a){return t(function(t){const[r]=LC(e,t,n);return i(r)},function(t,...i){const[a]=LC(e,t,n),s=kC(e,a,t,n,r);try{return o(a,...i)}finally{null==s||s()}},...a)}}function qC(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const i=Object.getPrototypeOf(t),o=Object.create(i,r);return o.read!==PC&&(o.read=function(e,t,n){return function(r,i){return t(function(t){const[i]=LC(e,t,n);return r(i)},i)}}(e,t.read.bind(t),n)),IC(o)&&IC(t)&&o.write!==MC&&(o.write=OC(e,t.write.bind(t),n)),o}function TC({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const i=new WeakSet(e),o=DC.get(n),a=(null==o?void 0:o[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,o,new Set,void 0],l=s[0],u=s[5],c=function(e){const t=e[3],n=[...yw(t)],r=n[21],i=n[22],o=n[23],a=n[9],s={};n[9]=(e,t)=>a(l,t),n[21]=h(r),n[22]=p,n[23]=h(o),n[24]=([...e])=>{const t=[m(e[0],u),m(e[1],c),m(e[2]),g(e[3]),e[4],e[5],y(e[6]),h(e[7]),h(e[8]),e[9],h(e[10]),h(e[11],e=>d(t[0],e)),e[12],e[13],h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e];return t};const l=bw(...n);return l;function u(t){const n=new WeakMap;return function(r){let i=n.get(r);if(i)return i;const o=t(r);return o?(i={...o,d:m(o.d,function(t){return n=>t(LC(e,n)[0])}),p:g(o.p),get n(){return o.n},set n(e){o.n=e},get v(){return o.v},set v(e){o.v=e},get e(){return o.e},set e(e){o.e=e}},n.set(r,i),i):void 0}}function c(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const i=e(n);return i?(r={...i,d:g(i.d),t:g(i.t),get u(){return i.u},set u(e){i.u=e}},t.set(n,r),r):void 0}}function d(e,t){return function(n,r){return e.get(r)||(e.set(r,t(n,r)),e.get(r))}}function p(t,n,...r){const[o,a]=LC(e,n),s=kC(e,o,n,a,e);try{return i(t,o,...r)}finally{null==s||s()}}function f(t,n){return function(r,...i){const[o]=LC(e,r);return(n?n(t):t)(o,...i)}}function h(t,n){return function(r,i,...o){const[a]=LC(e,i);return(n?n(t):t)(r,a,...o)}}function m(e,t){return{get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))}}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const n of t)yield LC(e,n)[0]}}}function v(t){if(!t)return;const n=f(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[i]=LC(e,n);return t.add(i,r)},n}function y(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>s[t]??(s[t]=v(e[t])),set(n){delete s[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=c,Object.assign(c,{name:r}),DC.set(c,s);for(const t of new Set(e))l.set(t,[qC(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[qC(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!i.has(t)&&l.delete(t):l.set(t,[qC(s,t,s),s])});u.add(t)}return c}const jC=function(e,t){return function(n){const{atoms:i=[],atomFamilies:o=[],children:a,scope:s,name:l}=n,u=t(),c=Array.from(i,e=>Array.isArray(e)?e[0]:e);function p(){return[s??TC({atoms:c,atomFamilies:o,parentStore:u,name:l}),function(e){return u!==e.parentStore||!EC(c,e.atoms)||!EC(o,e.atomFamilies)||s!==e.providedScope}]}const[[f,h],g]=m(p);if(h({atoms:c,atomFamilies:o,parentStore:u,providedScope:s})){const e=DC.get(f);e&&AC(e),g(p)}return Ww(Array.from(i).filter(Array.isArray),{store:f}),d(()=>{const e=DC.get(f);return()=>{e&&AC(e)}},[f]),r(e,{store:f,children:a})}}(Pw,Rw);var NC=Object.defineProperty,_C=Object.defineProperties,FC=Object.getOwnPropertyDescriptors,zC=Object.getOwnPropertySymbols,WC=Object.prototype.hasOwnProperty,$C=Object.prototype.propertyIsEnumerable,HC=(e,t,n)=>t in e?NC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VC=(e,t)=>{for(var n in t||(t={}))WC.call(t,n)&&HC(e,n,t[n]);if(zC)for(var n of zC(t))$C.call(t,n)&&HC(e,n,t[n]);return e},BC=(e,t)=>_C(e,FC(t));function GC(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function UC(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function YC(e,t){return function(e,t,n){var r,i,o;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>u(e,a.id)),i=e.findIndex(e=>u(e,s.id));if(-1===r||-1===i){if(UC(a)){const r=a.initialIndex,i=a.index;return r===i||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,i)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,i)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&UC(a)){const r=a.initialGroup,i=a.initialIndex,o=a.group,s=a.index;if(null==r||null==o||!(r in e)||!(o in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===o&&i===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===o)return BC(VC({},e),{[r]:n(e[r],i,s)});const l=e[r][i];return BC(VC({},e),{[r]:[...e[r].slice(0,i),...e[r].slice(i+1)],[o]:[...e[o].slice(0,s),l,...e[o].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(i=null==(r=m.shape)?void 0:r.current.center)?i:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&UC(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(o=a.group)?o:d;if(t in e){if(d===t)return BC(VC({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return BC(VC({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return BC(VC({},e),{[d]:n(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,y=e[d][f];return BC(VC({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),y,...e[p].slice(h+v)]})}(e,t,GC)}function KC(e,t){let n=null;const r=new Map,i=new Set;function o(i){let s;if(void 0===t)s=r.get(i);else for(const[e,n]of r)if(t(e,i)){s=n;break}if(void 0!==s){if(!n?.(s[1],i))return s[0];o.remove(i)}const l=e(i);return r.set(i,[l,Date.now()]),a("CREATE",i,l),l}function a(e,t,n){for(const r of i)r({type:e,param:t,atom:n})}return o.unstable_listen=e=>(i.add(e),()=>{i.delete(e)}),o.getParams=()=>r.keys(),o.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[i]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,i);break}},o.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,i]]of r)n(i,e)&&(r.delete(e),a("REMOVE",e,t))},o}const XC=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,JC=ww(),ZC=ww(e=>e(JC)?.numberOfSections??0),QC=ww(e=>e(JC)?.numberOfItemsInSection??[]),eE=ww(e=>e(JC)?.keyExtractor??XC),tE=ww(e=>e(JC)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),nE=ww(e=>e(JC)?.onDragEnd),rE=ww(e=>e(JC)?.onDragOver),iE=ww(e=>e(JC)?.itemRenderer),oE=ww(e=>e(JC)?.headerRenderer),aE=ww(e=>e(JC)?.dragOverlayRenderer),sE=ww(e=>e(JC)?.onClick),lE=ww(e=>{const t=e(ZC),n=e(QC),r=e(eE),i={};for(let e=0;e<t;e++)i[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return i}),uE=ww(null),cE=ww(e=>e(uE),(e,t,n)=>{if(null===n)return void t(uE,null);const r=e(uE);t(uE,{...r,...n})}),dE=KC(e=>ww(null,(t,n,r)=>{let i;"over"===e?i=t(rE):"end"===e&&(i=t(nE),n(cE,null));const{source:o,target:a}=r.operation;if(null===a)return void n(cE,{toIndex:void 0,toSectionIndex:void 0});const s=YC(t(lE),r)[a.data.sectionIndex].indexOf(o.id),l=-1!==s?s:a.sortable?.index??0;"start"===e?n(cE,{id:o.id,startSection:o.data.sectionKey,startIndex:o.data.itemIndex,startSectionIndex:o.data.sectionIndex}):"over"===e&&n(cE,{toIndex:l,toSectionIndex:a.data.sectionIndex}),i?.({id:o.id,toIndex:l,toSection:a.data.sectionKey,fromSection:o.data.sectionKey,startSection:t(cE)?.startSection??o.data.sectionKey,event:r})})),pE=[JC,ZC,QC,eE,tE,nE,iE,oE,sE,cE],fE=[dE],hE=({props:e,children:t})=>{const n=Tw(JC);return g(()=>{n(e)},[e,n]),t};var mE=Symbol.for("preact-signals");function gE(){if(SE>1)SE--;else{var e,t=!1;for(!function(){var e=IE;for(IE=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==xE;){var n=xE;for(xE=void 0,wE++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&LE(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(wE=0,SE--,t)throw e}}function vE(e){if(SE>0)return e();EE=++CE,SE++;try{return e()}finally{gE()}}var yE=void 0;function bE(e){var t=yE;yE=void 0;try{return e()}finally{yE=t}}var xE=void 0,SE=0,wE=0,CE=0,EE=0,IE=void 0,DE=0;function RE(e){if(void 0!==yE){var t=e.n;if(void 0===t||t.t!==yE)return t={i:0,S:e,p:yE.s,n:void 0,t:yE,e:void 0,x:void 0,r:t},void 0!==yE.s&&(yE.s.n=t),yE.s=t,e.n=t,32&yE.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=yE.s,t.n=void 0,yE.s.n=t,yE.s=t),t}}function PE(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function ME(e,t){return new PE(e,t)}function LE(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function AE(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function kE(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function OE(e,t){PE.call(this,void 0),this.x=e,this.s=void 0,this.g=DE-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function qE(e,t){return new OE(e,t)}function TE(e){var t=e.m;if(e.m=void 0,"function"==typeof t){SE++;var n=yE;yE=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,jE(e),t}finally{yE=n,gE()}}}function jE(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,TE(e)}function NE(e){if(yE!==this)throw new Error("Out-of-order effect");kE(this),yE=e,this.f&=-2,8&this.f&&jE(this),gE()}function _E(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function FE(e,t){var n=new _E(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}PE.prototype.brand=mE,PE.prototype.h=function(){return!0},PE.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:bE(function(){var e;null==(e=t.W)||e.call(t)}))},PE.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&bE(function(){var e;null==(e=t.Z)||e.call(t)}))}},PE.prototype.subscribe=function(e){var t=this;return FE(function(){var n=t.value,r=yE;yE=void 0;try{e(n)}finally{yE=r}},{name:"sub"})},PE.prototype.valueOf=function(){return this.value},PE.prototype.toString=function(){return this.value+""},PE.prototype.toJSON=function(){return this.value},PE.prototype.peek=function(){var e=yE;yE=void 0;try{return this.value}finally{yE=e}},Object.defineProperty(PE.prototype,"value",{get:function(){var e=RE(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(wE>100)throw new Error("Cycle detected");!function(e){0!==SE&&0===wE&&e.l!==EE&&(e.l=EE,IE={S:e,v:e.v,i:e.i,o:IE})}(this),this.v=e,this.i++,DE++,SE++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{gE()}}}}),OE.prototype=new PE,OE.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===DE)return!0;if(this.g=DE,this.f|=1,this.i>0&&!LE(this))return this.f&=-2,!0;var e=yE;try{AE(this),yE=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return yE=e,kE(this),this.f&=-2,!0},OE.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}PE.prototype.S.call(this,e)},OE.prototype.U=function(e){if(void 0!==this.t&&(PE.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},OE.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(OE.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=RE(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),_E.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},_E.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,TE(this),AE(this),SE++;var e=yE;return yE=this,NE.bind(this,e)},_E.prototype.N=function(){2&this.f||(this.f|=2,this.u=xE,xE=this)},_E.prototype.d=function(){this.f|=8,1&this.f||jE(this)},_E.prototype.dispose=function(){this.d()};var zE,WE,$E,HE,VE,BE,GE,UE,YE,KE,XE,JE,ZE,QE,eI,tI,nI,rI,iI,oI,aI=Object.create,sI=Object.defineProperty,lI=Object.defineProperties,uI=Object.getOwnPropertyDescriptor,cI=Object.getOwnPropertyDescriptors,dI=Object.getOwnPropertySymbols,pI=Object.prototype.hasOwnProperty,fI=Object.prototype.propertyIsEnumerable,hI=e=>{throw TypeError(e)},mI=(e,t,n)=>t in e?sI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gI=(e,t)=>sI(e,"name",{value:t,configurable:!0}),vI=["class","method","getter","setter","accessor","field","value","get","set"],yI=e=>void 0!==e&&"function"!=typeof e?hI("Function expected"):e,bI=(e,t,n,r,i)=>({kind:vI[e],name:t,metadata:r,addInitializer:e=>n._?hI("Already initialized"):i.push(yI(e||null))}),xI=(e,t)=>{return mI(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},SI=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},wI=(e,t,n,r,i,o)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=vI[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&uI(d<4?i:{get[n](){return II(this,o)},set[n](e){return RI(this,o,e)}},n));d?f&&d<4&&gI(o,(d>2?"set ":d>1?"get ":"")+n):gI(i,n);for(var b=r.length-1;b>=0;b--)u=bI(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>EI(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?II:PI)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>RI(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?yI(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?hI("Object expected"):(yI(a=s.get)&&(y.get=a),yI(a=s.set)&&(y.set=a),yI(a=s.init)&&g.unshift(a));return d||xI(e,i),y&&sI(i,n,y),f?4^d?o:y:i},CI=(e,t,n)=>t.has(e)||hI("Cannot "+n),EI=(e,t)=>Object(t)!==t?hI('Cannot use the "in" operator on this value'):e.has(t),II=(e,t,n)=>(CI(e,t,"read from private field"),n?n.call(e):t.get(e)),DI=(e,t,n)=>t.has(e)?hI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),RI=(e,t,n,r)=>(CI(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),PI=(e,t,n)=>(CI(e,t,"access private method"),n);function MI(e,t){if(t){let n;return qE(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return qE(e)}function LI(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!LI(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=n.some(n=>!LI(e[n],t[n]));return!i}return!1}function AI({get:e},t){return{init:e=>ME(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function kI(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=MI(e.bind(this)),n.set(this,t)),t.value}}function OI(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>lI(e,cI(t)))(((e,t)=>{for(var n in t||(t={}))pI.call(t,n)&&mI(e,n,t[n]);if(dI)for(var n of dI(t))fI.call(t,n)&&mI(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function qI(...e){const t=e.map(e=>FE(e));return()=>t.forEach(e=>e())}BE=[AI],VE=[AI],HE=[AI],$E=[OI()],WE=[OI()],zE=[OI()];var TI,jI=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,SI(GE,5,this),DI(this,JE),DI(this,UE,SI(GE,8,this)),SI(GE,11,this),DI(this,ZE,SI(GE,12,this)),SI(GE,15,this),DI(this,nI,SI(GE,16,this)),SI(GE,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return II(this,JE,iI)}get initial(){return II(this,JE,KE)}get previous(){return II(this,JE,eI)}set current(e){const t=bE(()=>II(this,JE,iI));e&&t&&this.equals(t,e)||vE(()=>{II(this,JE,KE)||RI(this,JE,e,XE),RI(this,JE,t,tI),RI(this,JE,e,oI)})}reset(e=this.defaultValue){vE(()=>{RI(this,JE,void 0,tI),RI(this,JE,e,XE),RI(this,JE,e,oI)})}};function NI(e){return bE(()=>{const t={};for(const n in e)t[n]=e[n];return t})}GE=[,,,aI(null)],UE=new WeakMap,JE=new WeakSet,ZE=new WeakMap,nI=new WeakMap,YE=wI(GE,20,"#initial",BE,JE,UE),KE=YE.get,XE=YE.set,QE=wI(GE,20,"#previous",VE,JE,ZE),eI=QE.get,tI=QE.set,rI=wI(GE,20,"#current",HE,JE,nI),iI=rI.get,oI=rI.set,wI(GE,2,"current",$E,jI),wI(GE,2,"initial",WE,jI),wI(GE,2,"previous",zE,jI),xI(GE,jI);TI=new WeakMap;var _I,FI,zI,WI,$I,HI=Object.create,VI=Object.defineProperty,BI=Object.getOwnPropertyDescriptor,GI=Object.getOwnPropertySymbols,UI=Object.prototype.hasOwnProperty,YI=Object.prototype.propertyIsEnumerable,KI=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),XI=e=>{throw TypeError(e)},JI=Math.pow,ZI=(e,t,n)=>t in e?VI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QI=["class","method","getter","setter","accessor","field","value","get","set"],eD=e=>void 0!==e&&"function"!=typeof e?XI("Function expected"):e,tD=(e,t,n,r,i)=>({kind:QI[e],name:t,metadata:r,addInitializer:e=>n._?XI("Already initialized"):i.push(eD(e||null))}),nD=(e,t,n,r,i,o)=>{for(var a,s,l,u,c=7&t,d=QI[c+5],p=e[2]||(e[2]=[]),f=(i=i.prototype,BI(i,n)),h=r.length-1;h>=0;h--)(l=tD(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,eD(a)&&(f[d]=a);return f&&VI(i,n,f),i},rD=(e,t,n)=>t.has(e)||XI("Cannot "+n),iD=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},oD=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:i,width:o,height:a,scale:s}=this,l=new e(i+t,r+n,o,a);return l.scale=((e,t)=>{for(var n in t||(t={}))UI.call(t,n)&&ZI(e,n,t[n]);if(GI)for(var n of GI(t))YI.call(t,n)&&ZI(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:i,bottom:o}=this;return{width:e,height:t,left:n,top:r,right:i,bottom:o}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new iD((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:i,height:o}=this;return n===t.left&&r===t.top&&i===t.width&&o===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:i}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:i}){return new e(n,t,r,i)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],i="x"===t?e.left:e.top,o="x"===t?e.width:e.height;return"start"==r?i:"end"==r?i+o:i+o/2};return iD.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var aD,sD=class extends(zI=jI,FI=[kI],_I=[kI],zI){constructor(e){var t,n,r;super(iD.from(e),(e,t)=>iD.equals(e,t)),((e,t,n)=>{for(var r=0,i=e[t>>1],o=i&&i.length;r<o;r++)i[r].call(n)})($I,5,this),t=this,r=0,(n=WI).has(t)?XI("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return iD.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=iD.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-(rD(a=this,s=WI,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/o*100);vE(()=>{((e,t,n)=>{rD(e,t,"write to private field"),t.set(e,n)})(this,WI,i),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(iD.from(e)),this.velocity={x:0,y:0}}};function lD({x:e,y:t},n){const r=Math.abs(e),i=Math.abs(t);return"number"==typeof n?Math.sqrt(JI(r,2)+JI(i,2))>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n&&i>n.y}$I=(e=>{var t;return[,,,HI(null!=(t=null==e?void 0:e[KI("metadata")])?t:null)]})(zI),WI=new WeakMap,nD($I,2,"delta",FI,sD),nD($I,2,"direction",_I,sD),aD=$I,ZI(sD,KI("metadata"),aD[3]);var uD,cD,dD,pD,fD=(e=>(e.Horizontal="x",e.Vertical="y",e))(fD||{}),hD=Object.values(fD),mD=Object.create,gD=Object.defineProperty,vD=Object.defineProperties,yD=Object.getOwnPropertyDescriptor,bD=Object.getOwnPropertyDescriptors,xD=Object.getOwnPropertySymbols,SD=Object.prototype.hasOwnProperty,wD=Object.prototype.propertyIsEnumerable,CD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ED=e=>{throw TypeError(e)},ID=(e,t,n)=>t in e?gD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DD=(e,t)=>{for(var n in t||(t={}))SD.call(t,n)&&ID(e,n,t[n]);if(xD)for(var n of xD(t))wD.call(t,n)&&ID(e,n,t[n]);return e},RD=(e,t)=>vD(e,bD(t)),PD=(e,t)=>gD(e,"name",{value:t,configurable:!0}),MD=(e,t)=>{var n={};for(var r in e)SD.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xD)for(var r of xD(e))t.indexOf(r)<0&&wD.call(e,r)&&(n[r]=e[r]);return n},LD=e=>{var t;return[,,,mD(null!=(t=null==e?void 0:e[CD("metadata")])?t:null)]},AD=["class","method","getter","setter","accessor","field","value","get","set"],kD=e=>void 0!==e&&"function"!=typeof e?ED("Function expected"):e,OD=(e,t,n,r,i)=>({kind:AD[e],name:t,metadata:r,addInitializer:e=>n._?ED("Already initialized"):i.push(kD(e||null))}),qD=(e,t)=>ID(t,CD("metadata"),e[3]),TD=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},jD=(e,t,n,r,i,o)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=AD[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&yD(d<4?i:{get[n](){return FD(this,o)},set[n](e){return WD(this,o,e)}},n));d?f&&d<4&&PD(o,(d>2?"set ":d>1?"get ":"")+n):PD(i,n);for(var b=r.length-1;b>=0;b--)u=OD(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>_D(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?FD:$D)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>WD(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?kD(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?ED("Object expected"):(kD(a=s.get)&&(y.get=a),kD(a=s.set)&&(y.set=a),kD(a=s.init)&&g.unshift(a));return d||qD(e,i),y&&gD(i,n,y),f?4^d?o:y:i},ND=(e,t,n)=>t.has(e)||ED("Cannot "+n),_D=(e,t)=>Object(t)!==t?ED('Cannot use the "in" operator on this value'):e.has(t),FD=(e,t,n)=>(ND(e,t,"read from private field"),n?n.call(e):t.get(e)),zD=(e,t,n)=>t.has(e)?ED("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),WD=(e,t,n,r)=>(ND(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$D=(e,t,n)=>(ND(e,t,"access private method"),n);function HD(e,t){return{plugin:e,options:t}}function VD(e){return t=>HD(e,t)}function BD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}uD=[AI];var GD=class{constructor(e,t){this.manager=e,this.options=t,zD(this,dD,TD(cD,8,this,!1)),TD(cD,11,this),zD(this,pD,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return bE(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=FE(e.bind(this));return FD(this,pD).add(t),t}destroy(){FD(this,pD).forEach(e=>e())}static configure(e){return HD(this,e)}};cD=LD(null),dD=new WeakMap,pD=new WeakMap,jD(cD,4,"disabled",uD,GD,dD),qD(cD,GD);var UD,YD=class extends GD{},KD=class{constructor(e){this.manager=e,this.instances=new Map,zD(this,UD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(BD).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),n=t.map(({plugin:e})=>e);for(const e of FD(this,UD))if(!n.includes(e)){if(e.prototype instanceof YD)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);WD(this,UD,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function XD(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}UD=new WeakMap;var JD,ZD,QD=[],eR=class extends GD{constructor(e){super(e),zD(this,JD),zD(this,ZD),this.computeCollisions=this.computeCollisions.bind(this),WD(this,ZD,ME(QD)),this.destroy=qI(()=>{const e=this.computeCollisions(),t=bE(()=>this.manager.dragOperation.position.current);if(e!==QD){const e=FD(this,JD);if(WD(this,JD,t),e&&t.x==e.x&&t.y==e.y)return}else WD(this,JD,void 0);FD(this,ZD).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){bE(()=>{e?FD(this,ZD).value=this.computeCollisions():WD(this,JD,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:i,shape:o,status:a}=r;if(!a.initialized||!o)return QD;const s=[],l=[];for(const o of null!=e?e:n.droppables){if(o.disabled)continue;if(i&&!o.accepts(i))continue;const e=null!=t?t:o.collisionDetector;if(!e)continue;l.push(o),o.shape;const n=bE(()=>e({droppable:o,dragOperation:r}));n&&(null!=o.collisionPriority&&(n.priority=o.collisionPriority),s.push(n))}return 0===l.length?QD:(s.sort(XD),s)}get collisions(){return FD(this,ZD).value}};JD=new WeakMap,ZD=new WeakMap;var tR=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},nR=class extends tR{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function rR(e,t=!0){let n=!1;return RD(DD({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var iR,oR,aR,sR,lR,uR,cR,dR,pR,fR=class extends YD{constructor(e){super(e);let t=[];this.destroy=qI(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:i}=n;if(n.isDisabled())return;const o=rR({collisions:i});if(r.dispatch("collision",o),o.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(i,t))return;t=i;const[a]=i;bE(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},hR=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(hR||{}),mR=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(mR||{});cR=[AI],uR=[kI],lR=[kI],sR=[kI],aR=[kI],oR=[kI],iR=[kI];var gR=class{constructor(){TD(dR,5,this),zD(this,pR,TD(dR,8,this,"idle")),TD(dR,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};dR=LD(null),pR=new WeakMap,jD(dR,4,"value",cR,gR,pR),jD(dR,2,"current",uR,gR),jD(dR,2,"idle",lR,gR),jD(dR,2,"initializing",sR,gR),jD(dR,2,"initialized",aR,gR),jD(dR,2,"dragging",oR,gR),jD(dR,2,"dropped",iR,gR),qD(dR,gR);var vR,yR,bR,xR,SR,wR,CR,ER,IR,DR=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return bE(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=rR({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return bE(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:i}=e;vE(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(i)});const o=rR({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1}))}),n)})}move(e){return bE(()=>{var t,n;const{dragOperation:r}=this.manager,{status:i,controller:o}=r;if(!i.dragging||!o||o.signal.aborted)return;const a=rR({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,i,o,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(o=null==(i=e.by)?void 0:i.y)?o:0)};r.position.current=l})})}stop(e={}){return bE(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:i}=r;if(!i||i.signal.aborted)return;let o;i.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=bE(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===i&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=FE(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return o=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),o?o.then(a).catch(()=>r.reset()):a()})}};xR=[AI],bR=[AI],yR=[AI],vR=[AI];var RR=class{constructor(e,t){zD(this,wR,TD(SR,8,this)),TD(SR,11,this),zD(this,CR,TD(SR,12,this)),TD(SR,15,this),zD(this,ER,TD(SR,16,this)),TD(SR,19,this),zD(this,IR,TD(SR,20,this)),TD(SR,23,this);const{effects:n,id:r,data:i={},disabled:o=!1,register:a=!0}=e;let s=r;this.manager=t,this.id=r,this.data=i,this.disabled=o,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};SR=LD(null),wR=new WeakMap,CR=new WeakMap,ER=new WeakMap,IR=new WeakMap,jD(SR,4,"manager",xR,RR,wR),jD(SR,4,"id",bR,RR,CR),jD(SR,4,"data",yR,RR,ER),jD(SR,4,"disabled",vR,RR,IR),qD(SR,RR);var PR,MR,LR,AR,kR,OR,qR,TR,jR,NR,_R,FR,zR,WR,$R,HR,VR,BR,GR,UR,YR,KR,XR,JR,ZR=class{constructor(){this.map=ME(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),i=()=>this.unregister(e,t);if(r===t)return i;if(r){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const o=new Map(n);o.set(e,t),this.map.value=o;const a=qI(...t.effects());return this.cleanupFunctions.set(t,a),i},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const i=new Map(n);i.delete(e),this.map.value=i}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},QR=class extends(qR=RR,OR=[AI],kR=[AI],AR=[AI],LR=[kI],MR=[kI],PR=[kI],qR){constructor(e,t){var n=e,{modifiers:r,type:i,sensors:o}=n,a=MD(n,["modifiers","type","sensors"]);super(a,t),TD(TR,5,this),zD(this,jR,TD(TR,8,this)),TD(TR,11,this),zD(this,NR,TD(TR,12,this)),TD(TR,15,this),zD(this,_R,TD(TR,16,this,this.isDragSource?"dragging":"idle")),TD(TR,19,this),this.type=i,this.sensors=o,this.modifiers=r,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};TR=LD(qR),jR=new WeakMap,NR=new WeakMap,_R=new WeakMap,jD(TR,4,"type",OR,QR,jR),jD(TR,4,"modifiers",kR,QR,NR),jD(TR,4,"status",AR,QR,_R),jD(TR,2,"isDropping",LR,QR),jD(TR,2,"isDragging",MR,QR),jD(TR,2,"isDragSource",PR,QR),qD(TR,QR);var eP=class extends(BR=RR,VR=[AI],HR=[AI],$R=[AI],WR=[AI],zR=[AI],FR=[kI],BR){constructor(e,t){var n=e,{accept:r,collisionDetector:i,collisionPriority:o,type:a}=n;super(MD(n,["accept","collisionDetector","collisionPriority","type"]),t),TD(GR,5,this),zD(this,UR,TD(GR,8,this)),TD(GR,11,this),zD(this,YR,TD(GR,12,this)),TD(GR,15,this),zD(this,KR,TD(GR,16,this)),TD(GR,19,this),zD(this,XR,TD(GR,20,this)),TD(GR,23,this),zD(this,JR,TD(GR,24,this)),TD(GR,27,this),this.accept=r,this.collisionDetector=i,this.collisionPriority=o,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};GR=LD(BR),UR=new WeakMap,YR=new WeakMap,KR=new WeakMap,XR=new WeakMap,JR=new WeakMap,jD(GR,4,"accept",VR,eP,UR),jD(GR,4,"type",HR,eP,YR),jD(GR,4,"collisionDetector",$R,eP,KR),jD(GR,4,"collisionPriority",WR,eP,XR),jD(GR,4,"shape",zR,eP,JR),jD(GR,2,"isDropTarget",FR,eP),qD(GR,eP);var tP,nP=class extends GD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},rP=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},iP=class{constructor(e){this.options=e,zD(this,tP)}set controller(e){WD(this,tP,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=FD(this,tP))||t.activate(e)}};tP=new WeakMap;var oP,aP,sP,lP,uP,cP,dP,pP,fP,hP,mP,gP,vP,yP,bP,xP,SP,wP,CP,EP=class extends GD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},IP=class{constructor(e){this.draggables=new ZR,this.droppables=new ZR,this.plugins=new KD(e),this.sensors=new KD(e),this.modifiers=new KD(e)}register(e,t){if(e instanceof QR)return this.draggables.register(e.id,e);if(e instanceof eP)return this.droppables.register(e.id,e);if(e.prototype instanceof EP)return this.modifiers.register(e,t);if(e.prototype instanceof nP)return this.sensors.register(e,t);if(e.prototype instanceof GD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof RR)return e instanceof QR?this.draggables.unregister(e.id,e):e instanceof eP?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof EP)return this.modifiers.unregister(e);if(e.prototype instanceof nP)return this.sensors.unregister(e);if(e.prototype instanceof GD)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};fP=[kI],pP=[AI],dP=[AI],cP=[AI],uP=[AI],lP=[AI],sP=[kI],aP=[kI],oP=[kI];var DP=class{constructor(e){TD(vP,5,this),zD(this,hP),zD(this,mP),zD(this,gP,new jI(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new gR,zD(this,yP,TD(vP,8,this,!1)),TD(vP,11,this),zD(this,bP,TD(vP,12,this,null)),TD(vP,15,this),zD(this,xP,TD(vP,16,this,null)),TD(vP,19,this),zD(this,SP,TD(vP,20,this,null)),TD(vP,23,this),zD(this,wP,TD(vP,24,this,[])),TD(vP,27,this),this.position=new sD({x:0,y:0}),zD(this,CP,{x:0,y:0}),WD(this,hP,e)}get shape(){const{current:e,initial:t,previous:n}=FD(this,gP);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?FD(this,gP).current=e:FD(this,gP).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=FD(this,hP).registry.draggables.get(t);return n&&WD(this,mP,n),null!=(e=null!=n?n:FD(this,mP))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=FD(this,hP).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(RD(DD({},this.snapshot()),{transform:n}));return WD(this,CP,n),n}snapshot(){return bE(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:FD(this,CP),shape:this.shape?NI(this.shape):null,position:NI(this.position),status:NI(this.status),canceled:this.canceled}))}reset(){vE(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,FD(this,gP).reset(),this.position.reset({x:0,y:0}),WD(this,CP,{x:0,y:0}),this.modifiers=[]})}};vP=LD(null),hP=new WeakMap,mP=new WeakMap,gP=new WeakMap,yP=new WeakMap,bP=new WeakMap,xP=new WeakMap,SP=new WeakMap,wP=new WeakMap,CP=new WeakMap,jD(vP,2,"shape",fP,DP),jD(vP,4,"canceled",pP,DP,yP),jD(vP,4,"activatorEvent",dP,DP,bP),jD(vP,4,"sourceIdentifier",cP,DP,xP),jD(vP,4,"targetIdentifier",uP,DP,SP),jD(vP,4,"modifiers",lP,DP,wP),jD(vP,2,"source",sP,DP),jD(vP,2,"target",aP,DP),jD(vP,2,"transform",oP,DP),qD(vP,DP);var RP={get rendering(){return Promise.resolve()}};function PP(e,t){return"function"==typeof e?e(t):null!=e?e:t}var MP=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=e?e:{},r=PP(n.plugins,[]),i=PP(n.sensors,[]),o=PP(n.modifiers,[]),a=null!=(t=n.renderer)?t:RP,s=new nR(this),l=new IP(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new DR(this),this.dragOperation=new DP(this),this.collisionObserver=new eR(this),this.plugins=[fR,...r],this.modifiers=o,this.sensors=i;const{destroy:u}=this,c=qI(()=>{var e,t,n;const r=bE(()=>this.dragOperation.modifiers),i=this.modifiers;for(const e of r)i.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=BD(e);return new t(this,n)}))?n:i});this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},LP=e=>{throw TypeError(e)},AP=(e,t,n)=>t.has(e)||LP("Cannot "+n),kP=(e,t,n)=>(AP(e,t,"read from private field"),t.get(e)),OP=(e,t,n)=>t.has(e)?LP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qP=(e,t,n,r)=>(AP(e,t,"write to private field"),t.set(e,n),n),TP=(e,t,n)=>(AP(e,t,"access private method"),n);function jP(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function NP(e,t){const n=e.getAnimations();if(n.length>0)for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,r=(jP(n)?n.getKeyframes():[]).filter(t);if(r.length>0)return[r[r.length-1],e]}return null}function _P(e){const{width:t,height:n,top:r,left:i,bottom:o,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:o,right:a}}function FP(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function zP(e){return"nodeType"in e}function WP(e){var t,n,r;return e?FP(e)?e:zP(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function $P(e){const{Document:t}=WP(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function HP(e){return!(!e||FP(e))&&(e instanceof WP(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function VP(e){return e instanceof WP(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function BP(e){return e?FP(e)?e.document:zP(e)?$P(e)?e:HP(e)||VP(e)?e.ownerDocument:document:document:document}function GP(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===i}function UP(e,t=e.getBoundingClientRect(),n=0){var r,i,o,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(r=u.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!GP(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),i=n*(e.bottom-e.top),o=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+i),left:Math.max(l.left,e.left-o),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(i=null==p?void 0:p.offsetTop)?i:0,h=null!=(o=null==p?void 0:p.offsetLeft)?o:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,v=n*g,y=n*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+y),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-y),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function YP(e){return{x:e.clientX,y:e.clientY}}var KP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function XP(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...XP(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const i=r.parent;i&&i.document&&i.document!==e&&n.push(...XP(i.document,t))}}catch(e){}return n}function JP(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ZP(){var e,t;const n=JP()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function QP(e){return!(!e||!zP(e))&&e instanceof WP(e).ShadowRoot}function eM(e){if(e&&zP(e)){let t=e.getRootNode();if(QP(t))return t;if(t instanceof Document)return t}return BP(e)}function tM(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function nM(e){return"value"in e}function rM(e){return"CANVAS"===e.tagName}function iM(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:i,top:o}=r.getBoundingClientRect();return iM(e,{x:t-i,y:n-o})}}return r}var oM=new WeakMap;var aM=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],i=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:o}=t,a=[e,t];e.addEventListener(n,r,o),this.entries.add(a),i.push(a)}return function(){for(const[e,{type:t,listener:n,options:r}]of i)e.removeEventListener(t,n,r)}}};function sM(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function lM(e,t){const n=()=>performance.now();let r,i;return function(...o){const a=this;i?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,o),i=n()},t-(n()-i))):(e.apply(a,o),i=n())}}var uM,cM=KP?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},dM=class extends cM{constructor(e){super(t=>{kP(this,uM)?e(t,this):qP(this,uM,!0)}),OP(this,uM,!1)}};uM=new WeakMap;var pM,fM,hM,mM,gM,vM,yM,bM,xM,SM,wM,CM=Array.from({length:100},(e,t)=>t/100),EM=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,OP(this,xM),this.disconnect=()=>{var e,t,n;qP(this,yM,!0),null==(e=kP(this,hM))||e.disconnect(),null==(t=kP(this,mM))||t.disconnect(),kP(this,gM).disconnect(),null==(n=kP(this,vM))||n.remove()},OP(this,pM,!0),OP(this,fM),OP(this,hM),OP(this,mM),OP(this,gM),OP(this,vM),OP(this,yM,!1),OP(this,bM,lM(()=>{var e,t,n;const{element:r}=this;if(null==(e=kP(this,mM))||e.disconnect(),kP(this,yM)||!kP(this,pM)||!r.isConnected)return;const i=null!=(t=r.ownerDocument)?t:document,{innerHeight:o,innerWidth:a}=null!=(n=i.defaultView)?n:window,s=r.getBoundingClientRect(),l=UP(r,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(o-d)}px ${h}px`;this.boundingClientRect=s,qP(this,mM,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:oD.intersectionRatio(n,UP(r)))&&kP(this,bM).call(this)},{threshold:CM,rootMargin:m,root:i})),kP(this,mM).observe(r),TP(this,xM,SM).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),qP(this,pM,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=UP(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const i=e.ownerDocument;(null==n?void 0:n.debug)&&(qP(this,vM,document.createElement("div")),kP(this,vM).style.background="rgba(0,0,0,0.15)",kP(this,vM).style.position="fixed",kP(this,vM).style.pointerEvents="none",i.body.appendChild(kP(this,vM))),qP(this,gM,new IntersectionObserver(t=>{var n,r;const i=t[t.length-1],{boundingClientRect:o,isIntersecting:a}=i,{width:s,height:l}=o,u=kP(this,pM);qP(this,pM,a),(s||l)&&(u&&!a?(null==(n=kP(this,mM))||n.disconnect(),this.callback(null),null==(r=kP(this,hM))||r.disconnect(),qP(this,hM,void 0),kP(this,vM)&&(kP(this,vM).style.visibility="hidden")):kP(this,bM).call(this),a&&!kP(this,hM)&&(qP(this,hM,new dM(kP(this,bM))),kP(this,hM).observe(e)))},{threshold:CM,root:i})),kP(this,pM)&&!n.skipInitial&&this.callback(this.boundingClientRect),kP(this,gM).observe(e)}};pM=new WeakMap,fM=new WeakMap,hM=new WeakMap,mM=new WeakMap,gM=new WeakMap,vM=new WeakMap,yM=new WeakMap,bM=new WeakMap,xM=new WeakSet,SM=function(){kP(this,yM)||(TP(this,xM,wM).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,kP(this,fM))||(this.callback(this.boundingClientRect),qP(this,fM,this.boundingClientRect)))},wM=function(){if(kP(this,vM)){const{top:e,left:t,width:n,height:r}=UP(this.element);kP(this,vM).style.overflow="hidden",kP(this,vM).style.visibility="visible",kP(this,vM).style.top=`${Math.floor(e)}px`,kP(this,vM).style.left=`${Math.floor(t)}px`,kP(this,vM).style.width=`${Math.floor(n)}px`,kP(this,vM).style.height=`${Math.floor(r)}px`}};var IM,DM,RM,PM,MM=new WeakMap,LM=new WeakMap;function AM(e,t){let n=MM.get(e);if(!n){const t=new EM(e,t=>{const n=MM.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),MM.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(MM.delete(e),n.disconnect())}}var kM=class{constructor(e,t,n){this.callback=t,OP(this,IM),OP(this,DM,!1),OP(this,RM),OP(this,PM,lM(e=>{if(!kP(this,DM)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of kP(this,RM))if(e.target.contains(t)){this.callback(kP(this,IM).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=sM(e);for(;n;)t.add(n),n=sM(n);return t}(e),i=function(e,t){const n=new Set;for(const r of e){const e=AM(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),o=function(e,t){var n;const r=e.ownerDocument;if(!LM.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),LM.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:i,disconnect:o}=null!=(n=LM.get(r))?n:{};return i&&o?(i.add(t),()=>{i.delete(t),0===i.size&&(o(),LM.delete(r))}):()=>{}}(e,kP(this,PM));qP(this,RM,r),qP(this,IM,new EM(e,t,n)),this.disconnect=()=>{kP(this,DM)||(qP(this,DM,!0),i(),o(),kP(this,IM).disconnect())}}};function OM(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function qM(e){try{OM(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function TM(e){return!(!KP||!e)&&e===BP(e).scrollingElement}function jM(e){var t,n;const r=WP(e),i=TM(e)?function(e){var t,n,r,i;const{documentElement:o}=BP(e),a=WP(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:o.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:o.clientHeight,u=null!=(r=null==a?void 0:a.offsetTop)?r:0,c=null!=(i=null==a?void 0:a.offsetLeft)?i:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):_P(e),o=r.visualViewport,a=TM(e)?{height:null!=(t=null==o?void 0:o.height)?t:r.innerHeight,width:null!=(n=null==o?void 0:o.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:i,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function NM(e,t){const{isTop:n,isBottom:r,isLeft:i,isRight:o,position:a}=jM(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!n&&a.current.y+l>0,c=!r&&a.current.y+l<a.max.y,d=!i&&a.current.x+s>0,p=!o&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}IM=new WeakMap,DM=new WeakMap,RM=new WeakMap,PM=new WeakMap;var _M=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},FM=new _M(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),zM=new _M(e=>setTimeout(e,50)),WM=new Map,$M=WM.clear.bind(WM);function HM(e,t=!1){if(!t)return VM(e);let n=WM.get(e);return n||(n=VM(e),WM.set(e,n),zM.schedule($M),n)}function VM(e){return WP(e).getComputedStyle(e)}var BM={excludeElement:!0,escapeShadowDOM:!0};function GM(e,t=BM){const{limit:n,excludeElement:r,escapeShadowDOM:i}=t,o=new Set;return e?function t(a){if(null!=n&&o.size>=n)return o;if(!a)return o;if($P(a)&&null!=a.scrollingElement&&!o.has(a.scrollingElement))return o.add(a.scrollingElement),o;if(i&&QP(a))return t(a.host);if(!HP(a))return VP(a)?t(a.parentElement):o;if(o.has(a))return o;const s=HM(a,!0);if(r&&a===e||function(e,t=HM(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&o.add(a),function(e,t=HM(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&o.add(e),o}return t(a.parentNode)}(e):o}function UM(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=sM(e);for(;r;){if(r===t)return n;const e=_P(r),{x:i,y:o}=YM(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*i,n.scaleY=n.scaleY*o,r=sM(r)}return n}function YM(e,t=_P(e)){const n=Math.round(t.width),r=Math.round(t.height);if(HP(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const i=HM(e,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}function KM(e){if("none"===e)return null;const[t,n,r="0"]=e.split(" "),i={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function XM(e){var t,n,r,i,o,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(c),h=KM(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,v=null!=(n=null==f?void 0:f.y)?n:1,y=null!=(r=null==h?void 0:h.x)?r:0,b=null!=(i=null==h?void 0:h.y)?i:0,x=null!=(o=null==m?void 0:m.x)?o:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:y+x,y:b+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:v*C}}var JM=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(JM||{}),ZM={x:.2,y:.2},QM={x:10,y:10};function eL(e,t,n,r=25,i=ZM,o=QM){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=jM(e),f=UM(e),h=XM(HM(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new oD(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),y={x:0,y:0},b={x:0,y:0},x=v.height*i.y,S=v.width*i.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==n?void 0:n.y)&&a>=v.left-o.x&&a<=v.right+o.x?(y.y=g?1:-1,b.y=r*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=v.left-o.x&&a<=v.right+o.x&&(y.y=g?-1:1,b.y=r*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==n?void 0:n.x)&&s>=v.top-o.y&&s<=v.bottom+o.y?(y.x=m?-1:1,b.x=r*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==n?void 0:n.x)&&s>=v.top-o.y&&s<=v.bottom+o.y&&(y.x=m?1:-1,b.x=r*Math.abs((v.left+S-a)/S)),{direction:y,speed:b}}function tL(e,t=!1){if("scrollIntoViewIfNeeded"in(n=e)&&"function"==typeof n.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var n;if(!HP(e))return e.scrollIntoView();var r=function(e){const[t]=GM(e,{limit:1});return null!=t?t:null}(e);if(!HP(r))return;const i=HM(r,!0),o=parseInt(i.getPropertyValue("border-top-width")),a=parseInt(i.getPropertyValue("border-left-width")),s=e.offsetTop-r.offsetTop<r.scrollTop,l=e.offsetTop-r.offsetTop+e.clientHeight-o>r.scrollTop+r.clientHeight,u=e.offsetLeft-r.offsetLeft<r.scrollLeft,c=e.offsetLeft-r.offsetLeft+e.clientWidth-a>r.scrollLeft+r.clientWidth,d=s&&!l;(s||l)&&t&&(r.scrollTop=e.offsetTop-r.offsetTop-r.clientHeight/2-o+e.clientHeight/2),(u||c)&&t&&(r.scrollLeft=e.offsetLeft-r.offsetLeft-r.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function nL({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function rL(e,t=HM(e).translate,n=!0){if(n){const t=NP(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=KM(e);if(t)return t}}}if(t){const e=KM(t);if(e)return e}return{x:0,y:0,z:0}}var iL=new _M(e=>setTimeout(e,0)),oL=new Map,aL=oL.clear.bind(oL);function sL(e,t){const n=function(e){const t=e.ownerDocument;let n=oL.get(t);if(n)return n;n=t.getAnimations(),oL.set(t,n),iL.schedule(aL);const r=n.filter(t=>jP(t.effect)&&t.effect.target===e);return oL.set(e,r),n}(e).filter(e=>{var n,r;if(jP(e.effect)){const{target:i}=e.effect;if(null==(r=i&&(null==(n=t.isValidTarget)?void 0:n.call(t,i)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var lL=class extends oD{constructor(e,t={}){var n,r,i,o;const{frameTransform:a=UM(e),ignoreTransforms:s,getBoundingClientRect:l=_P}=t,u=sL(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||JP())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=HM(e),v=XM(g),y={x:null!=(n=null==v?void 0:v.scaleX)?n:1,y:null!=(r=null==v?void 0:v.scaleY)?r:1},b=function(e,t){var n;const r=e.getAnimations();let i=null;if(!r.length)return null;for(const e of r){if("running"!==e.playState)continue;const r=jP(e.effect)?e.effect.getKeyframes():[],o=r[r.length-1];if(!o)continue;const{transform:a,translate:s,scale:l}=o;if(a||s||l){const e=XM({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(i=i?{x:i.x+e.x,y:i.y+e.y,z:null!=(n=i.z)?n:e.z,scaleX:i.scaleX*e.scaleX,scaleY:i.scaleY*e.scaleY}:e)}}return i}(e,g);null==u||u(),v&&(d=function(e,t,n){const{scaleX:r,scaleY:i,x:o,y:a}=t,s=e.left-o-(1-r)*parseFloat(n),l=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,c=i?e.height/i:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,v,g.transformOrigin),(s||b)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(i=null==d?void 0:d.width)?i:h,height:null!=(o=null==d?void 0:d.height)?o:m};if(b&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:i,x:o,y:a}=t,s=e.left+o+(1-r)*parseFloat(n),l=e.top+a+(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width*r:e.width,c=i?e.height*i:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,b,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,y.x=b.scaleX,y.y=b.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=y,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function uL(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var cL=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(uL(n))for(const[r,i]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof i?i:`${i}px`)}}remove(e,t=""){const{element:n}=this;if(uL(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(uL(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function dL(e){return!!e&&(e instanceof WP(e).Element||zP(e)&&e.nodeType===Node.ELEMENT_NODE)}function pL(e){if(!e)return!1;const{KeyboardEvent:t}=WP(e.target);return e instanceof t}var fL={};function hL(e){const t=null==fL[e]?0:fL[e]+1;return fL[e]=t,`${e}-${t}`}var mL=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/iD.distance(t.shape.center,n),type:mR.PointerIntersection,priority:hR.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:i}=e,o=iD.distance(t.shape.center,i.current),a=r/(n.current.area+t.shape.area-r)/o;return{id:t.id,value:a,type:mR.ShapeIntersection,priority:hR.Normal}}return null})(e)},gL=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:i}=t;if(!n.shape)return null;const o=r?oD.from(r.current.boundingRectangle).corners:void 0,a=oD.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+iD.distance(iD.from(t),null!=(r=null==o?void 0:o[n])?r:i.current)},0),s=a/4;return{id:n.id,value:1/s,type:mR.Collision,priority:hR.Normal}},vL=Object.create,yL=Object.defineProperty,bL=Object.defineProperties,xL=Object.getOwnPropertyDescriptor,SL=Object.getOwnPropertyDescriptors,wL=Object.getOwnPropertySymbols,CL=Object.prototype.hasOwnProperty,EL=Object.prototype.propertyIsEnumerable,IL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),DL=e=>{throw TypeError(e)},RL=(e,t,n)=>t in e?yL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PL=(e,t)=>{for(var n in t||(t={}))CL.call(t,n)&&RL(e,n,t[n]);if(wL)for(var n of wL(t))EL.call(t,n)&&RL(e,n,t[n]);return e},ML=(e,t)=>bL(e,SL(t)),LL=(e,t)=>yL(e,"name",{value:t,configurable:!0}),AL=(e,t)=>{var n={};for(var r in e)CL.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&wL)for(var r of wL(e))t.indexOf(r)<0&&EL.call(e,r)&&(n[r]=e[r]);return n},kL=e=>{var t;return[,,,vL(null!=(t=null==e?void 0:e[IL("metadata")])?t:null)]},OL=["class","method","getter","setter","accessor","field","value","get","set"],qL=e=>void 0!==e&&"function"!=typeof e?DL("Function expected"):e,TL=(e,t,n,r,i)=>({kind:OL[e],name:t,metadata:r,addInitializer:e=>n._?DL("Already initialized"):i.push(qL(e||null))}),jL=(e,t)=>RL(t,IL("metadata"),e[3]),NL=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},_L=(e,t,n,r,i,o)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=OL[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&xL(d<4?i:{get[n](){return WL(this,o)},set[n](e){return HL(this,o,e)}},n));d?f&&d<4&&LL(o,(d>2?"set ":d>1?"get ":"")+n):LL(i,n);for(var b=r.length-1;b>=0;b--)u=TL(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>zL(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?WL:VL)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>HL(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?qL(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?DL("Object expected"):(qL(a=s.get)&&(y.get=a),qL(a=s.set)&&(y.set=a),qL(a=s.init)&&g.unshift(a));return d||jL(e,i),y&&yL(i,n,y),f?4^d?o:y:i},FL=(e,t,n)=>t.has(e)||DL("Cannot "+n),zL=(e,t)=>Object(t)!==t?DL('Cannot use the "in" operator on this value'):e.has(t),WL=(e,t,n)=>(FL(e,t,"read from private field"),n?n.call(e):t.get(e)),$L=(e,t,n)=>t.has(e)?DL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),HL=(e,t,n,r)=>(FL(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),VL=(e,t,n)=>(FL(e,t,"access private method"),n),BL="button",GL="draggable",UL="dnd-kit-description",YL="dnd-kit-announcement",KL={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},XL={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function JL(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var ZL=["dragover","dragmove"];var QL,eA,tA,nA,rA,iA,oA,aA,sA,lA,uA,cA,dA,pA=new Map,fA=class extends(rA=YD,nA=[AI],tA=[kI],eA=[kI],QL=[kI],rA){constructor(e){super(e),NL(oA,5,this),$L(this,sA),$L(this,iA,new Set),$L(this,aA,NL(oA,8,this,new Set)),NL(oA,11,this),this.registerEffect(VL(this,sA,lA))}register(e){return WL(this,iA).add(e),()=>{WL(this,iA).delete(e)}}addRoot(e){return bE(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{bE(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return eM(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return eM(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};oA=kL(rA),iA=new WeakMap,aA=new WeakMap,sA=new WeakSet,lA=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of WL(this,iA))t.push(VL(this,sA,uA).call(this,n,e));return()=>{for(const e of t)e()}},uA=function(e,t){let n=pA.get(e);n||(n=new Map,pA.set(e,n));let r=n.get(t);if(!r){const i=$P(e)?VL(this,sA,cA).call(this,e,n,t):VL(this,sA,dA).call(this,e,n,t);if(!i)return()=>{};r=i,n.set(t,r)}r.refCount++;let i=!1;return()=>{i||(i=!0,r.refCount--,0===r.refCount&&r.cleanup())}},cA=function(e,t,n){const r=e.createElement("style");r.textContent=n,e.head.prepend(r);const i=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===r)return void e.head.prepend(r)});return i.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{i.disconnect(),r.remove(),t.delete(n),0===t.size&&pA.delete(e)}}},dA=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=r?r:{};if(!i)return null;const o=new i;return o.replaceSync(n),e.adoptedStyleSheets.push(o),{refCount:0,cleanup:()=>{var r;if(QP(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(o);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&pA.delete(e)}}},_L(oA,4,"additionalRoots",nA,fA,aA),_L(oA,2,"sourceRoot",tA,fA),_L(oA,2,"targetRoot",eA,fA),_L(oA,2,"roots",QL,fA),jL(oA,fA);var hA="data-dnd-",mA=`${hA}dropping`,gA="--dnd-",vA=`${hA}dragging`,yA=`${hA}placeholder`,bA=[vA,yA,"popover","aria-pressed","aria-grabbing"],xA=["view-transition-name"],SA=`\n :is(:root,:host) [${vA}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${gA}top, 0px) !important;\n left: var(${gA}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${gA}width, auto);\n max-width: var(${gA}width, auto);\n height: var(${gA}height, auto);\n max-height: var(${gA}height, auto);\n transition: var(${gA}transition) !important;\n }\n\n :is(:root,:host) [${yA}] {\n transition: none;\n }\n\n :is(:root,:host) [${yA}='hidden'] {\n visibility: hidden;\n }\n\n [${vA}] * {\n pointer-events: none !important;\n }\n\n [${vA}]:not([${mA}]) {\n translate: var(${gA}translate) !important;\n }\n\n [${vA}][style*='${gA}scale'] {\n scale: var(${gA}scale) !important;\n transform-origin: var(${gA}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${vA}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${vA}]::backdrop, [${hA}overlay]:not([${vA}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function wA(e,t="hidden"){return bE(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const i=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${hA}${hL("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),o=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(nM(e)&&nM(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),rM(e)&&rM(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,i]of e){if(!r.element)continue;const e=`[${i}]`,o=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!o)continue;const a=r.element;r.proxy=o,o.removeAttribute(i),oM.set(a,o),n.push(()=>{oM.delete(a),r.proxy=void 0})}}(i,a,o),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(yA,t)}(a,t),a.remove=()=>{o.forEach(e=>e()),s.call(a)},a})}function CA(e,t){return e===t||sM(e)===sM(t)}function EA(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&dL(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>qM(t))}function IA(e){return"TR"===e.tagName}var DA,RA,PA,MA,LA,AA,kA,OA=250,qA="ease";var TA=class extends(RA=GD,DA=[AI],RA){constructor(e,t){super(e,t),$L(this,LA),$L(this,MA,NL(PA,8,this)),NL(PA,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(fA),r=null==n?void 0:n.register(SA);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(VL(this,LA,AA).bind(this,n)),this.registerEffect(VL(this,LA,kA))}};PA=kL(RA),MA=new WeakMap,LA=new WeakSet,AA=function(e){const{overlay:t}=this;if(!t||!e)return;const n=eM(t);return n?e.addRoot(n):void 0},kA=function(){var e,t,n;const{state:r,manager:i,options:o}=this,{dragOperation:a}=i,{position:s,source:l,status:u}=a;if(u.idle)return r.current={},void(r.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=r,f=null!=(e=this.overlay)?e:c,h=UM(f),m=UM(c),g=!CA(c,f),v=new lL(c,{frameTransform:g?m:null,ignoreTransforms:!g}),y=m.scaleX/h.scaleX,b=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=y,S/=b);const E=new cL(f),{transition:I,translate:D,boxSizing:R,paddingBlockStart:P,paddingBlockEnd:M,paddingInlineStart:L,paddingInlineEnd:A,borderInlineStartWidth:k,borderInlineEndWidth:O,borderBlockStartWidth:q,borderBlockEndWidth:T}=HM(c),j="clone"===d,N="content-box"===R,_=N?parseInt(L)+parseInt(A)+parseInt(k)+parseInt(O):0,F=N?parseInt(P)+parseInt(M)+parseInt(q)+parseInt(T):0,z="move"===d||this.overlay?null:wA(l,j?"clone":"hidden"),W=bE(()=>pL(i.dragOperation.activatorEvent));if("none"!==D){const e=KM(D);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=bE(()=>s.current);p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,H=w*h.scaleY+h.y,V=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:V,y:H},1!==y||1!==b)){const{scaleX:e,scaleY:t}=m,{x:n,y:r}=$;p.coordinates.x+=(x*e-x)*n,p.coordinates.y+=(S*t-S)*r}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const B=p.coordinates.x-V,G=p.coordinates.y-H,U=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:B/h.scaleX+U,y:G/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(vA,"true");const Z=bE(()=>a.transform),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,ne=ZP();if(E.set({width:x-_,height:S-F,top:J+ne.y,left:X+ne.x,translate:`${ee}px ${te}px 0`,transition:I?`${I}, translate 0ms linear`:"",scale:g?`${y} ${b}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},gA),z&&(c.insertAdjacentElement("afterend",z),null==o?void 0:o.rootElement)){("function"==typeof o.rootElement?o.rootElement(l):o.rootElement).appendChild(c)}let re,ie,oe;OM(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),qM(f),f.addEventListener("beforetoggle",EA));const ae=(se={placeholder:z,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:F,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>re,getSavedCellWidths:()=>oe,setSavedCellWidths:e=>{oe=e}},new ResizeObserver(()=>{var e,t;const n=new lL(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),r=null!=(e=se.transformOrigin)?e:{x:1,y:1},i=(se.width-n.width)*r.x+se.delta.x,o=(se.height-n.height)*r.y+se.delta.y,a=ZP();if(se.styles.set({width:n.width-se.widthOffset,height:n.height-se.heightOffset,top:se.top+o+a.y,left:se.left+i+a.x},gA),null==(t=se.getElementMutationObserver())||t.takeRecords(),IA(se.element)&&IA(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new lL(se.feedbackElement)}));var se;const le=new lL(f);bE(()=>a.shape=le);const ue=WP(f),ce=e=>{this.manager.actions.stop({event:e})},de=tM(ue);W&&ue.addEventListener("resize",ce),"idle"===bE(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),z&&(ae.observe(z),re=function(e,t,n){const r=new MutationObserver(r=>{let i=!1;for(const n of r){if(n.target!==e){i=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||bA.includes(r))continue;const o=e.getAttribute(r);if("style"===r){if(uL(e)&&uL(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(xA.includes(e)||e.startsWith(gA))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==o?t.setAttribute(r,o):t.removeAttribute(r)}i&&n&&(t.innerHTML=e.innerHTML)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(c,z,j),ie=function(e,t,n){const r=new MutationObserver(r=>{for(const i of r)if(0!==i.addedNodes.length)for(const r of Array.from(i.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void qM(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void qM(n)}});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(c,z,f));const pe=null==(n=i.dragOperation.source)?void 0:n.id,fe=()=>{var e;if(!W||null==pe)return;const t=i.registry.draggables.get(pe),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;HP(n)&&n.focus()},he=()=>{var e;if(null==re||re.disconnect(),null==ie||ie.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),OM(f)&&(f.removeEventListener("beforetoggle",EA),f.removeAttribute("popover")),f.removeAttribute(vA),E.reset(),oe&&IA(c)){const t=Array.from(c.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=oe[n])?e:""}l.status="idle";const t=null!=r.current.translate;z&&(t||z.parentElement!==f.parentElement)&&f.isConnected&&z.replaceWith(f),null==z||z.remove()},me=null==o?void 0:o.dropAnimation,ge=this,ve=qI(()=>{var e;const{transform:t,status:n}=a;if((t.x||t.y||r.current.translate)&&n.dragging){const n=null!=(e=p.translate)?e:{x:0,y:0},i={x:t.x/h.scaleX+n.x,y:t.y/h.scaleY+n.y},o=r.current.translate,s=bE(()=>a.modifiers),l=bE(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=W&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${I}, translate ${u}`,translate:`${i.x}px ${i.y}px 0`},gA),null==re||re.takeRecords(),l&&l!==le&&o&&!s.length){const e=iD.delta(i,o);a.shape=oD.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new lL(f);r.current.translate=i}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=r.current.translate;const n=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();i.renderer.rendering.then(()=>{!function(e){var t,n,r,i;const{animation:o}=e;if("function"==typeof o){const t=o({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=OA,easing:s=qA}=null!=o?o:{};qM(e.feedbackElement);const[,l]=null!=(t=NP(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(n=e.placeholder)?n:e.element,c={frameTransform:CA(e.feedbackElement,u)?null:void 0},d=new lL(e.feedbackElement,c),p=null!=(r=KM(HM(e.feedbackElement).translate))?r:e.translate,f=new lL(u,c),h=oD.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,v=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},y=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},gA),e.feedbackElement.setAttribute(mA,""),null==(i=e.getElementMutationObserver())||i.takeRecords(),nL({element:e.feedbackElement,keyframes:ML(PL(PL({},v),y),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:tM(WP(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(mA),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:z,translate:t,moved:n,transition:I,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>re,cleanup:he,restoreFocus:fe})})}});return()=>{he(),ve()}},_L(PA,4,"overlay",DA,TA,MA),jL(PA,TA),TA.configure=VD(TA);var jA,NA,_A,FA,zA,WA,$A,HA=TA,VA=!0;_A=[AI],FA=JM.Forward,jA=[AI],NA=JM.Reverse;var BA=class{constructor(){$L(this,WA,NL(zA,8,this,VA)),NL(zA,11,this),$L(this,$A,NL(zA,12,this,VA)),NL(zA,15,this)}isLocked(e){return e!==JM.Idle&&(null==e?this[JM.Forward]===VA&&this[JM.Reverse]===VA:this[e]===VA)}unlock(e){e!==JM.Idle&&(this[e]=false)}};zA=kL(null),WA=new WeakMap,$A=new WeakMap,_L(zA,4,FA,_A,BA,WA),_L(zA,4,NA,jA,BA,$A),jL(zA,BA);var GA,UA,YA,KA,XA,JA,ZA=[JM.Forward,JM.Reverse],QA=class{constructor(){this.x=new BA,this.y=new BA}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},ek=class extends GD{constructor(e){super(e);const t=ME(new QA);let n=null;this.signal=t,FE(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new QA);const{delta:i}=e.dragOperation.position;if(n){const e={x:tk(i.x,n.x),y:tk(i.y,n.y)},r=t.peek();vE(()=>{for(const t of hD)for(const n of ZA)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function tk(e,t){return Math.sign(e-t)}var nk=class extends(UA=YD,GA=[AI],UA){constructor(e){super(e),$L(this,KA,NL(YA,8,this,!1)),NL(YA,11,this),$L(this,XA),$L(this,JA,()=>{if(!WL(this,XA))return;const{element:e,by:t}=WL(this,XA);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const n=this.getScrollableElements();if(!n)return HL(this,XA,void 0),!1;const{position:r}=this.manager.dragOperation,i=null==r?void 0:r.current;if(i){const{by:r}=null!=e?e:{},o=r?{x:rk(r.x),y:rk(r.y)}:void 0,a=o?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of n){const n=NM(e,r);if(n.x||n.y){const{speed:n,direction:s}=eL(e,i,o);if(a)for(const e of hD)a[e].isLocked(s[e])&&(n[e]=0,s[e]=0);if(s.x||s.y){const{x:i,y:o}=null!=r?r:s,a=i*n.x,l=o*n.y;if(a||l){const n=null==(t=WL(this,XA))?void 0:t.by;if(this.autoScrolling&&n){if(n.x&&!a||n.y&&!l)continue}return HL(this,XA,{element:e,by:{x:a,y:l}}),FM.schedule(WL(this,JA)),!0}}}}}return HL(this,XA,void 0),!1};let t=null,n=null;const r=MI(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const i=iM(eM(null==r?void 0:r.element),n.current);return i&&(t=i),null!=i?i:t}),i=MI(()=>{const t=r.value,{documentElement:i}=BP(t);if(!t||t===i){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=GM(r,{excludeElement:!1});return n=e,e}}if(t){const e=GM(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},LI);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new ek(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&pL(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function rk(e){return e>0?JM.Forward:e<0?JM.Reverse:JM.Idle}YA=kL(UA),KA=new WeakMap,XA=new WeakMap,JA=new WeakMap,_L(YA,4,"autoScrolling",GA,nk,KA),jL(YA,nk);var ik,ok=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),ak=class extends GD{constructor(e,t){super(e);const n=e.registry.plugins.get(nk);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=FE(()=>{if(this.disabled)return;const{position:t,status:r}=e.dragOperation;if(r.dragging){if(n.scroll()){n.autoScrolling=!0;const e=setInterval(()=>ok.schedule(n.scroll),10);return()=>{clearInterval(e)}}n.autoScrolling=!1}})}},sk={capture:!0,passive:!0},lk=class extends YD{constructor(e){super(e),$L(this,ik),this.handleScroll=()=>{null==WL(this,ik)&&HL(this,ik,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),HL(this,ik,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=FE(()=>{var e,n,r;if(t.status.dragging){const i=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return i.addEventListener("scroll",this.handleScroll,sk),()=>{i.removeEventListener("scroll",this.handleScroll,sk)}}})}};ik=new WeakMap;function uk(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var ck,dk=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),pk=class extends nP{constructor(e,t){super(e),this.manager=e,this.options=t,$L(this,ck,[]),this.listeners=new aM,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!dL(e.target))return;if(t.disabled)return;const{keyboardCodes:r=dk.keyboardCodes,preventActivation:i=dk.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==i?void 0:i(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=FE(()=>{var n;const r=null!=(n=e.handle)?n:e.element,i=n=>{pL(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),tL(r);const{center:i}=new lL(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const o=BP(r),a=[this.listeners.bind(o,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];WL(this,ck).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=dk.keyboardCodes}=null!=n?n:{};if(mk(e,[...r.end,...r.cancel])){e.preventDefault();const t=mk(e,r.cancel);return void this.handleEnd(e,t)}mk(e,r.up)?this.handleMove("up",e):mk(e,r.down)&&this.handleMove("down",e),mk(e,r.left)?this.handleMove("left",e):mk(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:i}=this.manager.dragOperation,o=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:dk.offset;if("number"==typeof s&&(s={x:s,y:s}),i){switch(e){case"up":a={x:0,y:-s.y*o};break;case"down":a={x:0,y:s.y*o};break;case"left":a={x:-s.x*o,y:0};break;case"right":a={x:s.x*o,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(ak);!1===(null==e?void 0:e.disabled)&&(e.disable(),WL(this,ck).push(()=>{e.enable()}))}cleanup(){WL(this,ck).forEach(e=>e()),HL(this,ck,[])}destroy(){this.cleanup(),this.listeners.clear()}};ck=new WeakMap,pk.configure=VD(pk),pk.defaults=dk;var fk,hk=pk;function mk(e,t){return t.includes(e.code)}var gk,vk;fk=new WeakMap;gk=new WeakMap,vk=new WeakMap;var yk=class{};yk.Delay=class extends iP{constructor(){super(...arguments),$L(this,gk),$L(this,vk)}onEvent(e){switch(e.type){case"pointerdown":HL(this,vk,YP(e)),HL(this,gk,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!WL(this,vk))return;const{x:t,y:n}=YP(e);lD({x:t-WL(this,vk).x,y:n-WL(this,vk).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){WL(this,gk)&&(clearTimeout(WL(this,gk)),HL(this,vk,void 0),HL(this,gk,void 0))}},yk.Distance=class extends iP{constructor(){super(...arguments),$L(this,fk)}onEvent(e){switch(e.type){case"pointerdown":HL(this,fk,YP(e));break;case"pointermove":if(!WL(this,fk))return;const{x:t,y:n}=YP(e),r={x:t-WL(this,fk).x,y:n-WL(this,fk).y},{tolerance:i}=this.options;if(i&&lD(r,i))return void this.abort();lD(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){HL(this,fk,void 0)}};var bk,xk=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:i}=e;if("mouse"!==r||!dL(i)||t.handle!==i&&!(null==(n=t.handle)?void 0:n.contains(i)))return"touch"===r?[new yk.Delay({value:250,tolerance:5})]:function(e){if(!dL(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(i)&&!e.defaultPrevented?[new yk.Delay({value:200,tolerance:0})]:[new yk.Delay({value:200,tolerance:10}),new yk.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;return r!==t.element&&(r!==t.handle&&(!!dL(r)&&(!(null==(n=t.handle)?void 0:n.contains(r))&&Boolean(r.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),Sk=class extends nP{constructor(e,t){super(e),this.manager=e,this.options=t,$L(this,bk,new Set),this.listeners=new aM,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=xk.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=FE(()=>{var n;const r=new AbortController,{signal:i}=r,o=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=WP(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(Dk(e.ownerDocument.defaultView),e.addEventListener("pointerdown",o,{signal:i}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!dL(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=xk.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:i}=e,o=HP(i)&&i.draggable&&"true"===i.getAttribute("draggable"),a=UM(t.element),{x:s,y:l}=YP(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,n);e.sensor=this;const c=new rP(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=XP(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:o?this.handleCancel:Ck,options:{capture:!0}}]);WL(this,bk).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=YP(e),r=UM(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,FM.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const i=BP(t.target).body;i.setPointerCapture(t.pointerId);const o=dL(t.target)?[t.target,i]:i,a=this.listeners.bind(o,[{type:"touchmove",listener:Ck,options:{passive:!1}},{type:"click",listener:Ck},{type:"contextmenu",listener:Ck},{type:"keydown",listener:this.handleKeyDown}]);WL(this,bk).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},WL(this,bk).forEach(e=>e()),WL(this,bk).clear()}destroy(){this.cleanup(),this.listeners.clear()}};bk=new WeakMap,Sk.configure=VD(Sk),Sk.defaults=xk;var wk=Sk;function Ck(e){e.preventDefault()}function Ek(){}var Ik=new WeakSet;function Dk(e){e&&!Ik.has(e)&&(e.addEventListener("touchmove",Ek,{capture:!1,passive:!1}),Ik.add(e))}var Rk,Pk,Mk,Lk,Ak,kk,Ok,qk,Tk,jk,Nk,_k,Fk,zk,Wk,$k,Hk,Vk,Bk={modifiers:[],plugins:[class extends GD{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=UL,announcement:i=YL}={},announcements:o=XL,screenReaderInstructions:a=KL,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:hL(r),u=n?`${i}-${n}`:hL(i);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>FM.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),v=Object.entries(o).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const i=p;if(!i)return;const o=null==t?void 0:t(n,r);o&&i.nodeValue!==o&&(f=o,ZL.includes(e)?g():(m(),g.cancel()))})),y=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},b=new Set;function x(){for(const e of b)e()}this.registerEffect(()=>{var e;b.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){c&&d||b.add(y),JL(n)&&!JP()||n.hasAttribute("tabindex")||b.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||b.add(()=>n.setAttribute("role",BL)),n.hasAttribute("aria-roledescription")||b.add(()=>n.setAttribute("aria-roledescription",GL)),n.hasAttribute("aria-describedby")||b.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&b.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&b.add(()=>n.setAttribute("aria-disabled",e))}}b.size>0&&FM.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach(e=>e())}}},ak,class extends GD{constructor(e,t){super(e,t),this.manager=e;const n=MI(()=>{var e;return BP(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=FE(()=>{var e;const{dragOperation:t}=this.manager,{cursor:r="grabbing",nonce:i}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=n.value,t=e.createElement("style");return i&&t.setAttribute("nonce",i),t.textContent=`* { cursor: ${r} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},HA,class extends GD{constructor(e,t){super(e,t),this.manager=e,this.destroy=FE(()=>{var e;const{dragOperation:t}=this.manager,{nonce:n}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return n&&e.setAttribute("nonce",n),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),uk(),document.addEventListener("selectionchange",uk,{capture:!0}),()=>{document.removeEventListener("selectionchange",uk,{capture:!0}),e.remove()}}})}}],sensors:[wk,hk]},Gk=class extends MP{constructor(e={}){const t=PP(e.plugins,Bk.plugins),n=PP(e.sensors,Bk.sensors),r=PP(e.modifiers,Bk.modifiers);super(ML(PL({},e),{plugins:[lk,nk,fA,...t],sensors:n,modifiers:r}))}},Uk=class extends(Lk=QR,Mk=[AI],Pk=[AI],Rk=[AI],Lk){constructor(e,t){var n=e,{element:r,effects:i=()=>[],handle:o,feedback:a="default"}=n,s=AL(n,["element","effects","handle","feedback"]);super(PL({effects:()=>[...i(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(BD))?t:[...n.sensors]).map(e=>{const t=e instanceof nP?e:n.registry.register(e.plugin),r=e instanceof nP?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},s),t),$L(this,kk,NL(Ak,8,this)),NL(Ak,11,this),$L(this,Ok,NL(Ak,12,this)),NL(Ak,15,this),$L(this,qk,NL(Ak,16,this)),NL(Ak,19,this),this.element=r,this.handle=o,this.feedback=a}};Ak=kL(Lk),kk=new WeakMap,Ok=new WeakMap,qk=new WeakMap,_L(Ak,4,"handle",Mk,Uk,kk),_L(Ak,4,"element",Pk,Uk,Ok),_L(Ak,4,"feedback",Rk,Uk,qk),jL(Ak,Uk);var Yk=class extends(Nk=eP,jk=[AI],Tk=[AI],Nk){constructor(e,t){var n=e,{element:r,effects:i=()=>[]}=n,o=AL(n,["element","effects"]);const{collisionDetector:a=mL}=o,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new lL(n),i=bE(()=>this.shape);return r&&(null==i?void 0:i.equals(r))?i:(this.shape=r,r)},l=ME(!1);super(ML(PL({},o),{collisionDetector:a,effects:()=>[...i(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new kM(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),$L(this,Hk),$L(this,Fk,NL(_k,8,this)),NL(_k,11,this),$L(this,Vk,NL(_k,12,this)),NL(_k,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){HL(this,Hk,e,$k)}get element(){var e;return null!=(e=this.proxy)?e:WL(this,Hk,Wk)}};function Kk(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}_k=kL(Nk),Fk=new WeakMap,Hk=new WeakSet,Vk=new WeakMap,zk=_L(_k,20,"#element",jk,Hk,Fk),Wk=zk.get,$k=zk.set,_L(_k,4,"proxy",Tk,Yk,Vk),jL(_k,Yk);var Xk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?g:d;function Jk(){const e=m(0)[1];return f(()=>{e(e=>e+1)},[e])}function Zk(e,t=[],n=!1){const r=l(e);return r.current=e,function(e,t=!1){const n=l(e.peek()),r=l(!1),i=Jk();return Xk(()=>FE(()=>{const o=n.current,a=e.value;if(o!==a){if(n.current=a,!r.current)return;t?D(i):i()}}),[e,t,i]),{get value(){return r.current=!0,e.peek()}}}(v(()=>MI(()=>r.current()),t),n)}function Qk(e,t){const n=l(new Map),r=Jk();return Xk(()=>{if(e)return FE(()=>{var i;let o=!1,a=!1;for(const r of n.current){const[s]=r,l=bE(()=>r[1]),u=e[s];l!==u&&(o=!0,n.current.set(s,u),a=null!=(i=null==t?void 0:t(s,l,u))&&i)}o&&(a?D(r):r())});n.current.clear()},[e]),v(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function eO(e,t){e()}function tO(e){const t=l(e);return Xk(()=>{t.current=e},[e]),t}function nO(e,t,n=d,r=Object.is){const i=l(e);n(()=>{const n=i.current;r(e,n)||(i.current=e,t(e,n))},[t,e])}function rO(e,t){const n=l(Kk(e));Xk(()=>{const r=Kk(e);r!==n.current&&(n.current=r,t(r))})}var iO=Object.defineProperty,oO=Object.defineProperties,aO=Object.getOwnPropertyDescriptors,sO=Object.getOwnPropertySymbols,lO=Object.prototype.hasOwnProperty,uO=Object.prototype.propertyIsEnumerable,cO=(e,t,n)=>t in e?iO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dO=new Gk,pO=u(dO),fO=b(x(({children:e},t)=>{const[n,r]=m(0),i=l(null),o=l(null),a=v(()=>({renderer:{get rendering(){var e;return null!=(e=i.current)?e:Promise.resolve()}},trackRendering(e){i.current||(i.current=new Promise(e=>{o.current=e})),S(()=>{e(),r(e=>e+1)})}}),[]);return Xk(()=>{var e;null==(e=o.current)||e.call(o),i.current=null},[e,n]),w(t,()=>a),null})),hO=[void 0,LI];function mO(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:i,onDragStart:o,onDragMove:a,onDragOver:s,onDragEnd:u}=t,c=((e,t)=>{var n={};for(var r in e)lO.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&sO)for(var r of sO(e))t.indexOf(r)<0&&uO.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const p=l(null),{plugins:f,modifiers:h,sensors:m}=c,g=PP(f,Bk.plugins),v=PP(m,Bk.sensors),b=PP(h,Bk.modifiers),x=tO(i),S=tO(o),w=tO(s),C=tO(a),E=tO(u),I=tO(r),D=function(e){const t=l(null);t.current||(t.current=e());return y(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new Gk(c)});return d(()=>{if(!p.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=p.current,{monitor:n}=D;D.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=x.current;n&&t(()=>n(e,D))}),n.addEventListener("dragstart",e=>{var t;return null==(t=S.current)?void 0:t.call(S,e,D)}),n.addEventListener("dragover",e=>{const n=w.current;n&&t(()=>n(e,D))}),n.addEventListener("dragmove",e=>{const n=C.current;n&&t(()=>n(e,D))}),n.addEventListener("dragend",e=>{const n=E.current;n&&t(()=>n(e,D))}),n.addEventListener("collision",e=>{var t;return null==(t=I.current)?void 0:t.call(I,e,D)})];return()=>r.forEach(e=>e())},[D]),nO(g,()=>D&&(D.plugins=g),...hO),nO(v,()=>D&&(D.sensors=v),...hO),nO(b,()=>D&&(D.modifiers=b),...hO),fo.jsxs(pO.Provider,{value:D,children:[fo.jsx(fO,{ref:p,children:n}),n]})}function gO(){return h(pO)}function vO(e){var t;const n=null!=(t=gO())?t:void 0,[r]=m(()=>e(n));return r.manager!==n&&(r.manager=n),Xk(r.register,[n,r]),r}function yO({children:e,className:t,dropAnimation:n,style:i,tag:o,disabled:a}){var s;const u=l(null),c=gO(),p=null!=(s=Zk(()=>null==c?void 0:c.dragOperation.source,[c]).value)?s:null,f="function"==typeof a?a(p):a;d(()=>{if(!u.current||!c||f)return;const e=c.plugins.find(e=>e instanceof HA);return e?(e.overlay=u.current,()=>{e.overlay=void 0}):void 0},[c,f]),d(()=>{if(!c)return;const e=c.plugins.find(e=>e instanceof HA);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[c,n]);const h=v(()=>{if(!c)return null;const e=new Proxy(c.registry,{get:(e,t)=>"register"===t||"unregister"===t?bO:e[t]});return new Proxy(c,{get:(t,n)=>"registry"===n?e:t[n]})},[c]);return fo.jsx(pO.Provider,{value:h,children:r(o||"div",{ref:u,className:t,style:i,"data-dnd-overlay":!0},function(){if(!p||f)return null;if("function"==typeof e)return fo.jsx(xO,{source:p,children:e});return e}())})}function bO(){return()=>{}}function xO({children:e,source:t}){return e(Qk(t))}var SO,wO,CO,EO,IO,DO=Object.create,RO=Object.defineProperty,PO=Object.getOwnPropertyDescriptor,MO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),LO=e=>{throw TypeError(e)},AO=["class","method","getter","setter","accessor","field","value","get","set"],kO=e=>void 0!==e&&"function"!=typeof e?LO("Function expected"):e,OO=(e,t,n,r,i)=>({kind:AO[e],name:t,metadata:r,addInitializer:e=>n._?LO("Already initialized"):i.push(kO(e||null))}),qO=(e,t,n,r,i,o)=>{for(var a,s,l,u,c=7&t,d=AO[c+5],p=e[2]||(e[2]=[]),f=(i=i.prototype,PO(i,n)),h=r.length-1;h>=0;h--)(l=OO(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,kO(a)&&(f[d]=a);return f&&RO(i,n,f),i},TO=(e,t,n)=>t.has(e)||LO("Cannot "+n),jO=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},NO=class extends(CO=jI,wO=[kI],SO=[kI],CO){constructor(e){var t,n,r;super(jO.from(e),(e,t)=>jO.equals(e,t)),((e,t,n)=>{for(var r=0,i=e[t>>1],o=i&&i.length;r<o;r++)i[r].call(n)})(IO,5,this),t=this,r=0,(n=EO).has(t)?LO("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return jO.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=jO.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-(TO(a=this,s=EO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/o*100);vE(()=>{((e,t,n)=>{TO(e,t,"write to private field"),t.set(e,n)})(this,EO,i),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(jO.from(e)),this.velocity={x:0,y:0}}};IO=(e=>{var t;return[,,,DO(null!=(t=null==e?void 0:e[MO("metadata")])?t:null)]})(CO),EO=new WeakMap,qO(IO,2,"delta",wO,NO),qO(IO,2,"direction",SO,NO),((e,t)=>{((e,t,n)=>{t in e?RO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(t,MO("metadata"),e[3])})(IO,NO);var _O=(e=>(e.Horizontal="x",e.Vertical="y",e))(_O||{});Object.values(_O);var FO=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/jO.distance(t.shape.center,n),type:mR.PointerIntersection,priority:hR.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:i}=e,o=jO.distance(t.shape.center,i.current),a=r/(n.current.area+t.shape.area-r)/o;return{id:t.id,value:a,type:mR.ShapeIntersection,priority:hR.Normal}}return null})(e)};function zO(e){const{collisionDetector:t,data:n,disabled:r,element:i,id:o,accept:a,type:s}=e,l=vO(t=>new Yk(((e,t)=>oO(e,aO(t)))(((e,t)=>{for(var n in t||(t={}))lO.call(t,n)&&cO(e,n,t[n]);if(sO)for(var n of sO(t))uO.call(t,n)&&cO(e,n,t[n]);return e})({},e),{register:!1,element:Kk(i)}),t)),u=Qk(l);return nO(o,()=>l.id=o),rO(i,e=>l.element=e),nO(a,()=>l.accept=a,void 0,LI),nO(t,()=>l.collisionDetector=null!=t?t:FO),nO(n,()=>n&&(l.data=n)),nO(r,()=>l.disabled=!0===r),nO(s,()=>l.type=s),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:f(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}const WO=e=>Array.from({length:e},(e,t)=>t),$O=({id:e,sectionIndex:t,itemIndex:n})=>fo.jsx("span",{children:`${e}-${t}-${n}`}),HO=n.memo(()=>{const e=qw(aE)??$O,{startSectionIndex:t,startIndex:n,id:r}=qw(cE)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:fo.jsx(yO,{dropAnimation:null,children:fo.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:fo.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),VO=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=qw(cE),i=r?.toSectionIndex===e,o=r?.startSectionIndex===e,a=t>(r?.startIndex??t)&&e===r?.startSectionIndex?t-1:t;let s=!1;return o&&r.startIndex===a?s=!1:i&&r.toIndex===a&&(s=!0),fo.jsx("div",{"data-key":"drop-target-indicator",style:{visibility:s&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},BO=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,GO=n.memo(({sectionIndex:e})=>{const t=qw(QC)[e],n=qw(eE),r=qw(tE),i=null!==qw(cE),o=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=zO({id:a,type:"section",accept:"item",collisionPriority:hR.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:fo.jsxs(sc,{ref:s,sx:{margin:"4px",outline:BO(l,i),borderRadius:"4px",boxSizing:"border-box"},children:[fo.jsx(sc,{sx:{position:"relative",top:"4px"},children:fo.jsx(VO,{sectionIndex:e,itemIndex:0,isDragging:!1})}),fo.jsxs(sc,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[fo.jsx(Cu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:o.title}),fo.jsx(Cu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:o.message})]})]})}),UO=n.memo(({id:e,sectionIndex:t})=>{const n=qw(oE);return void 0===n?null:fo.jsx(n,{id:e,sectionIndex:t})});var YO=Object.defineProperty,KO=Object.defineProperties,XO=Object.getOwnPropertyDescriptors,JO=Object.getOwnPropertySymbols,ZO=Object.prototype.hasOwnProperty,QO=Object.prototype.propertyIsEnumerable,eq=(e,t,n)=>t in e?YO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tq=(e,t)=>{for(var n in t||(t={}))ZO.call(t,n)&&eq(e,n,t[n]);if(JO)for(var n of JO(t))QO.call(t,n)&&eq(e,n,t[n]);return e},nq=(e,t)=>KO(e,XO(t)),rq=class extends EP{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return nq(tq({},e),{[t]:n})}};rq.configure=VD(rq);var iq=rq,oq=iq.configure({axis:"x",value:0});iq.configure({axis:"y",value:0});var aq=class extends EP{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,i="number"==typeof n?n:n.y;return nq(tq({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/i)*i})}};aq.configure=VD(aq);var sq=Object.create,lq=Object.defineProperty,uq=Object.defineProperties,cq=Object.getOwnPropertyDescriptor,dq=Object.getOwnPropertyDescriptors,pq=Object.getOwnPropertySymbols,fq=Object.prototype.hasOwnProperty,hq=Object.prototype.propertyIsEnumerable,mq=e=>{throw TypeError(e)},gq=(e,t,n)=>t in e?lq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vq=(e,t)=>{for(var n in t||(t={}))fq.call(t,n)&&gq(e,n,t[n]);if(pq)for(var n of pq(t))hq.call(t,n)&&gq(e,n,t[n]);return e},yq=(e,t)=>uq(e,dq(t)),bq=["class","method","getter","setter","accessor","field","value","get","set"],xq=e=>void 0!==e&&"function"!=typeof e?mq("Function expected"):e,Sq=(e,t,n,r,i)=>({kind:bq[e],name:t,metadata:r,addInitializer:e=>n._?mq("Already initialized"):i.push(xq(e||null))}),wq=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},Cq=(e,t,n,r,i,o)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=bq[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(i=i.prototype,cq({get[n](){return Iq(this,o)},set[n](e){return Rq(this,o,e)}},n)),v=r.length-1;v>=0;v--)(u=Sq(d,n,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>n in e},c.get=e=>e[n],c.set=(e,t)=>e[n]=t,s=(0,r[v])({get:g.get,set:g.set},u),l._=1,void 0===s?xq(s)&&(g[f]=s):"object"!=typeof s||null===s?mq("Object expected"):(xq(a=s.get)&&(g.get=a),xq(a=s.set)&&(g.set=a),xq(a=s.init)&&h.unshift(a));return g&&lq(i,n,g),i},Eq=(e,t,n)=>t.has(e)||mq("Cannot "+n),Iq=(e,t,n)=>(Eq(e,t,"read from private field"),t.get(e)),Dq=(e,t,n)=>t.has(e)?mq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Rq=(e,t,n,r)=>(Eq(e,t,"write to private field"),t.set(e,n),n);function Pq(e){return e instanceof oT||e instanceof iT}var Mq=class extends GD{constructor(e){super(e);const t=FE(()=>{const{dragOperation:t}=e;if(pL(t.activatorEvent)&&Pq(t.source)&&t.status.initialized){const t=e.registry.plugins.get(nk);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!pL(e.nativeEvent))return;if(!Pq(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:i,registry:o}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:u}=n,{center:c}=n.shape.current,d=[],p=[];vE(()=>{for(const e of o.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&Pq(e)||!e.element)continue;let n=e.shape;const r=new lL(e.element,{getBoundingClientRect:e=>UP(e,void 0,.2)});r.height&&r.width&&(("down"==s&&c.y+10<r.center.y||"up"==s&&c.y-10>r.center.y||"left"==s&&c.x-10>r.center.x||"right"==s&&c.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),i.disable();const f=i.computeCollisions(d,gL);vE(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:o}=n;if(!e||!Pq(e)||!o)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||v!==s,c=u?l:null==t?void 0:t.element;if(!c)return;tL(c);const d=new lL(c);if(!d)return;const p=oD.delta(d,oD.from(o.current.boundingRectangle),e.alignment);r.move({by:p}),u?r.setDropTarget(e.id).then(()=>i.enable()):i.enable()})})});this.destroy=()=>{n(),t()}}};var Lq=Object.defineProperty,Aq=Object.defineProperties,kq=Object.getOwnPropertyDescriptors,Oq=Object.getOwnPropertySymbols,qq=Object.prototype.hasOwnProperty,Tq=Object.prototype.propertyIsEnumerable,jq=(e,t,n)=>t in e?Lq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nq=(e,t)=>{for(var n in t||(t={}))qq.call(t,n)&&jq(e,n,t[n]);if(Oq)for(var n of Oq(t))Tq.call(t,n)&&jq(e,n,t[n]);return e},_q=(e,t)=>Aq(e,kq(t));function Fq(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function zq(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function Wq(e,t){return function(e,t,n){var r,i,o;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>u(e,a.id)),i=e.findIndex(e=>u(e,s.id));if(-1===r||-1===i){if(zq(a)){const r=a.initialIndex,i=a.index;return r===i||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,i)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,i)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&zq(a)){const r=a.initialGroup,i=a.initialIndex,o=a.group,s=a.index;if(null==r||null==o||!(r in e)||!(o in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===o&&i===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===o)return _q(Nq({},e),{[r]:n(e[r],i,s)});const l=e[r][i];return _q(Nq({},e),{[r]:[...e[r].slice(0,i),...e[r].slice(i+1)],[o]:[...e[o].slice(0,s),l,...e[o].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(i=null==(r=m.shape)?void 0:r.current.center)?i:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&zq(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(o=a.group)?o:d;if(t in e){if(d===t)return _q(Nq({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return _q(Nq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return _q(Nq({},e),{[d]:n(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,y=e[d][f];return _q(Nq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),y,...e[p].slice(h+v)]})}(e,t,Fq)}var $q="__default__";function Hq(e,t,n,r){const i=r<t?"afterend":"beforebegin";n.insertAdjacentElement(i,e)}function Vq(e,t){return e.index-t.index}function Bq(e){return Array.from(e).sort(Vq)}var Gq,Uq,Yq,Kq,Xq,Jq,Zq,Qq,eT=[Mq,class extends GD{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof oT){const{sortable:e}=n,{group:r}=e;let i=t.get(r);i||(i=new Set,t.set(r,i)),i.add(e)}for(const[e,n]of t)t.set(e,new Set(Bq(n)));return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:i,target:o}=r;if(!Pq(i)||!Pq(o))return;if(i.sortable===o.sortable)return;const a=t(),s=i.sortable.group===o.sortable.group,l=a.get(i.sortable.group),u=s?l:a.get(o.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,c,d;const p=t();for(const[e,t]of a.entries()){const n=Array.from(t).entries();for(const[t,i]of n)if(i.index!==t||i.group!==e||!(null==(r=p.get(e))?void 0:r.has(i)))return}const f=i.sortable.element,h=o.sortable.element;if(!h||!f)return;if(!s&&o.id===i.sortable.group)return;const m=Bq(l),g=s?m:Bq(u),v=null!=(c=i.sortable.group)?c:$q,y=null!=(d=o.sortable.group)?d:$q,b={[v]:m,[y]:g},x=Wq(b,e);if(b===x)return;const S=x[y].indexOf(i.sortable),w=x[y].indexOf(o.sortable);n.collisionObserver.disable(),Hq(f,S,h,w),vE(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[y].entries())t.group=o.sortable.group,t.index=e}),n.actions.setDropTarget(i.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:i}=r;Pq(i)&&(i.sortable.initialIndex===i.sortable.index&&i.sortable.initialGroup===i.sortable.group||queueMicrotask(()=>{const e=t(),r=e.get(i.sortable.initialGroup);r&&n.renderer.rendering.then(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).entries();for(const[n,r]of e)if(r.index!==n||r.group!==t)return}const t=Bq(r),n=i.sortable.element,o=t[i.sortable.initialIndex],a=null==o?void 0:o.element;o&&a&&n&&(Hq(n,o.index,a,i.index),vE(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],tT={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},nT=new class{constructor(){DI(this,TI,new WeakMap)}get(e,t){var n;return e?null==(n=II(this,TI).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return II(this,TI).has(e)||II(this,TI).set(e,new Map),null==(r=II(this,TI).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=II(this,TI).get(e))?void 0:t.clear():void 0}};Uq=[AI],Gq=[AI];var rT=class{constructor(e,t){Dq(this,Kq,wq(Yq,8,this)),wq(Yq,11,this),Dq(this,Xq),Dq(this,Jq),Dq(this,Zq,wq(Yq,12,this)),wq(Yq,15,this),Dq(this,Qq),this.register=()=>(vE(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{vE(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{vE(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],group:i,index:o,sensors:a,type:s,transition:l=tT,plugins:u=eT}=n,c=((e,t)=>{var n={};for(var r in e)fq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&pq)for(var r of pq(e))t.indexOf(r)<0&&hq.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new oT(c,t,this),this.draggable=new iT(yq(vq({},c),{effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&nT.clear(this.manager),(null==r?void 0:r.dragging)&&nT.set(this.manager,this.id,bE(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=Iq(this,Jq),i=Iq(this,Xq);e===r&&t===i||(Rq(this,Jq,e),Rq(this,Xq,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:n}=this.draggable;"move"==t&&n&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...r()],type:s,sensors:a}),t,this),Rq(this,Qq,c.element),this.manager=t,this.index=o,Rq(this,Jq,o),this.group=i,Rq(this,Xq,i),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=nT.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=nT.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){bE(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;const i=this.refreshShape();if(!i)return;const o=n.boundingRectangle.left-i.boundingRectangle.left,a=n.boundingRectangle.top-i.boundingRectangle.top,{translate:s}=HM(r),l=rL(r,s,!1),u=rL(r,s);if(o||a){const n=tM(WP(r))?yq(vq({},t),{duration:0}):t;nL({element:r,keyframes:{translate:[`${l.x+o}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){vE(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){vE(()=>{const t=Iq(this,Qq),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),Rq(this,Qq,e)})}get element(){var e,t;const n=Iq(this,Qq);if(n)return null!=(t=null!=(e=oM.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){vE(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){vE(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){vE(()=>{this.droppable.id=e,this.draggable.id=e})}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:mL}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){vE(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};Yq=[,,,sq(null)],Kq=new WeakMap,Xq=new WeakMap,Jq=new WeakMap,Zq=new WeakMap,Qq=new WeakMap,Cq(Yq,4,"index",Uq,rT,Kq),Cq(Yq,4,"group",Gq,rT,Zq),((e,t)=>{return gq(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(Yq,rT);var iT=class extends Uk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},oT=class extends Yk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},aT=Object.defineProperty,sT=Object.defineProperties,lT=Object.getOwnPropertyDescriptors,uT=Object.getOwnPropertySymbols,cT=Object.prototype.hasOwnProperty,dT=Object.prototype.propertyIsEnumerable,pT=(e,t,n)=>t in e?aT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fT=(e,t)=>{for(var n in t||(t={}))cT.call(t,n)&&pT(e,n,t[n]);if(uT)for(var n of uT(t))dT.call(t,n)&&pT(e,n,t[n]);return e};function hT(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:i,data:o,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:h,target:m,type:g}=e,v=fT(fT({},tT),e.transition),y=vO(t=>new rT(((e,t)=>sT(e,lT(t)))(fT({},e),{transition:v,register:!1,handle:Kk(s),element:Kk(a),target:Kk(m),feedback:d}),t)),b=Qk(y,mT);return nO(i,()=>y.id=i),Xk(()=>{vE(()=>{y.group=u,y.index=l})},[y,u,l]),nO(g,()=>y.type=g),nO(t,()=>y.accept=t,void 0,LI),nO(o,()=>o&&(y.data=o)),nO(l,()=>{var e;(null==(e=y.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&y.refreshShape()},eO),rO(s,e=>y.handle=e),rO(a,e=>y.element=e),rO(m,e=>y.target=e),nO(c,()=>y.disabled=!0===c),nO(h,()=>y.sensors=h),nO(n,()=>y.collisionDetector=n),nO(r,()=>y.collisionPriority=r),nO(d,()=>y.feedback=null!=d?d:"default"),nO(v,()=>y.transition=v,void 0,LI),nO(p,()=>y.modifiers=p,void 0,LI),nO(e.alignment,()=>y.alignment=e.alignment),{sortable:b,get isDragging(){return b.isDragging},get isDropping(){return b.isDropping},get isDragSource(){return b.isDragSource},get isDropTarget(){return b.isDropTarget},handleRef:f(e=>{y.handle=null!=e?e:void 0},[y]),ref:f(e=>{var t,n;(e||!(null==(t=y.element)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.element=null!=e?e:void 0)},[y]),sourceRef:f(e=>{var t,n;(e||!(null==(t=y.source)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.source=null!=e?e:void 0)},[y]),targetRef:f(e=>{var t,n;(e||!(null==(t=y.target)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.target=null!=e?e:void 0)},[y])}}function mT(e,t,n){return!("isDragSource"!==e||n||!t)}const gT=({id:e,itemIndex:t,sectionIndex:n})=>fo.jsx("div",{children:`${n}:${t} - ${e}`}),vT=({id:e,itemIndex:t,sectionIndex:n})=>{const r=qw(sE),i=qw(iE),o=qw(QC).at(n)??0,a=qw(eE)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:u}=hT({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[oq],plugins:[Mq],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),c=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=i??gT;return fo.jsx(Vd,{className:"section-item-container","data-testid":"section-item",onClick:c,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:fo.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[fo.jsx(VO,{isDragging:l,itemIndex:t,sectionIndex:n}),fo.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:u}),t===o-1&&fo.jsx(VO,{isDragging:l,itemIndex:t+1,sectionIndex:n})]})})},yT=n.memo(vT),bT=n.memo(({sectionIndex:e})=>{const t=qw(eE),n=qw(QC).at(e)??0,r=t({sectionIndex:e});return fo.jsxs(sc,{className:"exploration-list",style:{overflow:"auto"},children:[fo.jsx(td,{}),fo.jsx(UO,{id:r,sectionIndex:e}),fo.jsx(td,{}),fo.jsx(GO,{sectionIndex:e}),fo.jsx(kd,{sx:{padding:"2px 8px"},children:WO(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return fo.jsx(yT,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),xT=[wk.configure({activationConstraints:[new yk.Distance({value:5})]}),hk],ST=n.memo(()=>{const e=qw(ZC),t=qw(eE),n=Tw(dE("start")),r=Tw(dE("over")),i=Tw(dE("end"));return fo.jsxs(mO,{sensors:xT,onDragEnd:i,onDragOver:r,onDragStart:n,children:[fo.jsx(sc,{style:{display:"flex",flexDirection:"column"},children:WO(e).map(e=>fo.jsx(bT,{sectionIndex:e},t({sectionIndex:e})))}),fo.jsx(HO,{})]})}),wT=n.memo(e=>fo.jsx(jC,{atoms:pE,atomFamilies:fE,children:fo.jsx(hE,{props:e,children:fo.jsx(ST,{})})})),CT="12px",ET="nebula-table-utils-head-menu-button",IT="sn-copy-cell";let DT=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const RT="nebula-table-utils-column-adjuster";let PT=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),MT=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const LT={darker:.15,brighter:.3,opacity:.03},AT={darker:.3,brighter:.5,opacity:.05};let kT=function(e){return e.Cyclic="C",e}({});const OT=(e,t)=>{const n=new Map;for(const t of e)n.set(t.id,t);return t.reduce((e,t)=>{const r=n.get(t);return r&&e.push(r),e},[])},qT=KC(e=>ww(t=>{const n=t(lC),r=t(Xw),i=t(oC)?.[e],o=n?.qHyperCube.rankedList?.[e];return i||(r?.isRankedListCorrupt(e)||void 0===o?r?.createRankedList(e):o)})),TT=(e,t=new Set)=>ww(n=>{const r=n(e),i=n(wC);if(!r||0===r.length)return"disabled";const o=r.filter(e=>!t.has(e.id));if(0===o.length)return"disabled";const a=o.filter(e=>i.has(e.id)).length;return 0===a?"none":a===o.length?"all":"some"}),jT=(e,t=new Set)=>ww(null,(n,r,i)=>{const o=n(e);o&&0!==o.length&&(e=>{const{items:t,shouldCheckAll:n,get:r,set:i,excludedIds:o}=e,a=t.filter(e=>!o?.has(e.id));if(0===a.length)return;const s=r(wC),l=new Set,u=new Set;if(a.forEach(e=>{const t=s.has(e.id);t&&!n&&u.add(e.id),!t&&n&&l.add(e.id)}),0===l.size&&0===u.size)return;const c=new Set(r(yC)),d=new Set(r(bC));l.forEach(e=>c.add(e)),l.forEach(e=>d.delete(e)),u.forEach(e=>d.add(e)),u.forEach(e=>c.delete(e)),i(yC,c),i(bC,d),Yw({type:"apply",localChecked:l,localUnchecked:u,handler:r(Xw),model:r(Kw),fieldInfo:r(fC),handlerQueue:r(mC)})})({items:o,shouldCheckAll:i,get:n,set:r,excludedIds:t})}),NT=ww(e=>{const t=e(uC);return t?.qHyperCube.qDimensionInfo.filter(tC).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??"",alternative:!0}))}),_T=ww(e=>{const t=e(lC),n=e(Zw),r=t?.qHyperCube.qEffectiveInterColumnSortOrder.map(e=>{if(-1===e)return{id:-1,title:n("Common.Values")};const{cId:r,qFallbackTitle:i}=t.qHyperCube.qDimensionInfo[e];return{id:r,title:i??""}});return r}),FT=ww(e=>{const t=e(Zw),n=e(NT),r=e(eC),i=e(qT("columns")),o=e(qT("rows")),a=e(_T);if(void 0===n||void 0===i||void 0===o||void 0===a)return[];const s=[...a,...n].filter(r);return[{id:"rows",title:t("Common.Rows"),items:OT(s,o)},{id:"columns",title:t("Common.Columns"),items:OT(s,i)}]}),zT=KC(e=>ww(t=>t(FT).at(e))),WT=KC(({sectionIndex:e,itemIndex:t})=>ww(n=>n(zT(e))?.items.at(t)?.title),(e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex),$T=KC(e=>ww(t=>t(zT(e))?.title)),HT=ww(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(zT(t));return void 0===r?0===t?"rows":"columns":void 0===n?r.id:r.items.at(n)?.id??`missing-item-${t}-${n}`}),VT=ww(e=>e(FT).map(e=>e.items.length)),BT=KC(e=>TT(ww(t=>t(zT(e))?.items),new Set([-1]))),GT=KC(e=>jT(ww(t=>t(zT(e))?.items),new Set([-1]))),UT=ww(null,async(e,t,{event:n,id:r,toIndex:i,toSection:o,startSection:a})=>{const s=e(Xw),l=e(Kw),u=e(mC),c=e(qT("rows")),d=e(qT("columns")),p=o;if(void 0===s||void 0===l||void 0===c||void 0===d||null===u)return;if(n.operation.canceled)return void t(oC,null);if("section"===n.operation.target?.type&&a===o)return void t(oC,null);const f=YC({rows:c,columns:d},n);t(oC,f),u.add(async()=>{"number"==typeof r?await s.movePseudoDimension({toIndex:i,toSection:p}):await s.moveDimension({cId:r,toIndex:i,toSection:p})})}),YT={noItems:{row:"ChartExploration.PivotTable.RowSectionEmpty.Title",column:"ChartExploration.PivotTable.ColumnSectionEmpty.Title",measure:"ChartExploration.PivotTable.MeasureSectionEmpty.Title"},noSearchFound:{row:"ChartExploration.PivotTable.NoRowsFound.Title",column:"ChartExploration.PivotTable.NoColumnsFound.Title",measure:"ChartExploration.PivotTable.NoMeasuresFound.Title"}},KT="ChartExploration.PivotTable.DimensionSectionEmpty.Message",XT="ChartExploration.PivotTable.MeasureSectionEmpty.Message",JT="#177fe6",ZT=(e,t,n,r)=>{if("measure"===t)return e(r?YT.noSearchFound.measure:YT.noItems.measure);const i=r?YT.noSearchFound:YT.noItems;return e(n?i.row:i.column)},QT=(e,t,n)=>n?"":e("measure"===t?XT:KT),ej=KC(e=>ww(t=>{const n=t(Zw),r=t(Qw).length>0;return t=>({title:ZT(n,e,0===t,r),message:QT(n,e,r)})})),tj=ej("measure"),nj=ej("dimensions"),rj=({children:e})=>fo.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),ij=e=>{const t=qw(WT(e));return fo.jsx(rj,{children:t})},oj=ww(e=>{const t=e(uC);return t?.qHyperCube.qMeasureInfo.filter(tC).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}))}),aj=ww(e=>{const t=e(lC),n=e(oj),r=e(eC),i=e(qT("measures"));if(void 0===t||void 0===n||void 0===i)return[];const o=t.qHyperCube.qMeasureInfo.filter(tC).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}));o.push(...n);const a=o.filter(r);return OT(a,i)}),sj=KC(e=>ww(t=>t(aj).at(e)?.title??"")),lj=ww(e=>({itemIndex:t})=>{const n=e(aj);return void 0===t?"measures":n.at(t)?.id??`missing-item-${t}`}),uj=ww(e=>[e(aj).length]),cj=TT(aj),dj=jT(aj),pj=ww(null,async(e,t,{id:n,toIndex:r,event:i})=>{const o=e(Xw),a=e(Kw),s=e(mC),l=e(qT("measures"));if(void 0===o||void 0===a||void 0===l||"string"!=typeof n||null===s)return;const u=YC({measures:l},i);t(oC,u),s.add(async()=>{await o.moveMeasure({cId:n,toIndex:r})})}),fj=zS().palette,hj={TEXT:fj.text.primary,DISABLED:fj.text.disabled,HOVER:fj.action.hover,WHITE:Of.GREYSCALE_100,BORDER_MEDIUM:Of.GREYSCALE_85,DARK_MODE_TEXT:Of.GREYSCALE_95,DARK_MODE_BORDER:Of.GREYSCALE_95,DARK_MODE_DISABLED:Of.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:fj.primary.main,LINK:fj.info.main,ERROR:fj.error.main};function mj(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function gj(e){if("object"==typeof e&&mj(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let i;(i=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(i[1],10),n=parseInt(i[2],10),r=parseInt(i[3],10)):(i=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(i[1],16),n=parseInt(i[2],16),r=parseInt(i[3],16)):(i=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(i[1]+i[1],16),n=parseInt(i[2]+i[2],16),r=parseInt(i[3]+i[3],16))}return(t<<16)+(n<<8)+r}const vj={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},yj="qcm-color";function bj(...e){const t={type:yj,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,i=0,o=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===yj)({r:n,g:r,b:i,a:o}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(mj(e[0]))({r:n,g:r,b:i}=e[0]),"a"in e[0]&&({a:o}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),i=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),i=parseInt(s[3],10),o=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))o=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),i=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),i=parseInt(s[3],16),o=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),i=parseInt(s[3]+s[3],16),o=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i),o=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);o=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i),o=1}else{const e=a.toLowerCase();if(function(e){return e in vj}(e)){const t=vj[e];({r:n,g:r,b:i}=t),o="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(o=(4278190080&e[0])>>>24,o/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,i=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,i=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],i=e[2],o=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+i+o)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(i),t.a=o,t}function xj(e){let t,n,r;if(mj(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const i="string"==typeof e?gj(e):e;return t=((16711680&i)>>16).toString(16),n=((65280&i)>>8).toString(16),r=(255&i).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function Sj(e){let t,n,r=0;const i="string"==typeof e?bj(e):e,o=i.r/255,a=i.g/255,s=i.b/255,{a:l}=i,u=Math.max(o,a,s),c=Math.min(o,a,s),d=(u+c)/2;if(u===c)t=0,r=0;else{switch(n=u-c,t=d>.5?n/(2-u-c):n/(u+c),u){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function wj(e){let t,n,r=0;const i="string"==typeof e?bj(e):e,o=i.r/255,a=i.g/255,s=i.b/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=l;if(l===u)t=0,r=0;else{switch(n=l-u,t=0===n?0:n/c,l){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}function Cj(e){if(mj(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?gj(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function Ej(e,t){return mj(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Ej(bj(e))}function Ij(e){return mj(e)?1===e.a?Cj(e):Ej(e):Ij(bj(e))}const Dj=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Rj(e){return.2126*Dj(e.r)+.7152*Dj(e.g)+.0722*Dj(e.b)}function Pj(...e){const t=bj(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=Sj(n)),n.spaces.hslaObject),i=e=>{const t=r(),{h:n,s:i,l:o,a:a}=t;return`hsla(${n}, ${i}, ${Math.max(0,Math.min(o+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=bj(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=bj(...e);return t.invalid||Rj(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=Cj(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=Ej(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Ij(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=xj(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const i="string"==typeof e?bj(e):e,o=i.r/255,a=i.g/255,s=i.b/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=(l+u)/2;if(l===u)t=0,r=0;else{switch(n=l-u,t=c>.5?n/(2-l-u):n/(l+u),l){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*c})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:i}=Sj(e);return`hsla(${t}, ${n}, ${r}, ${i})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:i,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=wj(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=wj(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Pj(i(18*e)),getDarkenedColor:(e=1)=>Pj(i(18*-e))}}function Mj(e,t){if(!e||!t)return;const n=Rj(e),r=Rj(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const Lj="#FFFFFF";function Aj(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kj,Oj="top",qj="top-right",Tj="right",jj="bottom-right",Nj="bottom",_j="bottom-left",Fj="left",zj="top-left";Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(kj={},"equal-equal",[Oj,Nj]),"equal-higher",[Nj,jj]),"equal-lower",[Oj,qj]),"equal-void",[Oj,Nj]),"higher-equal",[Fj,_j,Oj,qj]),"higher-higher-acute",[Nj,_j,Fj,qj]),"higher-higher-obtuse",[Nj,Oj]),"higher-lower-negative",[Oj,qj,Tj]),"higher-lower-positive",[Nj,_j,Fj]),"higher-void",[Oj]),Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(kj,"lower-equal",[Oj]),"lower-higher-negative",[Oj,zj]),"lower-higher-positive",[jj]),"lower-lower-acute",[Oj,zj,Fj,qj,Tj]),"lower-lower-obtuse",[Oj,Nj]),"lower-void",[Oj]),"void-equal",[Oj]),"void-higher",[Oj,Nj]),"void-lower",[Oj,Nj,Fj]),"void-void",[Oj]),Aj(kj,"unclassified",[Oj,Nj,Tj,Fj,qj,jj,_j,zj]);var Wj,$j,Hj=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Vj=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Bj(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Vj:Hj}var Gj=function(){if($j)return Wj;$j=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Wj=function e(){var t,n,r,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(o(l)||(u=i(l)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&o(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Wj}();function Uj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Yj(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kj(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Gj);var Xj=.7,Jj=1/Xj,Zj="\\s*([+-]?\\d+)\\s*",Qj="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",eN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tN=/^#([0-9a-f]{3,8})$/,nN=new RegExp(`^rgb\\(${Zj},${Zj},${Zj}\\)$`),rN=new RegExp(`^rgb\\(${eN},${eN},${eN}\\)$`),iN=new RegExp(`^rgba\\(${Zj},${Zj},${Zj},${Qj}\\)$`),oN=new RegExp(`^rgba\\(${eN},${eN},${eN},${Qj}\\)$`),aN=new RegExp(`^hsl\\(${Qj},${eN},${eN}\\)$`),sN=new RegExp(`^hsla\\(${Qj},${eN},${eN},${Qj}\\)$`),lN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function uN(){return this.rgb().formatHex()}function cN(){return this.rgb().formatRgb()}function dN(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=tN.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?pN(t):3===n?new gN(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?fN(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?fN(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=nN.exec(e))?new gN(t[1],t[2],t[3],1):(t=rN.exec(e))?new gN(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=iN.exec(e))?fN(t[1],t[2],t[3],t[4]):(t=oN.exec(e))?fN(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=aN.exec(e))?wN(t[1],t[2]/100,t[3]/100,1):(t=sN.exec(e))?wN(t[1],t[2]/100,t[3]/100,t[4]):lN.hasOwnProperty(e)?pN(lN[e]):"transparent"===e?new gN(NaN,NaN,NaN,0):null}function pN(e){return new gN(e>>16&255,e>>8&255,255&e,1)}function fN(e,t,n,r){return r<=0&&(e=t=n=NaN),new gN(e,t,n,r)}function hN(e){return e instanceof Kj||(e=dN(e)),e?new gN((e=e.rgb()).r,e.g,e.b,e.opacity):new gN}function mN(e,t,n,r){return 1===arguments.length?hN(e):new gN(e,t,n,null==r?1:r)}function gN(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vN(){return`#${SN(this.r)}${SN(this.g)}${SN(this.b)}`}function yN(){const e=bN(this.opacity);return`${1===e?"rgb(":"rgba("}${xN(this.r)}, ${xN(this.g)}, ${xN(this.b)}${1===e?")":`, ${e})`}`}function bN(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xN(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function SN(e){return((e=xN(e))<16?"0":"")+e.toString(16)}function wN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new EN(e,t,n,r)}function CN(e){if(e instanceof EN)return new EN(e.h,e.s,e.l,e.opacity);if(e instanceof Kj||(e=dN(e)),!e)return new EN;if(e instanceof EN)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new EN(a,s,l,e.opacity)}function EN(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function IN(e){return(e=(e||0)%360)<0?e+360:e}function DN(e){return Math.max(0,Math.min(1,e||0))}function RN(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Uj(Kj,dN,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uN,formatHex:uN,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return CN(this).formatHsl()},formatRgb:cN,toString:cN}),Uj(gN,mN,Yj(Kj,{brighter(e){return e=null==e?Jj:Math.pow(Jj,e),new gN(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Xj:Math.pow(Xj,e),new gN(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gN(xN(this.r),xN(this.g),xN(this.b),bN(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vN,formatHex:vN,formatHex8:function(){return`#${SN(this.r)}${SN(this.g)}${SN(this.b)}${SN(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:yN,toString:yN})),Uj(EN,function(e,t,n,r){return 1===arguments.length?CN(e):new EN(e,t,n,null==r?1:r)},Yj(Kj,{brighter(e){return e=null==e?Jj:Math.pow(Jj,e),new EN(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Xj:Math.pow(Xj,e),new EN(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new gN(RN(e>=240?e-240:e+120,i,r),RN(e,i,r),RN(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new EN(IN(this.h),DN(this.s),DN(this.l),bN(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=bN(this.opacity);return`${1===e?"hsl(":"hsla("}${IN(this.h)}, ${100*DN(this.s)}%, ${100*DN(this.l)}%${1===e?")":`, ${e})`}`}}));const PN=Math.PI/180,MN=180/Math.PI,LN=.96422,AN=.82521,kN=4/29,ON=6/29,qN=3*ON*ON,TN=ON*ON*ON;function jN(e){if(e instanceof NN)return new NN(e.l,e.a,e.b,e.opacity);if(e instanceof $N)return HN(e);e instanceof gN||(e=hN(e));var t,n,r=WN(e.r),i=WN(e.g),o=WN(e.b),a=_N((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=_N((.4360747*r+.3850649*i+.1430804*o)/LN),n=_N((.0139322*r+.0971045*i+.7141733*o)/AN)),new NN(116*a-16,500*(t-a),200*(a-n),e.opacity)}function NN(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function _N(e){return e>TN?Math.pow(e,1/3):e/qN+kN}function FN(e){return e>ON?e*e*e:qN*(e-kN)}function zN(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function WN(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $N(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function HN(e){if(isNaN(e.h))return new NN(e.l,0,0,e.opacity);var t=e.h*PN;return new NN(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Uj(NN,function(e,t,n,r){return 1===arguments.length?jN(e):new NN(e,t,n,null==r?1:r)},Yj(Kj,{brighter(e){return new NN(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new NN(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new gN(zN(3.1338561*(t=LN*FN(t))-1.6168667*(e=1*FN(e))-.4906146*(n=AN*FN(n))),zN(-.9787684*t+1.9161415*e+.033454*n),zN(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Uj($N,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof $N)return new $N(e.h,e.c,e.l,e.opacity);if(e instanceof NN||(e=jN(e)),0===e.a&&0===e.b)return new $N(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*MN;return new $N(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new $N(e,t,n,null==r?1:r)},Yj(Kj,{brighter(e){return new $N(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new $N(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return HN(this).rgb()}}));var VN=e=>()=>e;function BN(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):VN(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?BN:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):VN(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=mN(e)).r,(t=mN(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=BN(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var GN="center",UN="bottom";[{key:"NoDataExist",alignment:GN,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:GN,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:GN,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:GN},{key:"DataRangeIncludingZero",alignment:UN},{key:"LimitedData",alignment:UN},{key:"NegativeOrZeroValues",alignment:UN}].reduce(function(e,t){return e[t.key]=t,e},{});var YN,KN=["__proto__","constructor"];function XN(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),i=r[r.length-1];if(!KN.some(function(e){return r.includes(e)})){for(var o=e,a=0;a<r.length-1;++a){var s=r[a];void 0===o[s]&&(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}}}function JN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var i=t(r);return n.has(i)?n.get(i):n.set(i,e(r))}}function ZN(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(r,o)},n)}}function QN(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function e_(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=n_)):void 0===t&&(t=t_);for(var n,r,i,o,a,s=new o_(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new o_(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(i_)}function t_(e){return e.children}function n_(e){return Array.isArray(e)?e[1]:null}function r_(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function i_(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function o_(e){this.data=e,this.depth=this.height=0,this.parent=null}o_.prototype=e_.prototype={constructor:o_,count:function(){return this.eachAfter(QN)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return e_(this).eachBefore(r_)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}},YN=function(e){
|
|
101
101
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
102
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,i,o,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=p-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,p):"";if(r=(t="-"===(e=e.substring(f,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",o=n&&n[1]&&n[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(o),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,p=d.length,b=0;b<p;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<p-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},z_({exports:{}});const Z_=(e,t=aN.TEXT,r=aN.WHITE)=>{const n=xN(e??""),i=xN(t),o=xN(r);return n.isInvalid()?t:function(e,t,r){const n=SN(e,t),i=SN(e,r);if(void 0!==n&&void 0!==i)return n>i?t:r}(n,o,i).getRGB()},Q_=e=>{const t=e.getStyle("","","dataColors.selected")||aN.SELECTED,r=function(e,t){const r=xN(wN),n=xN(e),i=xN(t);if(n.isInvalid()||i.isInvalid()||n.getAlpha()<1||i.getAlpha()<1)return t;const o=SN(r,n),a=SN(i,n),s=o>a||o>4.5;return!s&&a>3?i.getHex():s?wN:"#000000"}(t,aN.TEXT);return{background:t,color:r}},ej=(e,t)=>{const r=xN(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},tj=e=>{const t=xN(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},rj=e=>{e.stopPropagation(),e.preventDefault()},nj=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},ij=e=>{const{currentTarget:t}=e;if("true"===t.getAttribute("data-dragging"))return!0;const r=t.closest(".exploration-panel");if(!r)return!1;const n=r.getElementsByClassName("section-item-container");return Array.from(n).some(e=>"true"===e.getAttribute("data-dragging"))},oj=(e,t)=>{const{key:r,currentTarget:n}=e;if(n===t.current&&r===yT.Tab)if(e.preventDefault(),e.shiftKey)((e,t)=>{const{currentTarget:r}=e;if(r!==t.current)return;const n=r.closest('[role="region"]')?.getElementsByTagName("button")[0];n&&nj(n)})(e,t);else{const e=n.parentElement?.getElementsByClassName("exploration-section-header")[0];e&&nj(e)}},aj=(e,t)=>{const{currentTarget:r}=e;if(r!==t.ref.current)return;const n=t.sectionIndex??2;if(0===n)return void((e,t)=>{const{currentTarget:r}=e;if(r!==t.ref.current)return;const n=r.closest(".exploration-panel")?.getElementsByTagName("input")[0];n&&nj(n)})(e,t);const i=r.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[n-1],o=i?.getElementsByClassName("exploration-item-focus").length??0;if(o>0){const e=i?.getElementsByClassName("exploration-draggable-icon")[o-1];e&&nj(e)}},sj=(e,t)=>{const{key:r}=e;switch(r){case yT.Tab:rj(e),e.shiftKey?aj(e,t):((e,t)=>{const{currentTarget:r}=e;if(r!==t.ref.current)return;const n=r.closest(".exploration-list"),i=n?.getElementsByClassName("exploration-item-focus")[0];if(!i){const e=r.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[2].getElementsByClassName("exploration-section-header")[0];return void(e&&nj(e))}nj(i)})(e,t);break;case yT.Down:if(ij(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:r}=e;if(r!==t.ref.current)return;const n=r.closest(".exploration-panel"),i=n?.getElementsByClassName("exploration-section-header").length??0;let o=null;if(0===i)return;const a=t.sectionIndex??2;o=a+1<i?n?.getElementsByClassName("exploration-section-header")[a+1]:n?.getElementsByClassName("exploration-section-header")[0],o&&nj(o)})(e,t);break;case yT.Up:if(ij(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:r}=e;if(r!==t.ref.current)return;const n=r.closest(".exploration-panel"),i=n?.getElementsByClassName("exploration-section-header").length??0;let o=null;if(0===i)return;const a=t.sectionIndex??2;o=a-1>=0?n?.getElementsByClassName("exploration-section-header")[a-1]:n?.getElementsByClassName("exploration-section-header")[i-1],o&&nj(o)})(e,t);break;case yT.Enter:case yT.Space:e.preventDefault(),((e,t)=>{const{currentTarget:r}=e;if(e.preventDefault(),r!==t.ref.current)return;const n="all"!==t.checkState;t.toggleAllCheckboxes(n)})(e,t)}},lj=({children:e})=>io.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),uj=({children:e,sectionIndex:t})=>{const n=Dw(void 0!==t?_T(t):rN),i=Pw(void 0!==t?jT(t):nN),o=r.useRef(null),a={ref:o,toggleAllCheckboxes:i,checkState:n,sectionIndex:t};return io.jsxs(Qu,{ref:o,className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{sj(e,a)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"12px","&:focus-visible":{boxShadow:`0 0 0 2px ${HT} inset`}},children:[io.jsx(Ic,{disabled:"disabled"===n,checked:"all"===n,indeterminate:"some"===n,onChange:e=>{i(e.target.checked)},size:"small",style:{flexShrink:0,padding:9}}),io.jsx(lj,{children:e})]})},cj=({sectionIndex:e})=>{const t=Dw(qT(e));return io.jsx(uj,{sectionIndex:e,children:t})},dj=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:io.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),pj=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),fj=fl("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),hj=fl(pj)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${HT} inset`}})),mj=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,gj=(e,t)=>{const r=e.closest(".exploration-list"),n=r?.nextElementSibling||r?.parentElement?.nextElementSibling;if(null===n||!n){if(t===yT.Tab)return;return r?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return n.getElementsByClassName("exploration-section-header")[0]},vj=e=>{const{currentTarget:t}=e,r=mj(t);let n=t.closest("li")?.previousElementSibling?.getElementsByClassName(r)[0];if(!n){const e=t.closest(".exploration-list"),i=e?.querySelector(".exploration-section-header");if(i)return i;if(n=((e,t)=>{const r=e.closest(".exploration-list"),n=r?.previousElementSibling;if(null===n||!n)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const i=n.getElementsByClassName(t);return i.length>0?i[i.length-1]:void 0})(t,r),!n){const e=t.closest(".exploration-panel")?.getElementsByClassName(r)[1];return e??null}}return n},yj=(e,t)=>{const{currentTarget:r}=e;if(r===t.items.draggableIconRef.current){const e=r.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&nj(e))}if(r===t.items.explorationItemRef.current){const e=r.getElementsByClassName("exploration-draggable-icon")[0];return void nj(e)}r===t.items.explorationItemFocusRef.current&&t.toggleCheckedById(t.id)},bj=e=>{const t=e.key===yT.Down?(e=>{const{currentTarget:t,key:r}=e,n=mj(t),i=t.closest("li");let o=i?.nextElementSibling?.getElementsByClassName(n)[0];return o||(o=gj(t,r),o)?o:t.closest(".exploration-panel")?.getElementsByClassName(n)[0]})(e):vj(e);t&&nj(t)},xj=(e,t)=>{const{key:r}=e;switch(r){case yT.Tab:if(e.shiftKey)e.preventDefault(),((e,t)=>{const{currentTarget:r}=e,n=r.closest("ul")?.getElementsByClassName("exploration-item-focus");if(r===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=n&&n[t.itemIndex];return void(e&&nj(e))}const r=vj(e);r&&nj(r)}if(r===t.items.explorationItemFocusRef.current){const t=r.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void nj(t);const n=vj(e);n&&nj(n)}})(e,t);else{const r=((e,t)=>{const{currentTarget:r,key:n}=e;if(e.shiftKey)return!0;if(r===t.items.explorationItemRef.current){const e=r.getElementsByClassName("exploration-draggable-icon")[0];return nj(e),!0}if(r===t.items.explorationItemFocusRef.current){const e=r.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&nj(e),!0}if(r===t.items.draggableIconRef.current){const e=r.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const r=e&&e[t.itemIndex+1];return r&&nj(r),!0}const i=gj(r,n);if(!i)return!1;nj(i)}return!0})(e,t);r?rj(e):e.stopPropagation()}break;case yT.Down:case yT.Up:if(ij(e))break;rj(e),bj(e);break;case yT.Enter:if(e.currentTarget===t.items.explorationItemRef.current&&t.dragHandleRef){t.dragHandleRef(e.currentTarget);break}rj(e),yj(e,t);break;case yT.Space:rj(e),yj(e,t)}},Sj=({children:e})=>io.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1,paddingLeft:4},children:e}),wj=({icon:e,title:t,dragHandleRef:n,...i})=>{const[o,a]=Rw(hC),s=Dw(Vw),l=r.useRef(null),u=r.useRef(null),c=r.useRef(null),d={id:i.id,itemIndex:i.itemIndex,toggleCheckedById:a,items:{explorationItemRef:l,explorationItemFocusRef:u,draggableIconRef:c},dragHandleRef:n};return r.useEffect(()=>{n&&l.current&&n(l.current)},[n]),io.jsxs(Qu,{ref:l,className:"exploration-item",onClick:e=>{e.stopPropagation(),a(i.id)},onKeyDown:e=>{xj(e,d)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"12px"},title:t,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${HT} inset`}},children:[io.jsxs(Qu,{ref:u,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{xj(e,d)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${HT} inset`}},children:[io.jsx(Ic,{checked:o.has(i.id),"aria-label":s("ChartExploration.ListItem.Label",t),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0,visibility:-1===i.id?"hidden":"visible"}}),io.jsx(e,{height:"12px",style:{flexShrink:0}}),io.jsx(Sj,{children:t})]}),io.jsx(hj,{ref:c,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{xj(e,d)}})]})},Cj=e=>{const t=Dw(OT(e))??"";return io.jsx(wj,{title:t,icon:dj,...e})},Ej=()=>{const e=Dw(TT),t=Dw(NT),r=Dw(YT),n=Pw(FT);return io.jsx(hT,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:r,onDragEnd:n,dragOverlayRenderer:XT,headerRenderer:cj,itemRenderer:Cj})},Ij=({itemIndex:e})=>{const t=Dw(QT(e));return io.jsx(KT,{children:t})},Dj=()=>{const e=Dw(Vw);return io.jsx(uj,{children:e("Common.Values")})},Pj=x((e,t)=>io.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[io.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),io.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),Rj=e=>{const{itemIndex:t}=e,r=Dw(QT(t));return io.jsx(wj,{title:r,icon:Pj,...e})},Mj=()=>{const e=Dw(eN),t=Dw(tN),r=Dw(UT),n=Pw(iN);return io.jsx(Qu,{className:"exploration-header-section",style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:io.jsx(hT,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:r,onDragEnd:n,dragOverlayRenderer:Ij,headerRenderer:Dj,itemRenderer:Rj})})},Lj=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),Aj=()=>{const[e,t]=Rw(Bw),n=Dw(Vw),i=r.useRef(null),[o]=Dw(tN),[a=0,s=0]=Dw(NT),l=f(e=>{t(e.target.value)},[t]),u=0===e.length||0===a&&0===s&&0===o?n("Common.Search.NoResultsAvailable"):n("ChartExploration.Pivot.Search.ResultsFound",a.toString(),s.toString(),o.toString());return io.jsxs(Qu,{ref:i,onKeyDown:e=>{oj(e,i)},style:{position:"sticky",top:0,zIndex:10,width:"calc(100% - 16px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:8,paddingLeft:8,paddingBottom:8},children:[io.jsx(fj,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:u}),io.jsx(Np,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":n("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:n("Common.Search"),onChange:l,startAdornment:io.jsx(pd,{position:"start",children:io.jsx(Lj,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},kj=e=>{const t=Ls(Ef());return io.jsx(ml,{theme:t,children:io.jsx(xw,{children:io.jsx(mC,{props:e,children:io.jsxs(Qu,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[io.jsx(Aj,{}),io.jsx(Ej,{}),io.jsx(Mj,{})]})})})})},Oj=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:kj,classification:{tags:["exploration"],exclusive:!0}}};var qj=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(qj||{}),Tj=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(Tj||{}),Nj=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(Nj||{}),_j=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(_j||{});const jj=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,Fj=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach(e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,n="}",i="";switch(e.type){case Nj.SEARCH:i=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case qj.BEGINNING_OF_WORD:t="*^",r="*";break;case qj.ENDS_WITH:t="*";break;case qj.STARTS_WITH:r="*";break;case qj.MATCHES_EXACTLY:break;case qj.CONTAINS:default:t="*",r="*"}const i=e.options.values?.[0]??"";return""!==i?`"${t}${i}${r}"`:""})(e);break;case Nj.CONDITION:i=(e=>{const{options:t}=e,r=t?.mode===Tj.GENERAL,n=t?.modifier?.type===_j.FIXED_VALUE,i=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===i.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let o,a,s="=";r&&n?(o=`${t.conditionField?.aggregator}(${jj(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(o="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(o=`${t.conditionField?.aggregator}(${jj(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${jj(t.firstValue?.field)})`):(o=`${jj(e.field)}`,a=`${t.firstValue?.aggregator}(total ${jj(t.firstValue?.field)})`);const l=`${s}${o}${i[0]}${a}`;let u="";if(i.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${o}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${jj(t.secondValue?.field)})`,a=` and ${o}`):(e=`${t.secondValue?.aggregator}(total ${jj(t.secondValue?.field)})`,a=` and ${o}`),u=`${a}${i[1]}${e}`}return`"${l}${u}"`})(e);break;case Nj.CLEAR_SELECTION:i=`[${e.field}]=`,t="",n="";break;case Nj.VALUES:default:i=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==i&&r.push(`${t}${i}${n}`)}),0===r.length)return;return t+=`${r.join(",")}>}`,t},zj=[];for(let e=0;e<256;++e)zj.push((e+256).toString(16).slice(1));let Wj;const $j=new Uint8Array(16);var Hj={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Vj(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!Wj){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Wj=crypto.getRandomValues.bind(crypto)}return Wj($j)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(zj[e[t+0]]+zj[e[t+1]]+zj[e[t+2]]+zj[e[t+3]]+"-"+zj[e[t+4]]+zj[e[t+5]]+"-"+zj[e[t+6]]+zj[e[t+7]]+"-"+zj[e[t+8]]+zj[e[t+9]]+"-"+zj[e[t+10]]+zj[e[t+11]]+zj[e[t+12]]+zj[e[t+13]]+zj[e[t+14]]+zj[e[t+15]]).toLowerCase()}(n)}const Bj=()=>crypto?.randomUUID?.()??function(e){return Hj.randomUUID&&!e?Hj.randomUUID():Vj(e)}(),Gj=1e3,Uj=1e3,Yj=e=>{if(0===e.qInterColumnSortOrder.length)return;const t=e.qDimensions,r=((e,t)=>{const r=new Set;for(const t of e){if(r.has(t))return!0;r.add(t)}const n=e.includes(-1),i=e.filter(e=>-1!==e);if(t){const r=n?t.length+1:t.length;if(e.length!==r)return!0}const o=[...i].sort((e,t)=>e-t);for(let e=0;e<o.length;e++)if(o[e]!==e)return!0;return!1})(e.qInterColumnSortOrder,t);r&&(e.qInterColumnSortOrder=((e,t)=>{const r=[];if(t)for(let e=0;e<t.length;e++)r.push(e);return e.qMeasures.length>=2&&r.push(-1),r})(e,t))},Kj=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]},Xj=e=>{if(!e)return;Yj(e);const t=e.qDimensions,{qInterColumnSortOrder:r}=e;((e,t=[])=>{const r=t.filter(e=>-1!==e);for(let n=0;n<r.length;n++)if(-1!==r[n]&&r[n]!==n){const i=r[n],o=r.indexOf(n),a=r[o];Kj(r,n,o),Kj(e,n,o),Kj(t,t.indexOf(i),t.indexOf(a))}})(t,r)},Jj=P;class Zj extends Jj{#u;constructor(e,t){super(e),this.path=e.path,this.#u=t}async addDimension(e,t,r,n){if(!e||this.#c(e))return;const i=t??!1;if(e.qDef.cId||(e.qDef.cId=Bj()),n)return this.addAlternativeDimension(e,i,r);if(this.getDimensions().length<this.maxDimensions()){const t=await(async(e,t,r,n)=>{const i=e.getDimensions(),o=e.hcProperties.qNoOfLeftDims;return await e.autoSortDimension(t),Xj(e.hcProperties),(-1===o||Number.isNaN(+o))&&(e.hcProperties.qNoOfLeftDims=i.length),r?((e,t,r,n)=>{if(!e)return;const{qInterColumnSortOrder:i,qNoOfLeftDims:o}=e,a=t.length,s=i.indexOf(-1),l=-1!==s,u=void 0!==n?n+(o||0):void 0;if(l&&void 0!==u&&s>=u?((e,t,r)=>{t.splice(r,1),t.push(e),t.splice(r+1,0,-1)})(a,i,s):i.push(a),void 0===n)t.push(r);else if(void 0!==u){const e=l&&u>s?u-1:u;t.splice(e,0,r)}})(e.hcProperties,i,t,n):((e,t,r,n)=>{if(!e||"number"!=typeof e.qNoOfLeftDims)return;const i=e.qNoOfLeftDims,{qInterColumnSortOrder:o}=e,a=t.length,s=o.indexOf(-1),l=-1!==s&&i>0&&s<i;if(o.push(a),l)void 0===n?t.splice(i-1,0,r):s<n?t.splice(n-1,0,r):(t.splice(n,0,r),o.splice(s,1),o.splice(s+1,0,-1));else{const e=n??i;t.splice(e,0,r),-1!==s&&(o.splice(s,1),o.splice(s+1,0,-1))}e.qNoOfLeftDims++})(e.hcProperties,i,t,n),t})(this,e,i,r);return this.#d({section:i?"columns":"rows",cId:e.qDef.cId,addLast:void 0===r}),t}}async addDimensions(e,t,r){const n=[];for await(const i of e){const e=await this.addDimension(i,r,void 0,t);e&&n.push(e)}return n}addAlternativeDimension(e,t,r){if(!e||this.#c(e))return;const n=this.getAlternativeDimensions();void 0===this.hcProperties.excludedNoOfLeftDims&&(this.hcProperties.excludedNoOfLeftDims=n.length);let i=r;return i=void 0===i?t?n.length:this.hcProperties.excludedNoOfLeftDims:t?this.hcProperties.excludedNoOfLeftDims+i:Math.min(i,this.hcProperties.excludedNoOfLeftDims),n.splice(i,0,e),t||this.hcProperties.excludedNoOfLeftDims++,this.#d({section:t?"columns":"rows",cId:e.qDef.cId,alternative:!0,addLast:void 0===r}),e}async addFieldDimension(e,t,r,n={}){const i=this.createFieldDimension(e,t,r);return this.addDimension(i,n.asColumn,void 0,!1)}async addFieldDimensions(e,t={}){const r=e.map(e=>this.createFieldDimension(e.field,e.label,e.defaults));return this.addDimensions(r,void 0,t.asColumn)}async addLibraryDimensions(e,t={}){const r=e.map(e=>this.createLibraryDimension(e.id,e.defaults));return this.addDimensions(r,void 0,t.asColumn)}reinsertDimension(e,t,r){e.qDef.cId||(e.qDef.cId=Bj());if(this.getDimensions().length<this.maxDimensions())return this.addDimension(e,t,r);return this.reinsertAlternativeDimension(e,r,t)}reinsertAlternativeDimension(e,t,r){const n=this.getDimensions(),i=this.getAlternativeDimensions();if(n.length>=Gj)return Promise.resolve();const o="number"==typeof t?t:i.length;return i.splice(o,0,e),this.#d({section:r?"columns":"rows",cId:e.qDef.cId,alternative:!0}),Promise.resolve(e)}async removeDimensions(e,t,r){return Promise.all([...e].reverse().map(e=>this.removeDimension(e,t,r)))}async removeDimension(e,t,r){if(t){const t=this.getAlternativeDimensions().splice(e,1)[0];return!r&&this.hcProperties.excludedNoOfLeftDims&&this.hcProperties.excludedNoOfLeftDims--,this.#p({cId:t.qDef.cId,section:r?"columns":"rows"}),t}const n=this.getDimensions(),i=this.properties.qHyperCubeDef.qNoOfLeftDims,o=this.hcProperties.qInterColumnSortOrder.indexOf(e);"number"==typeof this.properties.qHyperCubeDef.qNoOfLeftDims&&"number"==typeof o&&"number"==typeof i&&o+1<=i&&this.properties.qHyperCubeDef.qNoOfLeftDims--;const a=this.properties.qHyperCubeDef.columnWidths?this.properties.qHyperCubeDef.columnWidths[1]:void 0;Array.isArray(a)&&a.length>e&&a.splice(e,1);const s=n.splice(e,1).at(0);if(s)return((e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;e.splice(r,1)})(this.hcProperties.qInterColumnSortOrder,e),Xj(this.hcProperties),this.#p({cId:s.qDef.cId,section:r?"columns":"rows"}),s}#c(e){return!(!e||void 0===e.qDef.cId)&&[...this.getDimensions(),...this.getAlternativeDimensions()].some(t=>t.qDef.cId===e.qDef.cId)}async addMeasures(e,t=!1){const r=[];for await(const n of e){const e=await this.addMeasure(n,t,void 0,!0);e&&r.push(e)}return r}addAlternativeMeasures(e,t){if(this.#f(e))return;const r=this.getAlternativeMeasures(),n=void 0===t?r.length:t,i=r.splice(n,0,e);return this.#h({cId:e.qDef.cId,alternative:!0,addLast:void 0===t}),i}async addMeasure(e,t,r,n){if(this.#f(e))return;if(e.qDef.cId||(e.qDef.cId=Bj()),t)return this.addAlternativeMeasures(e,r);n||delete e.qDef.qNumFormat;const i=this.getMeasures();if(i.length<this.maxMeasures()){const t=1===i.length;return void 0!==r&&r>=0?i.splice(r,0,e):i.push(e),this.autoSortMeasure(e).then(()=>(t&&(this.hcProperties.qInterColumnSortOrder.push(-1),0===this.getDimensions().length&&(this.hcProperties.qNoOfLeftDims=0)),this.#h({cId:e.qDef.cId,addLast:void 0===r}),e))}return i.length<Uj?(this.getAlternativeMeasures().push(e),this.#h({cId:e.qDef.cId,alternative:!0,addLast:void 0===r}),Promise.resolve(e)):Promise.resolve()}reinsertMeasure(e,t){const r=this.getMeasures(),n=this.getAlternativeMeasures(),i=this.hcProperties.qInterColumnSortOrder;if(e.qDef.cId||(e.qDef.cId=Bj()),t=void 0!==t?t:r.length,r.length<this.maxMeasures()){if(r.splice(t,0,e),2===r.length){-1===i.indexOf(-1)&&i.push(-1)}this.#h({cId:e.qDef.cId})}else r.length<Uj&&(t=n.length,n.splice(t,0,e),this.#h({cId:e.qDef.cId}));return Promise.resolve(e)}async removeMeasure(e,t){if(t&&"number"==typeof e){const t=this.getAlternativeMeasures().splice(e,1)[0];return this.#p({cId:t.qDef.cId,section:"measures"}),t}const r=this.getMeasures();let n,i,o;if("number"==typeof e&&e<r.length){n=2===r.length,i=this.getMeasures().splice(e,1)[0];const t=this.hcProperties.qInterColumnSortOrder;n&&(o=t.indexOf(-1),t.splice(o,1),this.hcProperties.qNoOfLeftDims&&o+1<=this.hcProperties.qNoOfLeftDims&&this.hcProperties.qNoOfLeftDims--)}else"number"==typeof e&&(i=this.getAlternativeMeasures().splice(e-r.length,1)[0]);if(i)return this.#p({cId:i.qDef.cId,section:"measures"}),i}async removeMeasures(e,t){return await Promise.all([...e].reverse().map(e=>this.removeMeasure(e,t))),e}#f(e){return!(!e||void 0===e.qDef.cId)&&[...this.getMeasures(),...this.getAlternativeMeasures()].some(t=>t.qDef.cId===e.qDef.cId)}getSorting(){throw new Error("don't call this")}changeSorting(){throw new Error("don't call this")}setSorting(){throw new Error("don't call this")}getRowDimensions(){const e=this.#m("rows"),t=this.getDimensions();return e.filter(e=>e>=0).map(e=>t[e])}getColumnDimensions(){const e=this.#m("columns"),t=this.getDimensions();return e.filter(e=>e>=0).map(e=>t[e])}getAlternativeRowDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?e:e.slice(0,t)}getAlternativeColumnDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?[]:e.slice(t)}#g(e){const t=this.hcProperties.rankedList?.[e];return t||this.createRankedList(e)}#v(e){return[...this.#g(e)]}#y(e,t){return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]=t,t}#b(e){const t=({qDef:t})=>t.cId===e;if(-1===e){return this.hcProperties.qInterColumnSortOrder.indexOf(-1)+1<=this.hcProperties.qNoOfLeftDims?"rows":"columns"}return this.getRowDimensions().some(t)||this.getAlternativeRowDimensions().some(t)?"rows":this.getColumnDimensions().some(t)||this.getAlternativeColumnDimensions().some(t)?"columns":null}#x(e){const t=({qDef:t})=>t.cId===e;return!(!this.getAlternativeDimensions().some(t)&&!this.getAlternativeMeasures().some(t))}#m(e){const{qInterColumnSortOrder:t,qNoOfLeftDims:r}=this.hcProperties;if(this.#S())return"columns"===e?t:[];switch(e){case"rows":return-1===r?t:t.slice(0,r);case"columns":return-1===r?[]:t.slice(r);default:throw new Error(`Unknown section in #getInterColumnSortOrderBySection: ${e}`)}}#S(){const{qNoOfLeftDims:e}=this.hcProperties,t=-1===e||Number.isNaN(+e);return 0===this.getDimensions().length&&this.getMeasures().length>0&&t}#w(e){const t=this.hcProperties.qInterColumnSortOrder.indexOf(-1);if(-1===t)return!1;if(this.#S())return"columns"===e;if(void 0===this.hcProperties.qNoOfLeftDims)return"rows"===e;switch(e){case"rows":return t+1<=this.hcProperties.qNoOfLeftDims;case"columns":return t+1>this.hcProperties.qNoOfLeftDims;default:return!1}}#C(e,t=!0){const r=e=>-1===e?-1:e.qDef.cId;if("measures"===e)return this.getMeasures().concat(t?this.getAlternativeMeasures():[]).map(r);const n=this.#m(e),i=this.getDimensions(),o=n.map(e=>-1===e?-1:i[e]);switch(e){case"rows":return o.concat(t?this.getAlternativeRowDimensions():[]).map(r);case"columns":return o.concat(t?this.getAlternativeColumnDimensions():[]).map(r);default:throw new Error(`Unknown section in #isCorruptRankedList: ${e}`)}}isRankedListCorrupt(e){const t=this.hcProperties.rankedList?.[e],r=this.properties.qInfo?.qId;if(!t)return!0;if(new Set(t).size!==t.length){const n=t.filter((e,r)=>t.indexOf(e)!==r);return console.warn("Corrupt ranked list detected: duplicate ids",{duplicates:n,section:e,chartId:r}),!0}const n=this.#C(e);if(t.length!==n.length)return console.warn("Corrupt ranked list detected: length mismatch",{section:e,chartId:r,fieldIds:n,rankedList:t,diff:new Set(n).symmetricDifference(new Set(t))}),!0;const i=n.filter(e=>!t.includes(e));if(i.length>0)return console.warn("Corrupt ranked list detected: missing ids",{missingIds:i,section:e,chartId:r}),!0;const o=this.#C(e,!1),a=t.filter(e=>o.includes(e)),s=o.filter((e,t)=>e!==a[t]);return s.length>0&&(console.warn("Corrupt ranked list detected: main field order mismatch",{section:e,chartId:r,orderMismatchIds:s}),!0)}createRankedList(e){switch(e){case"rows":case"columns":return this.#E({section:e});case"measures":return this.#I();default:throw new Error(`Unknown section in getRankedList: ${e}`)}}#E({section:e}){const t=this.getDimensions(),r=this.#m(e),n="columns"===e?this.getAlternativeColumnDimensions():this.getAlternativeRowDimensions(),i=r.map(e=>-1===e?-1:t[e].qDef.cId);return i.push(...n.map(e=>e.qDef.cId)),this.#y(e,i)}#I(){if(void 0!==this.hcProperties.rankedList?.measures)return this.hcProperties.rankedList.measures;const e=[...this.getMeasures(),...this.getAlternativeMeasures()].map(e=>e.qDef.cId);return this.#y("measures",e)}#D({section:e,cId:t,fields:r,addLast:n}){const i=this.#g(e),o=r.findIndex(e=>e.qDef.cId===t),a=r[o+1]?.qDef.cId,s=r[o-1]?.qDef.cId;if(n)i.push(t);else if(o>=0)if(a){const e=i.indexOf(a);i.splice(e,0,t)}else if(s){const e=i.indexOf(s);i.splice(e+1,0,t)}else i.push(t);return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]}#d({section:e,cId:t,alternative:r=!1,addLast:n=!1}){if(void 0===this.hcProperties.rankedList?.[e])return this.#E({section:e});let i=[];return i="columns"===e?r?this.getAlternativeColumnDimensions():this.getColumnDimensions():r?this.getAlternativeRowDimensions():this.getRowDimensions(),this.#D({section:e,cId:t,fields:i,addLast:n})}#h({cId:e,alternative:t=!1,addLast:r=!1}){if(void 0===this.hcProperties.rankedList?.measures)return this.#I();const n=t?this.getAlternativeMeasures():this.getMeasures();return this.#P(),this.#D({section:"measures",cId:e,fields:n,addLast:r})}#P(){const e=this.#g("rows"),t=this.#g("columns");this.#w("rows")&&!e.includes(-1)?e.push(-1):this.#w("columns")&&!t.includes(-1)&&t.push(-1)}#R(){if(this.hcProperties.qInterColumnSortOrder.includes(-1))return;const e=this.#g("rows"),t=this.#g("columns"),r=e.indexOf(-1),n=t.indexOf(-1);-1!==r&&e.splice(r,1),-1!==n&&t.splice(n,1)}#p({cId:e,section:t}){const r=this.#g(t),n=r.indexOf(e);-1!==n&&(r.splice(n,1),this.#R())}async moveMeasureToAlternative(e){const t=this.getMeasures().findIndex(t=>t.qDef.cId===e),r=this.#v("measures"),n=r.indexOf(e);if(-1===t)return;const i=await this.removeMeasure(t);if(void 0===i)return;const o=r.slice(n+1).find(e=>this.getAlternativeMeasures().some(t=>t.qDef.cId===e)),a=this.getAlternativeMeasures().findIndex(e=>e.qDef.cId===o);await this.addAlternativeMeasures(i,-1===a?void 0:a),this.#y("measures",r)}async moveMeasureFromAlternative(e){const t=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e),r=this.#v("measures"),n=r.indexOf(e);if(-1===t)return;const i=await this.removeMeasure(t,!0);if(void 0===i)return;const o=this.getMeasures().map(e=>e.qDef.cId),a=r.slice(n+1).find(e=>o.includes(e)),s=o.findIndex(e=>e===a);await this.addMeasure(i,!1,-1===s?void 0:s),this.#y("measures",r)}async moveDimensionToAlternative(e){const t=this.#b(e),r=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===r||null===t)return;const n=this.#v(t),i=n.indexOf(e),o="columns"===t,a=await this.removeDimension(r,!1,o);if(void 0===a)return;const s=n.slice(i+1).find(e=>this.getAlternativeDimensions().some(({qDef:t})=>t.cId===e));let l=this.getAlternativeDimensions().findIndex(({qDef:e})=>e.cId===s);l=-1===l?void 0:l;void 0!==this.addAlternativeDimension(a,o,l)&&this.#y(t,n)}async moveDimensionFromAlternative(e){const t=this.#b(e),r=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===r||null===t)return;const n=this.#v(t),i=n.indexOf(e),o="columns"===t,a=await this.removeDimension(r,!0,o);if(void 0===a)return;const s=this.#C(t,!1),l=n.slice(i+1).find(e=>s.includes(e));let u=s.findIndex(e=>e===l);u=-1===u?void 0:u;void 0!==await this.addDimension(a,o,u)&&this.#y(t,n)}movePseudoDimension({toIndex:e,toSection:t}){const r=this.#b(-1);if(null===r)return void console.error("Cannot move pseudo dimension, unable to find it in any section",{toIndex:e,toSection:t});const n="columns"===t,i=r===t,o=this.#v(t);if(i){const e=o.indexOf(-1);o.splice(e,1)}else{const i=this.#g(r),o=i.indexOf(-1);if(-1===o)return void console.error("Couldn't delete pseudo dimension from current section",{toIndex:e,toSection:t,fromSection:r});i.splice(o,1),this.hcProperties.qNoOfLeftDims=n?Math.max(0,this.hcProperties.qNoOfLeftDims-1):this.hcProperties.qNoOfLeftDims+1}const a=e-o.slice(0,e).filter(e=>this.#x(e)).length,s=n?this.hcProperties.qNoOfLeftDims+a:a,l=this.hcProperties.qInterColumnSortOrder.indexOf(-1);this.hcProperties.qInterColumnSortOrder.splice(l,1),this.hcProperties.qInterColumnSortOrder.splice(s,0,-1),o.splice(e,0,-1),this.#y(t,o)}async moveDimension({cId:e,toIndex:t,toSection:r}){const n=this.#b(e),i=this.#x(e);if(null===n)return void console.error("Cannot move dimension, unable to find it in any section",{cId:e});const o=(i?this.getAlternativeDimensions():this.getDimensions()).findIndex(({qDef:t})=>t.cId===e);if(-1===o)return void console.error("Couldn't find dimension to move",{cId:e,toIndex:t,toSection:r});const a=this.#v(r),s=a.indexOf(e);-1!==s&&a.splice(s,1);const l=t-a.slice(0,t).filter(e=>this.#x(e)!==i).length,u="columns"===r,c="columns"===n,d=await this.removeDimension(o,i,c);if(void 0===d)return;void 0!==await this.addDimension(d,u,l,i)&&(a.splice(t,0,e),this.#y(r,a))}async moveMeasure({cId:e,toIndex:t}){const r=this.#x(e),n=(r?this.getAlternativeMeasures():this.getMeasures()).findIndex(t=>t.qDef.cId===e);if(-1===n)return void console.error("Cannot move measure, unable to find it in any section",{cId:e});const i=this.#v("measures"),o=i.indexOf(e);-1!==o&&i.splice(o,1);const a=t-i.slice(0,t).filter(e=>this.#x(e)!==r).length,s=await this.removeMeasure(n,r);if(void 0===s)return;void 0!==await this.addMeasure(s,r,a)&&(i.splice(t,0,e),this.#y("measures",i))}getLabels(){return this.getMeasures().filter(e=>!e.qLibraryId&&!!e.qDef.qLabel).map(e=>e.qDef.qLabel)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,i=Array.isArray(this.properties.filters)?this.properties.filters:[],o={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:Bj(),qTags:Array.isArray(t)?t:[],isNumeric:r};return i.push(o),this.properties.filters=i,this.properties.qHyperCubeDef.qContextSetExpression=Fj(i),o}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}#M(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=Fj(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const r=[...e].sort((e,t)=>t-e);t=this.getFilters().filter((t,r)=>e.includes(r));for(const e of r)this.#M(e);return t}getAddDimensionLabel(){return this.#u.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}var Qj={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(i)return i(e,r).value}return e[r]};e.exports=function e(){var t,r,n,i,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(i=l(t,r))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:r,newValue:i}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(i)return i(e,r).value}return e[r]};e.exports=function e(){var t,r,n,i,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(i=l(t,r))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:r,newValue:i}));return d}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{n.r(i),n.d(i,{default:()=>Ae});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,i=t.split("."),o=i[i.length-1],a=e;for(n=0;n<i.length-1;++n)void 0===a[i[n]]&&(a[i[n]]=Number.isNaN(+i[n+1])?{}:[]),a=a[i[n]];if(void 0!==r){var s=a[o];return a[o]=r,{updated:r,previous:s}}return delete a[o],!1},o=function(e,t,r){var n,i=t.split("."),o=e;if(void 0===o)return r;for(n=0;n<i.length;++n){if(void 0===o[i[n]])return r;o=o[i[n]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===i)return n;if(n.qDerivedFieldData)for(var o=0;o<n.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=n.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function y(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=y(c(n[0],i),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],i),p=c(n[1],i),f=h(0),m=h(1),g=y(d,f),v=y(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=b({modifier:r,dimensions:n,dimensionAndFieldList:i}),l=o?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var i=["Descending","Ascending"],o=r.qSortByNumeric?"(Numeric, ".concat(i[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(i[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(o,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(o,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,i=void 0===n?1:n,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=i&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});i&&t!==i.qDef.qLabel&&(n=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(o,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="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(e)}var I=t().bind(null,!0),D={},P=Array.isArray;function R(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function A(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,i){if(i!==n.length){r=+t;var o=Number.isNaN(r)?{}:[];e[r||t]=M(e[r||t])?o:e[t],e=e[r||t]}}),e}function k(e,t){var r=!0;if(R(e)&&R(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){k(e[n],t[n])||(r=!1)}),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}D.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(i){var o=function(e){return e?I({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(r,"/").concat(i);k(o,a)||L(t,i)||(M(a)?n.push({op:"add",path:s,value:o}):R(o)&&R(a)?n=n.concat(D.generate(a,o,s)):P(o)&&P(a)?n=n.concat(function(e,t,r){var n=[],i=e.slice(),o=-1;function a(e,t,r){if(e[r]&&M(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,i))return n;if(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),i.splice(s,1)):n=n.concat(D.generate(i[s],t[o],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return n}(a,o,s)):n.push({op:"replace",path:"".concat(r,"/").concat(i),value:o}))}),Object.keys(e).forEach(function(i){M(t[i])&&!L(e,i)&&n.push({op:"remove",path:"".concat(r,"/").concat(i)})}),n},D.apply=function(e,t){t.forEach(function(t){var r,n,i=A(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(P(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||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.")}())}else if(R(a)&&R(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!L(r,e)&&delete r[e]}),I(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var c=A(e,t.from);P(i)?i.splice(+o,0,c.splice(+s,1)[0]):(i[o]=c[s],delete c[s])}else"remove"===t.op&&(P(i)?i.splice(+o,1):delete i[o])})},D.clone=function(e){return I({},e)},D.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},D.updateObject=function(e,t){Object.keys(e).length?D.apply(e,D.generate(e,t)):I(e,t)};const O=D,q=function(e,r,n){if(!e)return Promise.resolve();var i=O.generate(r,n);return t()(!0,r,n),i&&i.length?(i=i.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(i,!0)):Promise.resolve()};var T="accumulation";function N(e,t){var r=o(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function _(e,t){var r=function(e,t){var r=o(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:i}));var u=o(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:i})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,j)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(T))return!1;var o=N(t,e);return o&&!o.disabled}};return r}};var z="movingAverage";function W(e,t){var r=o(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function $(e,t){var r=function(e,t){var r=o(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:i,layout:a}));var c=o(i,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,i="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(i,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:n,properties:i,layout:a})){var y=w.getDimComp(c,1),b=w.getDimComp(c,0),x=w.getAggrComp(v,y,b);v=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=W(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=W(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(z))return!1;var o=W(t,e);return o&&!o.disabled}};return r}};var B="timeSeriesDecomposition";function G(e,t){var r=o(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===B)return r[n]}function U(e,t){var r=function(e,t){var r=o(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===B)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var i=n.steps;n.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e}),e})}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(B))return!1;var o=G(t,e);return o&&!o.disabled}};return r}};var X="difference";function J(e,t){var r=o(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=o(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:i}));var u=o(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:i})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return r}};var te="normalization";function re(e,t){var r=o(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=o(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function ie(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:i}));var u=o(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,i,o,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(i,o),d=ue(i,o,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach(function(t){void 0===e[t]&&(e[t]=oe[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=ie(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,o),o}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=re(t,e);return o&&!o.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,fe);return void 0!==t?t:o(e,pe)},getExpressionRef:function(e){return void 0!==o(e,fe)?fe:pe},getLibraryIdRef:function(e){return o(e,me)?me:he},getLibraryId:function(e){return o(e,me)||o(e,he)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",ye="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",De="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,ye,o(e,ve)),r(e,xe,o(e,be)),r(e,Ce,o(e,Se)),r(e,Ee,o(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,ve,o(e,ye)),r(e,be,o(e,xe)),r(e,Se,o(e,Ce)),r(e,we,o(e,Ee)),o(e,Ie)&&o(e,De)&&r(e,Ie,o(e,De)),delete e.qDef.base)},isValid:function(e){var t=o(e,ye),r=o(e,xe);return void 0!==t||void 0!==r}};const Re=Pe;function Me(e){return Me="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},Me(e)}var Le={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Ae={modifiers:Le,apply:Oe,applyModifiers:qe,cleanUpMeasure:Te,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Le[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Le[e]&&Le[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,i=!1,o=!1;return t.forEach(function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(i=!0,o=o||Ze({modifiers:t,properties:r,layout:n}))}),i&&!o},ifEnableTotalsFunction:je};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Me(n))return qe({model:r,properties:n});var c=r?r.layout:void 0,d=o(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=o(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=o(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);$e(n);var i=Qe(n);return Ye({model:r}).then(function(t){return Ke({libraryIds:i,model:r}).then(function(i){return h&&function(e){var t=e.properties;Fe(t).forEach(function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(r++,"object"!==Me(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),qe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Me(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,i=Qe(n);return et({model:r,libraryIds:i}).then(function(){var e=t()(!0,{},n);return Fe(n).forEach(function(e){return Te(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function qe(e){var r=e.model,n=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},i):i),$e(i);var p=Qe(i);return et({model:r,libraryIds:p,masterItem:u}).then(function(){return function(e){var r=e.measures,n=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=Fe(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return Te(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:i,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:i,libraryItemsProps:a}).then(function(i){r.forEach(function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Re.isValid(r)||Re.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Le[n.type].generateExpression({expression:s,modifier:n,properties:i,dimensionAndFieldList:o});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Le[n.type].updateModifier&&Le[n.type].updateModifier(n,i.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Le[n.type].generateExpression({expression:a,modifier:n,properties:i,dimensionAndFieldList:o});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:i,dimensionAndFieldList:e}),He(r)):Te(r)})})})}({measures:a,properties:i,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:i,model:r}):Promise.resolve(!1)})})}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&!Le[e.type]})}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({modifiers:ze(e),properties:r,layout:n})})}function _e(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function je(e){var t=_e(e);return!t||Le[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function $e(e){Fe(e).forEach(function(e){return function(e){var r=_e(e);r&&(void 0!==r.outputExpression&&We(r)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function He(e){var t=ze(e);Array.isArray(t)&&t.forEach(function(t){"object"===Me(t)&&(t.disabled||!Le[t.type]&&We(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!Be(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,i={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Me(e)||e.disabled||!Le[e.type])&&(void 0===i[e.type]&&(i[e.type]=Le[e.type].isApplicable({properties:r,layout:n})),i[e.type])})}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],i={},o=t.app.getDimensionList().then(function(e){i.dimensionList=e});n.push(o);var a=t.app.getFieldList().then(function(e){i.fieldList=e});return n.push(a),Promise.all(n).then(function(){return i})}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),o.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):q(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return i}):Promise.resolve(i)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=Fe(e),r=[],n=[],i=!1;return t.forEach(function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var o=Be(t);o&&r.push(o),i=i||Ze({modifiers:n,properties:e})}}),o(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=o(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=o(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var i=l(e);n[t].properties!==i&&(n[t].properties=i,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach(function(e){i[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:o}),Object.keys(n).forEach(function(e){i[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(i).forEach(function(e){i[e]&&!n[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),i=Math.floor(r/62);return i>0?t(i)+n:n}function i(e){return i="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},i(e)}r.d(n,{default:()=>$e});const o={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),i=e,o=0;o<n.length;++o){var a=n[o];if(""!==a){if(void 0===i[a]||null===i[a])return r;i=i[a]}}return i},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),i=n[n.length-1],o=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+n[a+1])?{}:[]),o=o[s]}void 0!==r?o[i]=r:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(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.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(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.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var i=e.indexOf(t[n]);if(r>i)return!1;r=i}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,i=r.data[0];(t=i.dimensions).push.apply(t,a(n.qDimensions));var s,l=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,i=r.data[0];(t=i.measures).push.apply(t,l(n.qMeasures));var a,s=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var i=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,n.interColumnSortOrder)&&(n.interColumnSortOrder=i.concat())},v=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},y=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!o.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},b=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,i,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=o.getValue(e,t);if(!o.isAtomicValue(s))try{if((i=(i=(n=JSON.stringify(s)).match(/:\{/g))?i.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var l=o.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return o.getValue(r,"qOtherTotalSpec.qOtherCounted")||o.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(r,"qOtherTotalSpec.qOtherLimit")||o.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function I(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var D=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const M=function(e,t,r){var n="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(r,"qInfo.qType");o.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},L=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},A=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},q=function(e){var t,r=e.exportFormat,n=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);o.qDimensions.length<n?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(u):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);o.qMeasures.length<n?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(u):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,i=t.data[0],o=n.dimensions||{max:0},a=n.measures||{max:0},s=I(a.max,i.dimensions.length,D),l=I(a.min,i.dimensions.length,0);return{maxDimensions:I(o.max,s,D),minDimensions:I(o.min,l,0),maxMeasures:s,minMeasures:l}},_=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],i=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var o=r.qInterColumnSortOrder.length;if(o!==i)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(r.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(r.qInterColumnSortOrder,o))},j=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?o.setValue(i,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]}),null===(i=w()(!0,{},r,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},W=function(e){var t,r=e.newProperties,n=e.dataDefinition,i=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=o.getValue(r,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||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.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,i=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=o.getValue(r,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return R(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(t)||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.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},H=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var r=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){o.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const B={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:i,properties:a}),r&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),y({exportFormat:i,properties:a}),n||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters",!0),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=j({exportFormat:t,initialProperties:n,hypercubePath:u}),v=o.getValue(n,u||"").qHyperCubeDef,y=o.getValue(g,u||"").qHyperCubeDef,b=N({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,S=b.minDimensions,w=b.maxMeasures,C=b.minMeasures,E=l.defaultDimension,I=void 0===E?k():E,D=l.defaultMeasure,P=void 0===D?O():D;y.qDimensions.length=0,y.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:y}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:y,defaultDimension:I}),T({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:y,defaultMeasure:P}),W({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:y}),L("qMaxStackedCells",v,y),L("qNoOfLeftDims",v,y),A("qInitialDataFetch",v,y,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),A("qMode",v,y,"S"),A("qReductionMode",v,y,"N"),A("qSortbyYValue",v,y),A("qIndentMode",v,y),A("qShowTotalsAbove",v,y),M(g,t,n),m.qProperty=g;var R=o.getValue(c||{},"support.modifiers");return H({measures:y.qMeasures,modifierTypes:R}),p&&V(m.qProperty,"storedFilters"),"S"===y.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var i=c(e,n,r),o=c(t,n,r);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,i){r=r||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][r],s=t.length;if(U(a,t,n,i),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(n,i);var l=n[n.length-1];if(l){var u=r?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),c=o.getValue(t,"color.formatting.qNumFormat"),p=o.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,i?t.qDef=n.key:(t.qExpression=n.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function ie(e,t,r,n){var i,o,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),o&&(s.expression=o)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(re(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var r=o.getValue(e,"".concat(t,"qDimensions"),[]),n=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=o.getValue(e,"".concat(t,"qDimensions"),[]),n=o.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var i=ie("dimension",!1,r[n.activeDimensionIndex]);i.activeDimensionIndex=n.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=o.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=o.getValue(t,"visualization"),i=r.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],i=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:i,measures:n,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){o.setValue(e,t,r),o.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:o.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,i=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!i.length))},de=function(e,t){var r,n=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(r={auto:i,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!i.length)}({auto:i,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=o.getValue(e,"".concat(t,"qDimensions"),[]),n=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=o.getValue(e,"".concat(t,"qMeasures"),[]),n=o.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var i=ie("measure",!1,r[n.activeMeasureIndex],!0);i.activeMeasureIndex=n.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=o.getValue(e,"".concat(t,"qDimensions"),[]),n=o.getValue(e,"".concat(t,"qMeasures"),[]),i=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:i,measures:n,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=o.getValue(e,"color.mode"),n=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&i.length<2&&o.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=o.getValue(r,"qHyperCubeDef.qMeasures",[]),i=o.getValue(r,"color.mode","");return!t&&"byExpression"===i&&n.length>0},he=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),r=o.getValue(e,"color.persistent",!1);return t.length>1&&!r},ve={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,i=B.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),i},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=B.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=o.getValue(d,"visualization"),f=o.getValue(d,"qHyperCubeDef.qDimensions",[]),h=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ye=["bar","marker","line"];const be=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,i=r.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ye.includes(n)&&t[i].type[n]++,t[i].type.total++}}),t}(a);l.length?(o&&(t=l.filter(function(e){return e.type[o]>0}).sort(function(e,t){return t.type[o]-e.type[o]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ve.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var u=Ce(r,n,l);o.setValue(t,u,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:n,arrayName:i,item:e,itemPath:a})})}function Ie(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Ce(r,n,s),u=o.getValue(t,l);void 0!==u&&(o.setValue(i,a,u),o.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:i,item:e,itemPath:a})})}var De="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Re="measures",Me="qDef.conditionalColoring";const Le={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Pe,arrayName:Re,itemPath:Me})},unquarantine:function(e){Ie({properties:e,arrayPath:De,itemPath:Me,arrayName:Re,quarantineName:Pe})}};var Ae="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",Fe="qCalcCondition",ze="conditionalShowHide";const We={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ee({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},unquarantine:function(e){Ie({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ie({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Ne,itemPath:Fe}),Ee({properties:e,arrayPath:_e,quarantineName:ze,arrayName:je,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Ne,itemPath:Fe}),Ie({properties:e,arrayPath:_e,quarantineName:ze,arrayName:je,itemPath:Fe})}},$e={hypercube:B,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:Le,conditionalShow:We}})(),n.default})()}(Qj);var eF=En(Qj.exports);const tF="qHyperCubeDef.qMeasures",rF="measures",nF="qHyperCubeDef.qDimensions",iF="dimensions",oF="qDef.representation",aF="tableRepresentation",sF="qDef.conditionalColoring",lF="conditionalColoring",uF="qMiniChartDef",cF="miniChartDef",dF=e=>{eF.unquarantineArrayProp({properties:e,arrayPath:nF,itemPath:oF,arrayName:iF,quarantineName:aF}),eF.unquarantineArrayProp({properties:e,arrayPath:tF,itemPath:oF,arrayName:rF,quarantineName:aF}),eF.unquarantineArrayProp({properties:e,arrayPath:tF,itemPath:sF,arrayName:rF,quarantineName:lF}),eF.unquarantineArrayProp({properties:e,arrayPath:tF,itemPath:uF,arrayName:rF,quarantineName:cF})},pF=e=>{eF.quarantineArrayProp({properties:e,arrayPath:nF,itemPath:oF,arrayName:iF,quarantineName:aF}),eF.quarantineArrayProp({properties:e,arrayPath:tF,itemPath:oF,arrayName:rF,quarantineName:aF}),eF.quarantineArrayProp({properties:e,arrayPath:tF,itemPath:sF,arrayName:rF,quarantineName:lF}),eF.quarantineArrayProp({properties:e,arrayPath:tF,itemPath:uF,arrayName:rF,quarantineName:cF})};function fF(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const i="rows"===n?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(i)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}const hF="qHyperCubeDef.qDimensions",mF="dimensions",gF="qOtherTotalSpec.qTotalMode",vF="totalMode",yF={quarantine(e){eF.quarantineArrayProp({properties:e,arrayPath:hF,quarantineName:vF,arrayName:mF,itemPath:gF})},unquarantine(e){eF.unquarantineArrayProp({properties:e,arrayPath:hF,quarantineName:vF,arrayName:mF,itemPath:gF})}};function bF(e){const t=fF(e);return(e,r,n,i)=>{const o=eF.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:i}),a=o.qProperty.qHyperCubeDef.qDimensions.length,s=o.qProperty.qHyperCubeDef.qMeasures.length;let l,u=o.qProperty.qHyperCubeDef.qInterColumnSortOrder,c=!0;a+s===u.length&&$_(o,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=o.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],$_(o,"qProperty.qHyperCubeDef.qInterColumnSortOrder",u),o.qProperty.qLayoutExclude.quarantine&&delete o.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):u.length=0;const p=+(u.indexOf(-1)>-1),f=a+p;if(f>u.length)for(let e=u.length;e<f;e++)u.indexOf(e)<0&&u.push(e-p);for(let e=u.length-1;e>=0;e--)u[e]>=a&&u.splice(e,1);s>1&&u.indexOf(-1)<0?u.push(-1):s<2&&u.indexOf(-1)>-1&&u.splice(u.indexOf(-1),1);const h=o.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&$_(o,"qProperty.qHyperCubeDef.qNoOfLeftDims",a),l?.length===u.length){for(let e=0;e<l.length;e++)if(l[e]!==u[e]){c=!1;break}c&&(eF.unquarantineProperty(o.qProperty,"noOfLeftDims"),eF.unquarantineProperty(o.qProperty,"excludedNoOfLeftDims "))}return eF.unquarantineProperty(o.qProperty,"rankedList"),eF.conditionalShow.unquarantine(o.qProperty),yF.unquarantine(o.qProperty),dF(o.qProperty),eF.unquarantineProperty(o.qProperty,"pivotTableIndentMode"),o}}function xF(e,t){const r=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,n=r.slice(),i=r.indexOf(-1);i>-1&&r.splice(i,1);const o=eF.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=o.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;$_(o,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",n),eF.quarantineProperty(o.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete o.properties.qHyperCubeDef.qNoOfLeftDims,eF.quarantineProperty(o.properties,"qHyperCubeDef.rankedList","rankedList"),delete o.properties.qHyperCubeDef.rankedList;const c=o.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,$_(o,"properties.qHyperCubeDef.qInterColumnSortOrder",u),$_(o,"data.0.interColumnSortOrder",u),o.properties.qLayoutExclude.quarantine&&delete o.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=u.length;e<s+l;e++)u.length<=e&&u.push(e);return eF.quarantineProperty(o.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),eF.quarantineProperty(o.properties,"qHyperCubeDef.excludedNoOfLeftDims ","excludedNoOfLeftDims "),eF.conditionalShow.quarantine(o.properties),yF.quarantine(o.properties),pF(o.properties),o}const SF=e=>({dimensions:{min:1,max:1e3,description(t,r,n){const i="rows"===n?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return e.translator.get(i)}},measures:{min:1,max:1e3,description:()=>e.translator.get("Visualizations.Descriptions.Values")}}),wF={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let CF=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),EF=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const IF=e=>{switch(e?.type){case"url":return CF.Link;case"image":return CF.Image;case"indicator":return CF.Indicator;case"miniChart":return CF.MiniChart;default:return CF.Text}},DF=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:i}=n.properties.qHyperCubeDef,o=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!i&&e||i)&&o.push({value:"image",translation:"Object.Table.Representation.Image"}),o}}),PF=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>IF(e.qDef.representation)===CF.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:i,qDimensions:o,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=o?.indexOf(e)??1/0;return(n?.slice(0,i)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},RF=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:DF({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>IF(e.qDef.representation)===CF.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>IF(e.qDef.representation)===CF.Link&&e.qDef.representation?.urlPosition===EF.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>IF(e.qDef.representation)===CF.Link&&e.qDef.representation?.urlPosition===EF.Attribute},...PF(r)}},MF=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,i=!n?.("tableImages")&&t[CF.Image],o=!n?.("qMiniChartDef")&&t[CF.MiniChart],a=!n?.("tableIndicators")&&t[CF.Indicator],s=i&&t[CF.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&i||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),o&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:e=>IF(e.qDef.representation)===CF.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:o?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};let LF=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),AF=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),kF=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),OF=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const qF="image",TF=(e,t,r)=>{if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let i=r.properties.qHyperCubeDef.qNoOfLeftDims??-1;n>-1&&n<i&&(i-=1);const o=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===o||o>=i},NF=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:ST.Auto,translation:"Common.Auto"},{value:ST.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:ST.Pixels,translation:"Object.Table.Column.Pixels"},{value:ST.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:ST.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:xT.PixelsDefault,show:e=>e.qDef.columnWidth?.type===ST.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:xT.PercentageDefault,show:e=>e.qDef.columnWidth?.type===ST.Percentage}}),_F=({key:e,translation:t,env:r})=>{const n=!r.anything.sense?.isUnsupportedFeature?.("tableImages");return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>!n||"labelTextAlign"===e||t.qDef.representation?.type!==qF},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!n||"labelTextAlign"===e||t.qDef.representation?.type!==qF)}}},jF="TOTAL_OFF",FF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:AF.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:AF.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:AF.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:AF.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:AF.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:AF.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},zF="TOTAL_OFF",WF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:AF.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:AF.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:AF.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:AF.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:AF.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:AF.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},$F=e=>{const{translator:t,anything:r,flags:n}=e,i=(e=>{const{translator:t,anything:r}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:jF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:jF,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&TF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==jF&&TF(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:FF,..._F({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),..._F({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...RF(e),...NF()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:FF,..._F({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),..._F({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...MF(e,{[CF.Image]:!0,[CF.Indicator]:!0}),...NF()}}}},filter:{type:"object",component:"filter-item-react",ref:"filter",tabName:"SimpleProperties.Filters.Filters"}}}})(e);return n.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?i:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:zF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:zF,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&TF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==zF&&TF(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:WF,..._F({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),..._F({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...RF(e),...NF()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:WF,..._F({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),..._F({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...MF(e,{[CF.Image]:!0,[CF.ImagesInIndentMode]:!0,[CF.Indicator]:!0}),...NF()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}},HF=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,i){const o=n?.(e,t,i)??!1,a=i.theme.current(),s=r(a,o);return{color:"transparent"===s?"none":s}}}),VF=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},BF=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,i,o)=>{const a=o.theme.current();return((e,t,r,n)=>{const i=t.fontFamily??"Source Sans Pro, sans-serif",o=t.fontFamilies??[],a=Array.from(new Set([e,i,...o])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>VF(e,!0))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},..._N(n).filter(e=>!a.includes(e)).map(e=>VF(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),GF=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],UF=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,i)=>{const o=i.theme.current();return((e,t,r)=>{const n=t.fontSize,i=t.fontSizes??[],o=Array.from(new Set([e,n,...i])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...o.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>VF(e,!1))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...GF.filter(e=>!o.includes(e)).map(e=>VF(e,!1))];return[...a,...s.length>1?s:[]]})(t(o),o,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),YF=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:i,translation:o,disableNoneCallback:a})=>({component:"panel-section",translation:o??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:BF({ref:`${e}.fontFamily`,themeAccessor:t=>i(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:UF({ref:`${e}.fontSize`,themeAccessor:t=>i(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:HF(`${e}.fontColor`,void 0,t=>i(t,e,"color")??t.color)}},background:HF(`${e}.background`,"properties.background",(t,r)=>{const n=r?aN.WHITE:aN.TRANSPARENT;return i(t,e,"backgroundColor")??n},a)}}}}),KF=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:HF(`${e}.fontColor`,void 0,t=>n(t,e,"color")??t.color)}},background:HF(`${e}.background`,"properties.background",t=>n(t,e,"backgroundColor")??r??"transparent")}}}}),XF=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map(e=>({value:e+1,translation:e+1})),defaultValue:1}),JF="12px",ZF="Source Sans Pro, sans-serif",QF="600",ez=15e3,tz=4/3;let rz=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),nz=function(e){return e.Solid="solid",e.None="none",e}({});const iz={display:"flex",justifyContent:"center",alignItems:"center"},oz={borderStyle:"solid"},az={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},sz={lineHeight:tz,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},lz=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),uz=(e,t)=>e>0?`${e}px ${nz.Solid} ${t}`:nz.None,cz=(e,t,r,n,i)=>{const o=Number(!t||i?.right),a=Number(!e||i?.bottom);return{borderRight:"rtl"!==n?uz(o,r):nz.None,borderBottom:uz(a,r),borderLeft:"rtl"===n?uz(o,r):nz.None,borderTop:nz.None}},dz=(e,t,r,n,i,o,a)=>{const s=cz(t,n,i,o,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=uz(2,i)),r||(s.borderLeft="rtl"!==o?uz(1,i):"none",s.borderRight="rtl"===o?uz(1,i):"none")),s},pz=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=uz(1,r)),t&&(n.borderRight=uz(1,r)),n},fz=(e,t,r)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[r];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[r];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[r];default:return}},hz=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:YF({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:fz}),dimensionValueSection:YF({section:"dimensionValues",translator:e,flags:t,getThemeValue:fz}),measureValueSection:YF({section:"measureValues",translator:e,flags:t,getThemeValue:fz}),measureLabelSection:KF({section:"measureLabels",getThemeValue:fz}),totalValuesSection:KF({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:fz}),nullValuesSection:KF({section:"nullValues",fallbackBackground:rz.NullValueBackground,getThemeValue:fz}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:XF("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:XF("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:HF("grid.border","properties.border",e=>e.object?.pivotTableV2?.grid?.borderColor??rz.DividerLight),divider:HF("grid.divider","properties.pivot.divider",e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??rz.DividerDark),background:HF("grid.background","properties.background",e=>e.object?.pivotTableV2?.grid?.backgroundColor??rz.Transparent)}}}}}}]}),mz=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}}},gz=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[hz(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:ST.Auto,translation:"Common.Auto"},{value:ST.Pixels,translation:"Object.Table.Column.Pixels"},{value:ST.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:ST.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:xT.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===ST.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:xT.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===ST.Percentage}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some(e=>"TOTAL_EXPR"===e.qOtherTotalSpec?.qTotalMode)}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]},...mz(t)}}),vz="auto",yz={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:vz,translation:"Object.Table.SortingInSearch",options:[{value:vz,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function bz(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:$F(e),sorting:yz,addons:wF,settings:gz(t,r)}}}function xz(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:bz(e),importProperties:bF(e),exportProperties:xF,exploration:Oj(e),data:SF(e),propertyHandler:e.flags.isEnabled("VNA-147_NEBULA_PIVOT_DATA_HANDLERS")?t=>new Zj(t,e.translator):void 0}}const Sz=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function wz(e,t){return R(()=>e,t)}const Cz={},Ez=e=>{const t=R(()=>({current:Cz}),[]);return t.current=t.current===Cz?e:t.current,t},Iz=e=>!!e&&0===xN(e).a,Dz="#grid",Pz=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},Rz=(e,t,r,n,i)=>{const o=Pz(".qv-object .qv-inner-object",r),a=Pz(".qv-panel-sheet",r),s=Pz(Dz,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,i=t?.bgColor?.useColorExpression;if(i&&r)return tj(r);if("none"===n)return"transparent";if(void 0===n)return;const o=xN(n);return o.setAlpha(t?.bgColor?.color?.alpha??o.a),o.getRGBA()})(e),u=n?.(t),c=i?.(t),d=l||u||o||c,p=Iz(d),f=!Iz(h=p?s:d)&&Z_(h,aN.TEXT,aN.DARK_MODE_TEXT)===mN(aN.DARK_MODE_TEXT);var h;const m=((e,t,r,n=aN.WHITE)=>e&&!Iz(e)?e:Iz(t)?r&&!Iz(r)?r:n:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},Mz=(e,t,r,n)=>{const i=O(),o=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=A([]);return k(()=>{let r;return e&&(r=new MutationObserver(e=>{n(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(t.closest(Dz),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return R(()=>({...i,background:Rz(e,i,t,r,n)}),[i.name(),t,r,n,e,o])};function Lz(e,t){const r=R(()=>({isLoading:!0}),t),[n,i]=L(async()=>{try{return await e()}finally{r.isLoading=!1}},t);return[n,r.isLoading,i]}const Az=3,kz=/\n/g;function Oz(e,t,r){let n=0,i=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=i;){const o=Math.floor((n+i)/2),a=e.slice(0,o),s=e.slice(0,o-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(o-1)||null;if(l===t)return e.slice(o)||null;l<t?n=o+1:i=o}return null}function qz({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},i){const{maxNbrLinesOfText:o=Az,allowLineBreaks:a=!0}=i??{},{estimateWidth:s,measureText:l,estimateLineCount:u}=v(()=>(({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},i)=>{const{maxNbrLinesOfText:o=Az,allowLineBreaks:a=!0}=i??{};return()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${r} ${n} ${e} ${t}`;const s=i.measureText.bind(i),l=H_(e=>{if(void 0===e)return 0;if(a){const t=e.split(kz).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(kz," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=H_(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(kz):[e];let i=0;for(const e of n){let r=e;do{i+=1,r=Oz(r,t,u)}while(null!==r&&i<o);if(i>=o)break}return i},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}})({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:o,allowLineBreaks:a})(),[r,n,e,t,o,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var Tz,Nz=E;Tz=Nz.createRoot,Nz.hydrateRoot;const _z="Source Sans Pro, sans-serif";function jz(e,t){const[r,n]=m(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var Fz={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const zz=({translator:e})=>(v(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Fz).forEach(t=>{e.add(Fz[t])})}}(e)},[e]),e),Wz={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},$z={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Hz=fl("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...Wz},"&::-moz-range-track":{...Wz},"&::-ms-track":{...Wz},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...$z},"&::-moz-range-thumb":{...$z},"&::-ms-thumb":{...$z},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),Vz=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:i,updateWidthCallback:o,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=zz({translator:d.translator}),h=l({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,g=n&&!c,v=()=>g?h.current.columnWidth-m:"100%",y={left:"rtl"!==p?v():void 0,right:"rtl"===p?v():void 0},b=t=>{h.current={initWidth:e,columnWidth:e,initX:t??h.current.initX}};jz(()=>{g&&b()},[e]);const x=e=>{const t=Math.max(e,xT.PixelsMin);h.current.columnWidth=t,o(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:ST.Pixels,pixels:h.current.columnWidth};a(e)}u?.(!1)},w=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{rj(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},I=e=>{rj(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!n&&s?e=>{if(e.key===yT.Left||e.key===yT.Right){rj(e);const t=5,r=e.key===yT.Left?t:-t,n="rtl"===p?r:-r;u?.(!0),x(h.current.columnWidth+n)}else e.key===yT.Space||e.key===yT.Enter?(rj(e),s(e),u?.(!1),S()):e.key===yT.Esc&&(rj(e),s(e),u?.(!1),x(h.current.initWidth))}:void 0,P=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return io.jsx(Hz,{style:y,hoverColor:i,isLastColumn:r,className:bT,"data-testid":bT,onMouseDown:e=>{rj(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),u?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:ST.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(rj(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",I),u?.(!0),b(e.touches[0].clientX))},onKeyDown:D,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":xT.PixelsMin,"aria-valuemax":xT.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},Bz=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Gz=fl(Qu,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),Uz=fl(Bz,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Yz=fl(hp)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Kz=fl(Uc)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Xz=fl(bp)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Jz=fl(bp,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"})),Zz=fl("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),Qz=fl("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),eW=fl(mu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),tW=fl(Wd,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),rW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),nW=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?nW(t):t:e.parentElement?.children?.[0]},iW=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?iW(t):t},oW=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===yT.Down||t===yT.Up){const r=e=>t===yT.Down?nW(e):iW(e);e.preventDefault(),e.stopPropagation();let i=r(n);for(;i;){if("true"!==i.ariaDisabled){i.focus();break}i=r(i)}}},aW=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let sW={};const lW=({autoFocus:e,id:t,onClick:n,itemTitle:i,icon:o,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d})=>{const[p,h]=m(!1),g=r.useRef(null),v=f(e=>{e.stopPropagation(),h(!1)},[h]);return io.jsxs(io.Fragment,{children:[io.jsxs(Jz,{ref:s?g:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),sW={}),s?.length&&(h(!0),sW[i]=h,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!u,onKeyDown:oW,children:[u?io.jsx(Zz,{direction:c,isPagination:d}):null,io.jsxs(Qz,{children:[io.jsx(tW,{direction:c,isPagination:d,children:io.jsx(o,{})}),io.jsx(eW,{variant:"body2",children:i})]}),s?.length?io.jsx(rW,{}):null]},t),s?.length?io.jsx(pW,{isSubMenu:!0,open:p,anchorEl:g.current,onClose:v,menuGroups:aW(s,sW),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},uW=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&io.jsx(Xz,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>io.jsx(lW,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),cW=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((i,o)=>[uW({menuGroup:i,isSubMenu:t,direction:r,isPagination:n}),o<e.length-1?io.jsx(Kz,{"data-testid":"group-divider",variant:"middle"}):void 0]),dW={appear:0,enter:0,exit:0},pW=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:i,anchorOrigin:o,isSubMenu:a,direction:s,isPagination:l})=>n.length?io.jsx(Yz,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:dW,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...o?{anchorOrigin:o}:{},...i?{transformOrigin:i}:{},dir:s,children:cW({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,fW=(e,t)=>e.some(e=>t[e]>0),hW={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},mW=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[i,o]=m(null),[a,s]=m(hW);return jz(()=>{e||(s(hW),o(null))},[e]),d(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let i,a=!1;const l=()=>{i&&n.destroySessionObject(i)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};i=c.qInfo?.qId,a?l():(o(u),d&&s((e=>({canSelectAll:fW(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:fW(["qSelected"],e),canSelectPossible:fW(["qOption"],e),canSelectAlternative:fW(["qAlternative"],e),canSelectExcluded:fW(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:i,selectionActionsEnabledStatus:a}},gW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),vW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:io.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),yW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),bW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),xW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),SW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),wW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),CW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),EW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),IW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),DW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),PW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),RW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let MW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const LW="/qListObjectDef",AW=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:i,interactions:o,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[MW.Sorting]){const{isActivelySorted:r,sortDirection:o}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let i=!r&&!e||"D"===t,o=!r&&!e||"A"===t;return n&&(i=!1,o=!1),{ascendingEnabled:i,descendingEnabled:o}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"A")),n(!1)},icon:gW,enabled:a,isActive:!!r&&"A"===o,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"D")),n(!1)},icon:bW,enabled:s,isActive:!!r&&"D"===o,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:wW,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:dj,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&o?.select){const i=[];r[MW.Searching]&&i.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:CW,enabled:!0}]}]),!e.isLocked&&r[MW.Selections]&&i.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:RW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(LW))},icon:EW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(LW))},icon:PW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(LW))},icon:IW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(LW))},icon:DW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(LW))},icon:vW,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:SW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:xW,enabled:!0}]}]),i.length>0&&f.push(...i)}return r[MW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:yW,enabled:!0}]}]),f},kW=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:i,interactions:o,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:h,model:m,direction:g="ltr",isPagination:v,isAccessibleHeader:y,iconSize:b=mT})=>{const x=l(null),S=zz({translator:i}),{qLibraryId:w,fieldId:C,headTextAlign:E}=n,I=d?.app,{fieldInstance:D,selectionActionsEnabledStatus:P}=mW({open:e,headerData:n,app:I,qStateName:d?.qStateName}),R=(({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null})({model:m,headerData:n}),M=(({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:i,onPopoverClose:o})=>f(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===i?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:i,onPopoverClose:o})}},[e,t,r,n?.qStateName,i,o]))({qLibraryId:w,fieldId:C,searchRelatedArgs:c,selectionRelatedArgs:d,direction:g}),L=f(e=>{e.stopPropagation(),t(!1)},[t]),A=f(e=>{e.stopPropagation(),t(e=>!e)},[t]);return o.active?io.jsxs(Gz,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===y?A:void 0,ref:x,isAccessibleHeader:y,children:[s?io.jsx(Uz,{height:b,className:gT,"data-testid":gT,isInteractionsActive:o.active??!1,children:io.jsx(Bz,{})}):null,io.jsx(pW,{open:e,anchorEl:!1===y?x.current:r.current,onClose:L,menuGroups:AW({headerData:n,translator:S,menuAvailabilityFlags:a,setOpen:t,...u,embedListbox:M,interactions:o,fieldInstance:D,selectionActionsEnabledStatus:P,anchorRef:r,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:h}),direction:g,isPagination:v})]}):null},OW=e=>e.isDark?{background:e.color,borderColor:aN.DARK_MODE_BORDER,color:aN.DARK_MODE_TEXT,disabledColor:aN.DARK_MODE_DISABLED,iconColor:aN.DARK_MODE_TEXT}:{background:e.color,borderColor:aN.BORDER_MEDIUM,color:aN.TEXT,disabledColor:aN.DISABLED},qW=fl(Qu,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`})),TW=fl(Qp,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),NW=fl(uc,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),_W=fl(mu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),jW=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:i=!0})=>{const o=v(()=>OW(n.background),[n]);if(!r.active)return null;const a=i?io.jsx(qW,{footerStyle:o,children:e}):null;return t?E.createPortal(e,t):a},FW=u({}),zW=()=>h(FW),WW=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:i,isSelectionMode:o,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const y=(e=>!e.enabled||e.active)(c)?0:-1,b=v(()=>OW(p.background),[p]),x=i?i.getBoundingClientRect().width:h.width,S=zz({translator:d}),w=v(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:i,isSelectionMode:o,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:y,width:x,visibilityThreshold:g}),[t,r,n,i,o,a,s,l,u,c,S,p,f,h,m,b,y,x,g]);return io.jsx(FW.Provider,{value:w,children:e})};let $W=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),HW=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const VW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),BW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),GW=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),UW={FirstPage:BW,PreviousPage:VW,NextPage:rW,LastPage:GW,FirstPageRTL:GW,PreviousPageRTL:rW,NextPageRTL:VW,LastPageRTL:BW},YW=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:i,handleChangePage:o,translator:a,interactions:s,tabIndex:l}=zW(),u=r.concat("rtl"===n?"RTL":""),c=UW[u];return{styledProps:{footerStyle:i,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{o(t)}},IconComponent:c}},KW=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=zW(),i=0===e.page,{IconComponent:o,styledProps:a}=YW({type:$W.FirstPage,disabledCondition:i,pageNumber:0});return t<=(n?.firstPage||HW.FirstPage)?null:io.jsx(NW,{...a,disabled:!r.active,children:io.jsx(o,{height:mT})})},XW=(e,t,r=!1)=>{r&&e.key===yT.Tab&&!e.shiftKey&&(rj(e),((e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)})(e.target,t,!1))},JW=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:i,interactions:o,visibilityThreshold:a}=zW(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=YW({type:$W.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{XW(e,t,n)}:void 0;return i<=(a?.lastPage||HW.LastPage)?null:io.jsx(NW,{...u,onKeyDown:c,disabled:!o.active,children:io.jsx(l,{height:mT})})},ZW=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:i,interactions:o}=zW(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=YW({type:$W.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>HW.FirstPage&&i>HW.LastPage)&&t.enabled?e=>{XW(e,t,n)}:void 0;return io.jsx(NW,{...l,onKeyDown:u,disabled:!o.active,children:io.jsx(s,{height:mT})})},QW=()=>{const{pageInfo:e,interactions:t}=zW(),r=0===e.page,{IconComponent:n,styledProps:i}=YW({type:$W.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return io.jsx(NW,{...i,disabled:!t.active,children:io.jsx(n,{height:mT})})},e$=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:i}=zW(),{page:o,rowsPerPage:a}=r;if(t<=(i?.displayedRowsLabel||HW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*a+1} - ${Math.min((o+1)*a,n)}`,n.toString()]);return io.jsx(_W,{variant:"caption",dir:"ltr",children:s})},t$=({name:e,value:t,options:r,handleChange:n})=>{const{layout:i,footerStyle:o,translator:a,tabIndex:s,interactions:l}=zW(),u=i.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return io.jsxs(io.Fragment,{children:[io.jsxs(_W,{variant:"caption",id:p,children:[c,":"]}),io.jsx(TW,{footerStyle:o,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},r$=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:i,visibilityThreshold:o}=zW();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(o?.rowsPerPage||HW.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=io.jsx(io.Fragment,{children:e.rowsPerPageOptions.map(e=>io.jsx("option",{value:e,children:e},e))});return io.jsx(t$,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{i?.(+e.target.value)}})},n$=1e3,i$="…",o$=({totalPages:e,page:t})=>{const r=Math.min(e,n$),n=r<e&&t>500,i=n?Math.min(500+t,e):r,o=n?Math.max(0,i-n$):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+o;return io.jsx("option",{value:t,children:t+1},t)});return o>0&&a.unshift(io.jsx("option",{value:i$,disabled:!0,children:i$},"startMoreOptions")),i<e-1&&a.push(io.jsx("option",{value:i$,disabled:!0,children:i$},"endMoreOptions")),io.jsx(io.Fragment,{children:a})},a$=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:i}=zW(),{page:o}=e;if(t<=(i?.selectPage||HW.SelectPage))return null;const a=io.jsx(o$,{totalPages:r,page:o});return io.jsx(t$,{name:"SelectPage",value:o,options:a,handleChange:e=>{n(+e.target.value)}})};var s$=b(e=>io.jsxs(WW,{...e,children:[io.jsx(r$,{}),io.jsx(a$,{}),io.jsx(e$,{}),io.jsx(KW,{}),io.jsx(QW,{}),io.jsx(ZW,{}),io.jsx(JW,{})]}));const l$=e=>io.jsx(jW,{...e,children:io.jsx(s$,{...e})}),u$=u({}),c$=()=>h(u$),d$=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:i,children:o})=>{const a=v(()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:i}),[e,t,r,n,i]);return io.jsx(u$.Provider,{value:a,children:o})},p$=u({}),f$=()=>h(p$),h$=({app:e,model:t,theme:r,embed:n,keyboard:i,translator:o,interactions:a,env:s,children:l})=>{const u=v(()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:i,env:s,translator:o}),[e,a,t,n,r,i,s,o]);return io.jsx(p$.Provider,{value:u,children:l})},m$=u({}),g$=()=>h(m$),v$=({children:e,...t})=>io.jsx(m$.Provider,{value:t,children:e}),y$=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:i,height:o}=(()=>{const{theme:e,translator:t}=f$(),{layoutService:r}=g$(),n=e.getStyle("","","fontFamily")??ZF;return r.hasData?r.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:n,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:n,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:io.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:i,width:"100%",height:o},children:io.jsx("span",{style:{...sz,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},b$="/qHyperCubeDef",x$=-1,S$="PSEUDO-DIM",w$=e=>e===x$?S$:(({cId:e})=>e??Bj())(e),C$=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===x$?r.columnWidthLocation=LF.Measures:r.isLeftDimension?r.columnWidthLocation=LF.Dimension:t.at(-1)===x$?r.columnWidthLocation=LF.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=LF.Pivot))},E$=(e,t,r,n)=>{const i=w$(r),o=e.getDimensionInfoIndex(r),a=e.isLeftDimension(o);return r===x$?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:o,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:LF.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:r.qFallbackTitle??"",qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:r.qLocked??!1,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===ET.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:o,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:LF.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},I$=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let i=n;var o;r.length>0&&(i=(o=n).at(-1)===x$?o.slice(0,-1):o);const a=i.length+(r.length?1:0),s=Math.max(1,r.length),l=((e,t)=>Array(e).fill(null).map(()=>Array.from({length:t},()=>null)))(a,s);return r.forEach((r,n,i)=>{const o=n===i.length-1;l[a-1][n]=E$(e,t,r,o)}),i.forEach((r,n,i)=>{const o=n===i.length-1;l[n][s-1]=E$(e,t,r,o)}),l},D$=(e,t,r,n)=>{const i=((e,t,r,n)=>{let i;return i=0===r.length||r.includes(x$)?I$({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map((t,r)=>e.map(e=>e[r])))(I$({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&i[i.length-1].length>1&&(i[i.length-1]=[i.at(-1),...new Array(i[0]?i[0].length-1:0).fill(null)]),i.length&&i.at(-1)?.forEach((t,r)=>{Array.isArray(t)?t.forEach((t,r)=>{C$({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}):C$({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}),i})(e,t,r,n);return{data:i,size:{x:i[0]?.length??0,y:i.length}}};var P$={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,i="",o=!1;-1===r?n=e:(n=e.slice(0,r),i=e.slice(r+1),o=!0),t.push(function(e,t,r){return{key:M$(e),value:M$(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,i,o))}),t}},R$=P$;function M$(e){try{return decodeURIComponent(e)}catch{return e}}function L$(e){if(!(this instanceof L$))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>R$.fromSearchString(t.search)}})}function A$(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}L$.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},L$.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=A$(t.key),t.value?r+=`=${A$(t.value)}`:r+=t.useEqualSign?"=":"";return r};var k$=L$;var O$,q$=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},T$=class{decode(e){let t="";const r=new q$(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},N$=e=>e>=0&&e<=1114111,_$=e=>e.match(/[\s]/),j$=class extends T${decodeCharacter(e){e.mark();const t=e.next();let r,n,i;if(null==t||"\\"!==t)return e.reset(),null;const o=e.next();if(null==o)return e.reset(),null;switch(o){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(o,16))return o;for(r=o,n=0;n<5&&(i=e.next(),null!=i&&!_$(i));n++){if("NaN"===parseInt(i,16)){e.pushback(i);break}r+=i}const a=parseInt(r,16);return N$(a)?String.fromCharCode(a):"�"}},F$=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},z$=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let i,o;if(t.length===r)return o=this._value,this.setValue(n),o;const a=t.charAt(r);return this._nextMap?(i=this._nextMap[a],i||(i=new e,this._nextMap[a]=i)):(this._nextMap={},i=new e,this._nextMap[a]=i),i.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return F$.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return F$.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||F$.newInstanceIfNeeded(e,t,this._value)}},W$=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new z$);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},$$=(()=>{const e=[],t=[],r=new W$;let n,i,o;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(i in t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(o=t[i].toLowerCase().substr(1),r.put(o,String.fromCharCode(i)));return r})(),H$=class extends T${decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,i="";for(t=Math.min(e.remainder().length,$$.getMaxKeyLength()),n=0;n<t;n++)i+=e.next().toLowerCase();const o=$$.getLongestMatch(i);if(null==o)return null;for(e.reset(),e.next(),t=o.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),o.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&N$(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&N$(n)?String.fromCharCode(n):null}},V$=class extends T${decodeCharacter(e){e.mark();const t=e.next();let r,n,i,o;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)i=e.nextHex(),null!=i&&(r+=i);return 2===r.length&&(o=parseInt(r,16),N$(o))?String.fromCharCode(o):(e.reset(),null)}},B$=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,G$=5e6,U$=5e5,Y$=(e,t)=>{const{maxByteSizeSvg:r=U$,maxByteSizeImage:n=G$}=t??{},{mimeType:i,encoding:o,data:a}=(e=>{const[,t,r,n]=B$.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(i,o,a);return"image/svg+xml"===i?s<=r:s<=n};"undefined"!=typeof document&&(O$=document.createElement("div"));var K$=Array.prototype.indexOf,X$=[",",".","_"," "],J$=[",",".","-","_"," "],Z$={width:["%"],height:["%"]},Q$={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},eH={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Q$.image,"background-color":Q$.color,"border-color":Q$.color,"border-image":Q$.image,color:Q$.color,icon:Q$.image,"list-style-image":Q$.image,"outline-color":Q$.color},tH={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function rH(e,t,r){let n;if(t){if(K$)return K$.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function nH(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return O$.appendChild(r),t=O$.innerHTML,O$.removeChild(r),t}function iH(e,t,r){let n,i,o,a,s,l,u,c,d;for(e=aH(e).toLowerCase(),t=aH(t),o=0;o<tH.attr_name.length;o++)if(e.match(tH.attr_name[o]))throw new Error(`Unsafe attribute name used: ${e}`);for(o=0;o<tH.attr_val.length;o++)if(t.toLowerCase().match(tH.attr_val[o]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=Z$[e],n||(n=J$),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");i+=s}i+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&rH(u,n)<0?(d=c.toString(16),i+=`&#x${d};`):i+=u;return r||(i+='"'),i}function oH(e,t,r){let n,i,o,a,s,l,u,c,d,p;if(e=aH(e).toLowerCase(),t=aH(t),rH(e,tH.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<tH.css_val.length;n++)if(t.toLowerCase().indexOf(tH.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(i=eH[e],i||(i=Q$.default),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");o+=s}o+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&rH(u,i)<0?(d=c.toString(16),p="000000".substr(d.length),o+=`\\${p}${d}`):o+=u;return o}function aH(e,t){let r,n,i,o,a=!1;if(null===e)return null;r=e,n=e,i=0;const s=[new H$,new V$,new j$];for(;!a;){n=r;for(let e=0;e<s.length;e++)o=s[e].decode(r),o!==r&&(i++,r=o);n!==r||(a=!0)}if(t&&i>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var sH=[];for(let e=0;e<255;e++)sH[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var lH={html:e=>nH(e.unsafe),css(e){let t,r=[];const n=[],i={};let o="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=oH(t,r[t],!0),o+=oH(t,r[t],!0),i[t]=n[t]);return e.map?i:o},attr(e){let t=[];const r=[],n={};let i="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=iH(e,t[e],!0),i+=iH(e,t[e],!0),n[e]=r[e]);return e.map?n:i}};function uH(e,t){throw new Error(t)}var cH={canonicalize:aH,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let i=1;const o=arguments.length;for(;i<o;i++)if(null!=(e=arguments[i]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?lH.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&uH(this,"Invalid parameter type"),lH.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&uH(this,"Invalid parameter type"),lH.attr(e)):void uH(this,"Invalid parameter type")},encodeForAttr:iH,encodeForAttr2:function(e){return iH("nonsens",e,!0)},encodeForCSS:oH,encodeForHref:function(e){aH(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new k$(e),r=k$.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+k$.encodeSearchParams(n)+t.hash;const i=decodeURI(e).toLowerCase();if(-1!==i.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==i.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,i,o,a,s;for(t||(t=X$),s="",r=0;r<e.length;r++)i=e.charAt(r),o=e.charCodeAt(r),rH(i,t)>=0||null==sH[o]?s+=i:(n=o.toString(16),o<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:nH,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=aH(t).toLowerCase():uH(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:Y$,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const dH=(e,t)=>t.qAttrExps?.qValues?.[e],pH=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},fH=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:i,imageBox:o,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!cH.isSafeDataURL(t))?{type:CF.Text,url:void 0,text:e,labelStructure:i}:{type:CF.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:pH(n,a),labelStructure:i,imageBox:o},hH=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:CF.Text,text:n};const{minY:i,maxY:o}=((e,t,r)=>{const n="global"===t.yAxis?.scale,i="zeroCenter"===t.yAxis?.position,o=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(i){const e=Math.max(Math.abs(o),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,o),maxY:Math.max(0,a)}:{minY:o,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:i,maxY:o,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:CF.MiniChart,text:n,miniChart:a}},mH=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=n?.qValues?.[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return r?.urlPosition===EF.Attribute?void 0:r?.urlLabel},gH=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:CF.Link,url:cH.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:CF.Text,url:void 0,text:t,labelStructure:e}}},vH=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:i,miniChartOnMeasure:o,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=IF(t),d=s(e);return c===CF.Image&&u[CF.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,i,o)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=dH(r.imageUrl??-1,e)?.qText;return o&&(o.maskedValue=t??""),fH({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i})}if("label"===l){const t=o?o.originalValue:n;if(-1===r.imageLabel)return fH({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i});const l=dH(r.imageLabel??-1,e)?.qText??n;return fH({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i})}return{type:CF.Text,url:void 0,labelStructure:o,text:n}})(e,t,r,d,l,a):c===CF.Link?((e,t,r,n,i)=>{const{urlPosition:o}=t??{};if(o===EF.Attribute){const o=mH(r.url??-1,e,t);return gH({labelStructure:n,text:i||o||"",url:o})}if(o===EF.Dimension){const o=mH(r.urlLabel??-1,e,t)||i;return n&&(n.maskedValue=o),gH({text:o,labelStructure:n,url:n?.originalValue??i})}return{type:CF.Text,url:void 0,text:i,labelStructure:n}})(e,t,r,a,d):c===CF.Indicator&&u[CF.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:CF.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,i,d):c===CF.MiniChart&&u[CF.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?hH(e,t,o,d):{type:CF.Text,url:void 0,text:d,labelStructure:a}},yH=(e,t)=>{const r=t.qAttrExps,n=r?.qValues?.[e?.cellForegroundColor??-1]?.qText,i=r?.qValues?.[e?.cellBackgroundColor??-1]?.qText,o=i?tj(i):null,a=n?tj(n):null,s=((e,t)=>e||!t?null:Z_(t))(a,o);return{color:s??a,background:o}},bH=(e,t)=>t.qSubNodes.reduce((e,t)=>0===t.qSubNodes.length?e+1:bH(e,t),e),xH=(e,t,r,n,i,o)=>{const a=i?o.rowsPerPage-r:ez-n;let s=e.qUp+e.qDown;if(i&&0===r){const r=(t+e.qUp)%o.rowsPerPage;s=e.qDown+r}return Math.min(a,bH(s,e))},SH=({node:e,parent:t,root:r,x:n,y:i,pageY:o,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,labelStructure:p,env:f,pageInfo:h,direction:m="ltr"})=>{const g=(!c||!u)&&"P"===e.qType,v=((e,t)=>{if(e!==x$){if(t){const t=IF(e.representation);return t===CF.Link||t===CF.Image?e.representation:{type:CF.Text}}return e.representation}})(s,c),y=(({node:e,isLeftColumn:t,isIndentModeEnabled:r,labelStructure:n,representationType:i,parentOrRootOriginalValue:o})=>{let a=e.qText;if(t&&r&&n){const{originalValue:t,delimeter:r,suffix:s}=n;a=i===CF.Link?"P"===e.qType?o:t:`${t} ${!s||!t&&s?"":r} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:IF(v),parentOrRootOriginalValue:(t||r)?.representation?.labelStructure?.originalValue??""}),b=vH({cell:{...e,qText:y},representationProperties:v,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[CF.Image]:!0,[CF.Indicator]:!0}}),x={id:Bj(),ref:e,x:n,y:i,pageX:n,pageY:o,mainAxisPageCoord:u?o:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:xH(e,i,o,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof s||!s.qLocked),isTotal:"T"===e.qType||!!t?.isTotal,isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:yH(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:t?.visibleMeasureInfoIndex,representation:b,...void 0!==d&&{indentLevel:d}};return t&&(t.children[x.mainAxisPageCoord-t.mainAxisPageCoord]=x),x},wH=(e,t,r,n,i,o,a,s,l)=>{const{isIndentModeEnabled:u}=i;if(!t.length)return e;let c=0;return function t(d,p,f,h=0,m=-1){e[h]||(e[h]={}),u&&m++;const g=i.leftDimensionInfoIndexes.indexOf(x$);f.forEach((f,v)=>{const y={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===v?0:1;const b=r.qTop-n.page*n.rowsPerPage,x=Math.max(0,b+c-f.qUp),S=r.qTop+c-f.qUp;if(u){if(i.hasPseudoDimOnLeft&&m<=g)if(y.originalValue=f.qText??"",y.maskedValue=f.qText??"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(y.originalValue=i.getNullValueText()),m<g&&(y.suffix=i.visibleMeasureInfo[0].qFallbackTitle??"");else if("P"===f.qType){y.originalValue=(p||d)?.representation.labelStructure?.originalValue??"",y.maskedValue=(p||d)?.representation.labelStructure?.originalValue??"",y.suffix=f.qText??"";const e=f.qSubNodes;f={...(p||d)?.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},m=(p||d)?.indentLevel??0}"U"===f.qType&&(y.originalValue=i.getNullValueText())}let w=h;u&&(w=g>=1&&m>=g?m+1:m,0===m&&0===g&&0===f.qSubNodes.length&&(w=0));const C=e.at(h)?.[x],E=u&&void 0===C?.ref.qText||!C?SH({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:i,dimensionInfo:o[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:n,labelStructure:y,direction:l}):e[h][x];if(e[h][x]=E,f.qSubNodes.length){const e=u?0:h+1;t(d||E,E,f.qSubNodes,e,m)}})}(null,null,t,0,-1),e},CH=(e,t)=>{e.slice(0,-1).forEach(e=>{Object.values(e).forEach((e,r,n)=>{const i=n.at(r+1);e.distanceToNextCell=i?i.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)})})},EH=(e,t)=>{const r=e[0],n=r?Object.values(r):[],i=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,o=r?.[i],a=n.at(-1);return o?.isTotal?o.isLeafNode?o.mainAxisPageCoord:o.mainAxisPageCoord+o.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},IH=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:i,attrExprInfoIndexes:o,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=wH(e.grid,l,u,r,n,i,o,a,s);CH(c,r.rowsOnCurrentPage);const d=EH(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},DH=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const i=[...t];return r.forEach((t,r)=>{t.forEach((t,o)=>{const a=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+o;Array.isArray(i[a])||(i[a]=[]);const l="U"===t.qType;i[a][s]=i[a][s]??{id:Bj(),ref:t,isNull:l}})}),i},PH=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:i}=t;return n?.length?DH({qArea:i,prevData:e,pivotValuePoints:n,pageInfo:r}):e},RH=(e,t,r,n,i,o,a,s,l,u)=>{const{isIndentModeEnabled:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,h=0){e[h]||(e[h]={}),f.forEach((f,m)=>{d+=0===m?0:1;const g=r.qLeft+d-f.qUp,v=e[h][g]??SH({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:n,dimensionInfo:i[h],attrExprInfoIndex:o[h],isLeftColumn:!1,...c&&{isIndentModeEnabled:c},env:s,pageInfo:l,direction:u});e[h][g]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,h+1)})}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},MH=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:i,headerRows:o,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=RH(e.grid,u,c,r,n,i,o,a,s,l);CH(d,r.size.x);const p=EH(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},LH=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),AH=(e,t)=>{const{env:r}=f$(),{direction:n}=c$(),{layoutService:i,effectivePropertiesService:o}=g$(),{qPivotDataPages:a,pageInfo:s}=c$(),[l,u]=m(null),c=((e,t,r)=>v(()=>({left:e.map(LH),top:t.map(LH),measures:r.map(LH)}),[r,e,t]))(e,t,i.visibleMeasureInfo),d=v(()=>D$(i,o,t,e),[i,o,t,e]),p=f(()=>a.slice(1).reduce((e,t)=>PH({prevData:e,dataPage:t,pageInfo:s}),((e,t)=>{const{qData:r,qArea:n}=e;return DH({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],s)),[a,s]),h=f(()=>a.slice(1).reduce((e,o)=>MH({prevData:e,nextDataPage:o,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n}),((e,t,r,n,i,o,a,s)=>{const{qArea:l,qTop:u}=e,c=RH([],u,l,t,r,n,i,o,a,s);CH(c,t.size.x);const d=EH(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],i,t,c.top,d.size.y,r,s,n)),[a,i,t,c.top,d.size.y,r,s,n]),g=f(()=>a.slice(1).reduce((t,o)=>IH({prevData:t,nextDataPage:o,pageInfo:s,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n}),((e,t,r,n,i,o,a)=>{const{qArea:s,qLeft:l}=e,u=wH([],l,s,r,t,n,i,o,a);CH(u,r.rowsOnCurrentPage);const c=EH(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],i,s,e,c.left,r,n)),[a,i,s,e,c,r,n]),[y,b]=m(()=>p()),[x,S]=m(()=>h()),[w,C]=m(()=>g());jz(()=>{b(p())},[p]),jz(()=>{S(h())},[h]),jz(()=>{C(g())},[g]),jz(()=>{l&&l.forEach(o=>{b(e=>PH({prevData:e,dataPage:o,pageInfo:s})),S(e=>MH({prevData:e,nextDataPage:o,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n})),C(t=>IH({prevData:t,nextDataPage:o,pageInfo:s,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n}))})},[l]);const E=f(e=>{u(e)},[]);return{headersData:d,measureData:y,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},kH=Math.sqrt(1e4),OH=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/xT.PixelsMin)}),qH=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/kH),n=Math.ceil(e.qHeight/kH);for(let i=0;i<r;i++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+i*kH,qTop:e.qTop+r*kH,qWidth:Math.min(kH,e.qWidth-i*kH),qHeight:Math.min(kH,e.qHeight-r*kH)});return t};function TH({nextPageHandler:e}){const{model:t}=f$(),{pageInfo:r}=c$(),{layoutService:n}=g$(),i=(e=>{const t=l(e);return t.current=e,t})(r.page),o=t,a=f(async(e,t)=>{await(o?.collapseLeft(b$,e,t,!1))},[o]),s=f(async(e,t)=>{await(o?.collapseTop(b$,e,t,!1))},[o]),u=f(async(e,t)=>{await(o?.expandLeft(b$,e,t,!1))},[o]),c=f(async(e,t)=>{await(o?.expandTop(b$,e,t,!1))},[o]),d=f(async t=>{if(o?.getHyperCubePivotData&&0!==t.length)try{const n=await o.getHyperCubePivotData(b$,t.reduce((e,t)=>[...e,...qH(t)],[]));i.current===r.page&&e(n)}catch(e){console.error(e)}},[o,e,r,i]),p=f((e,{dimensionInfoIndex:r,isLeftColumn:i,x:o=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case LF.Dimension:c=[{qPath:`${b$}/qDimensions/${r}/qDef/columnWidth`,oldValue:l[r].columnWidth}];break;case LF.Measures:if(i)c=s.map((e,t)=>({qPath:`${b$}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth}));else{const e=n.getMeasureInfoIndexFromCellIndex(o);c=[{qPath:`${b$}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case LF.Pivot:c=[{qPath:`${b$}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map(t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}});t?.applyPatches(d,!0)},[t,n]),h=f(async e=>{await(o?.applyPatches([{qPath:`${b$}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))},[o,n]);return v(()=>({collapseLeft:a,collapseTop:s,expandLeft:u,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:h,fetchPages:d}),[a,s,u,c,p,h,d])}const NH=(e,t,r)=>(n,i)=>{if("P"===n)return x$;const o=t[r+i];return e[o]},_H=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach(e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)})};return r(e),t},jH=u({}),FH=()=>h(jH),zH=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=g$(),{qPivotDataPages:n}=c$();return v(()=>{const i=_H(n[0]?.qLeft??[]),o=_H(n[0]?.qTop??[]);return{visibleLeftDimensionInfo:i.map(NH(r,t,0)),visibleTopDimensionInfo:o.map(NH(r,t,e))}},[r,t,e,n])})(),{headersData:n,measureData:i,topDimensionData:o,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=AH(t,r),u=TH({nextPageHandler:l}),c=v(()=>({gridSectionsData:{headersData:n,topDimensionData:o,leftDimensionData:a,measureData:i},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:s,dataModel:u}),[t,r,n,i,o,a,s,u]);return io.jsx(jH.Provider,{value:c,children:e})},WH=20,$H=18,HH=.75,VH=e=>-1!==e&&e?.representation?.type===CF.Image,BH=({isLeftColumn:e,layoutService:t,representation:r})=>Boolean(e)&&t.isIndentModeEnabled&&r.type===CF.Image,GH=e=>void 0===e?QF:e,UH=(e,t)=>{if(void 0!==e&&!Number.isNaN(+e)){const r=+e;return r>=0?r:t}return t},YH=e=>UH(e,xT.PixelsDefault),KH=(e,t)=>UH(e,xT.PercentageDefault)*t/100,XH=(e,t,r)=>{switch(t?.type){case ST.Pixels:return YH(t.pixels);case ST.Percentage:return KH(t.percentage,e);case ST.FitToContent:case ST.Auto:default:return r}},JH=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:i,measureTextForHeader:o,longestMeasureValuePossible:a})=>e.reduce((e,s,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u,qDimensionInfo:c}}}=t,{id:d,colIdx:p,qApprMaxGlyphCount:f,isLeftDimension:h}=s,m=c.find(e=>e.cId===d),g={width:24,...m?.representation?.imageBox};if(!h)return e+0;if(d===S$)return e+0;const v=BH({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:CF.Text}})?g.width+8+4:n(f),y=!r.qAlwaysFullyExpanded&&p<u-1?21:0;let b=0;if(i&&o&&a){b=o("- ")+a}return Math.max(e,24*l+$H+y+v+b)},0),ZH=(e,t,r)=>e.reduce((e,n)=>{const i=(r?0:1)*$H;return Math.max(e,i+t(n.qFallbackTitle??""))},0),QH=(e,t,r,n)=>{const i=100*e/t,o=n*HH*(i/100),a=i/100*+r;return Math.min(a,o)},eV=(e,t,r,n)=>n*(+r/100)*(100*e/t/100),tV=(e,t)=>e.some(e=>e>=t*HH),rV=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:i,widthOverride:o,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=i*HH,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),h=Math.min(d,JH({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,ZH(e.visibleMeasureInfo,a));let g=0;const v=p.findIndex(e=>e.id===S$),y=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:i}=e.indentModeColumnWidth;return i===ST.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+$H+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===v){const e=Math.max(f,h,m);c=[Math.max(y,e-f),f]}else{const r=Math.min(d,ZH(e.visibleMeasureInfo,l,!0));g=Math.min(d,JH({headers:p.slice(0,v),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,h,g);c=[Math.max(y,n-f),f]}else c=[Math.max(y,h-f),f];const b=Math.min(d,c.reduce((e,t)=>e+t,0)),{indentModeColumnWidth:x}=e;o&&o<=d&&(x.type=ST.Pixels,x.pixels=o);return[ST.Pixels,ST.Percentage].includes(x.type)||tV(c,i)?((e,t,r,n)=>{let i=e[0],o=e[1],a=[];const s=e.reduce((e,t)=>e+t,0),{type:l,pixels:u,percentage:c}=t,d=UH(u,xT.PixelsDefault),p=UH(c,xT.PercentageDefault),f=tV(e,r);l===ST.Auto&&f&&(i>o?i-=o:o-=i),l===ST.Pixels&&d&&(i=QH(e[0],s,d,r),o=QH(e[1],s,d,r)),l===ST.Percentage&&p&&(i=eV(e[0],s,p,r),o=eV(e[1],s,p,r));let h=0;o<=n&&(h=i-5,h>0&&(i-=h,o+=h)),h=o-n,h>0&&(i+=h,o-=h),a=[i,o];const m=a.reduce((e,t)=>e+t,0);return{leftGridColumnWidths:a,leftGridWidth:m,leftGridFullWidth:m}})(c,x,i,f):{leftGridWidth:b,leftGridColumnWidths:c,leftGridFullWidth:b}};function nV({tableWidth:e}){const t=e*HH,{styleService:r,layoutService:n,effectivePropertiesService:i}=g$(),{translator:o}=f$(),{gridSectionsData:{headersData:a}}=FH(),{measureText:s}=qz(r.header,{allowLineBreaks:!1}),{estimateWidth:l,measureText:u}=qz({...r.dimensionValues,fontWeight:GH(r.dimensionValues.fontWeight)}),{measureText:c}=qz({...r.dimensionValues,...r.measureLabels}),d=f((r,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=n,v=(t=0)=>h.reduce((r,{qFallbackTitle:n,columnWidth:i})=>{const o=c(n)+$H,a=Math.max(o,t);return Math.max(r,m?a:XH(e,i,a))},0),y=e=>a.data.reduce((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===S$)return t;const i=(e=>{const{label:t,isLocked:r}=e,n=r?WH:0;return $H+s(t)+WH+n})(n);return Math.max(i,t)},0);let b=0,x=a.data.at(-1);m&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map((o,s)=>{let u=$H;if(m&&1!==a.size.x||!r||void 0===d||d!==o.colIdx){let t;o.columnWidthLocation===LF.Pivot?t=m?void 0:f:o.columnWidthLocation===LF.Dimension&&({columnWidth:t}=o);let r=0;if(o.isLeftDimension)if(o.id===S$)r=v();else{const e=y(s),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:a}=e,s=n.getDimensionInfo(a);if(VH(s))return xT.PixelsDefault;const u=!i.qAlwaysFullyExpanded&&o&&t<p-1?21:0;return $H+l(r)+u})(o,s);r=Math.max(e,t),m&&!g&&s+1===p&&o.columnWidthLocation===LF.Dimension&&a.size.x>1&&(r=e)}else r=y(s),o.columnWidthLocation===LF.Measures&&(r=v(r));m&&1===a.size.x&&(t=n.indentModeColumnWidth),u=m&&!g&&a.size.x>1?r:XH(e,t,r)}else u=m?Math.min(t,r):r;return b+=u,u});return m&&a.size.x>1?rV({layoutService:n,effectivePropertiesService:i,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:o}):{leftGridWidth:Math.min(t,b),leftGridColumnWidths:S,leftGridFullWidth:b}},[e,a,n,t,s,c,l,u,o,i]),[p,h]=m(d);jz(()=>{h(d())},[d]);const g=f((e,t)=>{h(d(e,t))},[d]);return{...p,overrideLeftGridWidth:g}}function iV({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:i}=g$(),{visibleDimensionsInfo:{visibleTopDimensionInfo:o}}=FH(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=i,{estimateWidth:c,measureText:d}=qz(n.measureValues,{allowLineBreaks:!1}),{estimateWidth:p}=qz({...n.dimensionValues,fontWeight:GH(n.dimensionValues.fontWeight)},{allowLineBreaks:!1}),h=e-r-1,m=o.at(-1),g=m===x$,y=s.length-a>o.length?21:0,b=v(()=>{const e=g?u:[m],t=l.x/e.length,r=[],n=[];let i=h;const o=(e,n)=>{r[e]=Math.min(xT.PixelsMax,Math.max(xT.PixelsMin,n)),i-=r[e]*t};if(e.forEach((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:r,pixels:i,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(r){case ST.Pixels:o(t,YH(i));break;case ST.Percentage:o(t,KH(a,h));break;case ST.FitToContent:o(t,((e,t,r)=>r?xT.PixelsDefault:$H+(g?Math.max(c(e),d(t)):Math.max(Math.max(...u.map(e=>c(e.qApprMaxGlyphCount))),p(e)+y)))(s,l??"",VH(e)));break;case ST.Auto:default:n.push(t)}}else n.push(t)}),n.length){const e=n.length*t,o=i/e;n.forEach(e=>{r[e]=Math.max(xT.AutoMinPivot,o)})}return r},[g,u,m,l.x,h,c,d,p,y]),x=v(()=>{if(g){return u.reduce((e,t,r)=>e+b[r],0)/u.length}return b[0]},[g,b,u]),S=parseFloat((t/i.size.x).toFixed(12)),w=f(e=>(g&&void 0!==e?b[i.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S,[g,b,i,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:w}}const oV=`scrollable-container--${kF.TopGrid}`,aV=`scrollable-container--${kF.LeftGrid}`,sV=`scrollable-container--${kF.DataGrid}`,lV=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},uV=(e,t)=>e>t?OF.Forward:e<t?OF.Backward:OF.None,cV=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:i,trackScrollDirection:o,interactions:a})=>{const{direction:s}=c$();d(()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=n(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,o(e),i?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,o(e),i?.(e)},h=n=>{const a=n.target,l=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:i}=e,o=r-n;if("rtl"===t){if(i>o)return o;if(i<0)return Math.abs(i)}return i})(a,s);r.current?.scrollTo({scrollLeft:l,scrollTop:a.scrollTop}),u.scrollLeft=l,e.current?.forEach(e=>{e?.scrollTo(l)}),c.scrollTop=d.scrollTop,t.current?.forEach(e=>{e?.scrollTo(a.scrollTop)}),o(n),i?.(n)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",h),a.scroll||setTimeout(()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)},0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}},[o,i,a,e,t,r,n,s])},dV=()=>{const{interactions:e}=f$(),t=l(null),r=l(null),n=l(null),i=l(null),o=l([]),a=l([]),s=l(null),{scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:p}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,i]=m(0),[o,a]=m(0);return g(()=>{if(e.current||r.current){const t=Math.max(lV(e.current).width,lV(r.current).width);n!==t&&i(t)}}),g(()=>{if(t.current||r.current){const e=Math.max(lV(t.current).height,lV(r.current).height);o!==e&&a(e)}}),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:o},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:i});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:i,leftGridRef:o,dataGridRef:a}})=>{const{pageInfo:s}=c$(),{downloadService:l,viewService:u,layoutService:c}=g$(),d=f(()=>{const i={left:0,top:0};e.current?.scrollTo(i),t.current?.scrollTo(i),r.current?.scrollTo(i),n.current?.scrollTo(i)},[e,t,r,n]);g(()=>{d()},[s.page,d]),g(()=>{c.triggerdByExpandOrCollapse||d()},[c,d]),g(()=>{if(c.triggerdByExpandOrCollapse){const e=n.current?.scrollLeft??0,t=n.current?.scrollTop??0;o.current?.forEach(e=>{e?.scrollTo(t)}),i.current?.forEach(t=>{t?.scrollTo(e)}),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}},[c,n,a,o,i]),g(()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)},[u,l,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:i},gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:v,horizontalScrollDirection:y}}=(()=>{const e=l(OF.None),t=l(OF.None),r=l({prevScrollTop:0,prevScrollLeft:0}),n=f(n=>{if(n instanceof WheelEvent&&(e.current=uV(n.deltaY,0),t.current=uV(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const i=n.target;e.current=uV(i.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=i.scrollTop,t.current=uV(i.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=i.scrollLeft}},[e,t,r]);return{trackScrollDirection:n,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),b=(()=>{const{viewService:e}=g$();return f(t=>{const r=t.target,n=t.currentTarget,i=r.dataset.key;i===aV&&(e.leftGridScrollLeft=n.scrollLeft),i===sV&&(e.scrollLeft=n.scrollLeft),i===oV&&(e.topGridScrollTop=n.scrollTop),i!==aV&&i!==sV||(e.scrollTop=n.scrollTop)},[e])})(),x={gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s},getWrapperElements:f(()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:i.current}),[t,r,n,i]),updateViewService:b,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:i,trackScrollDirection:o,interactions:a})=>{d(()=>{const{headerGridWrapperElement:i,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=n(),c=e=>{e.ctrlKey||(e.preventDefault(),i.scrollLeft+=e.deltaX,i.scrollTop+=e.deltaY,l.scrollLeft=i.scrollLeft,s.scrollTop=i.scrollTop,o(e))},d=e=>{e.ctrlKey||(e.preventDefault(),l.scrollTop+=e.deltaY,t.current?.forEach(e=>{e?.scrollTo(l.scrollTop)}),i.scrollLeft+=e.deltaX,l.scrollLeft=i.scrollLeft,u.scrollTop=l.scrollTop,r.current?.scrollTo({scrollTop:l.scrollTop}),o(e))},p=t=>{t.ctrlKey||(t.preventDefault(),s.scrollLeft+=t.deltaX,e.current?.forEach(e=>{e?.scrollTo(s.scrollLeft)}),i.scrollTop+=t.deltaY,s.scrollTop=i.scrollTop,u.scrollLeft=s.scrollLeft,r.current?.scrollTo({scrollLeft:s.scrollLeft}),o(t))},f=n=>{n.ctrlKey||(n.preventDefault(),u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,r.current?.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),s.scrollLeft=u.scrollLeft,e.current?.forEach(e=>{e?.scrollTo(u.scrollLeft)}),l.scrollTop=u.scrollTop,t.current?.forEach(e=>{e?.scrollTo(u.scrollTop)}),o(n))};return i.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout(()=>{i.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)},0),()=>{i.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}},[o,i,a,e,t,r,n])})(x),cV(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:i},gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:v,horizontalScrollDirection:y},scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:p}}},pV=()=>{const{layoutService:e}=g$(),{rect:t,pageInfo:r}=c$();return v(()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}},[t,e,r.shouldShowPagination])},fV=({children:e,style:t})=>io.jsx("div",{"data-testid":"fullSize",style:t,children:e}),hV=({children:e,style:t})=>{const{direction:r}=c$();return io.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},mV=e=>e&&`scrollable-container--${e}`,gV=({children:e,style:t,origin:r},n)=>{const{interactions:i}=f$(),o=i.scroll?t:{overflow:"hidden"};return io.jsx("div",{"data-testid":"scrollable","data-key":mV(r),style:o,ref:n,children:e})};var vV=r.forwardRef(gV);const yV=({children:e,style:t})=>{const{direction:r}=c$();return io.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};var bV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xV(e,t){return e===t||!(!bV(e)||!bV(t))}function SV(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!xV(e[r],t[r]))return!1;return!0}function wV(e,t){var r;void 0===t&&(t=SV);var n,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&r===this&&t(a,i)||(n=e.apply(this,a),o=!0,r=this,i=a),n}}var CV="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function EV(e){cancelAnimationFrame(e.id)}function IV(e,t){var r=CV();var n={id:requestAnimationFrame(function i(){CV()-r>=t?e.call(null):n.id=requestAnimationFrame(i)})};return n}var DV=-1;function PV(e){if(void 0===e&&(e=!1),-1===DV||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),DV=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return DV}var RV=null;function MV(e){if(void 0===e&&(e=!1),null===RV||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?RV="positive-descending":(t.scrollLeft=1,RV=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),RV}return RV}var LV=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function AV(e){var t,r=e.getColumnOffset,i=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,ql(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:ql(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=wV(function(e,t,r,i,o,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=wV(function(e,t,r,i,o){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var i,o=n.props,s=o.columnWidth,l=o.direction,u=o.rowHeight,c=n._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))i=c[f];else{var h=r(n.props,t,n._instanceProps),m="rtl"===l;c[f]=i={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return i},n._getItemStyleCache=void 0,n._getItemStyleCache=wV(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=n.props.direction,u=o;if("rtl"===t)switch(MV()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<o?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&EV(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=IV(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}El(t,e),t.getDerivedStateFromProps=function(e,t){return kV(e,t),v(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,i=e.rowIndex,o=this.props,a=o.columnCount,d=o.height,p=o.rowCount,f=o.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=PV();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==i&&(i=Math.max(0,Math.min(i,p-1)));var y=s(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>f?v:0,x=y>d?v:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==i?c(this.props,i,r,g,this._instanceProps,b):g})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(MV()){case"negative":i.scrollLeft=-r;break;case"positive-ascending":i.scrollLeft=r;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-r}else i.scrollLeft=Math.max(0,r);i.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&EV(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,r=e.className,i=e.columnCount,o=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?LV:f,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,y=e.style,b=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],I=this._getVerticalRangeToRender(),D=I[0],P=I[1],R=[];if(i>0&&v)for(var M=D;M<=P;M++)for(var L=C;L<=E;L++)R.push(n(t,{columnIndex:L,data:p,isScrolling:b?S:void 0,key:h({columnIndex:L,data:p,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,L)}));var A=s(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return n(m||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:ke({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},n(c||d||"div",{children:R,ref:u,style:{height:A,pointerEvents:S?"none":void 0,width:k}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,i=e.rowCount;if("function"==typeof r&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,y,g,x,b)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,n=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||n||a||1;if(0===t||0===s)return[0,0,0,0];var f=i(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||i||r||1;if(0===t||0===o)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=h(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(o-1,p+g)),d,p]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var kV=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},OV=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,i=t.estimatedRowHeight,o=t.lastMeasuredRowIndex,a=0;if(o>=r&&(o=r-1),o>=0){var s=n[o];a=s.offset+s.size}return a+(r-o-1)*i},qV=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,i=t.estimatedColumnWidth,o=t.lastMeasuredColumnIndex,a=0;if(o>=r&&(o=r-1),o>=0){var s=n[o];a=s.offset+s.size}return a+(r-o-1)*i},TV=function(e,t,r,n){var i,o,a;if("column"===e?(i=n.columnMetadataMap,o=t.columnWidth,a=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=i[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=o(u);i[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return i[r]},NV=function(e,t,r,n){var i,o;return"column"===e?(i=r.columnMetadataMap,o=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,o=r.lastMeasuredRowIndex),(o>0?i[o].offset:0)>=n?_V(e,t,r,o,0,n):jV(e,t,r,Math.max(0,o),n)},_V=function(e,t,r,n,i,o){for(;i<=n;){var a=i+Math.floor((n-i)/2),s=TV(e,t,a,r).offset;if(s===o)return a;s<o?i=a+1:s>o&&(n=a-1)}return i>0?i-1:0},jV=function(e,t,r,n,i){for(var o="column"===e?t.columnCount:t.rowCount,a=1;n<o&&TV(e,t,n,r).offset<i;)n+=a,a*=2;return _V(e,t,r,Math.min(n,o-1),Math.floor(n/2),i)},FV=function(e,t,r,n,i,o,a){var s="column"===e?t.width:t.height,l=TV(e,t,r,o),u="column"===e?qV(t,o):OV(t,o),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=i>=d-s&&i<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return i>=d&&i<=c?i:d>c||i<d?d:c}},zV=AV({getColumnOffset:function(e,t,r){return TV("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return NV("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var i=e.columnCount,o=e.width,a=TV("column",e,t,n),s=r+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=TV("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:OV,getEstimatedTotalWidth:qV,getOffsetForColumnAndAlignment:function(e,t,r,n,i,o){return FV("column",e,t,r,n,i,o)},getOffsetForRowAndAlignment:function(e,t,r,n,i,o){return FV("row",e,t,r,n,i,o)},getRowOffset:function(e,t,r){return TV("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return NV("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var i=e.rowCount,o=e.height,a=TV("row",e,t,n),s=r+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=TV("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,i=e.rowIndex,o=e.shouldForceUpdate,a=void 0===o||o;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof i&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,i-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),WV=function(e,t){return e};function $V(e){var t,r=e.getItemOffset,i=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,ql(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:ql(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=wV(function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})}),n._callOnScroll=void 0,n._callOnScroll=wV(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=wV(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===i)return null;var t=n.props.direction,a=i;if("rtl"===t)switch(MV()){case"negative":a=-i;break;case"positive-descending":a=o-r-i}return a=Math.max(0,Math.min(a,o-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;n.setState(function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&EV(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=IV(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}El(t,e),t.getDerivedStateFromProps=function(e,t){return HV(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,i=r.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?PV():0:l.scrollHeight>l.clientHeight?PV():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===n?i.scrollLeft=r:i.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,i=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(MV()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&EV(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?WV:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,b=e.width,x=this.state.isScrolling,S="horizontal"===o||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],I=C[1],D=[];if(c>0)for(var P=E;P<=I;P++)D.push(n(t,{data:d,key:f(P,d),index:P,isScrolling:y?x:void 0,style:this._getItemStyle(P)}));var R=i(this.props,this._instanceProps);return n(m||g||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:ke({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},n(l||u||"div",{children:D,ref:s,style:{height:S?"100%":R,pointerEvents:x?"none":void 0,width:S?R:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],i=e[3];this._callOnItemsRendered(t,r,n,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,i=n.isScrolling,o=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=s(this.props,a,this._instanceProps),c=l(this.props,u,a,this._instanceProps),d=i&&"backward"!==o?1:Math.max(1,r),p=i&&"forward"!==o?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var HV=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},VV=function(e,t,r){var n=e.itemSize,i=r.itemMetadataMap,o=r.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var u=n(l);i[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return i[t]},BV=function(e,t,r,n,i){for(;n<=r;){var o=n+Math.floor((r-n)/2),a=VV(e,o,t).offset;if(a===i)return o;a<i?n=o+1:a>i&&(r=o-1)}return n>0?n-1:0},GV=function(e,t,r,n){for(var i=e.itemCount,o=1;r<i&&VV(e,r,t).offset<n;)r+=o,o*=2;return BV(e,t,Math.min(r,i-1),Math.floor(r/2),n)},UV=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=r&&(o=r-1),o>=0){var s=n[o];a=s.offset+s.size}return a+(r-o-1)*i},YV=$V({getItemOffset:function(e,t,r){return VV(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:UV,getOffsetForIndexAndAlignment:function(e,t,r,n,i,o){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=VV(e,t,i),p=UV(e,i),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+o);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?n[i].offset:0)>=r?BV(e,t,i,0,r):GV(e,t,Math.max(0,i),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===i||"horizontal"===s?l:o,c=VV(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=VV(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function KV(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var XV=["style"],JV=["style"];function ZV(e,t){var r=e.style,n=Oe(e,XV),i=t.style,o=Oe(t,JV);return!KV(r,i)&&!KV(n,o)}const QV=10,eB=(e,t)=>e.current===OF.Backward?t:0,tB=(e,t,r,n)=>{for(let i=r;i<r+n;i++){const r=e.at(i);if(void 0===r||void 0===r.at(t))return!0}return!1},rB=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,nB=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:i,endLeft:o})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=i;e<o;e++)if(tB(t,e,r,n)){const t=a[a.length-1],i={qLeft:e,qTop:r+s,qWidth:1,qHeight:n};void 0!==t&&rB(t,i)?t.qWidth+=i.qWidth:a.push(i)}return a},iB=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:i,minBufferEndLeft:o,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=n,u=r.current===OF.Backward?Math.max(0,i-25):o,c=Math.min(u+25,a);return nB({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},oB=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:i})=>{const{startLeft:o,endLeft:a,pageTop:s,qHeight:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=t,s=e.size.x,l=eB(r,QV),u=Math.max(n-l,0);return{startLeft:u,endLeft:u+Math.min(o+QV,s-u),pageTop:i,qHeight:a}})(n,i,r),u=nB({pageInfo:e,measureData:t,startLeft:o,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...iB({pageInfo:e,measureData:t,scrollDirection:r,viewService:i,minBufferStartLeft:o,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},aB=(e,t,r,n)=>{const i=e[r];if(void 0===i)return!0;for(let e=t;e<t+n;e++){if(void 0===i[e])return!0}return!1},sB=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,lB=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:i,pageInfo:o})=>{const a=[],s=o.page*o.rowsPerPage;for(let o=e;o<t;o++)if(aB(i,r,o,n)){const e=a.at(-1),t={qLeft:r,qTop:o+s,qWidth:n,qHeight:1};void 0!==e&&sB(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},uB=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:i,endTop:o,qLeft:a,qWidth:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=t,s=eB(r,QV),l=Math.max(i-s,0);return{startTop:l,endTop:l+Math.min(a+QV,e.rowsOnCurrentPage-l),qLeft:n,qWidth:o}})(e,n,r),l=lB({startTop:i,endTop:o,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const n=r.current===OF.Backward?Math.max(0,i-25):o,u=Math.min(n+25,e.rowsOnCurrentPage),c=lB({startTop:n,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},cB=async(e,t,r,n,i,o,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=i;let p=[],f=[];o.current!==OF.None&&(p=uB({pageInfo:n,measureData:r,scrollDirection:o,viewService:i})),a.current!==OF.None&&(f=oB({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:i})),o.current===OF.None&&a.current===OF.None&&(p=lB({measureData:r,pageInfo:n,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},dB=function(e){var t,r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r=s;var u=Date.now()-o,c=function(){o=Date.now(),n=0,e.apply(t,r)};n||(u>=i?c():n=setTimeout(c,i-u))}}(cB,100),pB=V_(cB,75),fB=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),hB=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:i,isLeftColumn:o,showTotalCellDivider:a})=>{const{direction:s}=c$(),{styleService:{grid:{border:l,divider:u}}}=g$();return io.jsx("div",{style:{...e,...az,...cz(r,n,l,s,i),...pz({bottomDivider:a&&o,rightDivider:a&&!o,borderColor:u})},"data-testid":"empty-cell","data-index":t})},mB=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:i})=>{const{layoutService:{isIndentModeEnabled:o}}=g$(),a=i&&o;return io.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},gB=e=>{const{type:t,imageSize:r}=e;return t!==CF.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},vB=e=>"number"==typeof e&&!Number.isNaN(+e),yB=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,bB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:io.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),xB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),SB=x((e,t)=>io.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[io.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),io.jsx("use",{fillRule:"evenodd"})]})),wB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),CB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),EB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),IB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:io.jsx("path",{d:"M2 7.5h12v1H2z"})})),DB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),PB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),RB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),MB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),LB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),AB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),kB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),OB=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),qB={m:LB,"ï":RB,R:x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),S:AB,T:kB,U:OB,P:PB,Q:EB,"è":x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":wB,"©":SB,"23F4":CB,2013:MB,"&":DB,add:bB,"minus-2":IB,dot:xB},TB=({size:e,iconKey:t,color:r,pvStyle:n})=>{const i=t&&qB[t];return i&&io.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:io.jsx(i,{style:{height:e}})})},NB=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),_B=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},jB=(e,t,r)=>{const n={previousColor:(i=e.localPaletteColors)[(o=t)-(o>0?1:0)],nextColor:i[o+(o<i.length-1?1:0)]};var i,o;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,i)=>{const{upperLimit:o,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===o.value?1:(n-a.value)/(o.value-a.value);return a.gradient&&o.gradient?n-a.value<o.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:o.gradient?{color:l.color,t:u/2}:{color:i.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return xN(e.localPaletteColors[t].color??"").blend(xN(s.color??""),s.t)},FB=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:NB(t,e.value)}))),e})({...e},t),i=n.paletteColors||n.localPaletteColors;return i&&(n.localPaletteColors=i.concat().map((e,t)=>({color:_B(n,t,r)}))),n},zB=(e,t,r,n)=>{const i=FB(e,r,n),{localPaletteColors:o}=i;if(t<=0)return o[0].color;if(t>=1)return o[o.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:i,localPaletteColors:o}=e;for(let a=0;a<o.length;a++){const o=i&&i[a]?i[a].value:1;if(t>=n&&t<o){r=jB(e,a,t);break}n=o}return r})(i,t);return a},WB=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!vB(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!vB(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},$B=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=WB(e,t),i=Math.abs(t);return{min:r??t-i,max:n??t+i}})(r,t),i=((e,t,r)=>{const{limits:n,paletteColors:i,localPaletteColors:o}=e.segments;if(!n||!vB(t))return 0;let a=r&&vB(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=i||o;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:i}},HB=e=>"flex-start"===e?"flex-end":"flex-start",VB=(e,t,r,n)=>{const i=e.indicatorConditionalColoring;if(!i)return;const o=$B(i,t),a=((e,t,r,n)=>{const{segments:i}=e;if(!i||!r)return;const{limits:o}=i;if(!o?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(o,r.limitPaletteColorIndex))return _B(i,r.limitPaletteColorIndex,n);const a=NB(r.limitRange,t);return zB(i,a,r.limitRange,n)})(i,t,o,n),s=i.segments.paletteColors[o?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},BB=({representation:e,cellValue:t,textStyle:r})=>{const{styleService:n}=g$(),{theme:i}=f$(),{direction:o}=c$(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=VB(e,t,o,i),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=n.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},v=parseInt(d||JF,10),{iconKey:y,color:b,position:x}=c||{},S={display:"flex",paddingTop:2};return l?io.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:r?.overflow,color:u?b:r?.color},children:["left"===x&&TB({size:v,iconKey:y,color:b,pvStyle:S}),io.jsx("span",{style:{paddingTop:4,overflow:r?.overflow,textOverflow:r?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&TB({size:v,iconKey:y,color:b,pvStyle:S})]}):(S.paddingTop=5,TB({size:v,iconKey:y,color:b,pvStyle:S}))},GB=(e,t,r)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===r?"flex-end":"flex-start";case"right":return"rtl"===r?"flex-start":"flex-end";default:return t}},UB=(e,t)=>{let{textAlign:r}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:r}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),r?.auto||void 0===r?"left":r.align},YB=(e,t,r,n,i)=>{if(i)return;const o=e.representation,a=BH({isLeftColumn:r,layoutService:t,representation:o}),s=r?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===CF.Image)return a&&l&&"center"!==l&&"rtl"===n?HB(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:r}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return GB(r,s,n)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return GB(u,s,n)},KB=e=>!!e.target?.getAttribute("class")?.includes(bT),XB=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),i=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&i===e.activeSelection.endIndex)return e;const o={...e.activeSelection,startIndex:n,endIndex:i};return o.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:i}=e,o=new Map(i);for(let e=r;e<=n;e++){const r=t(e);"N"===r?.ref.qType&&o.set(r.ref.qElemNo,r)}return o})(o),{...e,activeSelection:o}}default:return e}},JB=e=>null!==e.target?.closest("[data-prevent-selection]"),ZB=e=>"A"===e.target?.tagName,QB=({startIndex:e,getCellFromIndex:t,cell:r})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}});const eG=u({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),tG=()=>h(eG),rG=({children:e,selections:t})=>{const r=function(e){const{updatePageInfo:t}=c$(),r=e.isActive(),[n,i]=c(XB,{engineSelectedCells:null,selectedField:null,activeSelection:null});d(()=>{const r=()=>{i({type:"clearSelections"})},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}},[e,t]);const o=f(async()=>{if(!n.activeSelection)return;var t,r;1===n.activeSelection.clientSelectedCells.size&&(t=n.engineSelectedCells,(r=n.activeSelection).clientSelectedCells.forEach((e,n)=>{t?.has(n)&&(r.clientSelectedCells.delete(n),t.delete(n))}));const o=new Map([...n.engineSelectedCells??new Map,...n.activeSelection.clientSelectedCells]);try{i({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[b$,Array.from(o,([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x}))]})}catch(e){console.error(e),i({type:"mouseup",payload:{engineSelectedCells:n.engineSelectedCells}})}},[n,e]);d(()=>{if(n.activeSelection)return document.addEventListener("mouseup",o),()=>{document.removeEventListener("mouseup",o)}},[o,n.activeSelection]);const a=f((e,t)=>r=>{const n=t(e);KB(r)||JB(r)||ZB(r)||!(e=>1===e.buttons)(r)||!n||i(QB({startIndex:e,getCellFromIndex:t,cell:n}))},[]),s=f(t=>async()=>{n.activeSelection&&(e.isActive()||await e.begin([b$]),i({type:"mouseover",payload:{index:t}}))},[n.activeSelection,e]),l=f((e,t)=>r=>{if("touch"!==r.pointerType)return;const n=t(e);KB(r)||JB(r)||ZB(r)||!n||(i(QB({startIndex:e,getCellFromIndex:t,cell:n})),o())},[o]),u=f(e=>!(!n.engineSelectedCells?.size&&!n.activeSelection?.clientSelectedCells.size||!n.selectedField||e.selectionCellType===n.selectedField.selectionCellType&&("L"===e.selectionCellType?n.selectedField.index===e.x:n.selectedField.index===e.y)),[n.activeSelection?.clientSelectedCells.size,n.engineSelectedCells?.size,n.selectedField]),p=f(e=>!u(e)&&(n.engineSelectedCells?.has(e.ref.qElemNo)||!!n.activeSelection?.clientSelectedCells.has(e.ref.qElemNo)),[u,n.activeSelection?.clientSelectedCells,n.engineSelectedCells]);return v(()=>({isSelected:p,isActive:r,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l}),[p,r,u,a,s,l])}(t);return io.jsx(eG.Provider,{value:r,children:e})},nG=e=>"fill"===e.representation.imageSize,iG=(e,t)=>{let r=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&nG(e)&&t&&(r="center"),e.representation.type!==CF.Image||nG(e)?r:e.representation.resolvedImagePosition?.vertical};var oG=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(oG||{});const aG={brighter:.5,darker:.3,opacity:.03},sG=(e,{cell:t,styleService:r})=>{if(e===oG.Background||e===oG.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},lG=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const i=sG(oG.Background,{cell:r,styleService:e});return!n||!i||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?sG(oG.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${ej(o=i,aG)} 0px 2px,\n ${o} 0px 4px\n ) border-box`;var o},uG=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:sG(oG.Color,{cell:e,styleService:t}),cG=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,i=sG(oG.FontWeight,{cell:e,styleService:t});return void 0===i&&(n||r)?QF:i},dG=({cell:e,styleService:t})=>sG(oG.FontStyle,{cell:e,styleService:t}),pG=({cell:e,styleService:t})=>sG(oG.TextDecoration,{cell:e,styleService:t}),fG=e=>e?"pointer":"default",hG=({expandOrCollapse:e,cell:t})=>r=>{e?.(t.y,t.x),r.stopPropagation()},mG=(e,t)=>{if(!e.isLeftColumn||e.representation.type===CF.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},gG=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:i}=g$(),{interactions:o}=f$(),{isActive:a}=tG(),{dataModel:s}=FH();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||a||!s,u=uG({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?SW:xW;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=BH({isLeftColumn:t,layoutService:i,representation:e.representation});return io.jsx(d,{opacity:c,color:u,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",position:"sticky",top:0,...mG(e,n),...f&&{alignSelf:iG(e)}},onClick:l?void 0:hG({cell:e,expandOrCollapse:p})})},vG=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},yG=(e,t,r)=>{if("alwaysFit"===e&&t&&!r)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return r?"unset":"100%";default:return"100%"}},bG=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},xG=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:i,layoutService:o,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=o,l=BH({isLeftColumn:n,layoutService:o,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=i.headerCellHeight;n&&l&&(d=c),(a||n)&&(p=i.contentCellHeight);let f=p;switch(n&&void 0!==r&&!s&&(f=p*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:d,maxHeight:f,...l?{width:d}:{}};case"fitWidth":return{width:d,maxHeight:f};case"fitHeight":return{height:f,maxWidth:d,...l?{width:d}:{}};case"fill":return{height:f,width:d};default:return{width:d,height:p}}},SG=e=>{if("alwaysFit"===e)return"contain"},wG=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),CG=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r,isMeasureCell:n})=>({width:yG(e,r,n),height:vG(e),objectFit:SG(e),objectPosition:bG(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),EG=({representation:e,textStyle:t,isMeasureCell:r})=>{const{imageRef:n,onLoad:i}=(()=>{const{downloadService:e}=g$(),t=l(null),{promise:r,resolve:n}=v(()=>Sz(),[]);return d(()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(r),t.current?.complete&&n()),()=>{n()}),[t,e,r,n]),{onLoad:f(()=>{n()},[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:o}}=g$(),{url:a,text:s,imageSize:u,resolvedImagePosition:c}=e,{overflow:p,...h}=t;return io.jsx("img",{src:a,alt:s,style:{...CG({imageSize:u,resolvedImagePosition:c,isImagesInIndentModeEnabled:o,isMeasureCell:r}),...h},onLoad:i,ref:n})},IG=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:i=!1,imageContainerHorizontalAlignment:o,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=g$(),{resolvedImagePosition:u}=e;return io.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:o,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...xG({representation:e,canExpandOrCollapse:r,leafCount:n,styleService:s,layoutService:l,isLeftColumn:i,isMeasureCell:a})},children:io.jsx(EG,{representation:e,textStyle:t,isMeasureCell:!0})})},DG={display:"flex",flexDirection:"row",alignItems:"center"},PG={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},RG=(e,t,r,n)=>t?{...PG,...e.nullValues}:r?{...DG,color:e.totalValues.color,background:n??e.totalValues.background}:{...DG,color:e.measureValues.color,background:n??e.measureValues.background},MG=(e,t,r,n,i)=>{const{fontFamily:o,fontSize:a}=e.measureValues,s={...sz,...!r&&lz(e.grid.lineClamp),...t&&{color:t},fontFamily:o,fontSize:a};if(i){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?QF:l,fontStyle:u,textDecoration:c}},LG=({cell:e,representation:t,color:r,isTotalValueCell:n,cellHorizontalAlignment:i})=>{const{layoutService:o,styleService:a}=g$(),{isIndentModeEnabled:s}=o,l=e.isNull?o.getNullValueText():t.text,u=t.type===CF.Image,c=t.type===CF.Indicator,d=vB(yB(l)),p=MG(a,r,d,n,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return io.jsx(IG,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:i});const f=yB(e.isNull?t.text:e.ref.qNum);return c&&vB(f)?io.jsx(BB,{representation:t,cellValue:f,textStyle:p}):io.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},AG=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,kG="flex-start",OG=(e,t)=>e.isNull?kG:t.type===CF.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:kG,qG=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{env:i}=f$(),{pageInfo:o,direction:a}=c$(),{styleService:s,layoutService:l}=g$(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:h,visibleTopDimensionInfo:m}}=FH(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=g$(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:i}}=FH(),o=n.length,a=i.length;return f((n,i)=>!(!r.grid.at(a-1)?.[n]?.isTotal&&!t.grid.at(e?0:o-1)?.[i]?.isTotal),[r,t,o,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=FH(),r=t.length;return f(t=>{const n=e.grid.at(r-1)?.[t];return fB(n,e.totalDividerIndex)},[e,r])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=g$(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=FH(),n=r.length;return f(r=>{const i=e?0:n-1,o=t.grid.at(i)?.[r];return fB(o,t.totalDividerIndex,e)},[t,e,n])})(),{showLastBorder:b}=n,x=p.grid.at(m.length-1),S=d.grid.at(h.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===o.rowsOnCurrentPage-1,I=e===l.size.x-1;if(!C)return io.jsx(hB,{style:{...r,background:w},isLastRow:E,isLastColumn:I,showLastBorder:b,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const D=l.hasPseudoDimOnLeft?AG(S,t):AG(x,e),P=l.visibleMeasureInfo[D],R=vH({cell:C.ref,representationProperties:P.representation,attrExprInfoIndex:u.measures[D],env:i,direction:a,conditionalColoring:P.conditionalColoring,enabledFeatures:{[CF.Image]:!0,[CF.Indicator]:!0}}),M=!C.isNull&&g(e,t),L=C.isNull?l.getNullValueText():R.text,A=!C.isNull||!Number.isNaN(+L),k=yH(u.measures[D],C.ref),O=((e,t,r,n,i)=>{const{textAlign:o}=t,a=n?"flex-end":"center";return e.isNull||r.type!==CF.Image?GB(o,a,i):r.resolvedImagePosition?.horizontal??"center"})(C,P,R,A,a),q={...RG(s,C.isNull,M,k.background),...cz(E,I,s.grid.border,a,b),...pz({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...az,padding:"0px 4px",display:"flex",justifyContent:O};return io.jsx("div",{className:vT,title:L,style:{...q,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:io.jsx(mB,{width:gB(R),verticalAlign:OG(C,R),children:io.jsx(LG,{cell:C,representation:R,isTotalValueCell:M,color:k.color,cellHorizontalAlignment:O})})})};var TG=r.memo(qG,ZV);const NG=(e,t)=>t.list[e]?.id??e.toString(),_G=({columnIndex:e,rowIndex:t,data:r})=>r.grid[t]?.[e]?.id??`${t}-${e}`,jG=e=>({...oz,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),FG=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:i,getRightGridColumnWidth:o,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=c$(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=g$(),{dataModel:h,gridSectionsData:{measureData:m}}=FH(),v={...jG(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=c$(),{downloadService:n,viewService:i,layoutService:o}=g$(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=FH(),c=s.columnCount,d=l.rowCount;return f(async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{i.gridColumnStartIndex=s,i.gridRowStartIndex=p,i.gridWidth=l-s+1,i.gridHeight=f-p+1;const h=i.gridWidth+c+(t.current===OF.None?0:QV),m=i.gridHeight+d+(e.current===OF.None?0:QV);let g=dB;m*h>1500&&(g=pB),g(a,o,u,r,i,e,t,n)},[i,o,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:s});return jz(()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)},[e,h,m]),g(()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})},[n,t,e,p,u]),0===c.size.x?null:io.jsx(zV,{"data-section-id":"DATA_GRID",ref:e,style:v,columnCount:c.size.x,columnWidth:o,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:i,grid:m},onItemsRendered:y,estimatedRowHeight:r(),estimatedColumnWidth:o(),itemKey:_G,direction:u,children:TG})};var zG=b(FG);const WG=x((e,t)=>io.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[io.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),io.jsx("use",{fillRule:"evenodd"})]})),$G=e=>{const[t,r]=m(!1);return jz(()=>{r(!1)},e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},HG=()=>{const[e,t]=m(!1),{dataModel:r}=FH(),{interactions:n}=f$(),{isAdjustingWidth:i,setIsAdjustingWidth:o}=$G([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||KB(e)||i||t(!0)},setIsAdjustingWidth:o}};function VG(e,t){const r=t.expressionColor?.background??e.dimensionValues.background,n=t.isLeftColumn?e.header.background:r,i=n===rz.Transparent?aN.WHITE:n,o=xN(e.grid.border),a=xN(i);return a.isInvalid()||o.isInvalid()||1===o.a?e.grid.border:function(e,t,r){return xN(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(a,o,o.a).getRGB()}const BG=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:o,tableWidth:a})=>{const{direction:s}=c$(),{interactions:l,translator:u}=f$(),{isActive:c}=tG(),{dataModel:d}=FH(),{styleService:p}=g$(),[,f]=m({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=VG(p,e);return io.jsx(Vz,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{o?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*HH,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},GG=fl(Qu,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})(({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:i})=>({pointerEvents:i?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&i?r:t}})),UG=fl("div",{shouldForwardProp:e=>!["direction"].includes(e)})(({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0})),YG=fl("div",{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({...iz,justifyContent:e??iz.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8})),KG=fl("div")(()=>({...iz})),XG=fl("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})(({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:i,justifyContent:o})=>({display:"flex",justifyContent:o,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:i})),JG=fl(hp)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),ZG=fl(bp,{shouldForwardProp:e=>!["isActive"].includes(e)})(({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}})),QG=fl("span")({textOverflow:"ellipsis",overflow:"hidden"}),eU=fl("div",{shouldForwardProp:e=>"visible"!==e})(({visible:e})=>({opacity:e?1:0,width:WH,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})),tU=fl("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})(({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0}));let rU=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const nU=(e,t)=>({qExcludeList:t===rU.Expand,qPos:{qDimName:e,qElemNo:[]}}),iU=`${b$}/qExpansionState`,oU=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const i=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=t?.findIndex(t=>t.qPos?.qDimName===e);return{expansionData:nU(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:i}=t;try{let t,r=iU,o="Add";void 0===n?t=JSON.stringify([i]):-1===n?(r=`${iU}/-`,t=JSON.stringify(i)):(r=`${iU}/${n}`,o="Replace",t=JSON.stringify(i)),await e.applyPatches([{qPath:r,qOp:o,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:i,errorMsg:`Failed to ${n} dimension`})},aU=({model:e,effectivePropertiesService:t,cell:r})=>{if(void 0===r.qEffectiveDimensionName)return;const n={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:oU({...n,action:rU.Expand}),collapseCallback:oU({...n,action:rU.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},sU={[MW.Sorting]:!0,[MW.Selections]:!0,[MW.Searching]:!0},lU=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:i,changeSortOrder:o,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:u,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=l(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=g$(),{app:g,interactions:v,embed:y,translator:b,model:x,env:S}=f$(),{fontSize:w,fontFamily:C,fontStyle:E,fontWeight:I,textDecoration:D,color:P,background:R,hoverBackground:M,activeBackground:L}=f.header,A=l(null),{shouldShowLockIcon:k,shouldShowMenuIcon:O}=a,{open:q,setOpen:T,handleOpenMenu:N,setIsAdjustingWidth:_}=HG(),{direction:j}=c$(),F={sortFromMenu:async(t,r)=>{t.stopPropagation(),await o(e,r)}},z={embed:y,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},W={app:g,qStateName:h.layout.qStateName},{labelTextAlign:$}=h.getDimensionInfo(e.dimensionInfoIndex)??{},H=GB($,"flex-start",j);return io.jsxs(GG,{className:vT,title:e.label,interactions:v,background:q?L:R,hoverBackground:M,shouldShowMenuIcon:O,isDimension:e.isDim,style:{...t,...az,...dz(e,i,r,n,f.grid.border,j),color:P},"data-testid":"title-cell",onClick:N,children:[io.jsxs(YG,{children:[k?io.jsx(KG,{children:io.jsx(WG,{height:12})}):null,io.jsx(XG,{fontFamily:C,fontSize:w,fontStyle:E,fontWeight:I,textDecoration:D,justifyContent:H,children:io.jsx("span",{style:S.flags.isEnabled("VNA-135-WRAP_HEADER_TEXT")?{...sz,...lz(f.grid.columnLineClamp)}:sz,children:e.label})})]}),e.isDim?io.jsxs(io.Fragment,{children:[io.jsx(kW,{headerData:e,translator:b,anchorRef:A,open:q,setOpen:T,interactions:v,menuAvailabilityFlags:sU,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:W,expandOrCollapseArgs:aU({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:O,model:x&&"setActiveField"in x?x:void 0,direction:j,isAccessibleHeader:!0}),io.jsx(UG,{ref:p,direction:j}),io.jsx(UG,{ref:A,direction:j})]}):null,io.jsx(BG,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:n,overrideLeftGridWidth:u,setIsAdjustingWidth:_,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},uU=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=g$(),{direction:n}=c$();return e>0&&t>0?io.jsx("div",{style:{...oz,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===n?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},cU=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),dU=x((e,t)=>io.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[io.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),io.jsx("use",{fillRule:"evenodd"})]})),pU=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=c$(),{styleService:i}=g$(),{interactions:o,translator:a}=f$(),{isActive:s}=tG(),{dataModel:l}=FH(),{setIsAdjustingWidth:u}=$G([l]);if(!(!!o.active&&!s))return null;const c=VG(i,{isLeftColumn:!0});return io.jsx(Vz,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*HH))},confirmWidthCallback:n=>{if(n.type===ST.FitToContent)return void l.applyIndentModeColumnWidth({type:ST.Auto});const i=Math.min(n.pixels??t,e*HH);r(i),l.applyIndentModeColumnWidth({type:ST.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})},fU=x((e,t)=>io.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:io.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})})),hU=({cell:e,changeSortOrder:t})=>{const r=l(null),n=l(null),{app:i,interactions:o,embed:a,translator:s,model:u}=f$(),{layoutService:c,effectivePropertiesService:d}=g$(),{open:p,setOpen:f,handleOpenMenu:h}=HG();return io.jsxs(ZG,{onClick:h,isActive:p,children:[io.jsx(QG,{children:e.label}),io.jsxs(eU,{className:"indent-mode-dropdown-more",visible:p,children:[io.jsx(fU,{}),e.isDim?io.jsxs(io.Fragment,{children:[io.jsx(kW,{headerData:e,translator:s,anchorRef:r,open:p,setOpen:f,interactions:o,menuAvailabilityFlags:sU,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:i,qStateName:c.layout.qStateName},expandOrCollapseArgs:aU({model:u,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:u&&"setActiveField"in u?u:void 0}),io.jsx(UG,{ref:n}),io.jsx(UG,{ref:r})]}):null]})]})},mU=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{const i=r.at(-1)?.id===S$,o=e+1<r.length&&r[e+1]?.id===S$;return!(n&&i&&o)&&(t?.id!==S$&&e<r.length-1)},gU=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:i})=>{const{styleService:o}=g$(),{interactions:a,translator:s}=f$(),{dataModel:u,gridSectionsData:{headersData:c}}=FH(),[d,p]=m(!1),f=l(null),{headerCellHeight:h}=o,{color:g,background:v,hoverBackground:y,activeBackground:b,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=o.header,{isAdjustingWidth:I}=$G([u]),D=e=>{e.stopPropagation()},P={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return io.jsxs(GG,{isDimension:!0,background:d?b:v,interactions:a,hoverBackground:y,style:{...P,...az,color:g},onClick:e=>{!a.active||KB(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[io.jsxs(YG,{justifyContent:"flex-start",children:[io.jsx(XG,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:io.jsx("span",{style:sz,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?io.jsx(dU,{}):io.jsx(cU,{}),io.jsx(UG,{ref:f})]}),io.jsx(JG,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map((r,n)=>[r&&r.id!==S$&&io.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:io.jsx(hU,{cell:r,changeSortOrder:t})}),mU({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===c.size.y})&&io.jsx(Kz,{"data-testid":"group-divider",variant:"middle"})])}),io.jsx(pU,{tableWidth:i,leftGridWidth:n,overrideLeftGridWidth:r})]})},vU=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,yU={display:"grid",width:"fit-content"},bU=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:i,getHeaderCellsIconsVisibilityStatus:o,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=g$(),{gridSectionsData:{headersData:u}}=FH();return io.jsxs("div",{"data-testid":"HEADER_GRID",style:{...yU,gridTemplateColumns:r.map(e=>`${e}px`).join(" "),gridTemplateRows:u.data.map(()=>`${n}px`).join(" "),height:a},children:[u.size.y>1&&io.jsx(uU,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map((a,c)=>{let d=[];if(vU({layoutService:l,headersData:u,topRowIndex:c})){const r=a.at(0);return Array.isArray(r)&&d.push(io.jsx(gU,{menuItems:r,changeSortOrder:i,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},r.at(0)?.id)),d}return d=a.reduce((t,a,d)=>{if(a&&!Array.isArray(a)){const p=o(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(io.jsx(lU,{style:{width:r[d],height:n,gridColumn:l.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:i,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t},[]),d})]})};var xU=b(bU);const SU=(e,t,r,n)=>{const{layoutService:i}=g$();g(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!0))},[e,t,r,n,i])},wU=(e,t)=>{jz(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!1))},[e,t])},CU=(e,t)=>{const{isLast:r,list:n,listValues:i}=t;return r?n[e]:i[e]},EU=()=>{},IU=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:i,isLastRow:o,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=g$(),{interactions:f}=f$(),{direction:h}=c$(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:y}=tG(),{showLastBorder:b}=n,x=m(r)||r.isLockedByDimension,S=!(x||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),w=S?g(c,e=>CU(e,n)):void 0,C=S?v(c):void 0,E=S?y(c,e=>CU(e,n)):void 0,I=BH({isLeftColumn:s,layoutService:p,representation:r.representation});return io.jsx("div",{className:vT,title:f.passive?r.representation.text:void 0,style:{...t,...cz(o,a,d.grid.border,h,b),...pz({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...az,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:fG(S),background:lG({styleService:d,isCellSelected:l,cell:r,isCellLocked:x}),zIndex:s?void 0:p.size.x-r.x,justifyContent:YB(r,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(r.indentLevel??0))},textAlign:UB(r,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:EU,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},DU=e=>{e.stopPropagation()},PU=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:DU,color:aN.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),RU=({href:e,text:t,interactions:r,color:n})=>io.jsx(bd,{...PU({href:e,text:t,interactions:r,color:n}),children:t}),MU=Y();MU.use(U),MU.renderer.prio(["canvas"]);const LU=(e,t)=>e&&"center"!==e&&"rtl"===t?HB(e):e,AU=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{const{imageBox:i}=t,{styleService:{grid:{lineClamp:o}}}=g$(),{direction:a}=c$();return io.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${i?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[io.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:iG(e),alignItems:LU(n,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:i?.width??24,height:"100%"},children:io.jsx(EG,{representation:t,textStyle:r})}),io.jsx(tU,{padding:4/(o<=2?2:1),alignSelf:iG(e,!0),children:!!t.labelStructure&&wG(t.labelStructure)})]})},kU=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,OU=({href:e,text:t,labelStructure:r,interactions:n,color:i})=>io.jsxs("span",{children:[io.jsx(bd,{...PU({href:e,text:t,interactions:n,color:i}),children:r?.maskedValue?r.maskedValue:r?.originalValue}),!!r&&kU(r)]}),qU=({children:e,textStyle:t,shouldEnableStickyText:r})=>io.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...r&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),TU=({isLeftColumn:e,styleService:t,cell:r,isIndentModeEnabled:n})=>e?n?t.grid.lineClamp:Math.max(t.grid.lineClamp,r.leafCount*t.grid.lineClamp):t.grid.columnLineClamp,NU=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=c$(),{isActive:i}=tG(),{layoutService:o,styleService:a}=g$(),{interactions:s}=f$(),l=r&&o.isIndentModeEnabled;let u=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:i,suffix:o,delimeter:a}=r;return`${0!==i.length?i:n} ${o?a:""} ${o}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n,isIndentModeEnabled:i})=>({...sz,...lz(TU({cell:e,isLeftColumn:n,styleService:t,isIndentModeEnabled:i})),color:uG({cell:e,styleService:t,isCellSelected:r}),fontWeight:cG({cell:e,styleService:t}),fontStyle:dG({cell:e,styleService:t}),textDecoration:pG({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r,isIndentModeEnabled:o.isIndentModeEnabled});if(e.representation.type===CF.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,i=r&&t&&t.suffix?AU:IG;return io.jsx(i,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:YB(e,o,r,n)})}if(e.representation.type===CF.Link&&!i&&!e.isTotal){const t=r&&e.representation.labelStructure?OU:RU;u=io.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return io.jsx(qU,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===CF.Image&&e.isNull?{alignSelf:iG(e)}:{}},children:u})},_U=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:i}=g$(),{isSelected:o}=tG(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=$G([r]),f=CU(e,r),h=a?e===l-1:u,m=a?u:e===l-1,g=fB(f,c,i.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return io.jsx(hB,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=o(f);return io.jsxs(IU,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[io.jsxs(mB,{verticalAlign:iG(f),width:gB(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[io.jsx(gG,{isLeftColumn:a,isCellSelected:v,cell:f}),io.jsx(NU,{isLeftColumn:a,isCellSelected:v,cell:f})]}),io.jsx(BG,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?LF.Measures:LF.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var jU=r.memo(_U,ZV);const FU=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>i=>{const o=r?e[i]:t.at(i);return o&&0===i&&o.x>0?(o.leafCount+o.x+o.distanceToNextCell)*n():!r&&o?(o.leafCount+o.distanceToNextCell)*n():n(o?.x??i)},zU=(e,t,r,n)=>{const i=Object.values(e);let o,a=i.length;return n&&(a=r,o=t/a),{itemCount:a,estimatedItemSize:o,listValues:i}},WU=(e,t)=>r=>{e.current&&(e.current[t]=r)},$U={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...oz},HU={overflow:"hidden",willChange:"auto",flexShrink:0},VU=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:i})=>{const{pageInfo:o,direction:a}=c$(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=g$(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=FH();wU(e,d),SU(e,t,r,l);const f=o.rowsOnCurrentPage*l,h={...$U,borderColor:u,width:n.reduce((e,t)=>e+t,0)};return io.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map((t,u)=>{const h=u===d.columnCount-1,m=w$(p[u]),{itemCount:g,estimatedItemSize:v,listValues:y}=zU(t,f,o.rowsOnCurrentPage,h),b=s.isIndentModeEnabled?()=>l:((e,t,r,n,i)=>o=>{const a=n?e[o]:t.at(o);if(a&&0===o&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===i-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,y,l,h,c.qcy);return io.jsx(YV,{ref:WU(e,u),style:{...HU,flexGrow:h?1:0,direction:a},height:r,width:n[u],itemCount:g,itemSize:b,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:i,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:NG,estimatedItemSize:v,children:jU},m)})})};var BU=b(VU);const GU={overflow:"hidden",willChange:"auto"},UU=e=>({...oz,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),YU=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:i,getRightGridColumnWidth:o})=>{const{direction:a}=c$(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=g$(),{gridSectionsData:{headersData:c,topDimensionData:d}}=FH(),p={...UU(a),borderColor:l,height:n};wU(e,d),SU(e,r,n,u);const f=s.size.x*o();return 0===d.rowCount?io.jsx("div",{style:{width:r,height:n,...UU(a)}}):io.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map((n,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=zU(n,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const i=t.size.x-1,o=vU({layoutService:e,headersData:t,topRowIndex:r})?0:i,a=n.at(o),s=Array.isArray(a)?a.at(i):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),v=g?w$(g):`empty ${l}`;return io.jsx(YV,{ref:WU(e,l),style:GU,height:t(),width:r,itemCount:p,itemSize:FU({list:n,listValues:m,isLastRow:u,getRightGridColumnWidth:o}),layout:"horizontal",itemData:{list:n,isLast:u,itemCount:p,showLastBorder:i,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:NG,estimatedItemSize:h,direction:a,children:jU},v)})})};var KU=b(YU);const XU=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=g$(),r=pV(),n=(()=>{const{model:e}=f$(),t=f(async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:i,sortDirection:o}=t,a=[];if(r===o)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${i}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:i,topGridWrapperRef:o,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:v}}=dV(),{leftGridWidth:y,leftGridFullWidth:b,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:I}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:i}=g$(),{gridSectionsData:{headersData:o}}=FH(),{measureText:a}=qz(i.header,{allowLineBreaks:!1}),s=nV({tableWidth:e}),l=iV({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=f((e,t,r="")=>{let i=e;n.isIndentModeEnabled&&(i=1,1===o.size.x&&(i=0));const l=s.leftGridColumnWidths[i];let u=!1,c=!1,d=a(r)+$H;return t&&d+WH<=l&&(c=!0,d+=WH),d+WH<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}},[s.leftGridColumnWidths,a,n.isIndentModeEnabled,o.size.x]);return d(()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&r()},[r,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:v}),{gridScaffoldDimensions:D,headerGridDims:P,topGridDims:R,leftGridDims:M,dataGridDims:L,metadata:{everyThingFitsInTableRectHeight:A,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:i},scrollBarsDimensions:{verticalScrollbarWidth:o,horizontalScrollbarHeight:a}})=>{const s=pV(),{pageInfo:l}=c$(),{gridSectionsData:{headersData:u,topDimensionData:c}}=FH(),d=Math.min(s.height*HH,Math.max(s.height*HH-25,s.height-t-a)),p=s.width*HH,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,v=Math.min(p,r),y=s.width-p,b=Math.max(y,s.width-v),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+o<=s.width,i=e+1+f+a,l=i-s.height<a||i<=s.height;return{availableHeight:l?i:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:n}})(x,v,b),E=S-d,I=Math.max(E,S-x),D=Math.min(I,f),P=Math.min(I,f),R=m+1+f,{visibilityStatus:M,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:A}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:i}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:o,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>n,c=o>t,d=a>r,p=l>i;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:v,rightSectionWidth:b},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:I}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:i},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:R-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${v}px ${b}px`,gridTemplateRows:`${x}px ${I}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:i-o+(A?o:0),height:g},stickyWrapper:{width:b-1-o,height:-1},self:{width:Math.min(i,b)-(C?1:0)-o,height:g}},leftGridDims:{fullSizeWrapper:{width:v,height:R-g+(!L&&A?a:0)},stickyWrapper:{width:v,height:I-1-a},self:{width:v,height:Math.max(t,D-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:i-o+(A?o:0),height:R-g+(!A&&L?a:0)},stickyWrapper:{width:b-1-o,height:I-1-a},self:{width:Math.min(i,b)-(C?1:0)-o,height:Math.max(t,P-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:M}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:y,leftGridOriginalWidth:b,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),O=f(()=>e,[e]),q=f(()=>t,[t]);return(()=>{const{downloadService:e}=g$();d(()=>{e.notifyIsDoneRendering()})})(),io.jsxs(hV,{style:D,children:[io.jsx("div",{style:{overflow:"hidden"},ref:i,children:io.jsx(xU,{tableWidth:r.width,leftGridWidth:y,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:P.height,changeSortOrder:n,overrideLeftGridWidth:I})}),io.jsx(vV,{style:k.topGrid,origin:kF.TopGrid,ref:o,children:io.jsx(fV,{style:R.fullSizeWrapper,children:io.jsx(yV,{style:R.stickyWrapper,children:io.jsx(KU,{topGridRef:l,rowHightCallback:O,...R.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),io.jsx(vV,{style:k.leftGrid,origin:kF.LeftGrid,ref:a,children:io.jsx(fV,{style:M.fullSizeWrapper,children:io.jsx(yV,{style:M.stickyWrapper,children:io.jsx(BU,{leftGridRef:u,...M.self,columnWidths:x,showLastBorder:{right:!1,bottom:A}})})})}),io.jsx(vV,{style:k.dataGrid,origin:kF.DataGrid,ref:s,children:io.jsx(fV,{style:L.fullSizeWrapper,children:io.jsx(yV,{style:L.stickyWrapper,children:io.jsx(zG,{dataGridRef:c,rowHightCallback:q,...L.self,showLastBorder:{right:w,bottom:A},getRightGridColumnWidth:C,verticalScrollDirection:p,horizontalScrollDirection:h})})})})]})},JU=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=f$(),{pageInfo:i,updatePageInfo:o,rect:a}=c$(),{layoutService:s}=g$(),{layout:l,hasData:u}=s;return io.jsxs(io.Fragment,{children:[u?io.jsx(XU,{}):null,io.jsx(y$,{}),io.jsx(l$,{paginationNeeded:i.shouldShowPagination,handleChangePage:e=>{o({page:e})},pageInfo:i,totalRowCount:i.totalRowCount,totalColumnCount:0,totalPages:i.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:l})]})};const ZU=(e,{selections:t,baseObjects:n,coreServices:i,nebulaObjects:o},a)=>{const s=function(e){const t=kS();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Ls({...t,direction:e})}(n.direction);e.render(io.jsx(r.StrictMode,{children:io.jsx(xw,{store:a,children:io.jsx(ml,{theme:s,children:io.jsx(h$,{...o,children:io.jsx(d$,{...n,children:io.jsx(rG,{selections:t,children:io.jsx(v$,{...i,children:io.jsx(zH,{children:io.jsx(JU,{})})})})})})})})}))};var QU=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider",e}(QU||{}),eY=function(e){return e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2",e}(eY||{}),tY=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(tY||{}),rY=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor",e}(rY||{});const nY=e=>e?`${parseInt(e,10)}px`:void 0,iY=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?rz.Transparent:r}},oY=(e,t)=>+(parseInt(e,10)*tz*t+8).toFixed(2),aY=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?QF:"normal",sY=e=>e?.some(e=>"italic"===e)?"italic":"normal",lY=e=>e?.some(e=>"underline"===e)?"underline":"none",uY=document.createElement("textarea");function cY(e){uY.value=e,document.body.appendChild(uY),uY.select(),uY.setSelectionRange(0,uY.value.length),document.execCommand("copy"),document.body.removeChild(uY)}uY.style.position="absolute",uY.style.left="-9999px",uY.setAttribute("readonly","");function dY(e){T?.((t,r)=>{const n=r.target,i=n?.closest(`.${vT}`);i?.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{(e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{cY(t)}):cY(t))})(i)}}),e?.forEach(e=>{e(t,r,i)})})}const pY=({model:e,layoutService:t,effectivePropertiesService:r,translator:n})=>wz((i,o,a)=>{if(!e||r.qAlwaysFullyExpanded)return;const s=e,l=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const r=((e,t)=>{const r=e?.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(b$,0,0,!0),await e.expandLeft(b$,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:i})=>({icon:"lui-icon lui-icon--plus",translation:i.get("SNPivotTable.ContextMenu.ExpandDimension",[n??""]),tid:"expand-dimension",id:"expand-dimension",select:oU({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:rU.Expand})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(b$,0,0,!0),await e.collapseLeft(b$,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:i})=>({icon:"lui-icon lui-icon--minus",translation:i.get("SNPivotTable.ContextMenu.CollapseDimension",[n??""]),tid:"collapse-dimension",id:"collapse-dimension",select:oU({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:rU.Collapse})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n}))},[e,t,r]),fY=(e,t)=>R(()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:r,snapshotData:n}=e,{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:o,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!n,u=n?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,ez),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=o.slice(0,i),p=e=>d.some(t=>t===e),f=p(x$),h=new Map(o.map(e=>[s[e]??x$,e])),m=a.filter(e=>7005!==e.qError?.qErrorCode);return{layout:e,getNullValueText:()=>r?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const r=e%m.length;return t?r:a.findIndex(e=>e===m[r])},getDimensionInfo:e=>e===x$?void 0:s.at(e),getDimensionInfoIndex:e=>h.get(e)??-1,size:c,isSnapshot:l,hasLimitedData:!l&&c.x<e.qHyperCube.qSize.qcx,hasData:c.x>0&&c.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:f,leftDimensionInfoIndexes:d,isLeftDimension:p,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:m,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeColumnWidth:e.qHyperCube.indentModeColumnWidth??{type:ST.Auto,pixels:xT.PixelsDefault,percentage:xT.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e}),[e,t]),hY=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:i})=>{const{layout:o,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=Ez(e);return t.current=e,t})(OH(i));return Lz(async()=>{const{qHyperCube:t}=o,{maxNumberOfVisibleRows:i,maxNumberOfVisibleColumns:u}=l.current;if(a)return o.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(s,r,i,u)||((e,t,r,n)=>{const{qHyperCube:{qPivotDataPages:i,qSize:o}}=e,{qTop:a,qWidth:s,qHeight:l}=i[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(n,o.qcx)||l<Math.min(r,o.qcy)})(o,n,i,u))){const t=((e,t,r,n,i,o)=>{const a=n.page*n.rowsPerPage,s=Math.min(a+n.rowsPerPage,r.qcy),l=Math.min(ez,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-i)),r>l&&(u=Math.max(0,l-o))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,o),qHeight:Math.min(s-c,i)}})(s,r,o.qHyperCube.qSize,n,i,u);return t?e.getHyperCubePivotData(b$,qH(t)):[]}return t.qPivotDataPages},[o,a,e,r,n.page,n.rowsPerPage,l,s])},mY=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),gY=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:mY({rowsPerPage:r,totalRowCount:e,page:t})}),vY=15,yY=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:i})=>{const{freeResize:o}=M();return N(async e=>{const o=e;if(!o.snapshotData||!n||o.snapshotData.content)return o;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(n-vY,0),u=Math.max(s+i-vY,s,0),c=ez-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=OH(r);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,o+30),qHeight:Math.min(d,a+30)}})(t,i,r),c=qH(u),d={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};o.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(b$,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:i.page,rowsPerPage:i.rowsPerPage},o.snapshotData.object.size.w=r.width,o.snapshotData.object.size.h=r.height}return o}),_(()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,i)}),[t]),e.layout.snapshotData?.content&&!o?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var bY={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const xY=()=>{const e=j(),t=e.language();return R(()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(bY).forEach(t=>{e.add(bY[t])})}(e)},[e]),{translator:e,language:t}},SY=e=>{const t=R(()=>vw(),[]),{flags:r}=e,n=F(),i=(e=>{const t=R(()=>Tz(e),[e]);return k(()=>()=>{t.unmount()},[t]),t})(n),o=z(),a=W(),s=$(),l=H(),u=V(),c=(()=>{const{viewState:e}=M(),t=Ez(new Set),r=void 0!==window.qlikprinting,{promise:n,resolve:i}=R(()=>Sz(),[]),o=wz(e=>{t.current.add(e)},[t]),a=wz(V_(async()=>{await Promise.all(t.current),t.current.clear(),i()},1e3),[i,t]);return L(async()=>{await n},[n]),R(()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:o}),[a,r,e,o])})(),d=((e,t)=>{const[r]=Lz(async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}},[e,t]);return R(()=>{const e=void 0!==r?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),t=r?.qHyperCubeDef.qDimensions.map(e=>e.qDef?.qSortCriterias)??[];return{qAlwaysFullyExpanded:r?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:r?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}},[r])})(a,o),p=fY(o,r),f=(e=>{const t=q();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=B(),m=Mz(o,n),{translator:g,language:v}=xY(),{pageInfo:y,updatePageInfo:b}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,i=t.isDownloadedAsPDForImage||e.isSnapshot,o=(e=>e.layout.snapshotData?.content?.rowsPerPage)(e),[a,s]=A(()=>{const a=((e,t)=>t.isDownloadedAsPDForImage?t.viewState?.renderPage??0:e.isSnapshot?e.layout.snapshotData?.content?.page??0:0)(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!i,...gY(n.qcy,a,o)}}),l=e.layout.qHyperCube.qSize.qcy;return k(()=>{s(t=>({...t,...gY(l,t.page,o),shouldShowPagination:l>e.size.y&&!i}))},[l,e.size.y,s,i,o]),k(()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=mY({...a,page:e});s({...a,page:e,rowsOnCurrentPage:r})}},[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:mY({...a,...e})})}}})(p,c),x=((e,t,r)=>R(()=>((e,t)=>{if(e.isDownloadedAsPDForImage){const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.scrollTop??0,scrollLeft:t?.scrollLeft??0,leftGridScrollLeft:t?.leftGridScrollLeft??0,topGridScrollTop:t?.topGridScrollTop??0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.content?.scrollTop??0,scrollLeft:t?.content?.scrollLeft??0,leftGridScrollLeft:t?.content?.leftGridScrollLeft??0,topGridScrollTop:t?.content?.topGridScrollTop??0}})(r,t.snapshotData),[r,e.page,t.snapshotData]))(y,o,c),S=yY({rect:G(),layoutService:p,viewService:x,model:a,pageInfo:y}),[w,C]=hY({model:a,layoutService:p,viewService:x,pageInfo:y,rect:S}),E=R(()=>((e,t)=>{const r=t.layout.components?.find(e=>"theme"===e.key),n=r?.header,i=r?.dimensionValues,o=r?.measureValues,a=r?.measureLabels,s=r?.totalValues,l=r?.nullValues,u=r?.grid,c=(t,r,n)=>e.getStyle(t,r,n),d=+(u?.[QU.LineClamp]??c(eY.Grid,tY.Grid,rY.LineClamp)??1),p=+(u?.[QU.ColumnLineClamp]??c(eY.Grid,tY.Grid,rY.ColumnLineClamp)??1),f=iY(e,n?.[QU.Background])??c(eY.Dimension,tY.LabelName,rY.BackgroundColor)??rz.Transparent,h={header:{fontSize:nY(n?.[QU.FontSize])??c(eY.Dimension,tY.LabelName,rY.FontSize)??JF,fontFamily:n?.[QU.FontFamily]??c(eY.Dimension,tY.LabelName,rY.FontFamily)??ZF,fontWeight:aY(n?.[QU.FontStyle],QF),fontStyle:sY(n?.[QU.FontStyle]),textDecoration:lY(n?.[QU.FontStyle]),color:iY(e,n?.[QU.FontColor])??c(eY.Dimension,tY.LabelName,rY.FontColor)??aN.TEXT,background:f,hoverBackground:ej(f,wT),activeBackground:ej(f,CT)},dimensionValues:{fontSize:nY(i?.[QU.FontSize])??c(eY.Dimension,tY.LabelValue,rY.FontSize)??JF,fontFamily:i?.[QU.FontFamily]??c(eY.Dimension,tY.LabelValue,rY.FontFamily)??ZF,fontWeight:aY(i?.[QU.FontStyle],void 0),fontStyle:sY(i?.[QU.FontStyle]),textDecoration:lY(i?.[QU.FontStyle]),color:iY(e,i?.[QU.FontColor])??c(eY.Dimension,tY.LabelValue,rY.FontColor)??aN.TEXT,background:iY(e,i?.[QU.Background])??c(eY.Dimension,tY.LabelValue,rY.BackgroundColor)??rz.Transparent},measureValues:{fontSize:nY(o?.[QU.FontSize])??c(eY.Measure,tY.LabelValue,rY.FontSize)??JF,fontFamily:o?.[QU.FontFamily]??c(eY.Measure,tY.LabelValue,rY.FontFamily)??ZF,fontWeight:aY(o?.[QU.FontStyle],"normal"),fontStyle:sY(o?.[QU.FontStyle]),textDecoration:lY(o?.[QU.FontStyle]),color:iY(e,o?.[QU.FontColor])??c(eY.Measure,tY.LabelValue,rY.FontColor)??rz.FontSecondary,background:iY(e,o?.[QU.Background])??c(eY.Measure,tY.LabelValue,rY.BackgroundColor)??rz.Transparent},measureLabels:{fontWeight:aY(a?.[QU.FontStyle],"normal"),fontStyle:sY(a?.[QU.FontStyle]),textDecoration:lY(a?.[QU.FontStyle]),color:iY(e,a?.[QU.FontColor])??c(eY.Measure,tY.LabelName,rY.FontColor)??rz.FontSecondary,background:iY(e,a?.[QU.Background])??c(eY.Measure,tY.LabelName,rY.BackgroundColor)??rz.Transparent},totalValues:{fontWeight:aY(s?.[QU.FontStyle],QF),fontStyle:sY(s?.[QU.FontStyle]),textDecoration:lY(s?.[QU.FontStyle]),color:iY(e,s?.[QU.FontColor])??c(eY.Total,tY.LabelValue,rY.FontColor)??aN.TEXT,background:iY(e,s?.[QU.Background])??c(eY.Total,tY.LabelValue,rY.BackgroundColor)??rz.Transparent},nullValues:{fontWeight:aY(l?.[QU.FontStyle],"normal"),fontStyle:sY(l?.[QU.FontStyle]),textDecoration:lY(l?.[QU.FontStyle]),color:iY(e,l?.[QU.FontColor])??c(eY.Null,tY.LabelValue,rY.FontColor)??aN.TEXT,background:iY(e,l?.[QU.Background])??c(eY.Null,tY.LabelValue,rY.BackgroundColor)??rz.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:iY(e,u?.[QU.Border])??c(eY.Grid,tY.Grid,rY.BorderColor)??rz.DividerLight,divider:iY(e,u?.[QU.Divider])??c(eY.Grid,tY.Divider,rY.BorderColor)??rz.DividerDark,background:iY(e,u?.[QU.Background])??c(eY.Grid,tY.Grid,rY.BackgroundColor)??rz.Transparent},selectedColors:Q_(e)};return h.headerCellHeight=Math.max(oY(h.header.fontSize,p),oY(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(oY(h.measureValues.fontSize,d),oY(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=oY(h.dimensionValues.fontSize,1),h})(m,p),[m,p]),I=((e,t,r)=>{const[,n,i]=Lz(async()=>{const t=_N(r.flags),n=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),o=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,i,o,_z].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,r]);return i?(console.warn("Failed to load fonts:",i),!0):!n})(m,o,e),{direction:D}=M();dY([pY({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),k(()=>{!C&&a&&!!w&&I&&ZU(i,{selections:h,baseObjects:{rect:S,pageInfo:y,qPivotDataPages:w,updatePageInfo:b,direction:D},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:E,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}},t)},[a,s,S,f,h,x,p,c,C,w,E,i,I,g,v,y,b,d,l,u,m,e,D,t])},wY={version:"7.20.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},CY=()=>({...wY,qHyperCubeDef:{...wY.qHyperCubeDef,qIndentMode:!1}})}}});
|
|
102
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=p-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,p):"";if(n=(t="-"===(e=e.substring(f,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(o),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,p=d.length,b=0;b<p;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<p-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},YN({exports:{}});const a_=(e,t=hj.TEXT,n=hj.WHITE)=>{const r=Pj(e??""),i=Pj(t),o=Pj(n);return r.isInvalid()?t:function(e,t,n){const r=Mj(e,t),i=Mj(e,n);if(void 0!==r&&void 0!==i)return r>i?t:n}(r,o,i).getRGB()},s_=e=>{const t=e.getStyle("","","dataColors.selected")||hj.SELECTED,n=function(e,t){const n=Pj(Lj),r=Pj(e),i=Pj(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;const o=Mj(n,r),a=Mj(i,r),s=o>a||o>4.5;return!s&&a>3?i.getHex():s?Lj:"#000000"}(t,hj.TEXT);return{background:t,color:n}},l_=(e,t)=>{const n=Pj(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},u_=e=>{const t=Pj(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},c_=e=>{e.stopPropagation(),e.preventDefault()},d_=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},p_=e=>{const{currentTarget:t}=e;if("true"===t.getAttribute("data-dragging"))return!0;const n=t.closest(".exploration-panel");if(!n)return!1;const r=n.getElementsByClassName("section-item-container");return Array.from(r).some(e=>"true"===e.getAttribute("data-dragging"))},f_=(e,t)=>{const{key:n,currentTarget:r}=e;if(r===t.current&&n===DT.Tab)if(e.preventDefault(),e.shiftKey)((e,t)=>{const{currentTarget:n}=e;if(n!==t.current)return;const r=n.closest('[role="region"]')?.getElementsByTagName("button")[0];r&&d_(r)})(e,t);else{const e=r.parentElement?.getElementsByClassName("exploration-section-header")[0];e&&d_(e)}},h_=(e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=t.sectionIndex??2;if(0===r)return void((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel")?.getElementsByTagName("input")[0];r&&d_(r)})(e,t);const i=n.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[r-1],o=i?.getElementsByClassName("exploration-item-focus").length??0;if(o>0){const e=i?.getElementsByClassName("exploration-draggable-icon")[o-1];e&&d_(e)}},m_=(e,t)=>{const{key:n}=e;switch(n){case DT.Tab:c_(e),e.shiftKey?h_(e,t):((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),i=r?.getElementsByClassName("exploration-item-focus")[0];if(!i){const e=n.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[2].getElementsByClassName("exploration-section-header")[0];return void(e&&d_(e))}d_(i)})(e,t);break;case DT.Down:if(p_(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel"),i=r?.getElementsByClassName("exploration-section-header").length??0;let o=null;if(0===i)return;const a=t.sectionIndex??2;o=a+1<i?r?.getElementsByClassName("exploration-section-header")[a+1]:r?.getElementsByClassName("exploration-section-header")[0],o&&d_(o)})(e,t);break;case DT.Up:if(p_(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel"),i=r?.getElementsByClassName("exploration-section-header").length??0;let o=null;if(0===i)return;const a=t.sectionIndex??2;o=a-1>=0?r?.getElementsByClassName("exploration-section-header")[a-1]:r?.getElementsByClassName("exploration-section-header")[i-1],o&&d_(o)})(e,t);break;case DT.Enter:case DT.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},g_=({children:e})=>fo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),v_=({children:e,sectionIndex:t})=>{const r=qw(void 0!==t?BT(t):cj),i=Tw(void 0!==t?GT(t):dj),o=n.useRef(null),a={ref:o,toggleAllCheckboxes:i,checkState:r,sectionIndex:t};return fo.jsxs(sc,{ref:o,className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{m_(e,a)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"12px","&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}},children:[fo.jsx(Oc,{disabled:"disabled"===r,checked:"all"===r,indeterminate:"some"===r,onChange:e=>{i(e.target.checked)},size:"small",style:{flexShrink:0,padding:9}}),fo.jsx(g_,{children:e})]})},y_=({sectionIndex:e})=>{const t=qw($T(e));return fo.jsx(v_,{sectionIndex:e,children:t})},b_=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),x_=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),S_=Sl("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),w_=Sl(x_)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}})),C_=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,E_=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===DT.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},I_=e=>{const{currentTarget:t}=e,n=C_(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),i=e?.querySelector(".exploration-section-header");if(i)return i;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const i=r.getElementsByClassName(t);return i.length>0?i[i.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},D_=(e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&d_(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void d_(e)}n===t.items.explorationItemFocusRef.current&&t.toggleCheckedById(t.id)},R_=e=>{const t=e.key===DT.Down?(e=>{const{currentTarget:t,key:n}=e,r=C_(t),i=t.closest("li");let o=i?.nextElementSibling?.getElementsByClassName(r)[0];return o||(o=E_(t,n),o)?o:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):I_(e);t&&d_(t)},P_=(e,t)=>{const{key:n}=e;switch(n){case DT.Tab:if(e.shiftKey)e.preventDefault(),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&d_(e))}const n=I_(e);n&&d_(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void d_(t);const r=I_(e);r&&d_(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return d_(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&d_(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&d_(n),!0}const i=E_(n,r);if(!i)return!1;d_(i)}return!0})(e,t);n?c_(e):e.stopPropagation()}break;case DT.Down:case DT.Up:if(p_(e))break;c_(e),R_(e);break;case DT.Enter:if(e.currentTarget===t.items.explorationItemRef.current&&t.dragHandleRef){t.dragHandleRef(e.currentTarget);break}c_(e),D_(e,t);break;case DT.Space:c_(e),D_(e,t)}},M_=({children:e})=>fo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1,paddingLeft:4},children:e}),L_=({icon:e,title:t,dragHandleRef:r,...i})=>{const[o,a]=jw(wC),s=qw(Zw),l=n.useRef(null),u=n.useRef(null),c=n.useRef(null),d={id:i.id,itemIndex:i.itemIndex,toggleCheckedById:a,items:{explorationItemRef:l,explorationItemFocusRef:u,draggableIconRef:c},dragHandleRef:r};return n.useEffect(()=>{r&&l.current&&r(l.current)},[r]),fo.jsxs(sc,{ref:l,className:"exploration-item",onClick:e=>{e.stopPropagation(),a(i.id)},onKeyDown:e=>{P_(e,d)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"12px"},title:t,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}},children:[fo.jsxs(sc,{ref:u,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{P_(e,d)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}},children:[fo.jsx(Oc,{checked:o.has(i.id),"aria-label":s("ChartExploration.ListItem.Label",t),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0,visibility:-1===i.id?"hidden":"visible"}}),fo.jsx(e,{height:"12px",style:{flexShrink:0}}),fo.jsx(M_,{children:t})]}),fo.jsx(w_,{ref:c,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{P_(e,d)}})]})},A_=e=>{const t=qw(WT(e))??"";return fo.jsx(L_,{title:t,icon:b_,...e})},k_=()=>{const e=qw(HT),t=qw(VT),n=qw(nj),r=Tw(UT);return fo.jsx(wT,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:n,onDragEnd:r,dragOverlayRenderer:ij,headerRenderer:y_,itemRenderer:A_})},O_=({itemIndex:e})=>{const t=qw(sj(e));return fo.jsx(rj,{children:t})},q_=()=>{const e=qw(Zw);return fo.jsx(v_,{children:e("Common.Values")})},T_=x((e,t)=>fo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[fo.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),fo.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),j_=e=>{const{itemIndex:t}=e,n=qw(sj(t));return fo.jsx(L_,{title:n,icon:T_,...e})},N_=()=>{const e=qw(lj),t=qw(uj),n=qw(tj),r=Tw(pj);return fo.jsx(sc,{className:"exploration-header-section",style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:fo.jsx(wT,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:n,onDragEnd:r,dragOverlayRenderer:O_,headerRenderer:q_,itemRenderer:j_})})},__=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),F_=()=>{const[e,t]=jw(Qw),r=qw(Zw),i=n.useRef(null),[o]=qw(uj),[a=0,s=0]=qw(VT),l=f(e=>{t(e.target.value)},[t]),u=0===e.length||0===a&&0===s&&0===o?r("Common.Search.NoResultsAvailable"):r("ChartExploration.Pivot.Search.ResultsFound",a.toString(),s.toString(),o.toString());return fo.jsxs(sc,{ref:i,onKeyDown:e=>{f_(e,i)},style:{position:"sticky",top:0,zIndex:10,width:"calc(100% - 16px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:8,paddingLeft:8,paddingBottom:8},children:[fo.jsx(S_,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:u}),fo.jsx(Vp,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":r("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:r("Common.Search"),onChange:l,startAdornment:fo.jsx(xd,{position:"start",children:fo.jsx(__,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},z_=e=>{const t=_s(kf());return fo.jsx(Cl,{theme:t,children:fo.jsx(Pw,{children:fo.jsx(CC,{props:e,children:fo.jsxs(sc,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[fo.jsx(F_,{}),fo.jsx(k_,{}),fo.jsx(N_,{})]})})})})},W_=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:z_,classification:{tags:["exploration"],exclusive:!0}}};var $_=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}($_||{}),H_=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(H_||{}),V_=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(V_||{}),B_=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(B_||{});const G_=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,U_=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,r="}",i="";switch(e.type){case V_.SEARCH:i=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case $_.BEGINNING_OF_WORD:t="*^",n="*";break;case $_.ENDS_WITH:t="*";break;case $_.STARTS_WITH:n="*";break;case $_.MATCHES_EXACTLY:break;case $_.CONTAINS:default:t="*",n="*"}const i=e.options.values?.[0]??"";return""!==i?`"${t}${i}${n}"`:""})(e);break;case V_.CONDITION:i=(e=>{const{options:t}=e,n=t?.mode===H_.GENERAL,r=t?.modifier?.type===B_.FIXED_VALUE,i=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===i.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let o,a,s="=";n&&r?(o=`${t.conditionField?.aggregator}(${G_(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(o="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(o=`${t.conditionField?.aggregator}(${G_(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${G_(t.firstValue?.field)})`):(o=`${G_(e.field)}`,a=`${t.firstValue?.aggregator}(total ${G_(t.firstValue?.field)})`);const l=`${s}${o}${i[0]}${a}`;let u="";if(i.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${o}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${G_(t.secondValue?.field)})`,a=` and ${o}`):(e=`${t.secondValue?.aggregator}(total ${G_(t.secondValue?.field)})`,a=` and ${o}`),u=`${a}${i[1]}${e}`}return`"${l}${u}"`})(e);break;case V_.CLEAR_SELECTION:i=`[${e.field}]=`,t="",r="";break;case V_.VALUES:default:i=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==i&&n.push(`${t}${i}${r}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},Y_=[];for(let e=0;e<256;++e)Y_.push((e+256).toString(16).slice(1));let K_;const X_=new Uint8Array(16);var J_={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Z_(e,t,n){const r=(e=e||{}).random??e.rng?.()??function(){if(!K_){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");K_=crypto.getRandomValues.bind(crypto)}return K_(X_)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(Y_[e[t+0]]+Y_[e[t+1]]+Y_[e[t+2]]+Y_[e[t+3]]+"-"+Y_[e[t+4]]+Y_[e[t+5]]+"-"+Y_[e[t+6]]+Y_[e[t+7]]+"-"+Y_[e[t+8]]+Y_[e[t+9]]+"-"+Y_[e[t+10]]+Y_[e[t+11]]+Y_[e[t+12]]+Y_[e[t+13]]+Y_[e[t+14]]+Y_[e[t+15]]).toLowerCase()}(r)}const Q_=()=>crypto?.randomUUID?.()??function(e){return J_.randomUUID&&!e?J_.randomUUID():Z_(e)}(),eF=1e3,tF=1e3,nF=e=>{if(0===e.qInterColumnSortOrder.length)return;const t=e.qDimensions,n=((e,t)=>{const n=new Set;for(const t of e){if(n.has(t))return!0;n.add(t)}const r=e.includes(-1),i=e.filter(e=>-1!==e);if(t){const n=r?t.length+1:t.length;if(e.length!==n)return!0}const o=[...i].sort((e,t)=>e-t);for(let e=0;e<o.length;e++)if(o[e]!==e)return!0;return!1})(e.qInterColumnSortOrder,t);n&&(e.qInterColumnSortOrder=((e,t)=>{const n=[];if(t)for(let e=0;e<t.length;e++)n.push(e);return e.qMeasures.length>=2&&n.push(-1),n})(e,t))},rF=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},iF=e=>{if(!e)return;nF(e);const t=e.qDimensions,{qInterColumnSortOrder:n}=e;((e,t=[])=>{const n=t.filter(e=>-1!==e);for(let r=0;r<n.length;r++)if(-1!==n[r]&&n[r]!==r){const i=n[r],o=n.indexOf(r),a=n[o];rF(n,r,o),rF(e,r,o),rF(t,t.indexOf(i),t.indexOf(a))}})(t,n)},oF=R;class aF extends oF{#u;constructor(e,t){super(e),this.path=e.path,this.#u=t}async addDimension(e,t,n,r){if(!e||this.#c(e))return;const i=t??!1;if(e.qDef.cId||(e.qDef.cId=Q_()),r)return this.addAlternativeDimension(e,i,n);if(this.getDimensions().length<this.maxDimensions()){const t=await(async(e,t,n,r)=>{const i=e.getDimensions(),o=e.hcProperties.qNoOfLeftDims;return await e.autoSortDimension(t),iF(e.hcProperties),(-1===o||Number.isNaN(+o))&&(e.hcProperties.qNoOfLeftDims=i.length),n?((e,t,n,r)=>{if(!e)return;const{qInterColumnSortOrder:i,qNoOfLeftDims:o}=e,a=t.length,s=i.indexOf(-1),l=-1!==s,u=void 0!==r?r+(o||0):void 0;if(l&&void 0!==u&&s>=u?((e,t,n)=>{t.splice(n,1),t.push(e),t.splice(n+1,0,-1)})(a,i,s):i.push(a),void 0===r)t.push(n);else if(void 0!==u){const e=l&&u>s?u-1:u;t.splice(e,0,n)}})(e.hcProperties,i,t,r):((e,t,n,r)=>{if(!e||"number"!=typeof e.qNoOfLeftDims)return;const i=e.qNoOfLeftDims,{qInterColumnSortOrder:o}=e,a=t.length,s=o.indexOf(-1),l=-1!==s&&i>0&&s<i;if(o.push(a),l)void 0===r?t.splice(i-1,0,n):s<r?t.splice(r-1,0,n):(t.splice(r,0,n),o.splice(s,1),o.splice(s+1,0,-1));else{const e=r??i;t.splice(e,0,n),-1!==s&&(o.splice(s,1),o.splice(s+1,0,-1))}e.qNoOfLeftDims++})(e.hcProperties,i,t,r),t})(this,e,i,n);return this.#d({section:i?"columns":"rows",cId:e.qDef.cId,addLast:void 0===n}),t}}async addDimensions(e,t,n){const r=[];for await(const i of e){const e=await this.addDimension(i,n,void 0,t);e&&r.push(e)}return r}addAlternativeDimension(e,t,n){if(!e||this.#c(e))return;const r=this.getAlternativeDimensions();void 0===this.hcProperties.excludedNoOfLeftDims&&(this.hcProperties.excludedNoOfLeftDims=r.length);let i=n;return i=void 0===i?t?r.length:this.hcProperties.excludedNoOfLeftDims:t?this.hcProperties.excludedNoOfLeftDims+i:Math.min(i,this.hcProperties.excludedNoOfLeftDims),r.splice(i,0,e),t||this.hcProperties.excludedNoOfLeftDims++,this.#d({section:t?"columns":"rows",cId:e.qDef.cId,alternative:!0,addLast:void 0===n}),e}async addFieldDimension(e,t,n,r={}){const i=this.createFieldDimension(e,t,n);return this.addDimension(i,r.asColumn,void 0,!1)}async addFieldDimensions(e,t={}){const n=e.map(e=>this.createFieldDimension(e.field,e.label,e.defaults));return this.addDimensions(n,void 0,t.asColumn)}async addLibraryDimensions(e,t={}){const n=e.map(e=>this.createLibraryDimension(e.id,e.defaults));return this.addDimensions(n,void 0,t.asColumn)}reinsertDimension(e,t,n){e.qDef.cId||(e.qDef.cId=Q_());if(this.getDimensions().length<this.maxDimensions())return this.addDimension(e,t,n);return this.reinsertAlternativeDimension(e,n,t)}reinsertAlternativeDimension(e,t,n){const r=this.getDimensions(),i=this.getAlternativeDimensions();if(r.length>=eF)return Promise.resolve();const o="number"==typeof t?t:i.length;return i.splice(o,0,e),this.#d({section:n?"columns":"rows",cId:e.qDef.cId,alternative:!0}),Promise.resolve(e)}async removeDimensions(e,t,n){return Promise.all([...e].reverse().map(e=>this.removeDimension(e,t,n)))}async removeDimension(e,t,n){if(t){const t=this.getAlternativeDimensions().splice(e,1)[0];return!n&&this.hcProperties.excludedNoOfLeftDims&&this.hcProperties.excludedNoOfLeftDims--,this.#p({cId:t.qDef.cId,section:n?"columns":"rows"}),t}const r=this.getDimensions(),i=this.properties.qHyperCubeDef.qNoOfLeftDims,o=this.hcProperties.qInterColumnSortOrder.indexOf(e);"number"==typeof this.properties.qHyperCubeDef.qNoOfLeftDims&&"number"==typeof o&&"number"==typeof i&&o+1<=i&&this.properties.qHyperCubeDef.qNoOfLeftDims--;const a=this.properties.qHyperCubeDef.columnWidths?this.properties.qHyperCubeDef.columnWidths[1]:void 0;Array.isArray(a)&&a.length>e&&a.splice(e,1);const s=r.splice(e,1).at(0);if(s)return((e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;e.splice(n,1)})(this.hcProperties.qInterColumnSortOrder,e),iF(this.hcProperties),this.#p({cId:s.qDef.cId,section:n?"columns":"rows"}),s}#c(e){return!(!e||void 0===e.qDef.cId)&&[...this.getDimensions(),...this.getAlternativeDimensions()].some(t=>t.qDef.cId===e.qDef.cId)}async addMeasures(e,t=!1){const n=[];for await(const r of e){const e=await this.addMeasure(r,t,void 0,!0);e&&n.push(e)}return n}addAlternativeMeasures(e,t){if(this.#f(e))return;const n=this.getAlternativeMeasures(),r=void 0===t?n.length:t,i=n.splice(r,0,e);return this.#h({cId:e.qDef.cId,alternative:!0,addLast:void 0===t}),i}async addMeasure(e,t,n,r){if(this.#f(e))return;if(e.qDef.cId||(e.qDef.cId=Q_()),t)return this.addAlternativeMeasures(e,n);r||delete e.qDef.qNumFormat;const i=this.getMeasures();if(i.length<this.maxMeasures()){const t=1===i.length;return void 0!==n&&n>=0?i.splice(n,0,e):i.push(e),this.autoSortMeasure(e).then(()=>(t&&(this.hcProperties.qInterColumnSortOrder.push(-1),0===this.getDimensions().length&&(this.hcProperties.qNoOfLeftDims=0)),this.#h({cId:e.qDef.cId,addLast:void 0===n}),e))}return i.length<tF?(this.getAlternativeMeasures().push(e),this.#h({cId:e.qDef.cId,alternative:!0,addLast:void 0===n}),Promise.resolve(e)):Promise.resolve()}reinsertMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures(),i=this.hcProperties.qInterColumnSortOrder;if(e.qDef.cId||(e.qDef.cId=Q_()),t=void 0!==t?t:n.length,n.length<this.maxMeasures()){if(n.splice(t,0,e),2===n.length){-1===i.indexOf(-1)&&i.push(-1)}this.#h({cId:e.qDef.cId})}else n.length<tF&&(t=r.length,r.splice(t,0,e),this.#h({cId:e.qDef.cId}));return Promise.resolve(e)}async removeMeasure(e,t){if(t&&"number"==typeof e){const t=this.getAlternativeMeasures().splice(e,1)[0];return this.#p({cId:t.qDef.cId,section:"measures"}),t}const n=this.getMeasures();let r,i,o;if("number"==typeof e&&e<n.length){r=2===n.length,i=this.getMeasures().splice(e,1)[0];const t=this.hcProperties.qInterColumnSortOrder;r&&(o=t.indexOf(-1),t.splice(o,1),this.hcProperties.qNoOfLeftDims&&o+1<=this.hcProperties.qNoOfLeftDims&&this.hcProperties.qNoOfLeftDims--)}else"number"==typeof e&&(i=this.getAlternativeMeasures().splice(e-n.length,1)[0]);if(i)return this.#p({cId:i.qDef.cId,section:"measures"}),i}async removeMeasures(e,t){return await Promise.all([...e].reverse().map(e=>this.removeMeasure(e,t))),e}#f(e){return!(!e||void 0===e.qDef.cId)&&[...this.getMeasures(),...this.getAlternativeMeasures()].some(t=>t.qDef.cId===e.qDef.cId)}getSorting(){throw new Error("don't call this")}changeSorting(){throw new Error("don't call this")}setSorting(){throw new Error("don't call this")}getRowDimensions(){const e=this.#m("rows"),t=this.getDimensions();return e.filter(e=>e>=0).map(e=>t[e])}getColumnDimensions(){const e=this.#m("columns"),t=this.getDimensions();return e.filter(e=>e>=0).map(e=>t[e])}getAlternativeRowDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?e:e.slice(0,t)}getAlternativeColumnDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?[]:e.slice(t)}#g(e){const t=this.hcProperties.rankedList?.[e];return t||this.createRankedList(e)}#v(e){return[...this.#g(e)]}#y(e,t){return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]=t,t}#b(e){const t=({qDef:t})=>t.cId===e;if(-1===e){return this.hcProperties.qInterColumnSortOrder.indexOf(-1)+1<=this.hcProperties.qNoOfLeftDims?"rows":"columns"}return this.getRowDimensions().some(t)||this.getAlternativeRowDimensions().some(t)?"rows":this.getColumnDimensions().some(t)||this.getAlternativeColumnDimensions().some(t)?"columns":null}#x(e){const t=({qDef:t})=>t.cId===e;return!(!this.getAlternativeDimensions().some(t)&&!this.getAlternativeMeasures().some(t))}#m(e){const{qInterColumnSortOrder:t,qNoOfLeftDims:n}=this.hcProperties;if(this.#S())return"columns"===e?t:[];switch(e){case"rows":return-1===n?t:t.slice(0,n);case"columns":return-1===n?[]:t.slice(n);default:throw new Error(`Unknown section in #getInterColumnSortOrderBySection: ${e}`)}}#S(){const{qNoOfLeftDims:e}=this.hcProperties,t=-1===e||Number.isNaN(+e);return 0===this.getDimensions().length&&this.getMeasures().length>0&&t}#w(e){const t=this.hcProperties.qInterColumnSortOrder.indexOf(-1);if(-1===t)return!1;if(this.#S())return"columns"===e;if(void 0===this.hcProperties.qNoOfLeftDims)return"rows"===e;switch(e){case"rows":return t+1<=this.hcProperties.qNoOfLeftDims;case"columns":return t+1>this.hcProperties.qNoOfLeftDims;default:return!1}}#C(e,t=!0){const n=e=>-1===e?-1:e.qDef.cId;if("measures"===e)return this.getMeasures().concat(t?this.getAlternativeMeasures():[]).map(n);const r=this.#m(e),i=this.getDimensions(),o=r.map(e=>-1===e?-1:i[e]);switch(e){case"rows":return o.concat(t?this.getAlternativeRowDimensions():[]).map(n);case"columns":return o.concat(t?this.getAlternativeColumnDimensions():[]).map(n);default:throw new Error(`Unknown section in #isCorruptRankedList: ${e}`)}}isRankedListCorrupt(e){const t=this.hcProperties.rankedList?.[e],n=this.properties.qInfo?.qId;if(!t)return!0;if(new Set(t).size!==t.length){const r=t.filter((e,n)=>t.indexOf(e)!==n);return console.warn("Corrupt ranked list detected: duplicate ids",{duplicates:r,section:e,chartId:n}),!0}const r=this.#C(e);if(t.length!==r.length)return console.warn("Corrupt ranked list detected: length mismatch",{section:e,chartId:n,fieldIds:r,rankedList:t,diff:new Set(r).symmetricDifference(new Set(t))}),!0;const i=r.filter(e=>!t.includes(e));if(i.length>0)return console.warn("Corrupt ranked list detected: missing ids",{missingIds:i,section:e,chartId:n}),!0;const o=this.#C(e,!1),a=t.filter(e=>o.includes(e)),s=o.filter((e,t)=>e!==a[t]);return s.length>0&&(console.warn("Corrupt ranked list detected: main field order mismatch",{section:e,chartId:n,orderMismatchIds:s}),!0)}createRankedList(e){switch(e){case"rows":case"columns":return this.#E({section:e});case"measures":return this.#I();default:throw new Error(`Unknown section in getRankedList: ${e}`)}}#E({section:e}){const t=this.getDimensions(),n=this.#m(e),r="columns"===e?this.getAlternativeColumnDimensions():this.getAlternativeRowDimensions(),i=n.map(e=>-1===e?-1:t[e].qDef.cId);return i.push(...r.map(e=>e.qDef.cId)),this.#y(e,i)}#I(){if(void 0!==this.hcProperties.rankedList?.measures)return this.hcProperties.rankedList.measures;const e=[...this.getMeasures(),...this.getAlternativeMeasures()].map(e=>e.qDef.cId);return this.#y("measures",e)}#D({section:e,cId:t,fields:n,addLast:r}){const i=this.#g(e),o=n.findIndex(e=>e.qDef.cId===t),a=n[o+1]?.qDef.cId,s=n[o-1]?.qDef.cId;if(r)i.push(t);else if(o>=0)if(a){const e=i.indexOf(a);i.splice(e,0,t)}else if(s){const e=i.indexOf(s);i.splice(e+1,0,t)}else i.push(t);return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]}#d({section:e,cId:t,alternative:n=!1,addLast:r=!1}){if(void 0===this.hcProperties.rankedList?.[e])return this.#E({section:e});let i=[];return i="columns"===e?n?this.getAlternativeColumnDimensions():this.getColumnDimensions():n?this.getAlternativeRowDimensions():this.getRowDimensions(),this.#D({section:e,cId:t,fields:i,addLast:r})}#h({cId:e,alternative:t=!1,addLast:n=!1}){if(void 0===this.hcProperties.rankedList?.measures)return this.#I();const r=t?this.getAlternativeMeasures():this.getMeasures();return this.#R(),this.#D({section:"measures",cId:e,fields:r,addLast:n})}#R(){const e=this.#g("rows"),t=this.#g("columns");this.#w("rows")&&!e.includes(-1)?e.push(-1):this.#w("columns")&&!t.includes(-1)&&t.push(-1)}#P(){if(this.hcProperties.qInterColumnSortOrder.includes(-1))return;const e=this.#g("rows"),t=this.#g("columns"),n=e.indexOf(-1),r=t.indexOf(-1);-1!==n&&e.splice(n,1),-1!==r&&t.splice(r,1)}#p({cId:e,section:t}){const n=this.#g(t),r=n.indexOf(e);-1!==r&&(n.splice(r,1),this.#P())}async moveMeasureToAlternative(e){const t=this.getMeasures().findIndex(t=>t.qDef.cId===e),n=this.#v("measures"),r=n.indexOf(e);if(-1===t)return;const i=await this.removeMeasure(t);if(void 0===i)return;const o=n.slice(r+1).find(e=>this.getAlternativeMeasures().some(t=>t.qDef.cId===e)),a=this.getAlternativeMeasures().findIndex(e=>e.qDef.cId===o);await this.addAlternativeMeasures(i,-1===a?void 0:a),this.#y("measures",n)}async moveMeasureFromAlternative(e){const t=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e),n=this.#v("measures"),r=n.indexOf(e);if(-1===t)return;const i=await this.removeMeasure(t,!0);if(void 0===i)return;const o=this.getMeasures().map(e=>e.qDef.cId),a=n.slice(r+1).find(e=>o.includes(e)),s=o.findIndex(e=>e===a);await this.addMeasure(i,!1,-1===s?void 0:s),this.#y("measures",n)}async moveDimensionToAlternative(e){const t=this.#b(e),n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n||null===t)return;const r=this.#v(t),i=r.indexOf(e),o="columns"===t,a=await this.removeDimension(n,!1,o);if(void 0===a)return;const s=r.slice(i+1).find(e=>this.getAlternativeDimensions().some(({qDef:t})=>t.cId===e));let l=this.getAlternativeDimensions().findIndex(({qDef:e})=>e.cId===s);l=-1===l?void 0:l;void 0!==this.addAlternativeDimension(a,o,l)&&this.#y(t,r)}async moveDimensionFromAlternative(e){const t=this.#b(e),n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n||null===t)return;const r=this.#v(t),i=r.indexOf(e),o="columns"===t,a=await this.removeDimension(n,!0,o);if(void 0===a)return;const s=this.#C(t,!1),l=r.slice(i+1).find(e=>s.includes(e));let u=s.findIndex(e=>e===l);u=-1===u?void 0:u;void 0!==await this.addDimension(a,o,u)&&this.#y(t,r)}movePseudoDimension({toIndex:e,toSection:t}){const n=this.#b(-1);if(null===n)return void console.error("Cannot move pseudo dimension, unable to find it in any section",{toIndex:e,toSection:t});const r="columns"===t,i=n===t,o=this.#v(t);if(i){const e=o.indexOf(-1);o.splice(e,1)}else{const i=this.#g(n),o=i.indexOf(-1);if(-1===o)return void console.error("Couldn't delete pseudo dimension from current section",{toIndex:e,toSection:t,fromSection:n});i.splice(o,1),this.hcProperties.qNoOfLeftDims=r?Math.max(0,this.hcProperties.qNoOfLeftDims-1):this.hcProperties.qNoOfLeftDims+1}const a=e-o.slice(0,e).filter(e=>this.#x(e)).length,s=r?this.hcProperties.qNoOfLeftDims+a:a,l=this.hcProperties.qInterColumnSortOrder.indexOf(-1);this.hcProperties.qInterColumnSortOrder.splice(l,1),this.hcProperties.qInterColumnSortOrder.splice(s,0,-1),o.splice(e,0,-1),this.#y(t,o)}async moveDimension({cId:e,toIndex:t,toSection:n}){const r=this.#b(e),i=this.#x(e);if(null===r)return void console.error("Cannot move dimension, unable to find it in any section",{cId:e});const o=(i?this.getAlternativeDimensions():this.getDimensions()).findIndex(({qDef:t})=>t.cId===e);if(-1===o)return void console.error("Couldn't find dimension to move",{cId:e,toIndex:t,toSection:n});const a=this.#v(n),s=a.indexOf(e);-1!==s&&a.splice(s,1);const l=t-a.slice(0,t).filter(e=>this.#x(e)!==i).length,u="columns"===n,c="columns"===r,d=await this.removeDimension(o,i,c);if(void 0===d)return;void 0!==await this.addDimension(d,u,l,i)&&(a.splice(t,0,e),this.#y(n,a))}async moveMeasure({cId:e,toIndex:t}){const n=this.#x(e),r=(n?this.getAlternativeMeasures():this.getMeasures()).findIndex(t=>t.qDef.cId===e);if(-1===r)return void console.error("Cannot move measure, unable to find it in any section",{cId:e});const i=this.#v("measures"),o=i.indexOf(e);-1!==o&&i.splice(o,1);const a=t-i.slice(0,t).filter(e=>this.#x(e)!==n).length,s=await this.removeMeasure(r,n);if(void 0===s)return;void 0!==await this.addMeasure(s,n,a)&&(i.splice(t,0,e),this.#y("measures",i))}getLabels(){return this.getMeasures().filter(e=>!e.qLibraryId&&!!e.qDef.qLabel).map(e=>e.qDef.qLabel)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,i=Array.isArray(this.properties.filters)?this.properties.filters:[],o={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:Q_(),qTags:Array.isArray(t)?t:[],isNumeric:n};return i.push(o),this.properties.filters=i,this.properties.qHyperCubeDef.qContextSetExpression=U_(i),o}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#M(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=U_(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const n=[...e].sort((e,t)=>t-e);t=this.getFilters().filter((t,n)=>e.includes(n));for(const e of n)this.#M(e);return t}getAddDimensionLabel(){return this.#u.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}var sF={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Ae});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function y(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=y(c(r[0],i),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],i),p=c(r[1],i),f=h(0),m=h(1),g=y(d,f),v=y(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){return E="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(e)}var I=t().bind(null,!0),D={},R=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function A(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?o:e[t],e=e[n||t]}}),e}function k(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){k(e[r],t[r])||(n=!1)}),n);if(R(e)&&R(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!k(e[r],t[r]))return!1;return!0}return e===t}D.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(i){var o=function(e){return e?I({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);k(o,a)||L(t,i)||(M(a)?r.push({op:"add",path:s,value:o}):P(o)&&P(a)?r=r.concat(D.generate(a,o,s)):R(o)&&R(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(k(t,i))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(D.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))}),Object.keys(e).forEach(function(i){M(t[i])&&!L(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})}),r},D.apply=function(e,t){t.forEach(function(t){var n,r,i=A(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(R(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(R(a)&&R(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||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.")}())}else if(P(a)&&P(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!L(n,e)&&delete n[e]}),I(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var c=A(e,t.from);R(i)?i.splice(+o,0,c.splice(+s,1)[0]):(i[o]=c[s],delete c[s])}else"remove"===t.op&&(R(i)?i.splice(+o,1):delete i[o])})},D.clone=function(e){return I({},e)},D.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},D.updateObject=function(e,t){Object.keys(e).length?D.apply(e,D.generate(e,t)):I(e,t)};const O=D,q=function(e,n,r){if(!e)return Promise.resolve();var i=O.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(i,!0)):Promise.resolve()};var T="accumulation";function j(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===T)return n[r]}function N(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===T)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),p=w.getAboveComp(n,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:n,properties:r,layout:i})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=j(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=j(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(T))return!1;var o=j(t,e);return o&&!o.disabled}};return n}};var z="movingAverage";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===z)return n[r]}function $(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=w.getNumDimensions({properties:i,layout:a}));var c=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(r,u),h=w.getAboveComp(r,u,p,f);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:r,properties:i,layout:a})){var y=w.getDimComp(c,1),b=w.getDimComp(c,0),x=w.getAggrComp(v,y,b);v=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=W(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=W(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(z))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var B="timeSeriesDecomposition";function G(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===B)return n[r]}function U(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===B)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=G(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e}),e})}},show:function(t){var n=G(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(B))return!1;var o=G(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:i})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(i,o),d=ue(i,o,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach(function(t){void 0===e[t]&&(e[t]=oe[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,fe);return void 0!==t?t:o(e,pe)},getExpressionRef:function(e){return void 0!==o(e,fe)?fe:pe},getLibraryIdRef:function(e){return o(e,me)?me:he},getLibraryId:function(e){return o(e,me)||o(e,he)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",ye="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",De="qDef.base.qAggrFunc",Re={initBase:function(e,t){(t||Re.isValid(e))&&(n(e,ye,o(e,ve)),n(e,xe,o(e,be)),n(e,Ce,o(e,Se)),n(e,Ee,o(e,we)))},restoreBase:function(e){Re.isValid(e)&&(n(e,ve,o(e,ye)),n(e,be,o(e,xe)),n(e,Se,o(e,Ce)),n(e,we,o(e,Ee)),o(e,Ie)&&o(e,De)&&n(e,Ie,o(e,De)),delete e.qDef.base)},isValid:function(e){var t=o(e,ye),n=o(e,xe);return void 0!==t||void 0!==n}};const Pe=Re;function Me(e){return Me="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},Me(e)}var Le={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Ae={modifiers:Le,apply:Oe,applyModifiers:qe,cleanUpMeasure:Te,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:je,getActiveModifier:Ne,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Le[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return Le[e]&&Le[e].isApplicable({properties:n,layout:r})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach(function(e){var t=ze(e);Ue({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Ze({modifiers:t,properties:n,layout:r}))}),i&&!o},ifEnableTotalsFunction:_e};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;ke[n.id]=ke[n.id]||{isFirstTime:!0};var u=ke[n.id].isFirstTime;if(ke[n.id].isFirstTime=!1,r&&"object"===Me(r))return qe({model:n,properties:r});var c=n?n.layout:void 0,d=o(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=o(c,"qHyperCube.qMeasureInfo"),f=ke[n.id].lastReloadTime;if(ke[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),je({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:ze(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then(function(e){var r=t()(!0,{},e);$e(r);var i=Qe(r);return Ye({model:n}).then(function(t){return Ke({libraryIds:i,model:n}).then(function(i){return h&&function(e){var t=e.properties;Fe(t).forEach(function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:r}),qe({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Me(e.base)})}(p)?n.getEffectiveProperties().then(function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then(function(){var e=t()(!0,{},r);return Fe(r).forEach(function(e){return Te(e)}),Je({oldProperties:e,newProperties:r,model:n})})}({model:n,properties:e})}):Promise.resolve(l)}function qe(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),$e(i);var p=Qe(i);return et({model:n,libraryIds:p,masterItem:u}).then(function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!je({measures:n,properties:r}))return n.forEach(function(e){return Te(e)}),Promise.resolve();var l=a?void 0:Qe(r);return Ye({model:i,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:i,libraryItemsProps:a}).then(function(i){n.forEach(function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Pe.isValid(n)||Pe.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Le[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Le[r.type].updateModifier&&Le[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Le[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}})}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),He(n)):Te(n)})})})}({measures:a,properties:i,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)})})}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&!Le[e.type]})}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function je(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({modifiers:ze(e),properties:n,layout:r})})}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Le[r.type]&&!r.disabled)return r}}function _e(e){var t=Ne(e);return!t||Le[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function $e(e){Fe(e).forEach(function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&We(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)})}function He(e){var t=ze(e);Array.isArray(t)&&t.forEach(function(t){"object"===Me(t)&&(t.disabled||!Le[t.type]&&We(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,n=e.properties,r=e.layout;return!Be(t)&&Ue({modifiers:ze(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Me(e)||e.disabled||!Le[e.type])&&(void 0===i[e.type]&&(i[e.type]=Le[e.type].isApplicable({properties:n,layout:r})),i[e.type])})}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then(function(e){i.dimensionList=e});r.push(o);var a=t.app.getFieldList().then(function(e){i.fieldList=e});return r.push(a),Promise.all(r).then(function(){return i})}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),o.forEach(function(e){var t=n.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):q(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return i}):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach(function(t){var r=ze(t);if(Ue({modifiers:r,properties:e})){var o=Be(t);o&&n.push(o),i=i||Ze({modifiers:r,properties:e})}}),o(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach(function(n){t[n]=o(e,n)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then(function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach(function(e){i[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach(function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])}),t.app&&(Object.keys(i).forEach(function(e){i[e]&&!r[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose()}),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),ke[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="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},i(e)}n.d(r,{default:()=>$e});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(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.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(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.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(8),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach(function(e){t.properties[e]=n[e]})},y=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])}),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,n){var r,i,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=o.getValue(e,t);if(!o.isAtomicValue(s))try{if((i=(i=(r=JSON.stringify(s)).match(/:\{/g))?i.length:0)>2&&!a)return;s=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var l=o.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=s}var S=n(909),w=n.n(S);function C(e,t){var n=w()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function E(e,t){return w()(!0,{},t,e)}function I(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var D=Math.pow(2,53)-1;function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},L=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},A=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},q=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(u):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(u):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},j=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=I(a.max,i.dimensions.length,D),l=I(a.min,i.dimensions.length,0);return{maxDimensions:I(o.max,s,D),minDimensions:I(o.min,l,0),maxMeasures:s,minMeasures:l}},N=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},_=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]}),null===(i=w()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},W=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return R(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(t)||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.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),r.dimensions.added(e,n)})}},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(t)||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.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),r.measures.added(e,n)})}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach(function(t){o.setValue(e,t,n[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const B={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),y({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters",!0),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({exportFormat:t,initialProperties:r,hypercubePath:u}),v=o.getValue(r,u||"").qHyperCubeDef,y=o.getValue(g,u||"").qHyperCubeDef,b=j({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,S=b.minDimensions,w=b.maxMeasures,C=b.minMeasures,E=l.defaultDimension,I=void 0===E?k():E,D=l.defaultMeasure,R=void 0===D?O():D;y.qDimensions.length=0,y.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:y}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:y,defaultDimension:I}),T({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:y,defaultMeasure:R}),W({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:y}),L("qMaxStackedCells",v,y),L("qNoOfLeftDims",v,y),A("qInitialDataFetch",v,y,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),A("qMode",v,y,"S"),A("qReductionMode",v,y,"N"),A("qSortbyYValue",v,y),A("qIndentMode",v,y),A("qShowTotalsAbove",v,y),M(g,t,r),m.qProperty=g;var P=o.getValue(c||{},"support.modifiers");return H({measures:y.qMeasures,modifierTypes:P}),p&&V(m.qProperty,"storedFilters"),"S"===y.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var i=c(e,r,n),o=c(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach(function(e){n[e]=t[e]}),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(U(a,t,r,i),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}),t.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var u=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),c=o.getValue(t,"color.formatting.qNumFormat"),p=o.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},he=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=B.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=B.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=o.getValue(d,"visualization"),f=o.getValue(d,"qHyperCubeDef.qDimensions",[]),h=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ye=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ye.includes(r)&&t[i].type[r]++,t[i].type.total++}}),t}(a);l.length?(o&&(t=l.filter(function(e){return e.type[o]>0}).sort(function(e,t){return t.type[o]-e.type[o]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var u=Ce(n,r,l);o.setValue(t,u,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})})}function Ie(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Ce(n,r,s),u=o.getValue(t,l);void 0!==u&&(o.setValue(i,a,u),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})})}var De="qHyperCubeDef.qMeasures",Re="conditionalColoring",Pe="measures",Me="qDef.conditionalColoring";const Le={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Re,arrayName:Pe,itemPath:Me})},unquarantine:function(e){Ie({properties:e,arrayPath:De,itemPath:Me,arrayName:Pe,quarantineName:Re})}};var Ae="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",je="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",Fe="qCalcCondition",ze="conditionalShowHide";const We={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ee({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},unquarantine:function(e){Ie({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ie({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Te,quarantineName:ze,arrayName:je,itemPath:Fe}),Ee({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:_e,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Te,quarantineName:ze,arrayName:je,itemPath:Fe}),Ie({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:_e,itemPath:Fe})}},$e={hypercube:B,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:Le,conditionalShow:We}})(),r.default})()}(sF);var lF=kr(sF.exports);const uF="qHyperCubeDef.qMeasures",cF="measures",dF="qHyperCubeDef.qDimensions",pF="dimensions",fF="qDef.representation",hF="tableRepresentation",mF="qDef.conditionalColoring",gF="conditionalColoring",vF="qMiniChartDef",yF="miniChartDef",bF=e=>{lF.unquarantineArrayProp({properties:e,arrayPath:dF,itemPath:fF,arrayName:pF,quarantineName:hF}),lF.unquarantineArrayProp({properties:e,arrayPath:uF,itemPath:fF,arrayName:cF,quarantineName:hF}),lF.unquarantineArrayProp({properties:e,arrayPath:uF,itemPath:mF,arrayName:cF,quarantineName:gF}),lF.unquarantineArrayProp({properties:e,arrayPath:uF,itemPath:vF,arrayName:cF,quarantineName:yF})},xF=e=>{lF.quarantineArrayProp({properties:e,arrayPath:dF,itemPath:fF,arrayName:pF,quarantineName:hF}),lF.quarantineArrayProp({properties:e,arrayPath:uF,itemPath:fF,arrayName:cF,quarantineName:hF}),lF.quarantineArrayProp({properties:e,arrayPath:uF,itemPath:mF,arrayName:cF,quarantineName:gF}),lF.quarantineArrayProp({properties:e,arrayPath:uF,itemPath:vF,arrayName:cF,quarantineName:yF})};function SF(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const i="rows"===r?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(i)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}const wF="qHyperCubeDef.qDimensions",CF="dimensions",EF="qOtherTotalSpec.qTotalMode",IF="totalMode",DF={quarantine(e){lF.quarantineArrayProp({properties:e,arrayPath:wF,quarantineName:IF,arrayName:CF,itemPath:EF})},unquarantine(e){lF.unquarantineArrayProp({properties:e,arrayPath:wF,quarantineName:IF,arrayName:CF,itemPath:EF})}};function RF(e){const t=SF(e);return(e,n,r,i)=>{const o=lF.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:i}),a=o.qProperty.qHyperCubeDef.qDimensions.length,s=o.qProperty.qHyperCubeDef.qMeasures.length;let l,u=o.qProperty.qHyperCubeDef.qInterColumnSortOrder,c=!0;a+s===u.length&&XN(o,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=o.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],XN(o,"qProperty.qHyperCubeDef.qInterColumnSortOrder",u),o.qProperty.qLayoutExclude.quarantine&&delete o.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):u.length=0;const p=+(u.indexOf(-1)>-1),f=a+p;if(f>u.length)for(let e=u.length;e<f;e++)u.indexOf(e)<0&&u.push(e-p);for(let e=u.length-1;e>=0;e--)u[e]>=a&&u.splice(e,1);s>1&&u.indexOf(-1)<0?u.push(-1):s<2&&u.indexOf(-1)>-1&&u.splice(u.indexOf(-1),1);const h=o.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&XN(o,"qProperty.qHyperCubeDef.qNoOfLeftDims",a),l?.length===u.length){for(let e=0;e<l.length;e++)if(l[e]!==u[e]){c=!1;break}c&&(lF.unquarantineProperty(o.qProperty,"noOfLeftDims"),lF.unquarantineProperty(o.qProperty,"excludedNoOfLeftDims "))}return lF.unquarantineProperty(o.qProperty,"rankedList"),lF.conditionalShow.unquarantine(o.qProperty),DF.unquarantine(o.qProperty),bF(o.qProperty),lF.unquarantineProperty(o.qProperty,"pivotTableIndentMode"),o}}function PF(e,t){const n=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,r=n.slice(),i=n.indexOf(-1);i>-1&&n.splice(i,1);const o=lF.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=o.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;XN(o,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",r),lF.quarantineProperty(o.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete o.properties.qHyperCubeDef.qNoOfLeftDims,lF.quarantineProperty(o.properties,"qHyperCubeDef.rankedList","rankedList"),delete o.properties.qHyperCubeDef.rankedList;const c=o.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,XN(o,"properties.qHyperCubeDef.qInterColumnSortOrder",u),XN(o,"data.0.interColumnSortOrder",u),o.properties.qLayoutExclude.quarantine&&delete o.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=u.length;e<s+l;e++)u.length<=e&&u.push(e);return lF.quarantineProperty(o.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),lF.quarantineProperty(o.properties,"qHyperCubeDef.excludedNoOfLeftDims ","excludedNoOfLeftDims "),lF.conditionalShow.quarantine(o.properties),DF.quarantine(o.properties),xF(o.properties),o}const MF=e=>({dimensions:{min:1,max:1e3,description(t,n,r){const i="rows"===r?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return e.translator.get(i)}},measures:{min:1,max:1e3,description:()=>e.translator.get("Visualizations.Descriptions.Values")}}),LF={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let AF=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),kF=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const OF=e=>{switch(e?.type){case"url":return AF.Link;case"image":return AF.Image;case"indicator":return AF.Indicator;case"miniChart":return AF.MiniChart;default:return AF.Text}},qF=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:i}=r.properties.qHyperCubeDef,o=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!i&&e||i)&&o.push({value:"image",translation:"Object.Table.Representation.Image"}),o}}),TF=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>OF(e.qDef.representation)===AF.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:i,qDimensions:o,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;r?.indexOf(-1);const l=o?.indexOf(e)??1/0;return(r?.slice(0,i)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},jF=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:qF({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>OF(e.qDef.representation)===AF.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>OF(e.qDef.representation)===AF.Link&&e.qDef.representation?.urlPosition===kF.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>OF(e.qDef.representation)===AF.Link&&e.qDef.representation?.urlPosition===kF.Attribute},...TF(n)}},NF=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,i=!r?.("tableImages")&&t[AF.Image],o=!r?.("qMiniChartDef")&&t[AF.MiniChart],a=!r?.("tableIndicators")&&t[AF.Indicator],s=i&&t[AF.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&i||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),o&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:e=>OF(e.qDef.representation)===AF.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:o?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};let _F=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),FF=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),zF=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),WF=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const $F="image",HF=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let i=n.properties.qHyperCubeDef.qNoOfLeftDims??-1;r>-1&&r<i&&(i-=1);const o=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===o||o>=i},VF=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:MT.Auto,translation:"Common.Auto"},{value:MT.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:MT.Pixels,translation:"Object.Table.Column.Pixels"},{value:MT.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:MT.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PixelsDefault,show:e=>e.qDef.columnWidth?.type===MT.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PercentageDefault,show:e=>e.qDef.columnWidth?.type===MT.Percentage}}),BF=({key:e,translation:t,env:n})=>{const r=!n.anything.sense?.isUnsupportedFeature?.("tableImages");return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>!r||"labelTextAlign"===e||t.qDef.representation?.type!==$F},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!r||"labelTextAlign"===e||t.qDef.representation?.type!==$F)}}},GF="TOTAL_OFF",UF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:FF.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:FF.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},YF="TOTAL_OFF",KF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:FF.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:FF.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},XF=e=>{const{translator:t,anything:n,flags:r}=e,i=(e=>{const{translator:t,anything:n}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:GF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:GF,translation:"properties.off"},show:!n.sense?.isUnsupportedFeature?.("totals")&&HF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,r)=>!n.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==GF&&HF(e,0,r)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:UF,...BF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...BF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...jF(e),...VF()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:UF,...BF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...BF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...NF(e,{[AF.Image]:!0,[AF.Indicator]:!0}),...VF()}}}},filter:{type:"object",component:"filter-item-react",ref:"filter",tabName:"SimpleProperties.Filters.Filters"}}}})(e);return r.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?i:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:YF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:YF,translation:"properties.off"},show:!n.sense?.isUnsupportedFeature?.("totals")&&HF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,r)=>!n.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==YF&&HF(e,0,r)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:KF,...BF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...BF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...jF(e),...VF()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:KF,...BF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...BF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...NF(e,{[AF.Image]:!0,[AF.ImagesInIndentMode]:!0,[AF.Indicator]:!0}),...VF()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}},JF=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,i){const o=r?.(e,t,i)??!1,a=i.theme.current(),s=n(a,o);return{color:"transparent"===s?"none":s}}}),ZF=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},QF=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,i,o)=>{const a=o.theme.current();return((e,t,n,r)=>{const i=t.fontFamily??"Source Sans Pro, sans-serif",o=t.fontFamilies??[],a=Array.from(new Set([e,i,...o])),s=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>ZF(e,!0))],l=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Bj(r).filter(e=>!a.includes(e)).map(e=>ZF(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),ez=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],tz=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,i)=>{const o=i.theme.current();return((e,t,n)=>{const r=t.fontSize,i=t.fontSizes??[],o=Array.from(new Set([e,r,...i])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...o.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>ZF(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...ez.filter(e=>!o.includes(e)).map(e=>ZF(e,!1))];return[...a,...s.length>1?s:[]]})(t(o),o,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),nz=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:i,translation:o,disableNoneCallback:a})=>({component:"panel-section",translation:o??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:QF({ref:`${e}.fontFamily`,themeAccessor:t=>i(t,e,"fontFamily")??t.fontFamily,translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:tz({ref:`${e}.fontSize`,themeAccessor:t=>i(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:JF(`${e}.fontColor`,void 0,t=>i(t,e,"color")??t.color)}},background:JF(`${e}.background`,"properties.background",(t,n)=>{const r=n?hj.WHITE:hj.TRANSPARENT;return i(t,e,"backgroundColor")??r},a)}}}}),rz=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:JF(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:JF(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),iz=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map(e=>({value:e+1,translation:e+1})),defaultValue:1}),oz="12px",az="Source Sans Pro, sans-serif",sz="600",lz=15e3,uz=4/3;let cz=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),dz=function(e){return e.Solid="solid",e.None="none",e}({});const pz={display:"flex",justifyContent:"center",alignItems:"center"},fz={borderStyle:"solid"},hz={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},mz={lineHeight:uz,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},gz=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),vz=(e,t)=>e>0?`${e}px ${dz.Solid} ${t}`:dz.None,yz=(e,t,n,r,i)=>{const o=Number(!t||i?.right),a=Number(!e||i?.bottom);return{borderRight:"rtl"!==r?vz(o,n):dz.None,borderBottom:vz(a,n),borderLeft:"rtl"===r?vz(o,n):dz.None,borderTop:dz.None}},bz=(e,t,n,r,i,o,a)=>{const s=yz(t,r,i,o,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=vz(2,i)),n||(s.borderLeft="rtl"!==o?vz(1,i):"none",s.borderRight="rtl"===o?vz(1,i):"none")),s},xz=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=vz(1,n)),t&&(r.borderRight=vz(1,n)),r},Sz=(e,t,n)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[n];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[n];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[n];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[n];default:return}},wz=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:nz({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:Sz}),dimensionValueSection:nz({section:"dimensionValues",translator:e,flags:t,getThemeValue:Sz}),measureValueSection:nz({section:"measureValues",translator:e,flags:t,getThemeValue:Sz}),measureLabelSection:rz({section:"measureLabels",getThemeValue:Sz}),totalValuesSection:rz({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:Sz}),nullValuesSection:rz({section:"nullValues",fallbackBackground:cz.NullValueBackground,getThemeValue:Sz}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:iz("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:iz("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:JF("grid.border","properties.border",e=>e.object?.pivotTableV2?.grid?.borderColor??cz.DividerLight),divider:JF("grid.divider","properties.pivot.divider",e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??cz.DividerDark),background:JF("grid.background","properties.background",e=>e.object?.pivotTableV2?.grid?.backgroundColor??cz.Transparent)}}}}}}]}),Cz=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}}},Ez=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[wz(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:MT.Auto,translation:"Common.Auto"},{value:MT.Pixels,translation:"Object.Table.Column.Pixels"},{value:MT.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:MT.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===MT.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===MT.Percentage}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some(e=>"TOTAL_EXPR"===e.qOtherTotalSpec?.qTotalMode)}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]},...Cz(t)}}),Iz="auto",Dz={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:Iz,translation:"Object.Table.SortingInSearch",options:[{value:Iz,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Rz(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:XF(e),sorting:Dz,addons:LF,settings:Ez(t,n)}}}function Pz(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:Rz(e),importProperties:RF(e),exportProperties:PF,exploration:W_(e),data:MF(e),propertyHandler:e.flags.isEnabled("VNA-147_NEBULA_PIVOT_DATA_HANDLERS")?t=>new aF(t,e.translator):void 0}}const Mz=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function Lz(e,t){return P(()=>e,t)}const Az={},kz=e=>{const t=P(()=>({current:Az}),[]);return t.current=t.current===Az?e:t.current,t},Oz=e=>!!e&&0===Pj(e).a,qz="#grid",Tz=(e,t)=>{const n=t?.closest(e);return n&&window.getComputedStyle(n).backgroundColor},jz=(e,t,n,r,i)=>{const o=Tz(".qv-object .qv-inner-object",n),a=Tz(".qv-panel-sheet",n),s=Tz(qz,n)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),n=t?.bgColor?.colorExpression,r=t?.bgColor?.color?.color,i=t?.bgColor?.useColorExpression;if(i&&n)return u_(n);if("none"===r)return"transparent";if(void 0===r)return;const o=Pj(r);return o.setAlpha(t?.bgColor?.color?.alpha??o.a),o.getRGBA()})(e),u=r?.(t),c=i?.(t),d=l||u||o||c,p=Oz(d),f=!Oz(h=p?s:d)&&a_(h,hj.TEXT,hj.DARK_MODE_TEXT)===Cj(hj.DARK_MODE_TEXT);var h;const m=((e,t,n,r=hj.WHITE)=>e&&!Oz(e)?e:Oz(t)?n&&!Oz(n)?n:r:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},Nz=(e,t,n,r)=>{const i=O(),o=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=A([]);return k(()=>{let n;return e&&(n=new MutationObserver(e=>{r(e)}),n.observe(e,t)),()=>{n?.disconnect()}},[e,t]),n})(t.closest(qz),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return P(()=>({...i,background:jz(e,i,t,n,r)}),[i.name(),t,n,r,e,o])};function _z(e,t){const n=P(()=>({isLoading:!0}),t),[r,i]=L(async()=>{try{return await e()}finally{n.isLoading=!1}},t);return[r,n.isLoading,i]}const Fz=3,zz=/\n/g;function Wz(e,t,n){let r=0,i=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=i;){const o=Math.floor((r+i)/2),a=e.slice(0,o),s=e.slice(0,o-1),l=n(a),u=n(s);if(l>t&&u<=t)return e.slice(o-1)||null;if(l===t)return e.slice(o)||null;l<t?r=o+1:i=o}return null}function $z({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},i){const{maxNbrLinesOfText:o=Fz,allowLineBreaks:a=!0}=i??{},{estimateWidth:s,measureText:l,estimateLineCount:u}=v(()=>(({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},i)=>{const{maxNbrLinesOfText:o=Fz,allowLineBreaks:a=!0}=i??{};return()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n} ${r} ${e} ${t}`;const s=i.measureText.bind(i),l=JN(e=>{if(void 0===e)return 0;if(a){const t=e.split(zz).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(zz," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=JN(({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;const r=a?e.split(zz):[e];let i=0;for(const e of r){let n=e;do{i+=1,n=Wz(n,t,u)}while(null!==n&&i<o);if(i>=o)break}return i},({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}})({fontStyle:n,fontWeight:r,fontSize:e,fontFamily:t},{maxNbrLinesOfText:o,allowLineBreaks:a})(),[n,r,e,t,o,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var Hz,Vz=E;Hz=Vz.createRoot,Vz.hydrateRoot;const Bz="Source Sans Pro, sans-serif";function Gz(e,t){const[n,r]=m(t);n.some((e,n)=>e!==t[n])&&(r(t),e())}var Uz={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Yz=({translator:e})=>(v(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Uz).forEach(t=>{e.add(Uz[t])})}}(e)},[e]),e),Kz={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},Xz={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Jz=Sl("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...Kz},"&::-moz-range-track":{...Kz},"&::-ms-track":{...Kz},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...Xz},"&::-moz-range-thumb":{...Xz},"&::-ms-thumb":{...Xz},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),Zz=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:i,updateWidthCallback:o,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=Yz({translator:d.translator}),h=l({initWidth:e,columnWidth:e,initX:0}),m=n?0:1,g=r&&!c,v=()=>g?h.current.columnWidth-m:"100%",y={left:"rtl"!==p?v():void 0,right:"rtl"===p?v():void 0},b=t=>{h.current={initWidth:e,columnWidth:e,initX:t??h.current.initX}};Gz(()=>{g&&b()},[e]);const x=e=>{const t=Math.max(e,PT.PixelsMin);h.current.columnWidth=t,o(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:MT.Pixels,pixels:h.current.columnWidth};a(e)}u?.(!1)},w=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{c_(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},I=e=>{c_(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!r&&s?e=>{if(e.key===DT.Left||e.key===DT.Right){c_(e);const t=5,n=e.key===DT.Left?t:-t,r="rtl"===p?n:-n;u?.(!0),x(h.current.columnWidth+r)}else e.key===DT.Space||e.key===DT.Enter?(c_(e),s(e),u?.(!1),S()):e.key===DT.Esc&&(c_(e),s(e),u?.(!1),x(h.current.initWidth))}:void 0,R=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return fo.jsx(Jz,{style:y,hoverColor:i,isLastColumn:n,className:RT,"data-testid":RT,onMouseDown:e=>{c_(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),u?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:MT.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(c_(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",I),u?.(!0),b(e.touches[0].clientX))},onKeyDown:D,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":R,"aria-valuemin":PT.PixelsMin,"aria-valuemax":PT.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},Qz=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),eW=Sl(sc,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),tW=Sl(Qz,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),nW=Sl(wp)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),rW=Sl(td)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),iW=Sl(Rp)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),oW=Sl(Rp,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"})),aW=Sl("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),sW=Sl("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),lW=Sl(Cu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),uW=Sl(Kd,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),cW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),dW=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?dW(t):t:e.parentElement?.children?.[0]},pW=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?pW(t):t},fW=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===DT.Down||t===DT.Up){const n=e=>t===DT.Down?dW(e):pW(e);e.preventDefault(),e.stopPropagation();let i=n(r);for(;i;){if("true"!==i.ariaDisabled){i.focus();break}i=n(i)}}},hW=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let mW={};const gW=({autoFocus:e,id:t,onClick:r,itemTitle:i,icon:o,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d})=>{const[p,h]=m(!1),g=n.useRef(null),v=f(e=>{e.stopPropagation(),h(!1)},[h]);return fo.jsxs(fo.Fragment,{children:[fo.jsxs(oW,{ref:s?g:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),mW={}),s?.length&&(h(!0),mW[i]=h,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!u,onKeyDown:fW,children:[u?fo.jsx(aW,{direction:c,isPagination:d}):null,fo.jsxs(sW,{children:[fo.jsx(uW,{direction:c,isPagination:d,children:fo.jsx(o,{})}),fo.jsx(lW,{variant:"body2",children:i})]}),s?.length?fo.jsx(cW,{}):null]},t),s?.length?fo.jsx(xW,{isSubMenu:!0,open:p,anchorEl:g.current,onClose:v,menuGroups:hW(s,mW),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},vW=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&fo.jsx(iW,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>fo.jsx(gW,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),yW=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((i,o)=>[vW({menuGroup:i,isSubMenu:t,direction:n,isPagination:r}),o<e.length-1?fo.jsx(rW,{"data-testid":"group-divider",variant:"middle"}):void 0]),bW={appear:0,enter:0,exit:0},xW=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:i,anchorOrigin:o,isSubMenu:a,direction:s,isPagination:l})=>r.length?fo.jsx(nW,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:bW,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...o?{anchorOrigin:o}:{},...i?{transformOrigin:i}:{},dir:s,children:yW({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,SW=(e,t)=>e.some(e=>t[e]>0),wW={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},CW=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[i,o]=m(null),[a,s]=m(wW);return Gz(()=>{e||(s(wW),o(null))},[e]),d(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let i,a=!1;const l=()=>{i&&r.destroySessionObject(i)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,n),u=await r.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};i=c.qInfo?.qId,a?l():(o(u),d&&s((e=>({canSelectAll:SW(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:SW(["qSelected"],e),canSelectPossible:SW(["qOption"],e),canSelectAlternative:SW(["qAlternative"],e),canSelectExcluded:SW(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:i,selectionActionsEnabledStatus:a}},EW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),IW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),DW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),RW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),PW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),MW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),LW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),AW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),kW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),OW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),qW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),TW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),jW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let NW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const _W="/qListObjectDef",FW=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:i,interactions:o,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[NW.Sorting]){const{isActivelySorted:n,sortDirection:o}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let i=!n&&!e||"D"===t,o=!n&&!e||"A"===t;return r&&(i=!1,o=!1),{ascendingEnabled:i,descendingEnabled:o}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"A")),r(!1)},icon:EW,enabled:a,isActive:!!n&&"A"===o,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"D")),r(!1)},icon:RW,enabled:s,isActive:!!n&&"D"===o,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:LW,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:b_,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&o?.select){const i=[];n[NW.Searching]&&i.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:AW,enabled:!0}]}]),!e.isLocked&&n[NW.Selections]&&i.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:jW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(_W))},icon:kW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(_W))},icon:TW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(_W))},icon:OW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(_W))},icon:qW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(_W))},icon:IW,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:MW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:PW,enabled:!0}]}]),i.length>0&&f.push(...i)}return n[NW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),c?.(u)},icon:DW,enabled:!0}]}]),f},zW=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:i,interactions:o,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:h,model:m,direction:g="ltr",isPagination:v,isAccessibleHeader:y,iconSize:b=CT})=>{const x=l(null),S=Yz({translator:i}),{qLibraryId:w,fieldId:C,headTextAlign:E}=r,I=d?.app,{fieldInstance:D,selectionActionsEnabledStatus:R}=CW({open:e,headerData:r,app:I,qStateName:d?.qStateName}),P=(({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null})({model:m,headerData:r}),M=(({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:i,onPopoverClose:o})=>f(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===i?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:i,onPopoverClose:o})}},[e,t,n,r?.qStateName,i,o]))({qLibraryId:w,fieldId:C,searchRelatedArgs:c,selectionRelatedArgs:d,direction:g}),L=f(e=>{e.stopPropagation(),t(!1)},[t]),A=f(e=>{e.stopPropagation(),t(e=>!e)},[t]);return o.active?fo.jsxs(eW,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===y?A:void 0,ref:x,isAccessibleHeader:y,children:[s?fo.jsx(tW,{height:b,className:ET,"data-testid":ET,isInteractionsActive:o.active??!1,children:fo.jsx(Qz,{})}):null,fo.jsx(xW,{open:e,anchorEl:!1===y?x.current:n.current,onClose:L,menuGroups:FW({headerData:r,translator:S,menuAvailabilityFlags:a,setOpen:t,...u,embedListbox:M,interactions:o,fieldInstance:D,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:h}),direction:g,isPagination:v})]}):null},WW=e=>e.isDark?{background:e.color,borderColor:hj.DARK_MODE_BORDER,color:hj.DARK_MODE_TEXT,disabledColor:hj.DARK_MODE_DISABLED,iconColor:hj.DARK_MODE_TEXT}:{background:e.color,borderColor:hj.BORDER_MEDIUM,color:hj.TEXT,disabledColor:hj.DISABLED},$W=Sl(sc,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`})),HW=Sl(lf,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),VW=Sl(vc,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)})),BW=Sl(Cu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),GW=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:i=!0})=>{const o=v(()=>WW(r.background),[r]);if(!n.active)return null;const a=i?fo.jsx($W,{footerStyle:o,children:e}):null;return t?E.createPortal(e,t):a},UW=u({}),YW=()=>h(UW),KW=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:i,isSelectionMode:o,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const y=(e=>!e.enabled||e.active)(c)?0:-1,b=v(()=>WW(p.background),[p]),x=i?i.getBoundingClientRect().width:h.width,S=Yz({translator:d}),w=v(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:i,isSelectionMode:o,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:y,width:x,visibilityThreshold:g}),[t,n,r,i,o,a,s,l,u,c,S,p,f,h,m,b,y,x,g]);return fo.jsx(UW.Provider,{value:w,children:e})};let XW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),JW=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const ZW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),QW=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),e$=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),t$={FirstPage:QW,PreviousPage:ZW,NextPage:cW,LastPage:e$,FirstPageRTL:e$,PreviousPageRTL:cW,NextPageRTL:ZW,LastPageRTL:QW},n$=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:i,handleChangePage:o,translator:a,interactions:s,tabIndex:l}=YW(),u=n.concat("rtl"===r?"RTL":""),c=t$[u];return{styledProps:{footerStyle:i,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:l,onClick:e?void 0:()=>{o(t)}},IconComponent:c}},r$=()=>{const{pageInfo:e,width:t,interactions:n,visibilityThreshold:r}=YW(),i=0===e.page,{IconComponent:o,styledProps:a}=n$({type:XW.FirstPage,disabledCondition:i,pageNumber:0});return t<=(r?.firstPage||JW.FirstPage)?null:fo.jsx(VW,{...a,disabled:!n.active,children:fo.jsx(o,{height:CT})})},i$=(e,t,n=!1)=>{n&&e.key===DT.Tab&&!e.shiftKey&&(c_(e),((e,t,n)=>{const r=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;r?r.focus():t.focusSelection?.(n)})(e.target,t,!1))},o$=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:i,interactions:o,visibilityThreshold:a}=YW(),s=e.page>=n-1,{IconComponent:l,styledProps:u}=n$({type:XW.LastPage,disabledCondition:s,pageNumber:n-1}),c=t.enabled?e=>{i$(e,t,r)}:void 0;return i<=(a?.lastPage||JW.LastPage)?null:fo.jsx(VW,{...u,onKeyDown:c,disabled:!o.active,children:fo.jsx(l,{height:CT})})},a$=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:i,interactions:o}=YW(),a=e.page>=n-1,{IconComponent:s,styledProps:l}=n$({type:XW.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>JW.FirstPage&&i>JW.LastPage)&&t.enabled?e=>{i$(e,t,r)}:void 0;return fo.jsx(VW,{...l,onKeyDown:u,disabled:!o.active,children:fo.jsx(s,{height:CT})})},s$=()=>{const{pageInfo:e,interactions:t}=YW(),n=0===e.page,{IconComponent:r,styledProps:i}=n$({type:XW.PreviousPage,disabledCondition:n,pageNumber:e.page-1});return fo.jsx(VW,{...i,disabled:!t.active,children:fo.jsx(r,{height:CT})})},l$=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:i}=YW(),{page:o,rowsPerPage:a}=n;if(t<=(i?.displayedRowsLabel||JW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*a+1} - ${Math.min((o+1)*a,r)}`,r.toString()]);return fo.jsx(BW,{variant:"caption",dir:"ltr",children:s})},u$=({name:e,value:t,options:n,handleChange:r})=>{const{layout:i,footerStyle:o,translator:a,tabIndex:s,interactions:l}=YW(),u=i.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return fo.jsxs(fo.Fragment,{children:[fo.jsxs(BW,{variant:"caption",id:p,children:[c,":"]}),fo.jsx(HW,{footerStyle:o,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},c$=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:i,visibilityThreshold:o}=YW();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(o?.rowsPerPage||JW.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=fo.jsx(fo.Fragment,{children:e.rowsPerPageOptions.map(e=>fo.jsx("option",{value:e,children:e},e))});return fo.jsx(u$,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{i?.(+e.target.value)}})},d$=1e3,p$="…",f$=({totalPages:e,page:t})=>{const n=Math.min(e,d$),r=n<e&&t>500,i=r?Math.min(500+t,e):n,o=r?Math.max(0,i-d$):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+o;return fo.jsx("option",{value:t,children:t+1},t)});return o>0&&a.unshift(fo.jsx("option",{value:p$,disabled:!0,children:p$},"startMoreOptions")),i<e-1&&a.push(fo.jsx("option",{value:p$,disabled:!0,children:p$},"endMoreOptions")),fo.jsx(fo.Fragment,{children:a})},h$=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:i}=YW(),{page:o}=e;if(t<=(i?.selectPage||JW.SelectPage))return null;const a=fo.jsx(f$,{totalPages:n,page:o});return fo.jsx(u$,{name:"SelectPage",value:o,options:a,handleChange:e=>{r(+e.target.value)}})};var m$=b(e=>fo.jsxs(KW,{...e,children:[fo.jsx(c$,{}),fo.jsx(h$,{}),fo.jsx(l$,{}),fo.jsx(r$,{}),fo.jsx(s$,{}),fo.jsx(a$,{}),fo.jsx(o$,{})]}));const g$=e=>fo.jsx(GW,{...e,children:fo.jsx(m$,{...e})}),v$=u({}),y$=()=>h(v$),b$=({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:i,children:o})=>{const a=v(()=>({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:i}),[e,t,n,r,i]);return fo.jsx(v$.Provider,{value:a,children:o})},x$=u({}),S$=()=>h(x$),w$=({app:e,model:t,theme:n,embed:r,keyboard:i,translator:o,interactions:a,env:s,children:l})=>{const u=v(()=>({model:t,app:e,interactions:a,embed:r,theme:n,keyboard:i,env:s,translator:o}),[e,a,t,r,n,i,s,o]);return fo.jsx(x$.Provider,{value:u,children:l})},C$=u({}),E$=()=>h(C$),I$=({children:e,...t})=>fo.jsx(C$.Provider,{value:t,children:e}),D$=()=>{const{text:e,fontFamily:t,fontSize:n,justifyContent:r,alignItems:i,height:o}=(()=>{const{theme:e,translator:t}=S$(),{layoutService:n}=E$(),r=e.getStyle("","","fontFamily")??az;return n.hasData?n.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:r,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:r,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:fo.jsx("div",{style:{display:"flex",justifyContent:r,alignItems:i,width:"100%",height:o},children:fo.jsx("span",{style:{...mz,fontFamily:t,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:e})})},R$="/qHyperCubeDef",P$=-1,M$="PSEUDO-DIM",L$=e=>e===P$?M$:(({cId:e})=>e??Q_())(e),A$=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===P$?n.columnWidthLocation=_F.Measures:n.isLeftDimension?n.columnWidthLocation=_F.Dimension:t.at(-1)===P$?n.columnWidthLocation=_F.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=_F.Pivot))},k$=(e,t,n,r)=>{const i=L$(n),o=e.getDimensionInfoIndex(n),a=e.isLeftDimension(o);return n===P$?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:o,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:_F.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:n.qFallbackTitle??"",qReverseSort:n.qReverseSort,sortDirection:n.qSortIndicator&&"N"!==n.qSortIndicator?n.qSortIndicator:"A",qLibraryId:n.qLibraryId,fieldId:n.qGroupFieldDefs[n.qGroupPos],isLocked:n.qLocked??!1,columnWidth:n.columnWidth,qApprMaxGlyphCount:n.qApprMaxGlyphCount,isDim:!0,isCyclic:n.qGrouping===kT.Cyclic,groupDimensionPos:n.qGroupPos,groupDimensionLabels:n.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:o,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:_F.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:n.qEffectiveDimensionName}},O$=({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})=>{let i=r;var o;n.length>0&&(i=(o=r).at(-1)===P$?o.slice(0,-1):o);const a=i.length+(n.length?1:0),s=Math.max(1,n.length),l=((e,t)=>Array(e).fill(null).map(()=>Array.from({length:t},()=>null)))(a,s);return n.forEach((n,r,i)=>{const o=r===i.length-1;l[a-1][r]=k$(e,t,n,o)}),i.forEach((n,r,i)=>{const o=r===i.length-1;l[r][s-1]=k$(e,t,n,o)}),l},q$=(e,t,n,r)=>{const i=((e,t,n,r)=>{let i;return i=0===n.length||n.includes(P$)?O$({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n}):(e=>e[0].map((t,n)=>e.map(e=>e[n])))(O$({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})),e.isIndentModeEnabled&&i[i.length-1].length>1&&(i[i.length-1]=[i.at(-1),...new Array(i[0]?i[0].length-1:0).fill(null)]),i.length&&i.at(-1)?.forEach((t,n)=>{Array.isArray(t)?t.forEach((t,n)=>{A$({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}):A$({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}),i})(e,t,n,r);return{data:i,size:{x:i[0]?.length??0,y:i.length}}};var T$={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,i="",o=!1;-1===n?r=e:(r=e.slice(0,n),i=e.slice(n+1),o=!0),t.push(function(e,t,n){return{key:N$(e),value:N$(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,i,o))}),t}},j$=T$;function N$(e){try{return decodeURIComponent(e)}catch{return e}}function _$(e){if(!(this instanceof _$))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>j$.fromSearchString(t.search)}})}function F$(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}_$.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},_$.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=F$(t.key),t.value?n+=`=${F$(t.value)}`:n+=t.useEqualSign?"=":"";return n};var z$=_$;var W$,$$=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},H$=class{decode(e){let t="";const n=new $$(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}},V$=e=>e>=0&&e<=1114111,B$=e=>e.match(/[\s]/),G$=class extends H${decodeCharacter(e){e.mark();const t=e.next();let n,r,i;if(null==t||"\\"!==t)return e.reset(),null;const o=e.next();if(null==o)return e.reset(),null;switch(o){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(o,16))return o;for(n=o,r=0;r<5&&(i=e.next(),null!=i&&!B$(i));r++){if("NaN"===parseInt(i,16)){e.pushback(i);break}n+=i}const a=parseInt(n,16);return V$(a)?String.fromCharCode(a):"�"}},U$=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},Y$=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let i,o;if(t.length===n)return o=this._value,this.setValue(r),o;const a=t.charAt(n);return this._nextMap?(i=this._nextMap[a],i||(i=new e,this._nextMap[a]=i)):(this._nextMap={},i=new e,this._nextMap[a]=i),i.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return U$.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return U$.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||U$.newInstanceIfNeeded(e,t,this._value)}},K$=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new Y$);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},X$=(()=>{const e=[],t=[],n=new K$;let r,i,o;for(r in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(i in t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(o=t[i].toLowerCase().substr(1),n.put(o,String.fromCharCode(i)));return n})(),J$=class extends H${decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,i="";for(t=Math.min(e.remainder().length,X$.getMaxKeyLength()),r=0;r<t;r++)i+=e.next().toLowerCase();const o=X$.getLongestMatch(i);if(null==o)return null;for(e.reset(),e.next(),t=o.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),o.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&V$(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&V$(r)?String.fromCharCode(r):null}},Z$=class extends H${decodeCharacter(e){e.mark();const t=e.next();let n,r,i,o;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)i=e.nextHex(),null!=i&&(n+=i);return 2===n.length&&(o=parseInt(n,16),V$(o))?String.fromCharCode(o):(e.reset(),null)}},Q$=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,eH=5e6,tH=5e5,nH=(e,t)=>{const{maxByteSizeSvg:n=tH,maxByteSizeImage:r=eH}=t??{},{mimeType:i,encoding:o,data:a}=(e=>{const[,t,n,r]=Q$.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(i,o,a);return"image/svg+xml"===i?s<=n:s<=r};"undefined"!=typeof document&&(W$=document.createElement("div"));var rH=Array.prototype.indexOf,iH=[",",".","_"," "],oH=[",",".","-","_"," "],aH={width:["%"],height:["%"]},sH={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},lH={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":sH.image,"background-color":sH.color,"border-color":sH.color,"border-image":sH.image,color:sH.color,icon:sH.image,"list-style-image":sH.image,"outline-color":sH.color},uH={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function cH(e,t,n){let r;if(t){if(rH)return rH.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function dH(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return W$.appendChild(n),t=W$.innerHTML,W$.removeChild(n),t}function pH(e,t,n){let r,i,o,a,s,l,u,c,d;for(e=hH(e).toLowerCase(),t=hH(t),o=0;o<uH.attr_name.length;o++)if(e.match(uH.attr_name[o]))throw new Error(`Unsafe attribute name used: ${e}`);for(o=0;o<uH.attr_val.length;o++)if(t.toLowerCase().match(uH.attr_val[o]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=aH[e],r||(r=oH),i="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");i+=s}i+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&cH(u,r)<0?(d=c.toString(16),i+=`&#x${d};`):i+=u;return n||(i+='"'),i}function fH(e,t,n){let r,i,o,a,s,l,u,c,d,p;if(e=hH(e).toLowerCase(),t=hH(t),cH(e,uH.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<uH.css_val.length;r++)if(t.toLowerCase().indexOf(uH.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(i=lH[e],i||(i=sH.default),o="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");o+=s}o+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&cH(u,i)<0?(d=c.toString(16),p="000000".substr(d.length),o+=`\\${p}${d}`):o+=u;return o}function hH(e,t){let n,r,i,o,a=!1;if(null===e)return null;n=e,r=e,i=0;const s=[new J$,new Z$,new G$];for(;!a;){r=n;for(let e=0;e<s.length;e++)o=s[e].decode(n),o!==n&&(i++,n=o);r!==n||(a=!0)}if(t&&i>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}var mH=[];for(let e=0;e<255;e++)mH[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var gH={html:e=>dH(e.unsafe),css(e){let t,n=[];const r=[],i={};let o="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=fH(t,n[t],!0),o+=fH(t,n[t],!0),i[t]=r[t]);return e.map?i:o},attr(e){let t=[];const n=[],r={};let i="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=pH(e,t[e],!0),i+=pH(e,t[e],!0),r[e]=n[e]);return e.map?r:i}};function vH(e,t){throw new Error(t)}var yH={canonicalize:hH,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,n;const r=arguments[0]||{};let i=1;const o=arguments.length;for(;i<o;i++)if(null!=(e=arguments[i]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?gH.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&vH(this,"Invalid parameter type"),gH.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&vH(this,"Invalid parameter type"),gH.attr(e)):void vH(this,"Invalid parameter type")},encodeForAttr:pH,encodeForAttr2:function(e){return pH("nonsens",e,!0)},encodeForCSS:fH,encodeForHref:function(e){hH(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new z$(e),n=z$.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+z$.encodeSearchParams(r)+t.hash;const i=decodeURI(e).toLowerCase();if(-1!==i.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==i.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,i,o,a,s;for(t||(t=iH),s="",n=0;n<e.length;n++)i=e.charAt(n),o=e.charCodeAt(n),cH(i,t)>=0||null==mH[o]?s+=i:(r=o.toString(16),o<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:dH,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=hH(t).toLowerCase():vH(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:nH,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const n=function(e){let t=e,n="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const bH=(e,t)=>t.qAttrExps?.qValues?.[e],xH=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},SH=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:i,imageBox:o,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!yH.isSafeDataURL(t))?{type:AF.Text,url:void 0,text:e,labelStructure:i}:{type:AF.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:xH(r,a),labelStructure:i,imageBox:o},wH=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:AF.Text,text:r};const{minY:i,maxY:o}=((e,t,n)=>{const r="global"===t.yAxis?.scale,i="zeroCenter"===t.yAxis?.position,o=r?n.qYMin:e.qMiniChart.qMin,a=r?n.qYMax:e.qMiniChart.qMax;if(i){const e=Math.max(Math.abs(o),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,o),maxY:Math.max(0,a)}:{minY:o,maxY:a}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:i,maxY:o,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:AF.MiniChart,text:r,miniChart:a}},CH=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=r?.qValues?.[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return n?.urlPosition===kF.Attribute?void 0:n?.urlLabel},EH=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:AF.Link,url:yH.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:AF.Text,url:void 0,text:t,labelStructure:e}}},IH=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:i,miniChartOnMeasure:o,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=OF(t),d=s(e);return c===AF.Image&&u[AF.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,i,o)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=bH(n.imageUrl??-1,e)?.qText;return o&&(o.maskedValue=t??""),SH({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i})}if("label"===l){const t=o?o.originalValue:r;if(-1===n.imageLabel)return SH({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i});const l=bH(n.imageLabel??-1,e)?.qText??r;return SH({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i})}return{type:AF.Text,url:void 0,labelStructure:o,text:r}})(e,t,n,d,l,a):c===AF.Link?((e,t,n,r,i)=>{const{urlPosition:o}=t??{};if(o===kF.Attribute){const o=CH(n.url??-1,e,t);return EH({labelStructure:r,text:i||o||"",url:o})}if(o===kF.Dimension){const o=CH(n.urlLabel??-1,e,t)||i;return r&&(r.maskedValue=o),EH({text:o,labelStructure:r,url:r?.originalValue??i})}return{type:AF.Text,url:void 0,text:i,labelStructure:r}})(e,t,n,a,d):c===AF.Indicator&&u[AF.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:AF.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,i,d):c===AF.MiniChart&&u[AF.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?wH(e,t,o,d):{type:AF.Text,url:void 0,text:d,labelStructure:a}},DH=(e,t)=>{const n=t.qAttrExps,r=n?.qValues?.[e?.cellForegroundColor??-1]?.qText,i=n?.qValues?.[e?.cellBackgroundColor??-1]?.qText,o=i?u_(i):null,a=r?u_(r):null,s=((e,t)=>e||!t?null:a_(t))(a,o);return{color:s??a,background:o}},RH=(e,t)=>t.qSubNodes.reduce((e,t)=>0===t.qSubNodes.length?e+1:RH(e,t),e),PH=(e,t,n,r,i,o)=>{const a=i?o.rowsPerPage-n:lz-r;let s=e.qUp+e.qDown;if(i&&0===n){const n=(t+e.qUp)%o.rowsPerPage;s=e.qDown+n}return Math.min(a,RH(s,e))},MH=({node:e,parent:t,root:n,x:r,y:i,pageY:o,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,labelStructure:p,env:f,pageInfo:h,direction:m="ltr"})=>{const g=(!c||!u)&&"P"===e.qType,v=((e,t)=>{if(e!==P$){if(t){const t=OF(e.representation);return t===AF.Link||t===AF.Image?e.representation:{type:AF.Text}}return e.representation}})(s,c),y=(({node:e,isLeftColumn:t,isIndentModeEnabled:n,labelStructure:r,representationType:i,parentOrRootOriginalValue:o})=>{let a=e.qText;if(t&&n&&r){const{originalValue:t,delimeter:n,suffix:s}=r;a=i===AF.Link?"P"===e.qType?o:t:`${t} ${!s||!t&&s?"":n} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:OF(v),parentOrRootOriginalValue:(t||n)?.representation?.labelStructure?.originalValue??""}),b=IH({cell:{...e,qText:y},representationProperties:v,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[AF.Image]:!0,[AF.Indicator]:!0}}),x={id:Q_(),ref:e,x:r,y:i,pageX:r,pageY:o,mainAxisPageCoord:u?o:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:PH(e,i,o,r,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof s||!s.qLocked),isTotal:"T"===e.qType||!!t?.isTotal,isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:DH(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:t?.visibleMeasureInfoIndex,representation:b,...void 0!==d&&{indentLevel:d}};return t&&(t.children[x.mainAxisPageCoord-t.mainAxisPageCoord]=x),x},LH=(e,t,n,r,i,o,a,s,l)=>{const{isIndentModeEnabled:u}=i;if(!t.length)return e;let c=0;return function t(d,p,f,h=0,m=-1){e[h]||(e[h]={}),u&&m++;const g=i.leftDimensionInfoIndexes.indexOf(P$);f.forEach((f,v)=>{const y={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===v?0:1;const b=n.qTop-r.page*r.rowsPerPage,x=Math.max(0,b+c-f.qUp),S=n.qTop+c-f.qUp;if(u){if(i.hasPseudoDimOnLeft&&m<=g)if(y.originalValue=f.qText??"",y.maskedValue=f.qText??"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(y.originalValue=i.getNullValueText()),m<g&&(y.suffix=i.visibleMeasureInfo[0].qFallbackTitle??"");else if("P"===f.qType){y.originalValue=(p||d)?.representation.labelStructure?.originalValue??"",y.maskedValue=(p||d)?.representation.labelStructure?.originalValue??"",y.suffix=f.qText??"";const e=f.qSubNodes;f={...(p||d)?.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},m=(p||d)?.indentLevel??0}"U"===f.qType&&(y.originalValue=i.getNullValueText())}let w=h;u&&(w=g>=1&&m>=g?m+1:m,0===m&&0===g&&0===f.qSubNodes.length&&(w=0));const C=e.at(h)?.[x],E=u&&void 0===C?.ref.qText||!C?MH({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:i,dimensionInfo:o[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:r,labelStructure:y,direction:l}):e[h][x];if(e[h][x]=E,f.qSubNodes.length){const e=u?0:h+1;t(d||E,E,f.qSubNodes,e,m)}})}(null,null,t,0,-1),e},AH=(e,t)=>{e.slice(0,-1).forEach(e=>{Object.values(e).forEach((e,n,r)=>{const i=r.at(n+1);e.distanceToNextCell=i?i.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)})})},kH=(e,t)=>{const n=e[0],r=n?Object.values(n):[],i=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,o=n?.[i],a=r.at(-1);return o?.isTotal?o.isLeafNode?o.mainAxisPageCoord:o.mainAxisPageCoord+o.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},OH=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:i,attrExprInfoIndexes:o,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=LH(e.grid,l,u,n,r,i,o,a,s);AH(c,n.rowsOnCurrentPage);const d=kH(c,r);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},qH=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const i=[...t];return n.forEach((t,n)=>{t.forEach((t,o)=>{const a=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+o;Array.isArray(i[a])||(i[a]=[]);const l="U"===t.qType;i[a][s]=i[a][s]??{id:Q_(),ref:t,isNull:l}})}),i},TH=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:i}=t;return r?.length?qH({qArea:i,prevData:e,pivotValuePoints:r,pageInfo:n}):e},jH=(e,t,n,r,i,o,a,s,l,u)=>{const{isIndentModeEnabled:c}=r;if(!t.length)return e;let d=0;!function t(a,p,f,h=0){e[h]||(e[h]={}),f.forEach((f,m)=>{d+=0===m?0:1;const g=n.qLeft+d-f.qUp,v=e[h][g]??MH({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:r,dimensionInfo:i[h],attrExprInfoIndex:o[h],isLeftColumn:!1,...c&&{isIndentModeEnabled:c},env:s,pageInfo:l,direction:u});e[h][g]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,h+1)})}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},NH=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:i,headerRows:o,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=jH(e.grid,u,c,n,r,i,o,a,s,l);AH(d,n.size.x);const p=kH(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},_H=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),FH=(e,t)=>{const{env:n}=S$(),{direction:r}=y$(),{layoutService:i,effectivePropertiesService:o}=E$(),{qPivotDataPages:a,pageInfo:s}=y$(),[l,u]=m(null),c=((e,t,n)=>v(()=>({left:e.map(_H),top:t.map(_H),measures:n.map(_H)}),[n,e,t]))(e,t,i.visibleMeasureInfo),d=v(()=>q$(i,o,t,e),[i,o,t,e]),p=f(()=>a.slice(1).reduce((e,t)=>TH({prevData:e,dataPage:t,pageInfo:s}),((e,t)=>{const{qData:n,qArea:r}=e;return qH({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(a[0],s)),[a,s]),h=f(()=>a.slice(1).reduce((e,o)=>NH({prevData:e,nextDataPage:o,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:n,pageInfo:s,direction:r}),((e,t,n,r,i,o,a,s)=>{const{qArea:l,qTop:u}=e,c=jH([],u,l,t,n,r,i,o,a,s);AH(c,t.size.x);const d=kH(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],i,t,c.top,d.size.y,n,s,r)),[a,i,t,c.top,d.size.y,n,s,r]),g=f(()=>a.slice(1).reduce((t,o)=>OH({prevData:t,nextDataPage:o,pageInfo:s,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:n,direction:r}),((e,t,n,r,i,o,a)=>{const{qArea:s,qLeft:l}=e,u=LH([],l,s,n,t,r,i,o,a);AH(u,n.rowsOnCurrentPage);const c=kH(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],i,s,e,c.left,n,r)),[a,i,s,e,c,n,r]),[y,b]=m(()=>p()),[x,S]=m(()=>h()),[w,C]=m(()=>g());Gz(()=>{b(p())},[p]),Gz(()=>{S(h())},[h]),Gz(()=>{C(g())},[g]),Gz(()=>{l&&l.forEach(o=>{b(e=>TH({prevData:e,dataPage:o,pageInfo:s})),S(e=>NH({prevData:e,nextDataPage:o,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:n,pageInfo:s,direction:r})),C(t=>OH({prevData:t,nextDataPage:o,pageInfo:s,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:n,direction:r}))})},[l]);const E=f(e=>{u(e)},[]);return{headersData:d,measureData:y,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},zH=Math.sqrt(1e4),WH=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/PT.PixelsMin)}),$H=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/zH),r=Math.ceil(e.qHeight/zH);for(let i=0;i<n;i++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+i*zH,qTop:e.qTop+n*zH,qWidth:Math.min(zH,e.qWidth-i*zH),qHeight:Math.min(zH,e.qHeight-n*zH)});return t};function HH({nextPageHandler:e}){const{model:t}=S$(),{pageInfo:n}=y$(),{layoutService:r}=E$(),i=(e=>{const t=l(e);return t.current=e,t})(n.page),o=t,a=f(async(e,t)=>{await(o?.collapseLeft(R$,e,t,!1))},[o]),s=f(async(e,t)=>{await(o?.collapseTop(R$,e,t,!1))},[o]),u=f(async(e,t)=>{await(o?.expandLeft(R$,e,t,!1))},[o]),c=f(async(e,t)=>{await(o?.expandTop(R$,e,t,!1))},[o]),d=f(async t=>{if(o?.getHyperCubePivotData&&0!==t.length)try{const r=await o.getHyperCubePivotData(R$,t.reduce((e,t)=>[...e,...$H(t)],[]));i.current===n.page&&e(r)}catch(e){console.error(e)}},[o,e,n,i]),p=f((e,{dimensionInfoIndex:n,isLeftColumn:i,x:o=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case _F.Dimension:c=[{qPath:`${R$}/qDimensions/${n}/qDef/columnWidth`,oldValue:l[n].columnWidth}];break;case _F.Measures:if(i)c=s.map((e,t)=>({qPath:`${R$}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth}));else{const e=r.getMeasureInfoIndexFromCellIndex(o);c=[{qPath:`${R$}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case _F.Pivot:c=[{qPath:`${R$}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map(t=>{const{qPath:n,oldValue:r}=t;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...e})}});t?.applyPatches(d,!0)},[t,r]),h=f(async e=>{await(o?.applyPatches([{qPath:`${R$}/indentModeColumnWidth`,qOp:r.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))},[o,r]);return v(()=>({collapseLeft:a,collapseTop:s,expandLeft:u,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:h,fetchPages:d}),[a,s,u,c,p,h,d])}const VH=(e,t,n)=>(r,i)=>{if("P"===r)return P$;const o=t[n+i];return e[o]},BH=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach(e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)})};return n(e),t},GH=u({}),UH=()=>h(GH),YH=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:n}}}}=E$(),{qPivotDataPages:r}=y$();return v(()=>{const i=BH(r[0]?.qLeft??[]),o=BH(r[0]?.qTop??[]);return{visibleLeftDimensionInfo:i.map(VH(n,t,0)),visibleTopDimensionInfo:o.map(VH(n,t,e))}},[n,t,e,r])})(),{headersData:r,measureData:i,topDimensionData:o,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=FH(t,n),u=HH({nextPageHandler:l}),c=v(()=>({gridSectionsData:{headersData:r,topDimensionData:o,leftDimensionData:a,measureData:i},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n},attrExprInfoIndexes:s,dataModel:u}),[t,n,r,i,o,a,s,u]);return fo.jsx(GH.Provider,{value:c,children:e})},KH=20,XH=18,JH=.75,ZH=e=>-1!==e&&e?.representation?.type===AF.Image,QH=({isLeftColumn:e,layoutService:t,representation:n})=>Boolean(e)&&t.isIndentModeEnabled&&n.type===AF.Image,eV=e=>void 0===e?sz:e,tV=(e,t)=>{if(void 0!==e&&!Number.isNaN(+e)){const n=+e;return n>=0?n:t}return t},nV=e=>tV(e,PT.PixelsDefault),rV=(e,t)=>tV(e,PT.PercentageDefault)*t/100,iV=(e,t,n)=>{switch(t?.type){case MT.Pixels:return nV(t.pixels);case MT.Percentage:return rV(t.percentage,e);case MT.FitToContent:case MT.Auto:default:return n}},oV=({headers:e,layoutService:t,effectivePropertiesService:n,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:i,measureTextForHeader:o,longestMeasureValuePossible:a})=>e.reduce((e,s,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u,qDimensionInfo:c}}}=t,{id:d,colIdx:p,qApprMaxGlyphCount:f,isLeftDimension:h}=s,m=c.find(e=>e.cId===d),g={width:24,...m?.representation?.imageBox};if(!h)return e+0;if(d===M$)return e+0;const v=QH({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:AF.Text}})?g.width+8+4:r(f),y=!n.qAlwaysFullyExpanded&&p<u-1?21:0;let b=0;if(i&&o&&a){b=o("- ")+a}return Math.max(e,24*l+XH+y+v+b)},0),aV=(e,t,n)=>e.reduce((e,r)=>{const i=(n?0:1)*XH;return Math.max(e,i+t(r.qFallbackTitle??""))},0),sV=(e,t,n,r)=>{const i=100*e/t,o=r*JH*(i/100),a=i/100*+n;return Math.min(a,o)},lV=(e,t,n,r)=>r*(+n/100)*(100*e/t/100),uV=(e,t)=>e.some(e=>e>=t*JH),cV=({layoutService:e,effectivePropertiesService:t,headersData:n,columnWidths:r,tableWidth:i,widthOverride:o,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=i*JH,p=n.data[n.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,r.at(-1)),h=Math.min(d,oV({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,aV(e.visibleMeasureInfo,a));let g=0;const v=p.findIndex(e=>e.id===M$),y=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:i}=e.indentModeColumnWidth;return i===MT.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+XH+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:n});if(e.hasPseudoDimOnLeft)if(0===v){const e=Math.max(f,h,m);c=[Math.max(y,e-f),f]}else{const n=Math.min(d,aV(e.visibleMeasureInfo,l,!0));g=Math.min(d,oV({headers:p.slice(0,v),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:n}));const r=Math.max(f,h,g);c=[Math.max(y,r-f),f]}else c=[Math.max(y,h-f),f];const b=Math.min(d,c.reduce((e,t)=>e+t,0)),{indentModeColumnWidth:x}=e;o&&o<=d&&(x.type=MT.Pixels,x.pixels=o);return[MT.Pixels,MT.Percentage].includes(x.type)||uV(c,i)?((e,t,n,r)=>{let i=e[0],o=e[1],a=[];const s=e.reduce((e,t)=>e+t,0),{type:l,pixels:u,percentage:c}=t,d=tV(u,PT.PixelsDefault),p=tV(c,PT.PercentageDefault),f=uV(e,n);l===MT.Auto&&f&&(i>o?i-=o:o-=i),l===MT.Pixels&&d&&(i=sV(e[0],s,d,n),o=sV(e[1],s,d,n)),l===MT.Percentage&&p&&(i=lV(e[0],s,p,n),o=lV(e[1],s,p,n));let h=0;o<=r&&(h=i-5,h>0&&(i-=h,o+=h)),h=o-r,h>0&&(i+=h,o-=h),a=[i,o];const m=a.reduce((e,t)=>e+t,0);return{leftGridColumnWidths:a,leftGridWidth:m,leftGridFullWidth:m}})(c,x,i,f):{leftGridWidth:b,leftGridColumnWidths:c,leftGridFullWidth:b}};function dV({tableWidth:e}){const t=e*JH,{styleService:n,layoutService:r,effectivePropertiesService:i}=E$(),{translator:o}=S$(),{gridSectionsData:{headersData:a}}=UH(),{measureText:s}=$z(n.header,{allowLineBreaks:!1}),{estimateWidth:l,measureText:u}=$z({...n.dimensionValues,fontWeight:eV(n.dimensionValues.fontWeight)}),{measureText:c}=$z({...n.dimensionValues,...n.measureLabels}),d=f((n,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=r,v=(t=0)=>h.reduce((n,{qFallbackTitle:r,columnWidth:i})=>{const o=c(r)+XH,a=Math.max(o,t);return Math.max(n,m?a:iV(e,i,a))},0),y=e=>a.data.reduce((t,n)=>{const r=n.at(e);if(!r||Array.isArray(r))return t;if(r.id===M$)return t;const i=(e=>{const{label:t,isLocked:n}=e,r=n?KH:0;return XH+s(t)+KH+r})(r);return Math.max(i,t)},0);let b=0,x=a.data.at(-1);m&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map((o,s)=>{let u=XH;if(m&&1!==a.size.x||!n||void 0===d||d!==o.colIdx){let t;o.columnWidthLocation===_F.Pivot?t=m?void 0:f:o.columnWidthLocation===_F.Dimension&&({columnWidth:t}=o);let n=0;if(o.isLeftDimension)if(o.id===M$)n=v();else{const e=y(s),t=((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:o,dimensionInfoIndex:a}=e,s=r.getDimensionInfo(a);if(ZH(s))return PT.PixelsDefault;const u=!i.qAlwaysFullyExpanded&&o&&t<p-1?21:0;return XH+l(n)+u})(o,s);n=Math.max(e,t),m&&!g&&s+1===p&&o.columnWidthLocation===_F.Dimension&&a.size.x>1&&(n=e)}else n=y(s),o.columnWidthLocation===_F.Measures&&(n=v(n));m&&1===a.size.x&&(t=r.indentModeColumnWidth),u=m&&!g&&a.size.x>1?n:iV(e,t,n)}else u=m?Math.min(t,n):n;return b+=u,u});return m&&a.size.x>1?cV({layoutService:r,effectivePropertiesService:i,headersData:a,columnWidths:S,tableWidth:e,widthOverride:n,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:o}):{leftGridWidth:Math.min(t,b),leftGridColumnWidths:S,leftGridFullWidth:b}},[e,a,r,t,s,c,l,u,o,i]),[p,h]=m(d);Gz(()=>{h(d())},[d]);const g=f((e,t)=>{h(d(e,t))},[d]);return{...p,overrideLeftGridWidth:g}}function pV({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:n}){const{styleService:r,layoutService:i}=E$(),{visibleDimensionsInfo:{visibleTopDimensionInfo:o}}=UH(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=i,{estimateWidth:c,measureText:d}=$z(r.measureValues,{allowLineBreaks:!1}),{estimateWidth:p}=$z({...r.dimensionValues,fontWeight:eV(r.dimensionValues.fontWeight)},{allowLineBreaks:!1}),h=e-n-1,m=o.at(-1),g=m===P$,y=s.length-a>o.length?21:0,b=v(()=>{const e=g?u:[m],t=l.x/e.length,n=[],r=[];let i=h;const o=(e,r)=>{n[e]=Math.min(PT.PixelsMax,Math.max(PT.PixelsMin,r)),i-=n[e]*t};if(e.forEach((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:n,pixels:i,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(n){case MT.Pixels:o(t,nV(i));break;case MT.Percentage:o(t,rV(a,h));break;case MT.FitToContent:o(t,((e,t,n)=>n?PT.PixelsDefault:XH+(g?Math.max(c(e),d(t)):Math.max(Math.max(...u.map(e=>c(e.qApprMaxGlyphCount))),p(e)+y)))(s,l??"",ZH(e)));break;case MT.Auto:default:r.push(t)}}else r.push(t)}),r.length){const e=r.length*t,o=i/e;r.forEach(e=>{n[e]=Math.max(PT.AutoMinPivot,o)})}return n},[g,u,m,l.x,h,c,d,p,y]),x=v(()=>{if(g){return u.reduce((e,t,n)=>e+b[n],0)/u.length}return b[0]},[g,b,u]),S=parseFloat((t/i.size.x).toFixed(12)),w=f(e=>(g&&void 0!==e?b[i.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S,[g,b,i,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:w}}const fV=`scrollable-container--${zF.TopGrid}`,hV=`scrollable-container--${zF.LeftGrid}`,mV=`scrollable-container--${zF.DataGrid}`,gV=e=>{if(!(e&&e instanceof HTMLDivElement))return{width:0,height:0};const t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return{width:t>=2?t:0,height:n>=2?n:0}},vV=(e,t)=>e>t?WF.Forward:e<t?WF.Backward:WF.None,yV=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:i,trackScrollDirection:o,interactions:a})=>{const{direction:s}=y$();d(()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=r(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,o(e),i?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,o(e),i?.(e)},h=r=>{const a=r.target,l=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:i}=e,o=n-r;if("rtl"===t){if(i>o)return o;if(i<0)return Math.abs(i)}return i})(a,s);n.current?.scrollTo({scrollLeft:l,scrollTop:a.scrollTop}),u.scrollLeft=l,e.current?.forEach(e=>{e?.scrollTo(l)}),c.scrollTop=d.scrollTop,t.current?.forEach(e=>{e?.scrollTo(a.scrollTop)}),o(r),i?.(r)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",h),a.scroll||setTimeout(()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)},0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}},[o,i,a,e,t,n,r,s])},bV=ww(!1),xV=(e,t)=>Math.abs(e.width-t.width)>2||Math.abs(e.height-t.height)>2,SV=({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:n})=>{const{top:r,left:i,data:o,resetHorizontalScrollbarHeight:a}=((e,t,n)=>{const[r,i]=m({width:0,height:0}),[o,a]=m({width:0,height:0}),[s,u]=m({width:0,height:0}),[c,p]=m(!1),h=qw(bV),g=l(h),v=l(h);g.current=h;const y=f(()=>{p(e=>!e&&e);const r=gV(e.current),o=gV(t.current),s=gV(n.current);i(e=>xV(e,r)?r:e),a(e=>xV(e,o)?o:e),u(e=>xV(e,s)?s:e)},[e,t,n]);d(()=>{const r=new ResizeObserver(()=>{g.current||y()}),i=[e.current,t.current,n.current].filter(e=>Boolean(e));return i.forEach(e=>{r.observe(e)}),()=>{r.disconnect()}},[y,e,t,n]),d(()=>{const e=v.current;if(v.current=h,e&&!h){const e=setTimeout(y,0);return()=>{clearTimeout(e)}}},[h,y]);const b=f(()=>{p(!0)},[]);return{top:r,left:c?{...o,height:0}:o,data:c?{...s,height:0}:s,resetHorizontalScrollbarHeight:b}})(e,t,n);return{scrollbarsDimensions:{verticalScrollbarWidth:Math.max(r.width,o.width),horizontalScrollbarHeight:Math.max(i.height,o.height)},resetHorizontalScrollbarHeight:a}},wV=()=>{const{interactions:e}=S$(),t=l(null),n=l(null),r=l(null),i=l(null),o=l([]),a=l([]),s=l(null),{scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:p}=SV({topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:n,dataGridWrapperRef:r},gridRefs:{topGridRef:i,leftGridRef:o,dataGridRef:a}})=>{const{pageInfo:s}=y$(),{downloadService:l,viewService:u,layoutService:c}=E$(),d=f(()=>{const i={left:0,top:0};e.current?.scrollTo(i),t.current?.scrollTo(i),n.current?.scrollTo(i),r.current?.scrollTo(i)},[e,t,n,r]);g(()=>{d()},[s.page,d]),g(()=>{c.triggerdByExpandOrCollapse||d()},[c,d]),g(()=>{if(c.triggerdByExpandOrCollapse){const e=r.current?.scrollLeft??0,t=r.current?.scrollTop??0;o.current?.forEach(e=>{e?.scrollTo(t)}),i.current?.forEach(t=>{t?.scrollTo(e)}),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}},[c,r,a,o,i]),g(()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&r.current&&n.current&&t.current&&(r.current.scrollTop=u.scrollTop,r.current.scrollLeft=u.scrollLeft,n.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)},[u,l,c,r,n,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i},gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:m,horizontalScrollDirection:v}}=(()=>{const e=l(WF.None),t=l(WF.None),n=l({prevScrollTop:0,prevScrollLeft:0}),r=f(r=>{if(r instanceof WheelEvent&&(e.current=vV(r.deltaY,0),t.current=vV(r.deltaX,0)),r instanceof Event&&!(r instanceof WheelEvent)){const i=r.target;e.current=vV(i.scrollTop,n.current.prevScrollTop),n.current.prevScrollTop=i.scrollTop,t.current=vV(i.scrollLeft,n.current.prevScrollLeft),n.current.prevScrollLeft=i.scrollLeft}},[e,t,n]);return{trackScrollDirection:r,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=E$();return f(t=>{const n=t.target,r=t.currentTarget,i=n.dataset.key;i===hV&&(e.leftGridScrollLeft=r.scrollLeft),i===mV&&(e.scrollLeft=r.scrollLeft),i===fV&&(e.topGridScrollTop=r.scrollTop),i!==hV&&i!==mV||(e.scrollTop=r.scrollTop)},[e])})(),b={gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s},getWrapperElements:f(()=>({headerGridWrapperElement:t.current,topGridWrapperElement:n.current,leftGridWrapperElement:r.current,dataGridWrapperElement:i.current}),[t,n,r,i]),updateViewService:y,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:i,trackScrollDirection:o,interactions:a})=>{d(()=>{const{headerGridWrapperElement:i,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=r(),c=e=>{e.ctrlKey||(e.preventDefault(),i.scrollLeft+=e.deltaX,i.scrollTop+=e.deltaY,l.scrollLeft=i.scrollLeft,s.scrollTop=i.scrollTop,o(e))},d=e=>{e.ctrlKey||(e.preventDefault(),l.scrollTop+=e.deltaY,t.current?.forEach(e=>{e?.scrollTo(l.scrollTop)}),i.scrollLeft+=e.deltaX,l.scrollLeft=i.scrollLeft,u.scrollTop=l.scrollTop,n.current?.scrollTo({scrollTop:l.scrollTop}),o(e))},p=t=>{t.ctrlKey||(t.preventDefault(),s.scrollLeft+=t.deltaX,e.current?.forEach(e=>{e?.scrollTo(s.scrollLeft)}),i.scrollTop+=t.deltaY,s.scrollTop=i.scrollTop,u.scrollLeft=s.scrollLeft,n.current?.scrollTo({scrollLeft:s.scrollLeft}),o(t))},f=r=>{r.ctrlKey||(r.preventDefault(),u.scrollLeft+=r.deltaX,u.scrollTop+=r.deltaY,n.current?.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),s.scrollLeft=u.scrollLeft,e.current?.forEach(e=>{e?.scrollTo(u.scrollLeft)}),l.scrollTop=u.scrollTop,t.current?.forEach(e=>{e?.scrollTo(u.scrollTop)}),o(r))};return i.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout(()=>{i.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)},0),()=>{i.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}},[o,i,a,e,t,n,r])})(b),yV(b),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i},gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:m,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:p}}},CV=()=>{const{layoutService:e}=E$(),{rect:t,pageInfo:n}=y$();return v(()=>{let{height:r}=t;return e.hasLimitedData&&(r-=22),n.shouldShowPagination&&(r-=41),{...t,height:r}},[t,e,n.shouldShowPagination])},EV=({children:e,style:t})=>fo.jsx("div",{"data-testid":"fullSize",style:t,children:e}),IV=({children:e,style:t})=>{const{direction:n}=y$();return fo.jsx("div",{"data-section-id":"GRID",style:{direction:n,display:"grid",...t},children:e})},DV=e=>e&&`scrollable-container--${e}`,RV=({children:e,style:t,origin:n},r)=>{const{interactions:i}=S$(),o=i.scroll?t:{overflow:"hidden"};return fo.jsx("div",{"data-testid":"scrollable","data-key":DV(n),style:o,ref:r,children:e})};var PV=n.forwardRef(RV);const MV=({children:e,style:t})=>{const{direction:n}=y$();return fo.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===n?"right":"left"]:0,...t},children:e})};var LV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function AV(e,t){return e===t||!(!LV(e)||!LV(t))}function kV(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!AV(e[n],t[n]))return!1;return!0}function OV(e,t){var n;void 0===t&&(t=kV);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}}var qV="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function TV(e){cancelAnimationFrame(e.id)}function jV(e,t){var n=qV();var r={id:requestAnimationFrame(function i(){qV()-n>=t?e.call(null):r.id=requestAnimationFrame(i)})};return r}var NV=-1;function _V(e){if(void 0===e&&(e=!1),-1===NV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),NV=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return NV}var FV=null;function zV(e){if(void 0===e&&(e=!1),null===FV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?FV="positive-descending":(t.scrollLeft=1,FV=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),FV}return FV}var WV=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function $V(e){var t,n=e.getColumnOffset,i=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,$l(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:$l(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=OV(function(e,t,n,i,o,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=OV(function(e,t,n,i,o){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var i,o=r.props,s=o.columnWidth,l=o.direction,u=o.rowHeight,c=r._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))i=c[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;c[f]=i={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return i},r._getItemStyleCache=void 0,r._getItemStyleCache=OV(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=r.props.direction,u=o;if("rtl"===t)switch(zV()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<o?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&TV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=jV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}kl(t,e),t.getDerivedStateFromProps=function(e,t){return HV(e,t),v(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,i=e.rowIndex,o=this.props,a=o.columnCount,d=o.height,p=o.rowCount,f=o.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=_V();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==i&&(i=Math.max(0,Math.min(i,p-1)));var y=s(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>f?v:0,x=y>d?v:0;this.scrollTo({scrollLeft:void 0!==r?u(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==i?c(this.props,i,n,g,this._instanceProps,b):g})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(zV()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&TV(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,n=e.className,i=e.columnCount,o=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?WV:f,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,y=e.style,b=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],I=this._getVerticalRangeToRender(),D=I[0],R=I[1],P=[];if(i>0&&v)for(var M=D;M<=R;M++)for(var L=C;L<=E;L++)P.push(r(t,{columnIndex:L,data:p,isScrolling:b?S:void 0,key:h({columnIndex:L,data:p,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,L)}));var A=s(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return r(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ke({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},r(c||d||"div",{children:P,ref:u,style:{height:A,pointerEvents:S?"none":void 0,width:k}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,y,g,x,b)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,r=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||r||a||1;if(0===t||0===s)return[0,0,0,0];var f=i(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||i||n||1;if(0===t||0===o)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=h(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(o-1,p+g)),d,p]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var HV=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},VV=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,i=t.estimatedRowHeight,o=t.lastMeasuredRowIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},BV=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,i=t.estimatedColumnWidth,o=t.lastMeasuredColumnIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},GV=function(e,t,n,r){var i,o,a;if("column"===e?(i=r.columnMetadataMap,o=t.columnWidth,a=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,o=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=i[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=o(u);i[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return i[n]},UV=function(e,t,n,r){var i,o;return"column"===e?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex),(o>0?i[o].offset:0)>=r?YV(e,t,n,o,0,r):KV(e,t,n,Math.max(0,o),r)},YV=function(e,t,n,r,i,o){for(;i<=r;){var a=i+Math.floor((r-i)/2),s=GV(e,t,a,n).offset;if(s===o)return a;s<o?i=a+1:s>o&&(r=a-1)}return i>0?i-1:0},KV=function(e,t,n,r,i){for(var o="column"===e?t.columnCount:t.rowCount,a=1;r<o&&GV(e,t,r,n).offset<i;)r+=a,a*=2;return YV(e,t,n,Math.min(r,o-1),Math.floor(r/2),i)},XV=function(e,t,n,r,i,o,a){var s="column"===e?t.width:t.height,l=GV(e,t,n,o),u="column"===e?BV(t,o):VV(t,o),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=i>=d-s&&i<=c+s?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return i>=d&&i<=c?i:d>c||i<d?d:c}},JV=$V({getColumnOffset:function(e,t,n){return GV("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return UV("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var i=e.columnCount,o=e.width,a=GV("column",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=GV("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:VV,getEstimatedTotalWidth:BV,getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){return XV("column",e,t,n,r,i,o)},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){return XV("row",e,t,n,r,i,o)},getRowOffset:function(e,t,n){return GV("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return UV("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var i=e.rowCount,o=e.height,a=GV("row",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=GV("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,i=e.rowIndex,o=e.shouldForceUpdate,a=void 0===o||o;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof i&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,i-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),ZV=function(e,t){return e};function QV(e){var t,n=e.getItemOffset,i=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=u(r.props,$l(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:$l(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=OV(function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),r._callOnScroll=void 0,r._callOnScroll=OV(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=OV(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(zV()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState(function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&TV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=jV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}kl(t,e),t.getDerivedStateFromProps=function(e,t){return eB(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?_V():0:l.scrollHeight>l.clientHeight?_V():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(zV()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&TV(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?ZV:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,b=e.width,x=this.state.isScrolling,S="horizontal"===o||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],I=C[1],D=[];if(c>0)for(var R=E;R<=I;R++)D.push(r(t,{data:d,key:f(R,d),index:R,isScrolling:y?x:void 0,style:this._getItemStyle(R)}));var P=i(this.props,this._instanceProps);return r(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:ke({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},r(l||u||"div",{children:D,ref:s,style:{height:S?"100%":P,pointerEvents:x?"none":void 0,width:S?P:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var u=s(this.props,a,this._instanceProps),c=l(this.props,u,a,this._instanceProps),d=i&&"backward"!==o?1:Math.max(1,n),p=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var eB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},tB=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var u=r(l);i[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return i[t]},nB=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=tB(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},rB=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&tB(e,n,t).offset<r;)n+=o,o*=2;return nB(e,t,Math.min(n,i-1),Math.floor(n/2),r)},iB=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},oB=QV({getItemOffset:function(e,t,n){return tB(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:iB,getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=tB(e,t,i),p=iB(e,i),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+o);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?nB(e,t,i,0,n):rB(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===i||"horizontal"===s?l:o,c=tB(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=tB(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function aB(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var sB=["style"],lB=["style"];function uB(e,t){var n=e.style,r=Oe(e,sB),i=t.style,o=Oe(t,lB);return!aB(n,i)&&!aB(r,o)}const cB=10,dB=(e,t)=>e.current===WF.Backward?t:0,pB=(e,t,n,r)=>{for(let i=n;i<n+r;i++){const n=e.at(i);if(void 0===n||void 0===n.at(t))return!0}return!1},fB=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,hB=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:i,endLeft:o})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=i;e<o;e++)if(pB(t,e,n,r)){const t=a[a.length-1],i={qLeft:e,qTop:n+s,qWidth:1,qHeight:r};void 0!==t&&fB(t,i)?t.qWidth+=i.qWidth:a.push(i)}return a},mB=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:i,minBufferEndLeft:o,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=r,u=n.current===WF.Backward?Math.max(0,i-25):o,c=Math.min(u+25,a);return hB({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},gB=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:i})=>{const{startLeft:o,endLeft:a,pageTop:s,qHeight:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=t,s=e.size.x,l=dB(n,cB),u=Math.max(r-l,0);return{startLeft:u,endLeft:u+Math.min(o+cB,s-u),pageTop:i,qHeight:a}})(r,i,n),u=hB({pageInfo:e,measureData:t,startLeft:o,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...mB({pageInfo:e,measureData:t,scrollDirection:n,viewService:i,minBufferStartLeft:o,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},vB=(e,t,n,r)=>{const i=e[n];if(void 0===i)return!0;for(let e=t;e<t+r;e++){if(void 0===i[e])return!0}return!1},yB=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,bB=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:i,pageInfo:o})=>{const a=[],s=o.page*o.rowsPerPage;for(let o=e;o<t;o++)if(vB(i,n,o,r)){const e=a.at(-1),t={qLeft:n,qTop:o+s,qWidth:r,qHeight:1};void 0!==e&&yB(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},xB=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:i,endTop:o,qLeft:a,qWidth:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=t,s=dB(n,cB),l=Math.max(i-s,0);return{startTop:l,endTop:l+Math.min(a+cB,e.rowsOnCurrentPage-l),qLeft:r,qWidth:o}})(e,r,n),l=bB({startTop:i,endTop:o,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const r=n.current===WF.Backward?Math.max(0,i-25):o,u=Math.min(r+25,e.rowsOnCurrentPage),c=bB({startTop:r,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},SB=async(e,t,n,r,i,o,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=i;let p=[],f=[];o.current!==WF.None&&(p=xB({pageInfo:r,measureData:n,scrollDirection:o,viewService:i})),a.current!==WF.None&&(f=gB({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:i})),o.current===WF.None&&a.current===WF.None&&(p=bB({measureData:n,pageInfo:r,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},wB=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var u=Date.now()-o,c=function(){o=Date.now(),r=0,e.apply(t,n)};r||(u>=i?c():r=setTimeout(c,i-u))}}(SB,100),CB=ZN(SB,75),EB=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),IB=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:i,isLeftColumn:o,showTotalCellDivider:a})=>{const{direction:s}=y$(),{styleService:{grid:{border:l,divider:u}}}=E$();return fo.jsx("div",{style:{...e,...hz,...yz(n,r,l,s,i),...xz({bottomDivider:a&&o,rightDivider:a&&!o,borderColor:u})},"data-testid":"empty-cell","data-index":t})},DB=({children:e,verticalAlign:t,width:n,right:r,isLeftColumn:i})=>{const{layoutService:{isIndentModeEnabled:o}}=E$(),a=i&&o;return fo.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},RB=e=>{const{type:t,imageSize:n}=e;return t!==AF.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},PB=e=>"number"==typeof e&&!Number.isNaN(+e),MB=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,LB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),AB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),kB=x((e,t)=>fo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[fo.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),fo.jsx("use",{fillRule:"evenodd"})]})),OB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),qB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),TB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),jB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M2 7.5h12v1H2z"})})),NB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),_B=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),FB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),zB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),WB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),$B=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),HB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),VB=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),BB={m:WB,"ï":FB,R:x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),S:$B,T:HB,U:VB,P:_B,Q:TB,"è":x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":OB,"©":kB,"23F4":qB,2013:zB,"&":NB,add:LB,"minus-2":jB,dot:AB},GB=({size:e,iconKey:t,color:n,pvStyle:r})=>{const i=t&&BB[t];return i&&fo.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:fo.jsx(i,{style:{height:e}})})},UB=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),YB=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},KB=(e,t,n)=>{const r={previousColor:(i=e.localPaletteColors)[(o=t)-(o>0?1:0)],nextColor:i[o+(o<i.length-1?1:0)]};var i,o;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,i)=>{const{upperLimit:o,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=r===o.value?1:(r-a.value)/(o.value-a.value);return a.gradient&&o.gradient?r-a.value<o.value-r?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:o.gradient?{color:l.color,t:u/2}:{color:i.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return Pj(e.localPaletteColors[t].color??"").blend(Pj(s.color??""),s.t)},XB=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:UB(t,e.value)}))),e})({...e},t),i=r.paletteColors||r.localPaletteColors;return i&&(r.localPaletteColors=i.concat().map((e,t)=>({color:YB(r,t,n)}))),r},JB=(e,t,n,r)=>{const i=XB(e,n,r),{localPaletteColors:o}=i;if(t<=0)return o[0].color;if(t>=1)return o[o.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:i,localPaletteColors:o}=e;for(let a=0;a<o.length;a++){const o=i&&i[a]?i[a].value:1;if(t>=r&&t<o){n=KB(e,a,t);break}r=o}return n})(i,t);return a},ZB=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!PB(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!PB(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},QB=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=ZB(e,t),i=Math.abs(t);return{min:n??t-i,max:r??t+i}})(n,t),i=((e,t,n)=>{const{limits:r,paletteColors:i,localPaletteColors:o}=e.segments;if(!r||!PB(t))return 0;let a=n&&PB(n)?Math.min(n,t):0;const s=r.sort((e,t)=>e.value-t.value),l=i||o;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:i}},eG=e=>"flex-start"===e?"flex-end":"flex-start",tG=(e,t,n,r)=>{const i=e.indicatorConditionalColoring;if(!i)return;const o=QB(i,t),a=((e,t,n,r)=>{const{segments:i}=e;if(!i||!n)return;const{limits:o}=i;if(!o?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(o,n.limitPaletteColorIndex))return YB(i,n.limitPaletteColorIndex,r);const a=UB(n.limitRange,t);return JB(i,a,n.limitRange,r)})(i,t,o,r),s=i.segments.paletteColors[o?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===n&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},nG=({representation:e,cellValue:t,textStyle:n})=>{const{styleService:r}=E$(),{theme:i}=S$(),{direction:o}=y$(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=tG(e,t,o,i),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=r.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},v=parseInt(d||oz,10),{iconKey:y,color:b,position:x}=c||{},S={display:"flex",paddingTop:2};return l?fo.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:n?.overflow,color:u?b:n?.color},children:["left"===x&&GB({size:v,iconKey:y,color:b,pvStyle:S}),fo.jsx("span",{style:{paddingTop:4,overflow:n?.overflow,textOverflow:n?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&GB({size:v,iconKey:y,color:b,pvStyle:S})]}):(S.paddingTop=5,GB({size:v,iconKey:y,color:b,pvStyle:S}))},rG=(e,t,n)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===n?"flex-end":"flex-start";case"right":return"rtl"===n?"flex-start":"flex-end";default:return t}},iG=(e,t)=>{let{textAlign:n}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:n}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),n?.auto||void 0===n?"left":n.align},oG=(e,t,n,r,i)=>{if(i)return;const o=e.representation,a=QH({isLeftColumn:n,layoutService:t,representation:o}),s=n?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===AF.Image)return a&&l&&"center"!==l&&"rtl"===r?eG(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:n}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return rG(n,s,r)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return rG(u,s,r)},aG=e=>!!e.target?.getAttribute("class")?.includes(RT),sG=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),i=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&i===e.activeSelection.endIndex)return e;const o={...e.activeSelection,startIndex:r,endIndex:i};return o.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:i}=e,o=new Map(i);for(let e=n;e<=r;e++){const n=t(e);"N"===n?.ref.qType&&o.set(n.ref.qElemNo,n)}return o})(o),{...e,activeSelection:o}}default:return e}},lG=e=>null!==e.target?.closest("[data-prevent-selection]"),uG=e=>"A"===e.target?.tagName,cG=({startIndex:e,getCellFromIndex:t,cell:n})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:"L"===n.selectionCellType?n.x:n.y}}});const dG=u({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),pG=()=>h(dG),fG=({children:e,selections:t})=>{const n=function(e){const{updatePageInfo:t}=y$(),n=e.isActive(),[r,i]=c(sG,{engineSelectedCells:null,selectedField:null,activeSelection:null});d(()=>{const n=()=>{i({type:"clearSelections"})},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}},[e,t]);const o=f(async()=>{if(!r.activeSelection)return;var t,n;1===r.activeSelection.clientSelectedCells.size&&(t=r.engineSelectedCells,(n=r.activeSelection).clientSelectedCells.forEach((e,r)=>{t?.has(r)&&(n.clientSelectedCells.delete(r),t.delete(r))}));const o=new Map([...r.engineSelectedCells??new Map,...r.activeSelection.clientSelectedCells]);try{i({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[R$,Array.from(o,([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x}))]})}catch(e){console.error(e),i({type:"mouseup",payload:{engineSelectedCells:r.engineSelectedCells}})}},[r,e]);d(()=>{if(r.activeSelection)return document.addEventListener("mouseup",o),()=>{document.removeEventListener("mouseup",o)}},[o,r.activeSelection]);const a=f((e,t)=>n=>{const r=t(e);aG(n)||lG(n)||uG(n)||!(e=>1===e.buttons)(n)||!r||i(cG({startIndex:e,getCellFromIndex:t,cell:r}))},[]),s=f(t=>async()=>{r.activeSelection&&(e.isActive()||await e.begin([R$]),i({type:"mouseover",payload:{index:t}}))},[r.activeSelection,e]),l=f((e,t)=>n=>{if("touch"!==n.pointerType)return;const r=t(e);aG(n)||lG(n)||uG(n)||!r||(i(cG({startIndex:e,getCellFromIndex:t,cell:r})),o())},[o]),u=f(e=>!(!r.engineSelectedCells?.size&&!r.activeSelection?.clientSelectedCells.size||!r.selectedField||e.selectionCellType===r.selectedField.selectionCellType&&("L"===e.selectionCellType?r.selectedField.index===e.x:r.selectedField.index===e.y)),[r.activeSelection?.clientSelectedCells.size,r.engineSelectedCells?.size,r.selectedField]),p=f(e=>!u(e)&&(r.engineSelectedCells?.has(e.ref.qElemNo)||!!r.activeSelection?.clientSelectedCells.has(e.ref.qElemNo)),[u,r.activeSelection?.clientSelectedCells,r.engineSelectedCells]);return v(()=>({isSelected:p,isActive:n,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l}),[p,n,u,a,s,l])}(t);return fo.jsx(dG.Provider,{value:n,children:e})},hG=e=>"fill"===e.representation.imageSize,mG=(e,t)=>{let n=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&hG(e)&&t&&(n="center"),e.representation.type!==AF.Image||hG(e)?n:e.representation.resolvedImagePosition?.vertical};var gG=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(gG||{});const vG={brighter:.5,darker:.3,opacity:.03},yG=(e,{cell:t,styleService:n})=>{if(e===gG.Background||e===gG.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},bG=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const i=yG(gG.Background,{cell:n,styleService:e});return!r||!i||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?yG(gG.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${l_(o=i,vG)} 0px 2px,\n ${o} 0px 4px\n ) border-box`;var o},xG=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:yG(gG.Color,{cell:e,styleService:t}),SG=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,i=yG(gG.FontWeight,{cell:e,styleService:t});return void 0===i&&(r||n)?sz:i},wG=({cell:e,styleService:t})=>yG(gG.FontStyle,{cell:e,styleService:t}),CG=({cell:e,styleService:t})=>yG(gG.TextDecoration,{cell:e,styleService:t}),EG=e=>e?"pointer":"default",IG=({expandOrCollapse:e,cell:t})=>n=>{e?.(t.y,t.x),n.stopPropagation()},DG=(e,t)=>{if(!e.isLeftColumn||e.representation.type===AF.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},RG=({cell:e,isLeftColumn:t,isCellSelected:n})=>{const{styleService:r,layoutService:i}=E$(),{interactions:o}=S$(),{isActive:a}=pG(),{dataModel:s}=UH();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||a||!s,u=xG({cell:e,styleService:r,isCellSelected:n}),c=a?.4:1,d=e.ref.qCanExpand?MW:PW;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=QH({isLeftColumn:t,layoutService:i,representation:e.representation});return fo.jsx(d,{opacity:c,color:u,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",position:"sticky",top:0,...DG(e,r),...f&&{alignSelf:mG(e)}},onClick:l?void 0:IG({cell:e,expandOrCollapse:p})})},PG=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},MG=(e,t,n)=>{if("alwaysFit"===e&&t&&!n)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return n?"unset":"100%";default:return"100%"}},LG=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},AG=({representation:e,canExpandOrCollapse:t,leafCount:n,isLeftColumn:r,styleService:i,layoutService:o,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=o,l=QH({isLeftColumn:r,layoutService:o,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=i.headerCellHeight;r&&l&&(d=c),(a||r)&&(p=i.contentCellHeight);let f=p;switch(r&&void 0!==n&&!s&&(f=p*Math.max(n,1)),e.imageSize){case"originalSize":return{maxWidth:d,maxHeight:f,...l?{width:d}:{}};case"fitWidth":return{width:d,maxHeight:f};case"fitHeight":return{height:f,maxWidth:d,...l?{width:d}:{}};case"fill":return{height:f,width:d};default:return{width:d,height:p}}},kG=e=>{if("alwaysFit"===e)return"contain"},OG=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),qG=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:n,isMeasureCell:r})=>({width:MG(e,n,r),height:PG(e),objectFit:kG(e),objectPosition:LG(e,t),...n&&"alwaysFit"===e?{"max-width":"100%"}:{}}),TG=({representation:e,textStyle:t,isMeasureCell:n})=>{const{imageRef:r,onLoad:i}=(()=>{const{downloadService:e}=E$(),t=l(null),{promise:n,resolve:r}=v(()=>Mz(),[]);return d(()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(n),t.current?.complete&&r()),()=>{r()}),[t,e,n,r]),{onLoad:f(()=>{r()},[r]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:o}}=E$(),{url:a,text:s,imageSize:u,resolvedImagePosition:c}=e,{overflow:p,...h}=t;return fo.jsx("img",{src:a,alt:s,style:{...qG({imageSize:u,resolvedImagePosition:c,isImagesInIndentModeEnabled:o,isMeasureCell:n}),...h},onLoad:i,ref:r})},jG=({representation:e,textStyle:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:i=!1,imageContainerHorizontalAlignment:o,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=E$(),{resolvedImagePosition:u}=e;return fo.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:o,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...AG({representation:e,canExpandOrCollapse:n,leafCount:r,styleService:s,layoutService:l,isLeftColumn:i,isMeasureCell:a})},children:fo.jsx(TG,{representation:e,textStyle:t,isMeasureCell:!0})})},NG={display:"flex",flexDirection:"row",alignItems:"center"},_G={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},FG=(e,t,n,r)=>t?{..._G,...e.nullValues}:n?{...NG,color:e.totalValues.color,background:r??e.totalValues.background}:{...NG,color:e.measureValues.color,background:r??e.measureValues.background},zG=(e,t,n,r,i)=>{const{fontFamily:o,fontSize:a}=e.measureValues,s={...mz,...!n&&gz(e.grid.lineClamp),...t&&{color:t},fontFamily:o,fontSize:a};if(i){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?sz:l,fontStyle:u,textDecoration:c}},WG=({cell:e,representation:t,color:n,isTotalValueCell:r,cellHorizontalAlignment:i})=>{const{layoutService:o,styleService:a}=E$(),{isIndentModeEnabled:s}=o,l=e.isNull?o.getNullValueText():t.text,u=t.type===AF.Image,c=t.type===AF.Indicator,d=PB(MB(l)),p=zG(a,n,d,r,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return fo.jsx(jG,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:i});const f=MB(e.isNull?t.text:e.ref.qNum);return c&&PB(f)?fo.jsx(nG,{representation:t,cellValue:f,textStyle:p}):fo.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},$G=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,HG="flex-start",VG=(e,t)=>e.isNull?HG:t.type===AF.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:HG,BG=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{env:i}=S$(),{pageInfo:o,direction:a}=y$(),{styleService:s,layoutService:l}=E$(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:h,visibleTopDimensionInfo:m}}=UH(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=E$(),{gridSectionsData:{leftDimensionData:t,topDimensionData:n},visibleDimensionsInfo:{visibleLeftDimensionInfo:r,visibleTopDimensionInfo:i}}=UH(),o=r.length,a=i.length;return f((r,i)=>!(!n.grid.at(a-1)?.[r]?.isTotal&&!t.grid.at(e?0:o-1)?.[i]?.isTotal),[n,t,o,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=UH(),n=t.length;return f(t=>{const r=e.grid.at(n-1)?.[t];return EB(r,e.totalDividerIndex)},[e,n])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=E$(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:n}}=UH(),r=n.length;return f(n=>{const i=e?0:r-1,o=t.grid.at(i)?.[n];return EB(o,t.totalDividerIndex,e)},[t,e,r])})(),{showLastBorder:b}=r,x=p.grid.at(m.length-1),S=d.grid.at(h.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===o.rowsOnCurrentPage-1,I=e===l.size.x-1;if(!C)return fo.jsx(IB,{style:{...n,background:w},isLastRow:E,isLastColumn:I,showLastBorder:b,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const D=l.hasPseudoDimOnLeft?$G(S,t):$G(x,e),R=l.visibleMeasureInfo[D],P=IH({cell:C.ref,representationProperties:R.representation,attrExprInfoIndex:u.measures[D],env:i,direction:a,conditionalColoring:R.conditionalColoring,enabledFeatures:{[AF.Image]:!0,[AF.Indicator]:!0}}),M=!C.isNull&&g(e,t),L=C.isNull?l.getNullValueText():P.text,A=!C.isNull||!Number.isNaN(+L),k=DH(u.measures[D],C.ref),O=((e,t,n,r,i)=>{const{textAlign:o}=t,a=r?"flex-end":"center";return e.isNull||n.type!==AF.Image?rG(o,a,i):n.resolvedImagePosition?.horizontal??"center"})(C,R,P,A,a),q={...FG(s,C.isNull,M,k.background),...yz(E,I,s.grid.border,a,b),...xz({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...hz,padding:"0px 4px",display:"flex",justifyContent:O};return fo.jsx("div",{className:IT,title:L,style:{...q,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:fo.jsx(DB,{width:RB(P),verticalAlign:VG(C,P),children:fo.jsx(WG,{cell:C,representation:P,isTotalValueCell:M,color:k.color,cellHorizontalAlignment:O})})})};var GG=n.memo(BG,uB);const UG=(e,t)=>t.list[e]?.id??e.toString(),YG=({columnIndex:e,rowIndex:t,data:n})=>n.grid[t]?.[e]?.id??`${t}-${e}`,KG=e=>({...fz,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),XG=({dataGridRef:e,height:t,rowHightCallback:n,width:r,showLastBorder:i,getRightGridColumnWidth:o,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=y$(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=E$(),{dataModel:h,gridSectionsData:{measureData:m}}=UH(),v={...KG(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:n}=y$(),{downloadService:r,viewService:i,layoutService:o}=E$(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=UH(),c=s.columnCount,d=l.rowCount;return f(async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{i.gridColumnStartIndex=s,i.gridRowStartIndex=p,i.gridWidth=l-s+1,i.gridHeight=f-p+1;const h=i.gridWidth+c+(t.current===WF.None?0:cB),m=i.gridHeight+d+(e.current===WF.None?0:cB);let g=wB;m*h>1500&&(g=CB),g(a,o,u,n,i,e,t,r)},[i,o,a,u,e,t,n,c,d,r])})({verticalScrollDirection:a,horizontalScrollDirection:s});return Gz(()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)},[e,h,m]),g(()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})},[r,t,e,p,u]),0===c.size.x?null:fo.jsx(JV,{"data-section-id":"DATA_GRID",ref:e,style:v,columnCount:c.size.x,columnWidth:o,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:n,width:r,itemData:{showLastBorder:i,grid:m},onItemsRendered:y,estimatedRowHeight:n(),estimatedColumnWidth:o(),itemKey:YG,direction:u,children:GG})};var JG=b(XG);const ZG=x((e,t)=>fo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[fo.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),fo.jsx("use",{fillRule:"evenodd"})]})),QG=e=>{const[t,n]=jw(bV);return Gz(()=>{n(!1)},e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},eU=()=>{const[e,t]=m(!1),{dataModel:n}=UH(),{interactions:r}=S$(),{isAdjustingWidth:i,setIsAdjustingWidth:o}=QG([n]);return{open:e,setOpen:t,handleOpenMenu:e=>{!r.active||aG(e)||i||t(!0)},isAdjustingWidth:i,setIsAdjustingWidth:o}};function tU(e,t){const n=t.expressionColor?.background??e.dimensionValues.background,r=t.isLeftColumn?e.header.background:n,i=r===cz.Transparent?hj.WHITE:r,o=Pj(e.grid.border),a=Pj(i);return a.isInvalid()||o.isInvalid()||1===o.a?e.grid.border:function(e,t,n){return Pj(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}(a,o,o.a).getRGB()}const nU=({cellInfo:e,columnWidth:t,isLastColumn:n,overrideLeftGridWidth:r,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:o,tableWidth:a})=>{const{direction:s}=y$(),{interactions:l,translator:u}=S$(),{isActive:c}=pG(),{dataModel:d}=UH(),{styleService:p}=E$(),[,f]=m({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=tU(p,e);return fo.jsx(Zz,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),r&&void 0!==e.colIdx&&r(t,e.colIdx)},confirmWidthCallback:t=>{o?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*JH,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},rU=Sl(sc,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})(({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:i})=>({pointerEvents:i?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&i?n:t}})),iU=Sl("div",{shouldForwardProp:e=>!["direction"].includes(e)})(({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0})),oU=Sl("div",{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({...pz,justifyContent:e??pz.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8})),aU=Sl("div")(()=>({...pz})),sU=Sl("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})(({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:i,justifyContent:o})=>({display:"flex",justifyContent:o,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:i})),lU=Sl(wp)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),uU=Sl(Rp,{shouldForwardProp:e=>!["isActive"].includes(e)})(({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}})),cU=Sl("span")({textOverflow:"ellipsis",overflow:"hidden"}),dU=Sl("div",{shouldForwardProp:e=>"visible"!==e})(({visible:e})=>({opacity:e?1:0,width:KH,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})),pU=Sl("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})(({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0}));let fU=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const hU=(e,t)=>({qExcludeList:t===fU.Expand,qPos:{qDimName:e,qElemNo:[]}}),mU=`${R$}/qExpansionState`,gU=({model:e,qExpansionState:t,qEffectiveDimensionName:n,action:r})=>async()=>{const i=(({qEffectiveDimensionName:e,oldExpansionState:t,action:n})=>{const r=t?.findIndex(t=>t.qPos?.qDimName===e);return{expansionData:hU(e,n),index:r}})({qEffectiveDimensionName:n,oldExpansionState:t,action:r});await(async({model:e,newExpansionState:t,errorMsg:n})=>{const{index:r,expansionData:i}=t;try{let t,n=mU,o="Add";void 0===r?t=JSON.stringify([i]):-1===r?(n=`${mU}/-`,t=JSON.stringify(i)):(n=`${mU}/${r}`,o="Replace",t=JSON.stringify(i)),await e.applyPatches([{qPath:n,qOp:o,qValue:t}],!0)}catch(e){console.error(n,e)}})({model:e,newExpansionState:i,errorMsg:`Failed to ${r} dimension`})},vU=({model:e,effectivePropertiesService:t,cell:n})=>{if(void 0===n.qEffectiveDimensionName)return;const r={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n.qEffectiveDimensionName};return{expandCallback:gU({...r,action:fU.Expand}),collapseCallback:gU({...r,action:fU.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},yU={[NW.Sorting]:!0,[NW.Selections]:!0,[NW.Searching]:!0},bU=({cell:e,style:t,isFirstColumn:n,isLastColumn:r,isLastRow:i,changeSortOrder:o,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:u,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=l(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=E$(),{app:g,interactions:v,embed:y,translator:b,model:x,env:S}=S$(),{fontSize:w,fontFamily:C,fontStyle:E,fontWeight:I,textDecoration:D,color:R,background:P,hoverBackground:M,activeBackground:L}=f.header,A=l(null),{shouldShowLockIcon:k,shouldShowMenuIcon:O}=a,{open:q,setOpen:T,handleOpenMenu:j,setIsAdjustingWidth:N}=eU(),{direction:_}=y$(),F={sortFromMenu:async(t,n)=>{t.stopPropagation(),await o(e,n)}},z={embed:y,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},W={app:g,qStateName:h.layout.qStateName},{labelTextAlign:$}=h.getDimensionInfo(e.dimensionInfoIndex)??{},H=rG($,"flex-start",_);return fo.jsxs(rU,{className:IT,title:e.label,interactions:v,background:q?L:P,hoverBackground:M,shouldShowMenuIcon:O,isDimension:e.isDim,style:{...t,...hz,...bz(e,i,n,r,f.grid.border,_),color:R},"data-testid":"title-cell",onClick:j,children:[fo.jsxs(oU,{children:[k?fo.jsx(aU,{children:fo.jsx(ZG,{height:12})}):null,fo.jsx(sU,{fontFamily:C,fontSize:w,fontStyle:E,fontWeight:I,textDecoration:D,justifyContent:H,children:fo.jsx("span",{style:S.flags.isEnabled("VNA-135-WRAP_HEADER_TEXT")?{...mz,...gz(f.grid.columnLineClamp)}:mz,children:e.label})})]}),e.isDim?fo.jsxs(fo.Fragment,{children:[fo.jsx(zW,{headerData:e,translator:b,anchorRef:A,open:q,setOpen:T,interactions:v,menuAvailabilityFlags:yU,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:W,expandOrCollapseArgs:vU({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:O,model:x&&"setActiveField"in x?x:void 0,direction:_,isAccessibleHeader:!0}),fo.jsx(iU,{ref:p,direction:_}),fo.jsx(iU,{ref:A,direction:_})]}):null,fo.jsx(nU,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:r,overrideLeftGridWidth:u,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},xU=({rowSpan:e,columnSpan:t})=>{const{styleService:n}=E$(),{direction:r}=y$();return e>0&&t>0?fo.jsx("div",{style:{...fz,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===r?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},SU=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),wU=x((e,t)=>fo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[fo.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),fo.jsx("use",{fillRule:"evenodd"})]})),CU=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:n})=>{const{direction:r}=y$(),{styleService:i}=E$(),{interactions:o,translator:a}=S$(),{isActive:s}=pG(),{dataModel:l}=UH(),{setIsAdjustingWidth:u}=QG([l]);if(!(!!o.active&&!s))return null;const c=tU(i,{isLeftColumn:!0});return fo.jsx(Zz,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{n(Math.min(t,e*JH))},confirmWidthCallback:r=>{if(r.type===MT.FitToContent)return void l.applyIndentModeColumnWidth({type:MT.Auto});const i=Math.min(r.pixels??t,e*JH);n(i),l.applyIndentModeColumnWidth({type:MT.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:r})},EU=x((e,t)=>fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:fo.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})})),IU=({cell:e,changeSortOrder:t})=>{const n=l(null),r=l(null),{app:i,interactions:o,embed:a,translator:s,model:u}=S$(),{layoutService:c,effectivePropertiesService:d}=E$(),{open:p,setOpen:f,handleOpenMenu:h}=eU();return fo.jsxs(uU,{onClick:h,isActive:p,children:[fo.jsx(cU,{children:e.label}),fo.jsxs(dU,{className:"indent-mode-dropdown-more",visible:p,children:[fo.jsx(EU,{}),e.isDim?fo.jsxs(fo.Fragment,{children:[fo.jsx(zW,{headerData:e,translator:s,anchorRef:n,open:p,setOpen:f,interactions:o,menuAvailabilityFlags:yU,sortRelatedArgs:{sortFromMenu:async(n,r)=>{n.stopPropagation(),await t(e,r)}},searchRelatedArgs:{embed:a,listboxRef:r},selectionRelatedArgs:{app:i,qStateName:c.layout.qStateName},expandOrCollapseArgs:vU({model:u,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:u&&"setActiveField"in u?u:void 0}),fo.jsx(iU,{ref:r}),fo.jsx(iU,{ref:n})]}):null]})]})},DU=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{const i=n.at(-1)?.id===M$,o=e+1<n.length&&n[e+1]?.id===M$;return!(r&&i&&o)&&(t?.id!==M$&&e<n.length-1)},RU=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:n,leftGridWidth:r,tableWidth:i})=>{const{styleService:o}=E$(),{interactions:a,translator:s}=S$(),{dataModel:u,gridSectionsData:{headersData:c}}=UH(),[d,p]=m(!1),f=l(null),{headerCellHeight:h}=o,{color:g,background:v,hoverBackground:y,activeBackground:b,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=o.header,{isAdjustingWidth:I}=QG([u]),D=e=>{e.stopPropagation()},R={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return fo.jsxs(rU,{isDimension:!0,background:d?b:v,interactions:a,hoverBackground:y,style:{...R,...hz,color:g},onClick:e=>{!a.active||aG(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[fo.jsxs(oU,{justifyContent:"flex-start",children:[fo.jsx(sU,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:fo.jsx("span",{style:mz,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?fo.jsx(wU,{}):fo.jsx(SU,{}),fo.jsx(iU,{ref:f})]}),fo.jsx(lU,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map((n,r)=>[n&&n.id!==M$&&fo.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:fo.jsx(IU,{cell:n,changeSortOrder:t})}),DU({idx:r,menu:n,menuItems:e,isOnlyOneRow:1===c.size.y})&&fo.jsx(rW,{"data-testid":"group-divider",variant:"middle"})])}),fo.jsx(CU,{tableWidth:i,leftGridWidth:r,overrideLeftGridWidth:n})]})},PU=({layoutService:e,headersData:t,topRowIndex:n})=>e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y,MU={display:"grid",width:"fit-content"},LU=({tableWidth:e,leftGridWidth:t,columnWidths:n,rowHight:r,changeSortOrder:i,getHeaderCellsIconsVisibilityStatus:o,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=E$(),{gridSectionsData:{headersData:u}}=UH();return fo.jsxs("div",{"data-testid":"HEADER_GRID",style:{...MU,gridTemplateColumns:n.map(e=>`${e}px`).join(" "),gridTemplateRows:u.data.map(()=>`${r}px`).join(" "),height:a},children:[u.size.y>1&&fo.jsx(xU,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map((a,c)=>{let d=[];if(PU({layoutService:l,headersData:u,topRowIndex:c})){const n=a.at(0);return Array.isArray(n)&&d.push(fo.jsx(RU,{menuItems:n,changeSortOrder:i,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},n.at(0)?.id)),d}return d=a.reduce((t,a,d)=>{if(a&&!Array.isArray(a)){const p=o(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(fo.jsx(bU,{style:{width:n[d],height:r,gridColumn:l.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:i,cell:a,iconsVisibilityStatus:p,columnWidth:n[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t},[]),d})]})};var AU=b(LU);const kU=(e,t,n,r)=>{const{layoutService:i}=E$();g(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!0))},[e,t,n,r,i])},OU=(e,t)=>{Gz(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!1))},[e,t])},qU=(e,t)=>{const{isLast:n,list:r,listValues:i}=t;return n?r[e]:i[e]},TU=()=>{},jU=({children:e,reactWindowStyle:t,cell:n,data:r,showTotalCellDivider:i,isLastRow:o,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=E$(),{interactions:f}=S$(),{direction:h}=y$(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:y}=pG(),{showLastBorder:b}=r,x=m(n)||n.isLockedByDimension,S=!(x||!f.active||!f.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||u),w=S?g(c,e=>qU(e,r)):void 0,C=S?v(c):void 0,E=S?y(c,e=>qU(e,r)):void 0,I=QH({isLeftColumn:s,layoutService:p,representation:n.representation});return fo.jsx("div",{className:IT,title:f.passive?n.representation.text:void 0,style:{...t,...yz(o,a,d.grid.border,h,b),...xz({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...hz,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:EG(S),background:bG({styleService:d,isCellSelected:l,cell:n,isCellLocked:x}),zIndex:s?void 0:p.size.x-n.x,justifyContent:oG(n,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(n.indentLevel??0))},textAlign:iG(n,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:TU,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},NU=e=>{e.stopPropagation()},_U=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:NU,color:hj.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),FU=({href:e,text:t,interactions:n,color:r})=>fo.jsx(Rd,{..._U({href:e,text:t,interactions:n,color:r}),children:t}),zU=Y();zU.use(U),zU.renderer.prio(["canvas"]);const WU=(e,t)=>e&&"center"!==e&&"rtl"===t?eG(e):e,$U=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{const{imageBox:i}=t,{styleService:{grid:{lineClamp:o}}}=E$(),{direction:a}=y$();return fo.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${i?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[fo.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:mG(e),alignItems:WU(r,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:i?.width??24,height:"100%"},children:fo.jsx(TG,{representation:t,textStyle:n})}),fo.jsx(pU,{padding:4/(o<=2?2:1),alignSelf:mG(e,!0),children:!!t.labelStructure&&OG(t.labelStructure)})]})},HU=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,VU=({href:e,text:t,labelStructure:n,interactions:r,color:i})=>fo.jsxs("span",{children:[fo.jsx(Rd,{..._U({href:e,text:t,interactions:r,color:i}),children:n?.maskedValue?n.maskedValue:n?.originalValue}),!!n&&HU(n)]}),BU=({children:e,textStyle:t,shouldEnableStickyText:n})=>fo.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),GU=({isLeftColumn:e,styleService:t,cell:n,isIndentModeEnabled:r})=>e?r?t.grid.lineClamp:Math.max(t.grid.lineClamp,n.leafCount*t.grid.lineClamp):t.grid.columnLineClamp,UU=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=y$(),{isActive:i}=pG(),{layoutService:o,styleService:a}=E$(),{interactions:s}=S$(),l=n&&o.isIndentModeEnabled;let u=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:i,suffix:o,delimeter:a}=n;return`${0!==i.length?i:r} ${o?a:""} ${o}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r,isIndentModeEnabled:i})=>({...mz,...gz(GU({cell:e,isLeftColumn:r,styleService:t,isIndentModeEnabled:i})),color:xG({cell:e,styleService:t,isCellSelected:n}),fontWeight:SG({cell:e,styleService:t}),fontStyle:wG({cell:e,styleService:t}),textDecoration:CG({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n,isIndentModeEnabled:o.isIndentModeEnabled});if(e.representation.type===AF.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,i=n&&t&&t.suffix?$U:jG;return fo.jsx(i,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:oG(e,o,n,r)})}if(e.representation.type===AF.Link&&!i&&!e.isTotal){const t=n&&e.representation.labelStructure?VU:FU;u=fo.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return fo.jsx(BU,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===AF.Image&&e.isNull?{alignSelf:mG(e)}:{}},children:u})},YU=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:i}=E$(),{isSelected:o}=pG(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=n,{isAdjustingWidth:d,setIsAdjustingWidth:p}=QG([n]),f=qU(e,n),h=a?e===l-1:u,m=a?u:e===l-1,g=EB(f,c,i.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return fo.jsx(IB,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=o(f);return fo.jsxs(jU,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:d,index:e,children:[fo.jsxs(DB,{verticalAlign:mG(f),width:RB(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[fo.jsx(RG,{isLeftColumn:a,isCellSelected:v,cell:f}),fo.jsx(UU,{isLeftColumn:a,isCellSelected:v,cell:f})]}),fo.jsx(nU,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?_F.Measures:_F.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var KU=n.memo(YU,uB);const XU=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>i=>{const o=n?e[i]:t.at(i);return o&&0===i&&o.x>0?(o.leafCount+o.x+o.distanceToNextCell)*r():!n&&o?(o.leafCount+o.distanceToNextCell)*r():r(o?.x??i)},JU=(e,t,n,r)=>{const i=Object.values(e);let o,a=i.length;return r&&(a=n,o=t/a),{itemCount:a,estimatedItemSize:o,listValues:i}},ZU=(e,t)=>n=>{e.current&&(e.current[t]=n)},QU={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...fz},eY={overflow:"hidden",willChange:"auto",flexShrink:0},tY=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:i})=>{const{pageInfo:o,direction:a}=y$(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=E$(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=UH();OU(e,d),kU(e,t,n,l);const f=o.rowsOnCurrentPage*l,h={...QU,borderColor:u,width:r.reduce((e,t)=>e+t,0)};return fo.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map((t,u)=>{const h=u===d.columnCount-1,m=L$(p[u]),{itemCount:g,estimatedItemSize:v,listValues:y}=JU(t,f,o.rowsOnCurrentPage,h),b=s.isIndentModeEnabled?()=>l:((e,t,n,r,i)=>o=>{const a=r?e[o]:t.at(o);if(a&&0===o&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===i-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,y,l,h,c.qcy);return fo.jsx(oB,{ref:ZU(e,u),style:{...eY,flexGrow:h?1:0,direction:a},height:n,width:r[u],itemCount:g,itemSize:b,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:i,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:UG,estimatedItemSize:v,children:KU},m)})})};var nY=b(tY);const rY={overflow:"hidden",willChange:"auto"},iY=e=>({...fz,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),oY=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:i,getRightGridColumnWidth:o})=>{const{direction:a}=y$(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=E$(),{gridSectionsData:{headersData:c,topDimensionData:d}}=UH(),p={...iY(a),borderColor:l,height:r};OU(e,d),kU(e,n,r,u);const f=s.size.x*o();return 0===d.rowCount?fo.jsx("div",{style:{width:n,height:r,...iY(a)}}):fo.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map((r,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=JU(r,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const i=t.size.x-1,o=PU({layoutService:e,headersData:t,topRowIndex:n})?0:i,a=r.at(o),s=Array.isArray(a)?a.at(i):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),v=g?L$(g):`empty ${l}`;return fo.jsx(oB,{ref:ZU(e,l),style:rY,height:t(),width:n,itemCount:p,itemSize:XU({list:r,listValues:m,isLastRow:u,getRightGridColumnWidth:o}),layout:"horizontal",itemData:{list:r,isLast:u,itemCount:p,showLastBorder:i,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:UG,estimatedItemSize:h,direction:a,children:KU},v)})})};var aY=b(oY);const sY=()=>fo.jsx(lY,{}),lY=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=E$(),n=CV(),r=(()=>{const{model:e}=S$(),t=f(async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:i,sortDirection:o}=t,a=[];if(n===o)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${i}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:i,topGridWrapperRef:o,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:v}}=wV(),{leftGridWidth:y,leftGridFullWidth:b,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:I}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:r,styleService:i}=E$(),{gridSectionsData:{headersData:o}}=UH(),{measureText:a}=$z(i.header,{allowLineBreaks:!1}),s=dV({tableWidth:e}),l=pV({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=f((e,t,n="")=>{let i=e;r.isIndentModeEnabled&&(i=1,1===o.size.x&&(i=0));const l=s.leftGridColumnWidths[i];let u=!1,c=!1,d=a(n)+XH;return t&&d+KH<=l&&(c=!0,d+=KH),d+KH<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}},[s.leftGridColumnWidths,a,r.isIndentModeEnabled,o.size.x]);return d(()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&n()},[n,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:n.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:v}),{gridScaffoldDimensions:D,headerGridDims:R,topGridDims:P,leftGridDims:M,dataGridDims:L,metadata:{everyThingFitsInTableRectHeight:A,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:i},scrollBarsDimensions:{verticalScrollbarWidth:o,horizontalScrollbarHeight:a}})=>{const s=CV(),{pageInfo:l}=y$(),{gridSectionsData:{headersData:u,topDimensionData:c}}=UH(),d=Math.min(s.height*JH,Math.max(s.height*JH-25,s.height-t-a)),p=s.width*JH,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,v=Math.min(p,n),y=s.width-p,b=Math.max(y,s.width-v),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:C}=((e,t,n)=>{const r=t+1+n+o<=s.width,i=e+1+f+a,l=i-s.height<a||i<=s.height;return{availableHeight:l?i:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:r}})(x,v,b),E=S-d,I=Math.max(E,S-x),D=Math.min(I,f),R=Math.min(I,f),P=m+1+f,{visibilityStatus:M,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:A}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:i}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:o,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>r,c=o>t,d=a>n,p=l>i;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:v,rightSectionWidth:b},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:I}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:r,rightSectionFullWidth:i},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:P-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${v}px ${b}px`,gridTemplateRows:`${x}px ${I}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:i-o+(A?o:0),height:g},stickyWrapper:{width:b-1-o,height:-1},self:{width:Math.min(i,b)-(C?1:0)-o,height:g}},leftGridDims:{fullSizeWrapper:{width:v,height:P-g+(!L&&A?a:0)},stickyWrapper:{width:v,height:I-1-a},self:{width:v,height:Math.max(t,D-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:i-o+(A?o:0),height:P-g+(!A&&L?a:0)},stickyWrapper:{width:b-1-o,height:I-1-a},self:{width:Math.min(i,b)-(C?1:0)-o,height:Math.max(t,R-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:M}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:y,leftGridOriginalWidth:b,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),O=f(()=>e,[e]),q=f(()=>t,[t]);return(()=>{const{downloadService:e}=E$();d(()=>{e.notifyIsDoneRendering()})})(),fo.jsxs(IV,{style:D,children:[fo.jsx("div",{style:{overflow:"hidden"},ref:i,children:fo.jsx(AU,{tableWidth:n.width,leftGridWidth:y,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:R.height,changeSortOrder:r,overrideLeftGridWidth:I})}),fo.jsx(PV,{style:k.topGrid,origin:zF.TopGrid,ref:o,children:fo.jsx(EV,{style:P.fullSizeWrapper,children:fo.jsx(MV,{style:P.stickyWrapper,children:fo.jsx(aY,{topGridRef:l,rowHightCallback:O,...P.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),fo.jsx(PV,{style:k.leftGrid,origin:zF.LeftGrid,ref:a,children:fo.jsx(EV,{style:M.fullSizeWrapper,children:fo.jsx(MV,{style:M.stickyWrapper,children:fo.jsx(nY,{leftGridRef:u,...M.self,columnWidths:x,showLastBorder:{right:!1,bottom:A}})})})}),fo.jsx(PV,{style:k.dataGrid,origin:zF.DataGrid,ref:s,children:fo.jsx(EV,{style:L.fullSizeWrapper,children:fo.jsx(MV,{style:L.stickyWrapper,children:fo.jsx(JG,{dataGridRef:c,rowHightCallback:q,...L.self,showLastBorder:{right:w,bottom:A},getRightGridColumnWidth:C,verticalScrollDirection:p,horizontalScrollDirection:h})})})})]})},uY=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=S$(),{pageInfo:i,updatePageInfo:o,rect:a}=y$(),{layoutService:s}=E$(),{layout:l,hasData:u}=s;return fo.jsxs(fo.Fragment,{children:[u?fo.jsx(sY,{}):null,fo.jsx(D$,{}),fo.jsx(g$,{paginationNeeded:i.shouldShowPagination,handleChangePage:e=>{o({page:e})},pageInfo:i,totalRowCount:i.totalRowCount,totalColumnCount:0,totalPages:i.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:l})]})};const cY=(e,{selections:t,baseObjects:r,coreServices:i,nebulaObjects:o},a)=>{const s=function(e){const t=zS();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),_s({...t,direction:e})}(r.direction);e.render(fo.jsx(n.StrictMode,{children:fo.jsx(Pw,{store:a,children:fo.jsx(Cl,{theme:s,children:fo.jsx(w$,{...o,children:fo.jsx(b$,{...r,children:fo.jsx(fG,{selections:t,children:fo.jsx(I$,{...i,children:fo.jsx(YH,{children:fo.jsx(uY,{})})})})})})})})}))};var dY=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider",e}(dY||{}),pY=function(e){return e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2",e}(pY||{}),fY=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(fY||{}),hY=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor",e}(hY||{});const mY=e=>e?`${parseInt(e,10)}px`:void 0,gY=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?cz.Transparent:n}},vY=(e,t)=>+(parseInt(e,10)*uz*t+8).toFixed(2),yY=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?sz:"normal",bY=e=>e?.some(e=>"italic"===e)?"italic":"normal",xY=e=>e?.some(e=>"underline"===e)?"underline":"none",SY=document.createElement("textarea");function wY(e){SY.value=e,document.body.appendChild(SY),SY.select(),SY.setSelectionRange(0,SY.value.length),document.execCommand("copy"),document.body.removeChild(SY)}SY.style.position="absolute",SY.style.left="-9999px",SY.setAttribute("readonly","");function CY(e){T?.((t,n)=>{const r=n.target,i=r?.closest(`.${IT}`);i?.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{(e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{wY(t)}):wY(t))})(i)}}),e?.forEach(e=>{e(t,n,i)})})}const EY=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>Lz((i,o,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const s=e,l=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const n=((e,t)=>{const n=e?.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(R$,0,0,!0),await e.expandLeft(R$,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:i})=>({icon:"lui-icon lui-icon--plus",translation:i.get("SNPivotTable.ContextMenu.ExpandDimension",[r??""]),tid:"expand-dimension",id:"expand-dimension",select:gU({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:fU.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(R$,0,0,!0),await e.collapseLeft(R$,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:i})=>({icon:"lui-icon lui-icon--minus",translation:i.get("SNPivotTable.ContextMenu.CollapseDimension",[r??""]),tid:"collapse-dimension",id:"collapse-dimension",select:gU({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:fU.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r}))},[e,t,n]),IY=(e,t)=>P(()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:n,snapshotData:r}=e,{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:o,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!r,u=r?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,lz),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=o.slice(0,i),p=e=>d.some(t=>t===e),f=p(P$),h=new Map(o.map(e=>[s[e]??P$,e])),m=a.filter(e=>7005!==e.qError?.qErrorCode);return{layout:e,getNullValueText:()=>n?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const n=e%m.length;return t?n:a.findIndex(e=>e===m[n])},getDimensionInfo:e=>e===P$?void 0:s.at(e),getDimensionInfoIndex:e=>h.get(e)??-1,size:c,isSnapshot:l,hasLimitedData:!l&&c.x<e.qHyperCube.qSize.qcx,hasData:c.x>0&&c.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:f,leftDimensionInfoIndexes:d,isLeftDimension:p,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:m,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeColumnWidth:e.qHyperCube.indentModeColumnWidth??{type:MT.Auto,pixels:PT.PixelsDefault,percentage:PT.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e}),[e,t]),DY=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:i})=>{const{layout:o,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=kz(e);return t.current=e,t})(WH(i));return _z(async()=>{const{qHyperCube:t}=o,{maxNumberOfVisibleRows:i,maxNumberOfVisibleColumns:u}=l.current;if(a)return o.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(s,n,i,u)||((e,t,n,r)=>{const{qHyperCube:{qPivotDataPages:i,qSize:o}}=e,{qTop:a,qWidth:s,qHeight:l}=i[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(r,o.qcx)||l<Math.min(n,o.qcy)})(o,r,i,u))){const t=((e,t,n,r,i,o)=>{const a=r.page*r.rowsPerPage,s=Math.min(a+r.rowsPerPage,n.qcy),l=Math.min(lz,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-i)),n>l&&(u=Math.max(0,l-o))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,o),qHeight:Math.min(s-c,i)}})(s,n,o.qHyperCube.qSize,r,i,u);return t?e.getHyperCubePivotData(R$,$H(t)):[]}return t.qPivotDataPages},[o,a,e,n,r.page,r.rowsPerPage,l,s])},RY=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),PY=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:RY({rowsPerPage:n,totalRowCount:e,page:t})}),MY=15,LY=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:i})=>{const{freeResize:o}=M();return j(async e=>{const o=e;if(!o.snapshotData||!r||o.snapshotData.content)return o;if("getHyperCubePivotData"in r){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(r-MY,0),u=Math.max(s+i-MY,s,0),c=lz-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=WH(n);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,o+30),qHeight:Math.min(d,a+30)}})(t,i,n),c=$H(u),d={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};o.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(R$,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:i.page,rowsPerPage:i.rowsPerPage},o.snapshotData.object.size.w=n.width,o.snapshotData.object.size.h=n.height}return o}),N(()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,i)}),[t]),e.layout.snapshotData?.content&&!o?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var AY={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const kY=()=>{const e=_(),t=e.language();return P(()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(AY).forEach(t=>{e.add(AY[t])})}(e)},[e]),{translator:e,language:t}},OY=e=>{const t=P(()=>Iw(),[]),{flags:n}=e,r=F(),i=(e=>{const t=P(()=>Hz(e),[e]);return k(()=>()=>{t.unmount()},[t]),t})(r),o=z(),a=W(),s=$(),l=H(),u=V(),c=(()=>{const{viewState:e}=M(),t=kz(new Set),n=void 0!==window.qlikprinting,{promise:r,resolve:i}=P(()=>Mz(),[]),o=Lz(e=>{t.current.add(e)},[t]),a=Lz(ZN(async()=>{await Promise.all(t.current),t.current.clear(),i()},1e3),[i,t]);return L(async()=>{await r},[r]),P(()=>({viewState:e,isDownloadedAsPDForImage:n,notifyIsDoneRendering:a,waitForPromise:o}),[a,n,e,o])})(),d=((e,t)=>{const[n]=_z(async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}},[e,t]);return P(()=>{const e=void 0!==n?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(n.qHyperCubeDef.qSortbyYValue),t=n?.qHyperCubeDef.qDimensions.map(e=>e.qDef?.qSortCriterias)??[];return{qAlwaysFullyExpanded:n?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:n?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}},[n])})(a,o),p=IY(o,n),f=(e=>{const t=q();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=B(),m=Nz(o,r),{translator:g,language:v}=kY(),{pageInfo:y,updatePageInfo:b}=((e,t)=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=e,i=t.isDownloadedAsPDForImage||e.isSnapshot,o=(e=>e.layout.snapshotData?.content?.rowsPerPage)(e),[a,s]=A(()=>{const a=((e,t)=>t.isDownloadedAsPDForImage?t.viewState?.renderPage??0:e.isSnapshot?e.layout.snapshotData?.content?.page??0:0)(e,t);return{page:a,shouldShowPagination:r.qcy>n.y&&!i,...PY(r.qcy,a,o)}}),l=e.layout.qHyperCube.qSize.qcy;return k(()=>{s(t=>({...t,...PY(l,t.page,o),shouldShowPagination:l>e.size.y&&!i}))},[l,e.size.y,s,i,o]),k(()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,n=RY({...a,page:e});s({...a,page:e,rowsOnCurrentPage:n})}},[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:RY({...a,...e})})}}})(p,c),x=((e,t,n)=>P(()=>((e,t)=>{if(e.isDownloadedAsPDForImage){const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.scrollTop??0,scrollLeft:t?.scrollLeft??0,leftGridScrollLeft:t?.leftGridScrollLeft??0,topGridScrollTop:t?.topGridScrollTop??0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.content?.scrollTop??0,scrollLeft:t?.content?.scrollLeft??0,leftGridScrollLeft:t?.content?.leftGridScrollLeft??0,topGridScrollTop:t?.content?.topGridScrollTop??0}})(n,t.snapshotData),[n,e.page,t.snapshotData]))(y,o,c),S=LY({rect:G(),layoutService:p,viewService:x,model:a,pageInfo:y}),[w,C]=DY({model:a,layoutService:p,viewService:x,pageInfo:y,rect:S}),E=P(()=>((e,t)=>{const n=t.layout.components?.find(e=>"theme"===e.key),r=n?.header,i=n?.dimensionValues,o=n?.measureValues,a=n?.measureLabels,s=n?.totalValues,l=n?.nullValues,u=n?.grid,c=(t,n,r)=>e.getStyle(t,n,r),d=+(u?.[dY.LineClamp]??c(pY.Grid,fY.Grid,hY.LineClamp)??1),p=+(u?.[dY.ColumnLineClamp]??c(pY.Grid,fY.Grid,hY.ColumnLineClamp)??1),f=gY(e,r?.[dY.Background])??c(pY.Dimension,fY.LabelName,hY.BackgroundColor)??cz.Transparent,h={header:{fontSize:mY(r?.[dY.FontSize])??c(pY.Dimension,fY.LabelName,hY.FontSize)??oz,fontFamily:r?.[dY.FontFamily]??c(pY.Dimension,fY.LabelName,hY.FontFamily)??az,fontWeight:yY(r?.[dY.FontStyle],sz),fontStyle:bY(r?.[dY.FontStyle]),textDecoration:xY(r?.[dY.FontStyle]),color:gY(e,r?.[dY.FontColor])??c(pY.Dimension,fY.LabelName,hY.FontColor)??hj.TEXT,background:f,hoverBackground:l_(f,LT),activeBackground:l_(f,AT)},dimensionValues:{fontSize:mY(i?.[dY.FontSize])??c(pY.Dimension,fY.LabelValue,hY.FontSize)??oz,fontFamily:i?.[dY.FontFamily]??c(pY.Dimension,fY.LabelValue,hY.FontFamily)??az,fontWeight:yY(i?.[dY.FontStyle],void 0),fontStyle:bY(i?.[dY.FontStyle]),textDecoration:xY(i?.[dY.FontStyle]),color:gY(e,i?.[dY.FontColor])??c(pY.Dimension,fY.LabelValue,hY.FontColor)??hj.TEXT,background:gY(e,i?.[dY.Background])??c(pY.Dimension,fY.LabelValue,hY.BackgroundColor)??cz.Transparent},measureValues:{fontSize:mY(o?.[dY.FontSize])??c(pY.Measure,fY.LabelValue,hY.FontSize)??oz,fontFamily:o?.[dY.FontFamily]??c(pY.Measure,fY.LabelValue,hY.FontFamily)??az,fontWeight:yY(o?.[dY.FontStyle],"normal"),fontStyle:bY(o?.[dY.FontStyle]),textDecoration:xY(o?.[dY.FontStyle]),color:gY(e,o?.[dY.FontColor])??c(pY.Measure,fY.LabelValue,hY.FontColor)??cz.FontSecondary,background:gY(e,o?.[dY.Background])??c(pY.Measure,fY.LabelValue,hY.BackgroundColor)??cz.Transparent},measureLabels:{fontWeight:yY(a?.[dY.FontStyle],"normal"),fontStyle:bY(a?.[dY.FontStyle]),textDecoration:xY(a?.[dY.FontStyle]),color:gY(e,a?.[dY.FontColor])??c(pY.Measure,fY.LabelName,hY.FontColor)??cz.FontSecondary,background:gY(e,a?.[dY.Background])??c(pY.Measure,fY.LabelName,hY.BackgroundColor)??cz.Transparent},totalValues:{fontWeight:yY(s?.[dY.FontStyle],sz),fontStyle:bY(s?.[dY.FontStyle]),textDecoration:xY(s?.[dY.FontStyle]),color:gY(e,s?.[dY.FontColor])??c(pY.Total,fY.LabelValue,hY.FontColor)??hj.TEXT,background:gY(e,s?.[dY.Background])??c(pY.Total,fY.LabelValue,hY.BackgroundColor)??cz.Transparent},nullValues:{fontWeight:yY(l?.[dY.FontStyle],"normal"),fontStyle:bY(l?.[dY.FontStyle]),textDecoration:xY(l?.[dY.FontStyle]),color:gY(e,l?.[dY.FontColor])??c(pY.Null,fY.LabelValue,hY.FontColor)??hj.TEXT,background:gY(e,l?.[dY.Background])??c(pY.Null,fY.LabelValue,hY.BackgroundColor)??cz.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:gY(e,u?.[dY.Border])??c(pY.Grid,fY.Grid,hY.BorderColor)??cz.DividerLight,divider:gY(e,u?.[dY.Divider])??c(pY.Grid,fY.Divider,hY.BorderColor)??cz.DividerDark,background:gY(e,u?.[dY.Background])??c(pY.Grid,fY.Grid,hY.BackgroundColor)??cz.Transparent},selectedColors:s_(e)};return h.headerCellHeight=Math.max(vY(h.header.fontSize,p),vY(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(vY(h.measureValues.fontSize,d),vY(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=vY(h.dimensionValues.fontSize,1),h})(m,p),[m,p]),I=((e,t,n)=>{const[,r,i]=_z(async()=>{const t=Bj(n.flags),r=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),o=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,r,i,o,Bz].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,n]);return i?(console.warn("Failed to load fonts:",i),!0):!r})(m,o,e),{direction:D}=M();CY([EY({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),k(()=>{!C&&a&&!!w&&I&&cY(i,{selections:h,baseObjects:{rect:S,pageInfo:y,qPivotDataPages:w,updatePageInfo:b,direction:D},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:E,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}},t)},[a,s,S,f,h,x,p,c,C,w,E,i,I,g,v,y,b,d,l,u,m,e,D,t])},qY={version:"7.21.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},TY=()=>({...qY,qHyperCubeDef:{...qY.qHyperCubeDef,qIndentMode:!1}})}}});
|